forked from barvian/musee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
61 lines (60 loc) · 1.16 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
import type { Config } from 'tailwindcss'
import fluid, { extract, fontSize } from 'fluid-tailwind'
import reset from 'tw-reset'
import plugin from 'tailwindcss/plugin'
import { screens, colors } from './theme'
export default {
presets: [reset],
content: {
files: ['./app/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}'],
extract
},
corePlugins: {
container: false
},
theme: {
screens,
fontSize,
colors,
extend: {
spacing: {
'4.5': '1.125rem',
'15': '3.75rem',
'18': '4.5rem'
},
fontFamily: {
sans: ['var(--font-cera)'],
serif: ['Baskerville', 'Times New Roman', 'serif']
},
fontSize: {
sm: ['0.8125rem', '1.1rem'],
'6xl': ['3.4375rem', '3.4375rem'],
'8xl': ['6.3125rem', '5.58025rem']
},
maxWidth: {
'8xl': '87rem'
}
}
},
plugins: [
fluid,
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'header-py': (val) => ({
'--header-py': val
})
},
{ values: theme('padding') }
)
matchUtilities(
{
'section-pt': (val) => ({
'--section-pt': val
})
},
{ values: theme('padding') }
)
})
]
} satisfies Config