-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
63 lines (54 loc) · 1.91 KB
/
Copy pathtailwind.config.ts
File metadata and controls
63 lines (54 loc) · 1.91 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
63
/** Tailwind config mapping CSS variables to color tokens so classes like
* bg-background, text-foreground, border-border, bg-card, etc. are generated.
*
* This uses the CSS variables defined in src/index.css (e.g. --background,
* --foreground, --border, etc.) and exposes them as Tailwind colors that
* support the `/alpha` opacity slash syntax.
*/
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
// Core
'background': 'var(--background)',
'foreground': 'var(--foreground)',
// Surface
'card': 'var(--card)',
'card-foreground': 'var(--card-foreground)',
'popover': 'var(--popover)',
'popover-foreground': 'var(--popover-foreground)',
// Brand
'primary': 'var(--primary)',
'primary-foreground': 'var(--primary-foreground)',
'primary-hover': 'var(--primary-hover)',
'secondary': 'var(--secondary)',
'secondary-foreground': 'var(--secondary-foreground)',
'secondary-hover': 'var(--secondary-hover)',
'accent': 'var(--accent)',
'accent-foreground': 'var(--accent-foreground)',
'accent-hover': 'var(--accent-hover)',
// Muted / Destructive / Inputs
'muted': 'var(--muted)',
'muted-foreground': 'var(--muted-foreground)',
'destructive': 'var(--destructive)',
'destructive-foreground': 'var(--destructive-foreground)',
// Borders / Inputs / Rings
'border': 'var(--border)',
'input': 'var(--input)',
'ring': 'var(--ring)',
// Canvas / card helper
'canvas-bg': 'var(--canvas-bg)',
'canvas-grid': 'var(--canvas-grid)',
// Additional tokens that appear in code
'sidebar-border': 'var(--glass-border)',
},
},
},
plugins: [],
}