-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
74 lines (73 loc) · 1.8 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
const { fontFamily } = require("tailwindcss/defaultTheme")
module.exports = {
content: ["./src/**/*.{md,rb,erb,html}", "./frontend/javascript/**/*.js"],
darkMode: "class",
theme: {
container: {
center: true
// padding: "1rem"
},
extend: {
textColor: {
skin: {
DEFAULT: "var(--text)",
primary: "var(--primary)",
"primary-light": "var(--primary-light)",
muted: "var(--text-muted)",
inverted: "var(--text-inverted)",
code: "var(--text-code)"
}
},
backgroundColor: {
skin: {
DEFAULT: "var(--page)",
code: "var(--code)",
inverted: "var(--page-inverted)",
primary: "var(--primary-dark)",
"primary-light": "var(--primary-light)",
nav: "var(--nav-bg)"
}
},
borderColor: {
skin: {
DEFAULT: "var(--divider)",
divider: "var(--divider)",
primary: "var(--primary)"
}
},
ringColor: {
skin: {
primary: "var(--primary)"
}
},
divideColor: {
skin: {
base: "var(--divider)"
}
},
fontFamily: {
...fontFamily,
sans: ["IBM Plex Sans", ...fontFamily.sans]
// mono: ["IBM Plex Sans", ...fontFamily.mono]
},
typography: _theme => ({
DEFAULT: {
css: {
maxWidth: "75ch"
// "a[rel*='noopener']::after": {
// content: '"↗"',
// marginLeft: "2px"
// }
}
}
})
}
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/line-clamp"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/forms"),
require("tailwindcss-debug-screens")
]
}