-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtailwind.config.js
70 lines (65 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
65
66
67
68
69
70
const { fontFamily } = require("tailwindcss/defaultTheme");
const screens = {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
};
const maxScreens = Object.keys(screens).reduce((acc, key) => {
acc[`${key}-max`] = { max: screens[key] };
return acc;
}, {});
module.exports = {
mode: "jit",
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
extend: {
maxWidth: {
"1/4": "25%",
"1/2": "50%",
"3/4": "75%",
"1/5": "20%",
"2/5": "40%",
"3/5": "60%",
"4/5": "80%",
"1/10": "10%",
"2/10": "20%",
"3/10": "30%",
"4/10": "40%",
"5/10": "50%",
"6/10": "60%",
"7/10": "70%",
"8/10": "80%",
"9/10": "90%",
},
colors: {
// dark theme colours
"dark-gray": {
975: "#18191a", // the navbar
950: "#242526", // the sidebar
900: "#2d2e2f", // behind the docs
850: "#3a3b3c", // alt color table
800: "#3e4042", // accent
700: "#4b4c4e", // table border
},
},
fontFamily: {
sans: ["var(--font-inter)", ...fontFamily.sans],
mono: ["var(--font-fira-code)", ...fontFamily.mono],
},
},
screens: {
...screens,
...maxScreens,
},
},
variants: {
opacity: ["hover", "responsive"],
},
plugins: [require("@tailwindcss/forms")],
};