-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
76 lines (76 loc) · 2.07 KB
/
tailwind.config.js
File metadata and controls
76 lines (76 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
fontFamily: {
'sans': ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
'mono': ['JetBrains Mono', 'monospace'],
},
colors: {
gold: {
50: '#FFFBEB',
100: '#FEF3C7',
200: '#FDE68A',
300: '#FCD34D',
400: '#FBBF24',
500: '#F59E0B',
600: '#D97706',
700: '#B45309',
800: '#92400E',
900: '#78350F',
},
},
animation: {
'fade-in': 'fadeIn 0.5s ease-in-out',
'slide-up': 'slideUp 0.3s ease-out',
'pulse-gold': 'pulseGold 2s infinite',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
slideUp: {
'0%': { transform: 'translateY(10px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
pulseGold: {
'0%, 100%': { boxShadow: '0 0 0 0 rgba(255, 215, 0, 0.7)' },
'70%': { boxShadow: '0 0 0 10px rgba(255, 215, 0, 0)' },
},
},
},
},
plugins: [
function({ addUtilities }) {
const newUtilities = {
'.line-clamp-1': {
overflow: 'hidden',
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '1',
},
'.line-clamp-2': {
overflow: 'hidden',
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '2',
},
'.line-clamp-3': {
overflow: 'hidden',
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '3',
},
'.line-clamp-none': {
overflow: 'visible',
display: 'block',
'-webkit-box-orient': 'horizontal',
'-webkit-line-clamp': 'none',
},
}
addUtilities(newUtilities, ['responsive'])
}
],
};