-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
68 lines (66 loc) · 1.93 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
import defaultTheme from "tailwindcss/defaultTheme.js";
import preline from "preline/plugin.js";
export default {
content: [
"./public/**/*.astro",
"./src/**/*.{astro,js,jsx,ts,tsx}",
"node_modules/preline/preline.js",
],
darkMode: "class",
theme: {
extend: {
screens: {
"xs": "480px",
"sm": "640px",
"md": "768px",
"lg": "1024px",
"xl": "1280px",
"2xl": "1536px",
},
fontFamily: {
// custom fonts imported in layouts/MainLayout.astro
lato: ["Lato", ...defaultTheme.fontFamily.sans],
sans: ["Work Sans", ...defaultTheme.fontFamily.sans],
mono: ["IBM Plex Mono", ...defaultTheme.fontFamily.mono],
},
colors: {
// custom color variables defined in styles/variables.css
base: {
default: "var(--color-base)",
v1: "var(--color-base-v1)",
v2: "var(--color-base-v2)",
v3: "var(--color-base-v3)",
v4: "var(--color-base-v4)",
iv1: "var(--color-base-iv1)",
iv2: "var(--color-base-iv2)",
},
primary: {
default: "var(--color-primary)",
v1: "var(--color-primary-v1)",
v2: "var(--color-primary-v2)",
v3: "var(--color-primary-v3)",
v4: "var(--color-primary-v4)",
},
secondary: {
default: "var(--color-secondary)",
v1: "var(--color-secondary-v1)",
v2: "var(--color-secondary-v2)",
v3: "var(--color-secondary-v3)",
v4: "var(--color-secondary-v4)",
},
fill: {
default: "var(--color-fill)",
v1: "var(--color-fill-v1)",
v2: "var(--color-fill-v2)",
},
paper: {
default: "var(--color-paper)",
v1: "var(--color-paper-v1)",
v2: "var(--color-paper-v2)",
},
},
},
},
plugins: [preline],
};