-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
122 lines (118 loc) · 3.75 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
import plugin from 'tailwindcss/plugin';
import typography from '@tailwindcss/typography';
import * as util from '@mostlyserious/tailwindcss-util';
export default {
content: [
'src/js/**/*.{js,vue,svelte}',
'public/**/*.{php,html}'
],
theme: {
screens: {
'2xs': '380px',
'xs': '460px',
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px'
},
fontSize: {
'9xl': [ '8rem', '1' ],
'8xl': [ '6rem', '1' ],
'7xl': [ '4.5rem', '1' ],
'6xl': [ '3.75rem', '1' ],
'5xl': [ '3rem', '1' ],
'4xl': [ '2.25rem', '1.11' ],
'3xl': [ '1.875rem', '1.2' ],
'2xl': [ '1.5rem', '1.33' ],
'xl': [ '1.25rem', '1.4' ],
'lg': [ '1.125rem', '1.55' ],
'md': [ '1rem', '1.5' ],
'sm': [ '0.875rem', '1.43' ],
'xs': [ '0.75rem', '1.33' ],
'2xs': [ '0.66rem', '1.11' ]
},
extend: {
colors: {
brand: {
}
},
fontFamily: {
},
minHeight: theme => theme('height'),
maxHeight: theme => theme('height'),
minWidth: theme => ({ ...theme('width'), '8xl': '88rem', '9xl': '92rem' }),
maxWidth: theme => ({ ...theme('width'), '8xl': '88rem', '9xl': '92rem' }),
borderWidth: {
'0.5': '0.5px',
'3': '3px',
'6': '6px'
},
transitionDelay: {
'400': '400ms',
'600': '600ms',
'800': '800ms',
'900': '900ms'
},
transitionDuration: {
'400': '400ms',
'600': '600ms',
'800': '800ms',
'900': '900ms'
},
zIndex: {
'1': 1,
'2': 2,
'3': 3,
'4': 4,
'5': 5
}
}
},
plugins: [
typography,
util.inset,
util.clamp,
util.viewport,
util.textStroke,
util.stateVariant('active'),
plugin(({ matchUtilities, addComponents, addUtilities, theme }) => {
addUtilities({
'.appearance-none': {
'-webkit-appearance': 'none',
'-moz-appearance': 'none'
}
});
addComponents({
'.container': {
'@apply max-w-5xl w-full px-6 mx-auto': false
},
'.container-sm': {
'@apply max-w-4xl !important': false
},
'.container-lg': {
'@apply max-w-6xl !important': false
},
'.container-offset-right': {
'margin-right': `max(0px, calc(calc(100vw - ${theme('maxWidth.5xl')}) / 2))`,
'@apply pr-6': false
},
'.container-offset-left': {
'margin-left': `max(0px, calc(calc(100vw - ${theme('maxWidth.5xl')}) / 2))`,
'@apply pl-6': false
},
'.container-lg-offset-right': {
'margin-right': `max(0px, calc(calc(100vw - ${theme('maxWidth.6xl')}) / 2))`,
'@apply pr-6': false
},
'.container-lg-offset-left': {
'margin-left': `max(0px, calc(calc(100vw - ${theme('maxWidth.6xl')}) / 2))`,
'@apply pl-6': false
}
});
})
],
corePlugins: {
container: false
}
};