-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
60 lines (59 loc) · 1.4 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
purge: {
enabled: process.env.NODE_ENV === 'production',
safelist: [],
content: ['./index.html', './src/**/*.{jsx,tsx}'],
},
darkMode: false,
theme: {
fontFamily: {
sans: ['Mitr', ...defaultTheme.fontFamily.sans],
pridi: ['Pridi', ...defaultTheme.fontFamily.serif],
},
screens: {
xs: '360px',
...defaultTheme.screens,
},
extend: {
colors: {
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
},
transformOrigin: {
0: '0%',
},
zIndex: {
'-1': '-1',
},
maxWidth: {
0: '0',
'1/4': '25%',
'1/3': '33.33%',
'1/2': '50%',
'3/4': '75%',
full: '100%',
min: 'min-content',
max: 'max-content',
prose: '65ch',
...defaultTheme.maxWidth,
},
boxShadow: {
dark: '0 4px 4px 0 rgba(0, 0, 0, 0.25)',
},
backgroundImage: () => ({
'hero-landing': "url('/images/landing/body.svg')",
}),
},
},
variants: {},
// https://tailwindcss.com/docs/plugins
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/line-clamp'),
require('tailwindcss-debug-screens'),
],
}