-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
87 lines (86 loc) · 1.96 KB
/
tailwind.config.cjs
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
const { fontFamily, spacing } = require('tailwindcss/defaultTheme');
module.exports = {
mode: 'jit',
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
fontFamily: {
sans: ['Muli', ...fontFamily.sans],
},
extend: {
container: {
center: true,
padding: spacing[6],
screens: {
sm: '100%',
md: '640px',
lg: '960px',
xl: '1220px',
},
},
screens: {
dlg: { max: '1023px' },
dmd: { max: '767px' },
},
maxWidth: {
'min-content': 'min-content',
'max-content': 'max-content',
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
},
maxHeight: {
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
},
minWidth: {
'min-content': 'min-content',
'max-content': 'max-content',
'1/4': '25%',
'1/2': '50%',
'3/4': '75%',
'4/5': '80%',
},
minHeight: {
'min-content': 'min-content',
'max-content': 'max-content',
'1/4': '25vh',
'1/2': '50vh',
'3/4': '75vh',
'4/5': '80vh',
},
inset: {
'1/2': '50%',
'-1/2': '-50%',
},
},
},
variants: {
extend: {
backgroundColor: ['before', 'after'],
borderRadius: ['before', 'after'],
inset: ['before', 'after'],
position: ['before', 'after'],
zIndex: ['before', 'after'],
backgroundOpacity: ['before', 'after'],
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
],
};