-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
142 lines (141 loc) · 4.81 KB
/
tailwind.config.js
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
const withOpacity = (variableName) => {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
};
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
animation: {
marquee: 'marquee 15s linear infinite',
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
keyframes: {
marquee: {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(-100%)' },
},
pulse: {
'0%, 100%': { transform: 'scale(1)', opacity: '1' },
'50%': { transform: 'scale(1.1)', opacity: '0.7' },
},
},
spacing: {
18: '4.5rem',
},
fontSize: {
xxs: '0.625rem', // 8px
xs: '0.75rem', // 10px
sm: '0.875rem', // 12px
base: '1rem', // 16px (default base font size)
md: '1.125rem', // 18px
lg: '1.25rem', // 20px
xl: '1.5rem', // 24px
xxl: '2rem', // 32px
xxxl: '2.5rem', // 40px
},
borderRadius: {
none: '0',
xxxs: '0.125rem', // 2px
xxs: '0.25rem', // 4px
xs: '0.375rem', // 6px
sm: '0.5rem', // 8px
md: '0.75rem', // 12px
lg: '1rem', // 16px
xl: '1.5rem', // 24px
xxl: '2rem', // 32px
xxxl: '2.5rem', // 40px
full: '99999rem',
},
colors: {
primary: {
default: withOpacity('--color-primary'),
light: withOpacity('--color-primary-light'),
dark: withOpacity('--color-primary-dark'),
},
secondary: {
default: withOpacity('--color-secondary'),
light: withOpacity('--color-secondary-light'),
dark: withOpacity('--color-secondary-dark'),
},
tertiary: {
default: withOpacity('--color-tertiary'),
light: withOpacity('--color-tertiary-light'),
dark: withOpacity('--color-tertiary-dark'),
},
background: withOpacity('--color-background'),
surface: withOpacity('--color-surface'),
overlay: withOpacity('--color-overlay'),
text: {
primary: withOpacity('--color-text-primary'),
secondary: withOpacity('--color-text-secondary'),
tertiary: withOpacity('--color-text-tertiary'),
disabled: withOpacity('--color-text-disabled'),
},
accent: {
1: withOpacity('--color-accent-1'),
2: withOpacity('--color-accent-2'),
3: withOpacity('--color-accent-3'),
},
success: withOpacity('--color-success'),
warning: withOpacity('--color-warning'),
error: withOpacity('--color-error'),
info: withOpacity('--color-info'),
button: {
primary: {
default: withOpacity('--color-button-primary'),
hover: withOpacity('--color-button-primary-hover'),
active: withOpacity('--color-button-primary-active'),
},
secondary: {
default: withOpacity('--color-button-secondary'),
hover: withOpacity('--color-button-secondary-hover'),
active: withOpacity('--color-button-secondary-active'),
},
tertiary: {
default: withOpacity('--color-button-tertiary'),
hover: withOpacity('--color-button-tertiary-hover'),
active: withOpacity('--color-button-tertiary-active'),
},
dark: {
default: withOpacity('--color-button-dark'),
hover: withOpacity('--color-button-dark-hover'),
active: withOpacity('--color-button-dark-active'),
},
},
border: withOpacity('--color-border'),
divider: withOpacity('--color-divider'),
input: {
background: withOpacity('--color-input-background'),
border: withOpacity('--color-input-border'),
focusBorder: withOpacity('--color-input-focus-border'),
},
nav: {
background: withOpacity('--color-nav-background'),
item: withOpacity('--color-nav-item'),
itemHover: withOpacity('--color-nav-item-hover'),
itemActive: withOpacity('--color-nav-item-active'),
},
card: {
background: withOpacity('--color-card-background'),
border: withOpacity('--color-card-border'),
hover: withOpacity('--color-card-hover'),
},
link: {
default: withOpacity('--color-link'),
hover: withOpacity('--color-link-hover'),
active: withOpacity('--color-link-active'),
},
icon: {
primary: withOpacity('--color-icon-primary'),
secondary: withOpacity('--color-icon-secondary'),
},
},
},
},
plugins: [],
};