-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
128 lines (127 loc) · 3.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
function pxToRem(size) {
return `${size / 16}rem`;
}
module.exports = {
mode: 'jit',
content: [
'./src/site/404.njk',
'./src/site/about-me.njk',
'./src/site/contact.njk',
'./src/site/index.njk',
'./src/site/article.njk',
'./src/site/project.njk',
'./src/site/topic.njk',
'./src/site/offline.njk',
'./src/site/_includes/_layouts/*.njk',
'./src/site/_includes/_partials/components/*.njk',
'./src/site/_includes/_partials/_macros/*.njk',
'./src/site/_includes/_partials/head.njk',
'./src/site/articles/**/*.njk',
'./src/site/portfolio/**/*.njk',
'./src/scripts/**/*.ts',
'./src/functions/**/*.js',
'./src/utils/**/*.js',
],
theme: {
aspectRatio: {
'square': '1 / 1',
'3/2': '3 / 2',
'4/3': '4 / 3',
'16/9': '16 / 9',
},
lineHeight: {
xs: pxToRem(20),
sm: `clamp(${pxToRem(20)}, 1.875vw, ${pxToRem(24)})`,
base: `clamp(${pxToRem(24)}, 2.188vw, ${pxToRem(28)})`,
md: `clamp(${pxToRem(24)}, 2.500vw, ${pxToRem(32)})`,
lg: `clamp(${pxToRem(32)}, 2.813vw, ${pxToRem(36)})`,
xl: `clamp(${pxToRem(36)}, 3.438vw, ${pxToRem(44)})`,
xxl: `clamp(${pxToRem(48)}, 4.375vw, ${pxToRem(56)})`,
xxxl: `clamp(${pxToRem(64)}, 5.625vw, ${pxToRem(72)})`,
},
fontFamily: {
'avenir-next': ['Avenir Next Variable', 'sans-serif'],
selawik: ['Selawik Variable', 'sans-serif'],
},
fontSize: {
xs: pxToRem(14),
sm: `clamp(${pxToRem(14)}, 1.250vw, ${pxToRem(16)})`,
base: `clamp(${pxToRem(16)}, 1.406vw, ${pxToRem(18)})`,
md: `clamp(${pxToRem(18)}, 1.563vw, ${pxToRem(20)})`,
lg: `clamp(${pxToRem(20)}, 1.875vw, ${pxToRem(24)})`,
xl: `clamp(${pxToRem(24)}, 2.188vw, ${pxToRem(28)})`,
xxl: `clamp(${pxToRem(32)}, 3.125vw, ${pxToRem(40)})`,
xxxl: `clamp(${pxToRem(56)}, 5vw, ${pxToRem(64)})`,
},
screens: {
xs: '37.5rem',
sm: '48rem',
md: '60rem',
lg: '80rem',
hov: { 'raw': '(hover)' }
},
spacing: {
0: 0,
2: pxToRem(2),
4: pxToRem(4),
8: pxToRem(8),
12: pxToRem(12),
16: pxToRem(16),
20: pxToRem(20),
24: pxToRem(24),
28: pxToRem(28),
32: pxToRem(32),
36: pxToRem(36),
40: pxToRem(40),
44: pxToRem(44),
48: pxToRem(48),
52: pxToRem(52),
56: pxToRem(56),
60: pxToRem(60),
64: pxToRem(64),
68: pxToRem(68),
72: pxToRem(72),
76: pxToRem(76),
80: pxToRem(80),
84: pxToRem(84),
88: pxToRem(88),
92: pxToRem(92),
96: pxToRem(96),
100: pxToRem(100),
},
zIndex: {
10: 10,
20: 20,
30: 30,
40: 40,
50: 50,
60: 60,
70: 70,
80: 80,
90: 90,
100: 100,
110: 110,
120: 120
},
},
variants: {
extend: {
// backgroundColor: ['before', 'after', 'checked'],
// backgroundImage: ['before', 'after'],
// backgroundSize: ['focus', 'hover'],
// cursor: ['responsive'],
// display: ['before', 'after', 'empty'],
// height: ['before', 'after'],
// inset: ['before', 'after'],
// opacity: ['before', 'after'],
// position: ['before', 'after'],
// scale: ['group-hover'],
// transitionDuration: ['before', 'after'],
// transitionProperty: ['before', 'after'],
// transitionTimingFunction: ['before', 'after'],
// visibility: ['before', 'after', 'group-hover'],
// width: ['before', 'after', 'hover'],
// zIndex: ['before', 'after']
}
},
};