-
Notifications
You must be signed in to change notification settings - Fork 11
/
tailwind.config.js
47 lines (46 loc) · 1.39 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: false,
content: [
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily: {
system: defaultTheme.fontFamily.sans,
sans: ["Karla", ...defaultTheme.fontFamily.sans],
mono: ["Space Mono", ...defaultTheme.fontFamily.mono],
},
textColor: {
primary: "var(--color-text-primary)",
secondary: "var(--color-text-secondary)",
tertiary: "var(--color-text-tertiary)",
icon: "var(--color-text-icon)",
code: "var(--color-text-code)",
btn: "var(--color-text-btn)",
link: "var(--color-text-link)",
...colors,
},
backgroundColor: {
primary: "var(--color-bg-primary)",
secondary: "var(--color-bg-secondary)",
tertiary: "var(--color-bg-tertiary)",
hover: "var(--color-bg-hover)",
code: "var(--color-bg-code)",
tooltip: "var(--color-bg-tooltip)",
op: "var(--color-bg-op)",
btn: "var(--color-bg-btn)",
...colors,
},
borderColor: {
primary: "var(--color-border-primary)",
secondary: "var(--color-border-secondary)",
...colors,
},
},
},
plugins: [],
};