Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
149 lines (142 loc) · 5.27 KB
/
Copy pathindex.css
File metadata and controls
149 lines (142 loc) · 5.27 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@import 'tailwindcss';
@import 'tw-animate-css';
@import 'shadcn/tailwind.css';
/*
---break---
*/
@custom-variant dark (&:is(.dark *));
/*
* shadcn token mapping. The semantic --color-* utilities resolve to the
* --* design tokens defined in :root below.
*/
@theme inline {
--font-heading: var(--font-sans);
--font-sans: 'Inter', system-ui, sans-serif;
--font-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, monospace;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-success-foreground: var(--success-foreground);
--color-success: var(--success);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
}
/*
---break---
*/
/*
* The plugin runs inside Figma, which injects --figma-color-* variables that
* already reflect the editor's light/dark theme (themeColors: true). We map
* those onto shadcn's tokens so every component follows the Figma theme
* automatically. The oklch fallbacks apply when running outside Figma (e.g.
* `npm run dev`).
*/
:root {
--background: var(--figma-color-bg, oklch(1 0 0));
--foreground: var(--figma-color-text, oklch(0.148 0.004 228.8));
--card: var(--figma-color-bg, oklch(1 0 0));
--card-foreground: var(--figma-color-text, oklch(0.148 0.004 228.8));
--popover: var(--figma-color-bg, oklch(1 0 0));
--popover-foreground: var(--figma-color-text, oklch(0.148 0.004 228.8));
--primary: var(--figma-color-bg-brand, oklch(0.488 0.243 264.376));
--primary-foreground: var(
--figma-color-text-onbrand,
oklch(0.97 0.014 254.604)
);
--secondary: var(--figma-color-bg-secondary, oklch(0.967 0.001 286.375));
--secondary-foreground: var(--figma-color-text, oklch(0.21 0.006 285.885));
--muted: var(--figma-color-bg-secondary, oklch(0.963 0.002 197.1));
--muted-foreground: var(
--figma-color-text-secondary,
oklch(0.56 0.021 213.5)
);
--accent: var(--figma-color-bg-secondary, oklch(0.963 0.002 197.1));
--accent-foreground: var(--figma-color-text, oklch(0.218 0.008 223.9));
--destructive: var(--figma-color-text-danger, oklch(0.577 0.245 27.325));
--success: var(--figma-color-text-success, oklch(0.595 0.13 163));
--success-foreground: var(--figma-color-text-onbrand, oklch(0.985 0 0));
--border: var(--figma-color-border, oklch(0.925 0.005 214.3));
--input: var(--figma-color-border, oklch(0.925 0.005 214.3));
--ring: var(
--figma-color-border-selected,
var(--figma-color-bg-brand, oklch(0.723 0.014 214.4))
);
--chart-1: oklch(0.865 0.127 207.078);
--chart-2: oklch(0.715 0.143 215.221);
--chart-3: oklch(0.609 0.126 221.723);
--chart-4: oklch(0.52 0.105 223.128);
--chart-5: oklch(0.45 0.085 224.283);
--radius: 0.5rem;
--sidebar: var(--figma-color-bg-secondary, oklch(0.987 0.002 197.1));
--sidebar-foreground: var(--figma-color-text, oklch(0.148 0.004 228.8));
--sidebar-primary: var(--figma-color-bg-brand, oklch(0.546 0.245 262.881));
--sidebar-primary-foreground: var(
--figma-color-text-onbrand,
oklch(0.97 0.014 254.604)
);
--sidebar-accent: var(--figma-color-bg-secondary, oklch(0.963 0.002 197.1));
--sidebar-accent-foreground: var(
--figma-color-text,
oklch(0.218 0.008 223.9)
);
--sidebar-border: var(--figma-color-border, oklch(0.925 0.005 214.3));
--sidebar-ring: var(
--figma-color-border-selected,
oklch(0.723 0.014 214.4)
);
}
/*
---break---
*/
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
html {
@apply font-sans;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
}
}