generated from unxok/obsidian-starter-react
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
91 lines (91 loc) · 3.25 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
accentColor: "var(--text-highlight-bg)",
extend: {
borderWidth: {
DEFAULT: "var(--border-width)",
},
borderRadius: {
button: "var(--button-radius)",
sm: "var(--radius-s)",
md: "var(--radius-m)",
lg: "var(--radius-l)",
xl: "var(--radius-xl)",
},
colors: {
primary: "var(--background-primary)",
"primary-alt": "var(--background-primary-alt)",
secondary: "var(--background-secondary)",
"secondary-alt": "var(--background-secondary-alt)",
"modifier-hover": "var(--background-modifier-hover)",
"modifier-active-hover":
"var(--background-modifier-active-hover)",
"modifier-border": "var(--background-modifier-border)",
"modifier-border-hover":
"var(--background-modifier-border-hover)",
"modifier-border-focus":
"var(--background-modifier-border-focus)",
"modifier-error-rgb": "var(--background-modifier-error-rgb)",
"modifier-error": "var(--background-modifier-error)",
"modifier-error-hover":
"var(--background-modifier-error-hover)",
"modifier-success-rgb":
"var(--background-modifier-success-rgb)",
"modifier-success": "var(--background-modifier-success)",
"modifier-message": "var(--background-modifier-message)",
"modifier-form-field": "var(--background-modifier-form-field)",
normal: "var(--text-normal)",
muted: "var(--text-muted)",
faint: "var(--text-faint)",
"on-accent": "var(--text-on-accent)",
"on-accent-inverted": "var(--text-on-accent-inverted)",
success: "var(--text-success)",
warning: "var(--text-warning)",
error: "var(--text-error)",
accent: "var(--text-accent)",
"accent-hover": "var(--text-accent-hover)",
},
backgroundColor: {
primary: "var(--background-primary)",
"primary-alt": "var(--background-primary-alt)",
secondary: "var(--background-secondary)",
"secondary-alt": "var(--background-secondary-alt)",
"modifier-hover": "var(--background-modifier-hover)",
"modifier-active-hover":
"var(--background-modifier-active-hover)",
"modifier-border": "var(--background-modifier-border)",
"modifier-border-hover":
"var(--background-modifier-border-hover)",
"modifier-border-focus":
"var(--background-modifier-border-focus)",
"modifier-error-rgb": "var(--background-modifier-error-rgb)",
"modifier-error": "var(--background-modifier-error)",
"modifier-error-hover":
"var(--background-modifier-error-hover)",
"modifier-success-rgb":
"var(--background-modifier-success-rgb)",
"modifier-success": "var(--background-modifier-success)",
"modifier-message": "var(--background-modifier-message)",
"modifier-form-field": "var(--background-modifier-form-field)",
},
textColor: {
normal: "var(--text-normal)",
muted: "var(--text-muted)",
faint: "var(--text-faint)",
"on-accent": "var(--text-on-accent)",
"on-accent-inverted": "var(--text-on-accent-inverted)",
success: "var(--text-success)",
warning: "var(--text-warning)",
error: "var(--text-error)",
accent: "var(--text-accent)",
"accent-hover": "var(--text-accent-hover)",
},
},
},
plugins: [],
corePlugins: {
preflight: false,
},
};