This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
65 lines (63 loc) · 1.65 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
const defaultTheme = require('tailwindcss/defaultTheme');
const fonts = {
heading: ['Raleway', ...defaultTheme.fontFamily.sans],
body: ['"Zilla Slab"', ...defaultTheme.fontFamily.serif],
};
module.exports = {
future: {
purgeLayersByDefault: true,
removeDeprecatedGapUtilities: true,
},
purge: ['./src/components/**/*.{js,ts,jsx,tsx}', './src/pages/**/*.{js,ts,jsx,tsx}'],
theme: {
fontFamily: {
...fonts,
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
xxl: '1440px',
},
typography: (theme) => ({
default: {
css: {
color: theme('colors.black'),
h1: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
h2: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
h3: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
h4: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
h5: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
h6: {
color: theme('colors.black'),
fontFamily: theme('fontFamily.heading').join(', '),
},
},
},
}),
},
variants: {
textDecoration: ['responsive', 'hover', 'focus', 'group-hover'],
},
plugins: [
require('@tailwindcss/typography')({
modifiers: ['lg'],
}),
],
};