forked from tailwindlabs/tailwindcss.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
75 lines (74 loc) · 1.87 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
purge: ['./src/**/*.{js,mdx}'],
important: true,
theme: {
screens: {
sm: '576px',
md: '768px',
lg: '992px',
xl: '1280px',
},
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
system: defaultTheme.fontFamily.sans,
},
colors: {
code: {
green: 'var(--color-code-green)',
yellow: 'var(--color-code-yellow)',
purple: 'var(--color-code-purple)',
red: 'var(--color-code-red)',
blue: 'var(--color-code-blue)',
white: 'var(--color-code-white)',
},
'green-150': '#e6ffee',
},
spacing: {
'2px': '2px',
'7': '1.75rem',
'10': '2.5rem',
'12': '3rem',
'16': '4rem',
'20': '5rem',
'24': '6rem',
'28': '7rem',
'32': '8rem',
'80': '20rem',
'128': '32rem',
'(screen-16)': 'calc(100vh - 4rem)',
},
inset: {
'16': '4rem',
'20': '5rem',
'24': '6rem',
},
borderWidth: {
'6': '6px',
},
maxWidth: (theme) => ({
'screen-xl': theme('screens.xl'),
}),
maxHeight: {
xs: '20rem',
sm: '30rem',
'(screen-16)': 'calc(100vh - 4rem)',
},
boxShadow: {
'md-light': '0 0 12px 8px rgb(255,255,255)',
},
zIndex: {
'90': '90',
'100': '100',
},
},
},
variants: {
backgroundColor: ['responsive', 'odd', 'even', 'hover', 'focus'],
borderColor: ['responsive', 'hover', 'focus'],
borderWidth: ['responsive', 'first', 'last', 'hover', 'focus'],
textColor: ['responsive', 'group-focus', 'group-hover', 'hover', 'focus'],
opacity: ['responsive', 'hover', 'focus', 'disabled', 'group-hover'],
},
}