-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
96 lines (93 loc) · 2.04 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
import type { Config } from 'tailwindcss'
import defaultColors from 'tailwindcss/colors'
const config: Config = {
content: ['./src/**/*.{tsx,mdx}'],
theme: {
colors: {
// theme colors
theme: 'var(--color-theme)',
primary: {
1: 'var(--color-primary-1)',
2: 'var(--color-primary-2)',
3: 'var(--color-primary-3)',
},
highlight: {
1: 'var(--color-highlight-1)',
2: 'var(--color-highlight-2)',
3: 'var(--color-highlight-3)',
},
// utility colors
current: defaultColors.current,
transparent: defaultColors.transparent,
},
blur: {
DEFAULT: '8px',
lg: '16px',
},
borderRadius: {
DEFAULT: '0.5rem',
lg: '1rem',
full: '9999px',
},
borderColor: {
DEFAULT: 'var(--color-primary-1)',
},
boxShadow: {
DEFAULT: '0 3px 12px var(--tw-shadow-color, hsla(0deg, 0%, 0%, 0.1))',
lg: '0 6px 24px var(--tw-shadow-color, hsla(0deg, 0%, 0%, 0.1))',
},
fontFamily: {
sans: ['var(--font-sans)'],
serif: ['var(--font-serif)'],
},
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
md: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '3.75rem',
'7xl': '4.5rem',
'8xl': '5.5rem',
'9xl': '6.5rem',
},
height: ({ theme }) => ({
...theme('spacing'),
screen: '100dvh',
}),
spacing: {
0: '0rem',
1: '0.25rem',
2: '0.5rem',
3: '0.75rem',
4: '1rem',
5: '1.25rem',
6: '1.5rem',
7: '1.75rem',
8: '2rem',
9: '2.25rem',
10: '2.5rem',
12: '3rem',
16: '4rem',
20: '5rem',
24: '6rem',
32: '8rem',
40: '10rem',
60: '15rem',
80: '20rem',
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
extend: {},
},
plugins: [require('@tailwindcss/typography')],
}
export default config