-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
57 lines (56 loc) · 1.54 KB
/
tailwind.config.cjs
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
/* eslint-disable @typescript-eslint/no-var-requires */
const plugin = require("tailwindcss/plugin");
/**
* @type {import('tailwindcss').Config}
* */
module.exports = {
// eslint-disable-next-line @typescript-eslint/quotes
darkMode: ["selector", '[data-theme="dark"]'],
content: ["./src/**/*.{ts,tsx}"],
plugins: [
plugin(({ addVariant }) => {
addVariant("page", "&:where([data-page='true'], [data-page='true'] *)");
addVariant("sidebar", "&:where([data-sidebar='true'], [data-sidebar='true'] *)");
}),
],
theme: {
extend: {
fontFamily: {
"sans": ["var(--font-sans)"],
},
colors: {
"background": "var(--background)",
"elevated": "var(--elevated)",
"elevated-hsla": "var(--elevated-hsla)",
"elevated-hsla-low": "var(--elevated-hsla-low)",
"hover": "var(--hover)",
"primary": "var(--primary)",
"primary-accent": "var(--primary-accent)",
},
borderColor: {
"background": "var(--background)",
"elevated": "var(--elevated)",
"elevated-hsla": "var(--elevated-hsla)",
"elevated-hsla-low": "var(--elevated-hsla-low)",
"hover": "var(--hover)",
"primary": "var(--primary)",
"primary-accent": "var(--primary-accent)",
},
spacing: {
"header": "var(--header-height)",
"sidebar": "var(--sidebar-width)",
"scrollbar": "var(--scrollbar-width)",
},
height: {
"header": "var(--header-height)",
},
margin: {
"header": "var(--header-height)",
"scrollbar": "var(--scrollbar-width)",
},
width: {
"sidebar": "var(--sidebar-width)",
},
},
},
};