-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
tailwind.config.js
56 lines (55 loc) · 1.35 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
import palette from 'plastic-palette'
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
export default {
content: ['./website/**/*.astro'],
plugins: [
plugin(({ addBase, theme }) => {
addBase({
body: {
backgroundColor: palette.shark,
color: palette.cadetBlue,
},
h1: {
color: palette.sunglo,
fontFamily: theme('fontFamily.comfortaa'),
fontSize: theme('fontSize.5xl'),
letterSpacing: theme('letterSpacing.widest'),
textAlign: 'center',
},
h2: {
color: palette.ghost,
fontFamily: theme('fontFamily.comfortaa'),
fontSize: theme('fontSize.4xl'),
},
h3: {
fontFamily: theme('fontFamily.comfortaa'),
fontSize: theme('fontSize.3xl'),
textAlign: 'center',
},
hr: {
borderColor: palette.bunker,
},
})
}),
],
theme: {
container: {
center: true,
padding: '1.5rem',
},
extend: {
colors: { ...palette },
},
fontFamily: {
...defaultTheme.fontFamily,
comfortaa: ['Comfortaa', ...defaultTheme.fontFamily.sans],
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
screens: {
lg: '1024px',
md: '768px',
sm: '640px',
},
},
}