-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
95 lines (92 loc) · 3.07 KB
/
Copy pathtailwind.config.ts
File metadata and controls
95 lines (92 loc) · 3.07 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
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
92
93
94
95
import type { Config } from 'tailwindcss'
// Tailwind CSS v4 works primarily from CSS via @import and @theme.
// We keep this config minimal and map design tokens to CSS variables defined in `src/globals.css`.
// This avoids behavior changes, while providing explicit token names and a safelist for docs/examples.
const config = {
darkMode: 'class',
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/design-system/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
background: 'var(--background)',
foreground: 'var(--foreground)',
card: 'var(--card)',
'card-foreground': 'var(--card-foreground)',
popover: 'var(--popover)',
'popover-foreground': 'var(--popover-foreground)',
primary: 'var(--primary)',
'primary-foreground': 'var(--primary-foreground)',
secondary: 'var(--secondary)',
'secondary-foreground': 'var(--secondary-foreground)',
muted: 'var(--muted)',
'muted-foreground': 'var(--muted-foreground)',
accent: 'var(--accent)',
'accent-foreground': 'var(--accent-foreground)',
destructive: 'var(--destructive)',
border: 'var(--border)',
input: 'var(--input)',
ring: 'var(--ring)',
// Charts
'chart-1': 'var(--chart-1)',
'chart-2': 'var(--chart-2)',
'chart-3': 'var(--chart-3)',
'chart-4': 'var(--chart-4)',
'chart-5': 'var(--chart-5)',
// Sidebar (theme extension available in globals.css)
sidebar: 'var(--sidebar)',
'sidebar-foreground': 'var(--sidebar-foreground)',
'sidebar-primary': 'var(--sidebar-primary)',
'sidebar-primary-foreground': 'var(--sidebar-primary-foreground)',
'sidebar-accent': 'var(--sidebar-accent)',
'sidebar-accent-foreground': 'var(--sidebar-accent-foreground)',
'sidebar-border': 'var(--sidebar-border)',
'sidebar-ring': 'var(--sidebar-ring)',
},
borderRadius: {
sm: 'var(--radius-sm)',
md: 'var(--radius-md)',
lg: 'var(--radius-lg)',
xl: 'var(--radius-xl)',
},
},
},
safelist: [
// Background/Text helpers for design tokens popularized by shadcn/ui
'bg-background',
'text-foreground',
'bg-card',
'text-card-foreground',
'bg-popover',
'text-popover-foreground',
'bg-primary',
'text-primary-foreground',
'bg-secondary',
'text-secondary-foreground',
'bg-muted',
'text-muted-foreground',
'bg-accent',
'text-accent-foreground',
'bg-destructive',
'border-border',
'border-input',
'ring-ring',
// Chart & sidebar convenience
'bg-[var(--chart-1)]',
'bg-[var(--chart-2)]',
'bg-[var(--chart-3)]',
'bg-[var(--chart-4)]',
'bg-[var(--chart-5)]',
'bg-sidebar',
'text-sidebar-foreground',
'bg-sidebar-primary',
'text-sidebar-primary-foreground',
'bg-sidebar-accent',
'text-sidebar-accent-foreground',
],
}
export default config as Config