-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
61 lines (59 loc) · 1.11 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
const aspectRatioPlugin = require("@tailwindcss/aspect-ratio")
const MATCHER = /(?<=composes:.*)(\b\S+\b)(?=.*from global;)/g
const config = {
content: {
extract: {
css: (content) => content.match(MATCHER) || []
},
files: ["./components/**/*.css", "./pages/**/*.css"]
},
mode: "jit",
plugins: [aspectRatioPlugin],
separator: "_",
theme: {
extend: {
gridTemplateColumns: {
magic: "auto 1fr"
},
gridTemplateRows: {
magic: "auto 1fr"
}
},
fontSize: {
100: "0.625rem",
200: "0.75rem",
300: "0.875rem",
400: "1rem",
500: "1.25rem",
600: "1.5rem",
700: ["2.125rem", "2.25rem"],
800: ["3rem", "3.5rem"],
900: ["3.75rem", "4.5rem"],
1000: ["6rem", "7rem"],
DEFAULT: "0.875rem"
},
transitionDuration: {
1: "64ms",
2: "128ms",
3: "192ms",
4: "256ms",
5: "320ms",
6: "384ms",
7: "448ms",
8: "512ms"
},
screens: {
"min": "320px",
"xs": "480px",
"sm": "640px",
"md": "800px",
"lg": "960px",
"xl": "1120px",
"2xl": "1280px",
"3xl": "1440px",
"4xl": "1600px",
"max": "1920px"
}
}
}
module.exports = config