-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
37 lines (36 loc) · 988 Bytes
/
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
const fromVar = (name) => {
return `color-mix(in srgb, var(--${name}) calc(<alpha-value> * 100%), transparent)`
}
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
colors: {
body: {
// DEFAULT: "rgb(from var(--body) r g b / <alpha-value>)",
DEFAULT: fromVar("body"),
content: fromVar("body-content"),
},
card: {
DEFAULT: fromVar("card"),
content: fromVar("card-content"),
},
rest: {
DEFAULT: fromVar("rest"),
content: fromVar("rest-content"),
},
border: fromVar("border"),
primary: fromVar("primary"),
},
},
screens: {
// https://tailwindcss.com/docs/screens#max-width-breakpoints
xl: { max: "1279px" },
lg: { max: "1023px" },
md: { max: "767px" },
sm: { max: "639px" },
},
},
}