forked from Nutlope/turboseek
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.ts
226 lines (224 loc) · 7.56 KB
/
tailwind.config.ts
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
import type { Config } from 'tailwindcss';
import typography from '@tailwindcss/typography';
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: ['class', '[data-theme="high-contrast"]'],
safelist: [
'theme-paper',
'theme-high-contrast',
'theme-dos-blue',
'theme-cyberpunk',
'theme-solarized'
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontFamily: {
sans: ['Berkeley Mono', 'monospace'],
mono: ['Berkeley Mono', 'monospace'],
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
"fade-in": {
from: { opacity: "0" },
to: { opacity: "1" },
},
"fade-out": {
from: { opacity: "1" },
to: { opacity: "0" },
},
"zoom-in": {
from: { transform: "scale(0.95)" },
to: { transform: "scale(1)" },
},
"zoom-out": {
from: { transform: "scale(1)" },
to: { transform: "scale(0.95)" },
},
"slide-in-from-top-2": {
from: { transform: "translateY(-2px)" },
to: { transform: "translateY(0)" },
},
"slide-in-from-bottom-2": {
from: { transform: "translateY(2px)" },
to: { transform: "translateY(0)" },
},
"slide-in-from-left-2": {
from: { transform: "translateX(-2px)" },
to: { transform: "translateX(0)" },
},
"slide-in-from-right-2": {
from: { transform: "translateX(2px)" },
to: { transform: "translateX(0)" },
},
},
animation: {
"accordion-down": "accordion-down 150ms ease-out",
"accordion-up": "accordion-up 150ms ease-out",
"fade-in-0": "fade-in 100ms ease-out",
"fade-out-0": "fade-out 100ms ease-in",
"zoom-in-95": "zoom-in 150ms cubic-bezier(0.4, 0, 0.2, 1)",
"zoom-out-95": "zoom-out 150ms cubic-bezier(0.4, 0, 0.2, 1)",
"slide-in-from-top-2": "slide-in-from-top-2 150ms cubic-bezier(0.4, 0, 0.2, 1)",
"slide-in-from-bottom-2": "slide-in-from-bottom-2 150ms cubic-bezier(0.4, 0, 0.2, 1)",
"slide-in-from-left-2": "slide-in-from-left-2 150ms cubic-bezier(0.4, 0, 0.2, 1)",
"slide-in-from-right-2": "slide-in-from-right-2 150ms cubic-bezier(0.4, 0, 0.2, 1)",
},
},
},
plugins: [
typography,
function({ addBase }: any) {
addBase({
':root[class~="theme-high-contrast"]': {
'--background': '0 0% 0%',
'--foreground': '0 0% 100%',
'--primary': '120 100% 50%',
'--primary-foreground': '0 0% 0%',
'--secondary': '0 0% 10%',
'--secondary-foreground': '0 0% 100%',
'--muted': '0 0% 15%',
'--muted-foreground': '0 0% 63%',
'--accent': '120 100% 50%',
'--accent-foreground': '0 0% 0%',
'--border': '0 0% 20%',
'--input': '0 0% 20%',
'--ring': '120 100% 50%',
'--radius': '0.5rem',
},
':root[class~="theme-paper"]': {
'--background': '45 29% 97%',
'--foreground': '20 14.3% 4.1%',
'--primary': '24 9.8% 10%',
'--primary-foreground': '60 9.1% 97.8%',
'--secondary': '60 4.8% 95.9%',
'--secondary-foreground': '24 9.8% 10%',
'--muted': '60 4.8% 95.9%',
'--muted-foreground': '25 5.3% 44.7%',
'--accent': '60 4.8% 95.9%',
'--accent-foreground': '24 9.8% 10%',
'--border': '20 5.9% 90%',
'--input': '20 5.9% 90%',
'--ring': '24 5.4% 63.9%',
'--radius': '0.5rem',
},
':root[class~="theme-dos-blue"]': {
'--background': '240 100% 25%',
'--foreground': '0 0% 100%',
'--primary': '180 100% 50%',
'--primary-foreground': '240 100% 25%',
'--secondary': '240 100% 20%',
'--secondary-foreground': '0 0% 100%',
'--muted': '240 100% 20%',
'--muted-foreground': '0 0% 63%',
'--accent': '180 100% 50%',
'--accent-foreground': '240 100% 25%',
'--border': '240 100% 33%',
'--input': '240 100% 33%',
'--ring': '180 100% 50%',
'--radius': '0px',
},
':root[class~="theme-cyberpunk"]': {
'--background': '300 89% 5%',
'--foreground': '300 100% 98%',
'--primary': '326 100% 50%',
'--primary-foreground': '300 0% 0%',
'--secondary': '266 100% 64%',
'--secondary-foreground': '300 0% 0%',
'--muted': '300 50% 10%',
'--muted-foreground': '300 50% 80%',
'--accent': '326 100% 50%',
'--accent-foreground': '300 0% 0%',
'--border': '326 100% 50%',
'--input': '300 50% 10%',
'--ring': '326 100% 40%',
'--radius': '0px',
},
':root[class~="theme-solarized"]': {
'--background': '44 87% 94%',
'--foreground': '192 81% 14%',
'--primary': '18 80% 44%',
'--primary-foreground': '44 87% 94%',
'--secondary': '44 87% 89%',
'--secondary-foreground': '192 81% 14%',
'--muted': '44 87% 89%',
'--muted-foreground': '192 81% 40%',
'--accent': '18 80% 44%',
'--accent-foreground': '44 87% 94%',
'--border': '18 80% 44%',
'--input': '44 87% 89%',
'--ring': '18 80% 34%',
'--radius': '0.375rem',
},
':root[class~="theme-dos"]': {
'--background': '240 100% 26%',
'--foreground': '0 0% 100%',
'--card': '240 100% 26%',
'--card-foreground': '0 0% 100%',
'--popover': '240 100% 26%',
'--popover-foreground': '0 0% 100%',
'--primary': '180 100% 50%',
'--primary-foreground': '240 100% 26%',
'--secondary': '240 100% 20%',
'--secondary-foreground': '0 0% 100%',
'--muted': '240 100% 20%',
'--muted-foreground': '0 0% 63%',
'--accent': '180 100% 50%',
'--accent-foreground': '240 100% 26%',
'--destructive': '0 100% 67%',
'--destructive-foreground': '0 0% 100%',
'--border': '0 0% 100%',
'--input': '240 100% 26%',
'--ring': '180 100% 50%',
'--radius': '0px',
},
});
},
],
};
export default config;