-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
37 lines (37 loc) · 1.4 KB
/
Copy pathtailwind.config.js
File metadata and controls
37 lines (37 loc) · 1.4 KB
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
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{ts,tsx}"],
// Class-based, not media: the theme toggle resolves "system" itself and puts
// `.dark` on <html>, so an explicit choice can override the OS setting.
darkMode: "class",
theme: {
extend: {
colors: {
// Semantic tokens — defined once per theme in index.css. Components use
// these instead of raw palette colours so both themes stay in step.
app: "rgb(var(--bg) / <alpha-value>)",
surface: "rgb(var(--surface) / <alpha-value>)",
raised: "rgb(var(--raised) / <alpha-value>)",
sidebar: "rgb(var(--sidebar-bg) / <alpha-value>)",
line: "rgb(var(--line) / <alpha-value>)",
fg: "rgb(var(--fg) / <alpha-value>)",
muted: "rgb(var(--fg-muted) / <alpha-value>)",
subtle: "rgb(var(--fg-subtle) / <alpha-value>)",
accent: "rgb(var(--accent) / <alpha-value>)",
ok: "rgb(var(--ok) / <alpha-value>)",
warn: "rgb(var(--warn) / <alpha-value>)",
danger: "rgb(var(--danger) / <alpha-value>)",
},
fontFamily: {
mono: ['"SF Mono"', '"JetBrains Mono"', '"Fira Code"', "Menlo", "monospace"],
},
fontSize: {
"2xs": ["11px", "15px"],
},
boxShadow: {
panel: "0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.08)",
},
},
},
plugins: [],
};