-
Notifications
You must be signed in to change notification settings - Fork 35
/
tailwind.config.js
130 lines (127 loc) · 3.09 KB
/
tailwind.config.js
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
// @ts-check
const defaultTheme = require('tailwindcss/defaultTheme')
/** @satisfies {import('tailwindcss').Config} */
const config = {
darkMode: ['class', '[data-theme="dark"]'],
experimental: {
optimizeUniversalDefaults: true
},
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {
colors: {
prog: {
primary: {
500: '#3584FB',
600: '#3171D9'
},
gray: {
100: '#F8FAFC',
500: '#64748B'
},
white: {
100: '#FFFFFF',
500: '#F8FAFC'
}
}
},
typography: theme => ({
DEFAULT: {
css: {
h1: {
color: theme('colors.gray.900'),
fontWeight: '800',
fontFamily: `${theme('fontFamily.display')}`
},
h2: {
color: theme('colors.gray.900'),
fontWeight: '700',
fontFamily: `${theme('fontFamily.display')}`
},
h3: {
color: theme('colors.gray.900'),
fontWeight: '600',
fontFamily: `${theme('fontFamily.display')}`
},
h4: {
color: theme('colors.gray.900'),
fontWeight: '600',
fontFamily: `${theme('fontFamily.display')}`
},
p: {
fontFamily: `${theme('fontFamily.body')}`
}
}
},
lg: {
css: {
h1: {
fontFamily: `${theme('fontFamily.display')}`
},
h2: {
fontFamily: `${theme('fontFamily.display')}`
},
h3: {
fontFamily: `${theme('fontFamily.display')}`
},
h4: {
fontFamily: `${theme('fontFamily.display')}`
},
p: {
fontFamily: `${theme('fontFamily.body')}`
}
}
},
xl: {
css: {
h1: {
fontFamily: `${theme('fontFamily.display')}`
},
h2: {
fontFamily: `${theme('fontFamily.display')}`
},
h3: {
fontFamily: `${theme('fontFamily.display')}`
},
h4: {
fontFamily: `${theme('fontFamily.display')}`
},
p: {
fontFamily: `${theme('fontFamily.body')}`
}
}
}
})
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px'
},
fontFamily: {
display: [
'var(--font-inter)',
'var(--font-noto-sans-thai)',
'Inter var',
'Noto Sans Thai',
'SF Pro Display',
...defaultTheme.fontFamily.sans
],
body: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'sans-serif'
]
}
},
plugins: [require('@tailwindcss/typography')]
}
module.exports = config