-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
64 lines (62 loc) · 1.49 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
// See https://tailwindcss.com/docs/configuration for details
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
purge: [
"./src/**/*.js",
"./src/**/*.jsx",
"./src/**/*.ts",
"./src/**/*.tsx",
],
theme: {
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
colors: {
cyan: colors.cyan,
},
maxWidth: {
"7xl": "80rem",
"8xl": "88rem",
},
height: {
// ca = content-area (i.e. screen minus navbar minus footer)
ca: "calc(100vh - 64px - 120px)",
"ca-no-footer": "calc(100vh - 64px)",
},
minHeight: {
ca: "calc(100vh - 64px - 120px)",
"ca-no-footer": "calc(100vh - 64px)",
},
cursor: {
"resize-x": "col-resize",
"resize-y": "row-resize",
},
listStyleType: {
circle: "circle",
},
},
customForms: (theme) => ({
default: {
checkbox: {
"&.indeterminate": {
background:
"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='8' height='2' x='4' y='7' rx='1'/%3E%3C/svg%3E\");",
borderColor: "transparent",
backgroundColor: "currentColor",
backgroundSize: "100% 100%",
backgroundPosition: "center",
backgroundRepeat: "no-repeat",
},
},
},
}),
},
variants: {},
plugins: [
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
],
};