-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
120 lines (119 loc) · 3.77 KB
/
tailwind.config.ts
File metadata and controls
120 lines (119 loc) · 3.77 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import type { Config } from 'tailwindcss';
/**
* Tailwind CSS v4 Configuration
* Uses CSS-first configuration with design tokens as CSS variables
*/
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./.storybook/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
border: {
DEFAULT: 'var(--theme-border)',
hover: 'var(--theme-border-hover)',
},
input: 'var(--theme-input)',
ring: 'var(--theme-ring)',
background: 'var(--theme-background)',
foreground: 'var(--theme-foreground)',
primary: {
DEFAULT: 'var(--theme-primary)',
foreground: 'var(--theme-primary-foreground)',
hover: 'var(--theme-primary-hover)',
},
secondary: {
DEFAULT: 'var(--theme-secondary)',
foreground: 'var(--theme-secondary-foreground)',
},
destructive: {
DEFAULT: 'var(--theme-destructive)',
foreground: 'var(--theme-destructive-foreground)',
},
success: {
DEFAULT: 'var(--theme-success)',
background: 'var(--theme-success-background-fill)',
},
warning: {
DEFAULT: 'var(--theme-warning)',
foreground: 'var(--theme-warning-foreground)',
alt: 'var(--theme-warning-alt)',
},
info: {
DEFAULT: 'var(--theme-info)',
foreground: 'var(--theme-info-foreground)',
},
muted: {
DEFAULT: 'var(--theme-muted)',
foreground: 'var(--theme-muted-foreground)',
},
accent: {
DEFAULT: 'var(--theme-accent)',
foreground: 'var(--theme-accent-foreground)',
hover: 'var(--theme-accent-hover)',
muted: 'var(--theme-accent-muted)',
},
card: {
DEFAULT: 'var(--theme-card)',
foreground: 'var(--theme-card-foreground)',
},
popover: {
DEFAULT: 'var(--theme-popover)',
foreground: 'var(--theme-popover-foreground)',
},
sidebar: {
background: 'var(--theme-sidebar-background)',
foreground: 'var(--theme-sidebar-foreground)',
primary: 'var(--theme-sidebar-primary)',
'primary-foreground': 'var(--theme-sidebar-primary-foreground)',
accent: 'var(--theme-sidebar-accent)',
'accent-foreground': 'var(--theme-sidebar-accent-foreground)',
border: 'var(--theme-sidebar-border)',
},
chart: {
'1': 'var(--theme-chart-1)',
'2': 'var(--theme-chart-2)',
'3': 'var(--theme-chart-3)',
'4': 'var(--theme-chart-4)',
'5': 'var(--theme-chart-5)',
},
},
borderRadius: {
DEFAULT: 'var(--theme-radius)',
md: 'var(--radius-md)',
'2xl': 'var(--radius-2xl)',
},
spacing: {
'0.5': 'var(--spacing-0-5)',
'2': 'var(--spacing-2)',
'3.5': 'var(--spacing-3-5)',
'4': 'var(--spacing-4)',
'5': 'var(--spacing-5)',
'6': 'var(--spacing-6)',
'8': 'var(--spacing-8)',
},
fontSize: {
xs: ['var(--font-size-xs)', { lineHeight: 'var(--font-leading-4)' }],
sm: ['var(--font-size-sm)', { lineHeight: 'var(--font-leading-5)' }],
base: ['var(--font-size-base)', { lineHeight: 'var(--font-leading-6)' }],
},
fontWeight: {
medium: 'var(--font-weight-medium)',
semibold: 'var(--font-weight-semibold)',
},
fontFamily: {
sans: ['var(--font-family-sans)', 'Inter', 'sans-serif'],
},
borderWidth: {
DEFAULT: 'var(--border-width-1)',
'2': 'var(--border-width-2)',
},
opacity: {
'80': 'var(--opacity-80)',
'100': 'var(--opacity-100)',
},
},
},
} satisfies Config;