-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
75 lines (68 loc) · 1.62 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
import buttons from './config/tailwind/buttons'
import dialog from './config/tailwind/dialog'
import richText from './config/tailwind/rich-text'
import container from './config/tailwind/container'
import forms from './config/tailwind/forms'
/**
Helper function to pair key and value together
Note: PostCSS Converts all `px` values to `rem`
*/
function pxPair(value) {
return { [value]: `${value}px` }
}
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'selector',
content: ['./templates/**/*.{twig,html}', './src/**/*.{js,jsx,ts,tsx,svg}'],
corePlugins: {
container: false, // Replaced with a custom container class
},
theme: {
screens: {
smd: { max: '639.98px' },
sm: '640px',
mdd: { max: '749.98px' },
md: '768px',
lgd: { max: '1023.98px' },
lg: '1024px',
xld: { max: '1279.98px' },
xl: '1280px',
'2xld': { max: '1535.98px' },
'2xl': '1536px',
},
spacing: {
...pxPair(0),
...pxPair(1),
...pxPair(2),
...pxPair(4),
...pxPair(6),
...pxPair(8),
...pxPair(10),
...pxPair(12),
...pxPair(16),
...pxPair(20),
...pxPair(24),
...pxPair(28),
...pxPair(32),
...pxPair(36),
...pxPair(40),
...pxPair(44),
...pxPair(48),
...pxPair(52),
...pxPair(56),
...pxPair(60),
...pxPair(64),
...pxPair(80),
...pxPair(96),
...pxPair(112),
...pxPair(128),
},
extend: {
zIndex: {
header: '100',
max: '9999',
},
},
},
plugins: [buttons, dialog, richText, container, forms],
}