-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
62 lines (59 loc) · 1.81 KB
/
Copy pathtailwind.config.ts
File metadata and controls
62 lines (59 loc) · 1.81 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
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
import type { Config } from "tailwindcss";
/**
* Theme tokens are exposed as CSS custom properties so the active theme
* (Queriously Dark / Scholar Light) can be swapped at runtime by toggling a
* class on <html>. Every token is referenced via `rgb(var(--x) / <alpha>)`
* so Tailwind opacity modifiers still work (`bg-surface-raised/80`).
*/
const rgb = (v: string) => `rgb(var(${v}) / <alpha-value>)`;
const config: Config = {
content: ["./index.html", "./src/**/*.{ts,tsx}"],
theme: {
extend: {
colors: {
surface: {
base: rgb("--surface-base"),
raised: rgb("--surface-raised"),
overlay: rgb("--surface-overlay"),
border: rgb("--surface-border"),
},
text: {
primary: rgb("--text-primary"),
secondary: rgb("--text-secondary"),
muted: rgb("--text-muted"),
accent: rgb("--accent-primary"),
},
accent: {
primary: rgb("--accent-primary"),
secondary: rgb("--accent-secondary"),
success: rgb("--accent-success"),
warning: rgb("--accent-warning"),
error: rgb("--accent-error"),
},
annotation: {
yellow: "#FEF08A",
green: "#BBF7D0",
blue: "#BAE6FD",
pink: "#FBCFE8",
orange: "#FED7AA",
},
marginalia: {
restatement: rgb("--text-secondary"),
assumption: "#FBBF24",
contradiction: rgb("--accent-primary"),
connection: "#60A5FA",
limitation: "#FB923C",
},
},
fontFamily: {
sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"],
mono: ["JetBrains Mono", "ui-monospace", "monospace"],
},
fontSize: {
base: "14px",
},
},
},
plugins: [],
};
export default config;