-
Notifications
You must be signed in to change notification settings - Fork 35
/
tailwind.config.ts
240 lines (236 loc) · 6.86 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
import plugin from 'tailwindcss/plugin'
import type { Config } from 'tailwindcss'
import TailwindThemer from 'tailwindcss-themer'
import tailwindAnimate from 'tailwindcss-animate'
import defaultTheme from 'tailwindcss/defaultTheme'
import typographyPlugin from '@tailwindcss/typography'
import aspectRatioPlugin from '@tailwindcss/aspect-ratio'
import containerQueriesPlugin from '@tailwindcss/container-queries'
const { colors, fontFamily, fontSize, keyframes, animation, spacing, screens } = {
screens: {
'3xl': '1850px',
'3xs': '390px',
xxs: '420px',
xs: '500px',
...defaultTheme.screens
},
colors: {
lime: {
'50': 'hsl(98, 100%, 95%)',
'100': 'hsl(99, 100%, 88%)',
'200': 'hsl(100, 100%, 78%)',
'300': 'hsl(102, 100%, 66%)',
'400': 'hsl(104, 100%, 61%)',
'500': 'hsl(106, 100%, 45%)',
'600': 'hsl(107, 100%, 36%)',
'700': 'hsl(107, 100%, 27%)',
'800': 'hsl(108, 88%, 23%)',
'900': 'hsl(109, 79%, 20%)',
'950': 'hsl(112, 100%, 10%)'
},
salmon: {
'50': 'hsl(0, 100%, 97%)',
'100': 'hsl(0, 100%, 94%)',
'200': 'hsl(0, 100%, 89%)',
'300': 'hsl(0, 100%, 81%)',
'400': 'hsl(0, 100%, 74%)',
'500': 'hsl(0, 93%, 60%)',
'600': 'hsl(0, 79%, 51%)',
'700': 'hsl(0, 81%, 42%)',
'800': 'hsl(0, 78%, 35%)',
'900': 'hsl(0, 69%, 31%)',
'950': 'hsl(0, 82%, 15%)'
},
kournikova: {
'50': 'hsl(52, 92%, 95%)',
'100': 'hsl(52, 100%, 88%)',
'200': 'hsl(50, 100%, 77%)',
'300': 'hsl(48, 100%, 70%)',
'400': 'hsl(45, 98%, 53%)',
'500': 'hsl(43, 95%, 47%)',
'600': 'hsl(38, 98%, 40%)',
'700': 'hsl(33, 94%, 33%)',
'800': 'hsl(29, 82%, 29%)',
'900': 'hsl(26, 74%, 26%)',
'950': 'hsl(23, 86%, 14%)'
},
yellow: '#FFF500',
pink: '#FF79C9',
followButton: '#FFE066',
darkGrey: '#333333',
addition: '#A1F783',
deletion: '#FF7C7C',
'text-neutral': '#999999'
},
fontFamily: {
sans: ['inter', ...defaultTheme.fontFamily.sans]
// mono: ['var(--font-ibm-plex-mono)']
},
fontSize: {
// 1rem = 16px
'text-md': ['1rem', { lineHeight: '1.5rem' }],
/** 80px size / 84px high / bold */
mega: ['5rem', { lineHeight: '5.25rem', fontWeight: '700' }],
/** 56px size / 62px high / bold */
h1: ['3.5rem', { lineHeight: '3.875rem', fontWeight: '700' }],
/** 40px size / 48px high / bold */
h2: ['2.5rem', { lineHeight: '3rem', fontWeight: '700' }],
/** 32px size / 36px high / bold */
h3: ['2rem', { lineHeight: '2.25rem', fontWeight: '700' }],
/** 28px size / 36px high / bold */
h4: ['1.75rem', { lineHeight: '2.25rem', fontWeight: '700' }],
/** 24px size / 32px high / bold */
h5: ['1.5rem', { lineHeight: '2rem', fontWeight: '700' }],
/** 16px size / 20px high / bold */
h6: ['1rem', { lineHeight: '1.25rem', fontWeight: '700' }],
/** 32px size / 36px high / normal */
'body-2xl': ['2rem', { lineHeight: '2.25rem' }],
/** 28px size / 36px high / normal */
'body-xl': ['1.75rem', { lineHeight: '2.25rem' }],
/** 24px size / 32px high / normal */
'body-lg': ['1.5rem', { lineHeight: '2rem' }],
/** 20px size / 28px high / normal */
'body-md': ['1.25rem', { lineHeight: '1.75rem' }],
/** 16px size / 20px high / normal */
'body-sm': ['1rem', { lineHeight: '1.25rem' }],
/** 14px size / 18px high / normal */
'body-xs': ['0.875rem', { lineHeight: '1.125rem' }],
/** 12px size / 16px high / normal */
'body-2xs': ['0.75rem', { lineHeight: '1rem' }],
/** 18px size / 24px high / semibold */
caption: ['1.125rem', { lineHeight: '1.5rem', fontWeight: '600' }],
/** 12px size / 16px high / bold */
button: ['0.75rem', { lineHeight: '1rem', fontWeight: '700' }]
},
keyframes: {
wiggle: {
'0%, 100%': { transform: 'rotate(-3deg)' },
'50%': { transform: 'rotate(3deg)' }
},
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' }
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' }
},
loading: {
'0%': {
'background-position': '200% 0'
},
'50%': {
'background-position': '0% 0'
},
'100%': {
'background-position': '-200% 0'
}
},
spinY: {
'0%': {
transform: 'rotateY(0deg)'
},
'100%': {
transform: 'rotateY(360deg)'
}
}
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'spin-slow': 'spin 2s linear infinite',
loading: 'loading 5s ease-in-out infinite',
'spin-y': 'spinY 5s ease-in-out infinite'
},
spacing: {
'68': '17rem',
'76': '19rem',
'86': '22rem',
'92': '24rem',
'100': '26rem',
'108': '28rem',
'116': '30rem',
'128': '32rem',
'144': '36rem'
}
} satisfies Config['theme']
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./src/app/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}'
],
darkMode: 'class',
important: true,
future: { hoverOnlyWhenSupported: true },
theme: {
transparent: 'transparent',
current: 'currentColor',
screens,
extend: {
spacing,
colors,
fontSize,
fontFamily,
animation,
keyframes
}
},
plugins: [
TailwindThemer({
themes: [
{
name: 'light',
extend: {
colors: {
text: '#000000',
neutral: '#ffffff',
grey: '#E4E4E7',
navItem: '#b4b4b4'
}
}
},
{
name: 'dark',
extend: {
colors: {
text: '#ffffff',
neutral: '#333333',
grey: '#71717A',
navItem: '#94a3b822'
}
}
},
{
name: 'halloween',
extend: {
colors: {
text: '#ffffff',
neutral: '#000000',
grey: '#61616A',
navItem: '#94a3b822'
}
}
}
]
}),
tailwindAnimate,
typographyPlugin,
aspectRatioPlugin,
containerQueriesPlugin,
plugin(({ addVariant, addUtilities, matchUtilities, theme }) => {
matchUtilities(
{ 'animation-delay': value => ({ 'animation-delay': value }) },
{ values: theme('transitionDelay') }
)
addVariant('optional', '&:optional')
addVariant('hocus', ['&:hover', '&:focus'])
addVariant('inverted-colors', '@media (inverted-colors: inverted)')
addUtilities({
'.content-auto': { 'content-visibility': 'auto' },
'.content-hidden': { 'content-visibility': 'hidden' },
'.content-visible': { 'content-visibility': 'visible' }
})
})
]
} satisfies Config