forked from nuotsu/sanitypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
44 lines (40 loc) · 861 Bytes
/
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
import plugin from 'tailwindcss/plugin'
import type { Config } from 'tailwindcss'
export default {
content: ['./src/{app,ui}/**/*.{ts,tsx}'],
theme: {
extend: {
colors: {
ink: '#1d1d1f',
canvas: '#fff',
accent: '#1d1d1f',
},
maxHeight: {
fold: 'calc(100svh - var(--header-height))',
},
},
lh: {
DEFAULT: '1lh',
2: '2lh',
3: '3lh',
},
},
plugins: [
plugin(function ({ addVariant, matchUtilities, theme }) {
addVariant('header-open', 'body:has(#header-open:checked) &')
addVariant('header-closed', 'body:has(#header-open:not(:checked)) &')
matchUtilities(
{
skeleton: (value) => ({
height: value,
backgroundColor: theme('colors.neutral.50'),
}),
},
{
values: theme('lh'),
},
)
}),
],
safelist: [{ pattern: /action.*/ }, 'ghost'],
} satisfies Config