@olympusoss/canvas 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/tokens.css +61 -67
package/package.json
CHANGED
package/styles/tokens.css
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
/* ---------- Canvas tokens — single source of truth ----------
|
|
2
2
|
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* L3 inside-card chips `--muted` / `--secondary` / `--accent` topmost
|
|
3
|
+
* The values mirror the Athena design handoff's `colors_and_type.css`
|
|
4
|
+
* (shadcn zinc, neutral hue 240). Both light and dark modes use flat
|
|
5
|
+
* surfaces: body, cards, popovers all share the same lightness within
|
|
6
|
+
* each mode and are differentiated by `--border` instead of tonal lift.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* than tone. That's intentional.
|
|
12
|
-
*
|
|
13
|
-
* Dual-form sidebar declaration (load-bearing — do NOT remove either form):
|
|
14
|
-
* - Raw HSL triplets like `--sidebar-background: 230 25% 97%` are consumed
|
|
8
|
+
* Dual-form sidebar declaration (load-bearing, do NOT remove either form):
|
|
9
|
+
* - Raw HSL triplets like `--sidebar-background: 0 0% 98%` are consumed
|
|
15
10
|
* by `hsl(var(--…))` patterns inside component CSS / inline styles.
|
|
16
|
-
* - Resolved `hsl()` forms like `--sidebar: hsl(
|
|
11
|
+
* - Resolved `hsl()` forms like `--sidebar: hsl(0 0% 98%)` feed Tailwind
|
|
17
12
|
* v4's `@theme inline { --color-sidebar: var(--sidebar) }` mapping so
|
|
18
13
|
* `bg-sidebar` / `text-sidebar-foreground` utilities resolve.
|
|
19
14
|
*
|
|
@@ -39,7 +34,7 @@
|
|
|
39
34
|
--muted-foreground: 240 3.8% 46.1%;
|
|
40
35
|
--accent: 240 4.8% 95.9%;
|
|
41
36
|
--accent-foreground: 240 5.9% 10%;
|
|
42
|
-
--destructive:
|
|
37
|
+
--destructive: 0 84.2% 60.2%;
|
|
43
38
|
--destructive-foreground: 0 0% 98%;
|
|
44
39
|
--brand: 213 94% 68%;
|
|
45
40
|
--brand-foreground: 0 0% 100%;
|
|
@@ -60,14 +55,14 @@
|
|
|
60
55
|
* flagged in PR. */
|
|
61
56
|
--chart-6: 173 70% 42%;
|
|
62
57
|
|
|
63
|
-
/* ── Sidebar
|
|
64
|
-
--sidebar-background:
|
|
65
|
-
--sidebar-foreground:
|
|
66
|
-
--sidebar-primary:
|
|
58
|
+
/* ── Sidebar (neutral shadcn zinc per Athena handoff) ────── */
|
|
59
|
+
--sidebar-background: 0 0% 98%;
|
|
60
|
+
--sidebar-foreground: 240 5.3% 26.1%;
|
|
61
|
+
--sidebar-primary: 240 5.9% 10%;
|
|
67
62
|
--sidebar-primary-foreground: 0 0% 98%;
|
|
68
|
-
--sidebar-accent:
|
|
69
|
-
--sidebar-accent-foreground:
|
|
70
|
-
--sidebar-border:
|
|
63
|
+
--sidebar-accent: 240 4.8% 95.9%;
|
|
64
|
+
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
65
|
+
--sidebar-border: 220 13% 91%;
|
|
71
66
|
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
72
67
|
|
|
73
68
|
/* ── StatCard variant tokens ───────────────────────────────── *
|
|
@@ -92,44 +87,43 @@
|
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
.dark {
|
|
95
|
-
/* ── Base palette (dark)
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
90
|
+
/* ── Base palette (dark): shadcn neutral zinc per Athena handoff ──
|
|
91
|
+
* Flat shadcn defaults (hue 240, no elevation tiering). Cards sit at
|
|
92
|
+
* the same lightness as the body; the visible separation comes from
|
|
93
|
+
* `--border` (240 3.7% 15.9%). The previous "tiered elevation"
|
|
94
|
+
* design (hue 225, lifted surfaces) was Canvas-only and has been
|
|
95
|
+
* removed in favour of the handoff palette so every consumer
|
|
96
|
+
* inherits the same design system. */
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
--
|
|
102
|
-
--foreground: 220 14% 92%;
|
|
98
|
+
--background: 240 10% 3.9%;
|
|
99
|
+
--foreground: 0 0% 98%;
|
|
103
100
|
|
|
104
|
-
|
|
105
|
-
--card:
|
|
106
|
-
--
|
|
107
|
-
--popover:
|
|
108
|
-
--popover-foreground: 220 14% 92%;
|
|
101
|
+
--card: 240 10% 3.9%;
|
|
102
|
+
--card-foreground: 0 0% 98%;
|
|
103
|
+
--popover: 240 10% 3.9%;
|
|
104
|
+
--popover-foreground: 0 0% 98%;
|
|
109
105
|
|
|
110
|
-
|
|
111
|
-
--primary:
|
|
112
|
-
--primary-foreground: 225 24% 6%;
|
|
106
|
+
--primary: 0 0% 98%;
|
|
107
|
+
--primary-foreground: 240 5.9% 10%;
|
|
113
108
|
|
|
114
|
-
|
|
115
|
-
--secondary:
|
|
116
|
-
--
|
|
117
|
-
--muted:
|
|
118
|
-
--
|
|
119
|
-
--accent:
|
|
120
|
-
--accent-foreground: 220 14% 92%;
|
|
109
|
+
--secondary: 240 3.7% 15.9%;
|
|
110
|
+
--secondary-foreground: 0 0% 98%;
|
|
111
|
+
--muted: 240 3.7% 15.9%;
|
|
112
|
+
--muted-foreground: 240 5% 64.9%;
|
|
113
|
+
--accent: 240 3.7% 15.9%;
|
|
114
|
+
--accent-foreground: 0 0% 98%;
|
|
121
115
|
|
|
122
|
-
--destructive:
|
|
116
|
+
--destructive: 0 62.8% 30.6%;
|
|
123
117
|
--destructive-foreground: 0 0% 98%;
|
|
124
118
|
--brand: 213 94% 68%;
|
|
125
119
|
--brand-foreground: 0 0% 100%;
|
|
126
120
|
|
|
127
|
-
|
|
128
|
-
--
|
|
129
|
-
--
|
|
130
|
-
--ring: 217 91% 60%;
|
|
121
|
+
--border: 240 3.7% 15.9%;
|
|
122
|
+
--input: 240 3.7% 15.9%;
|
|
123
|
+
--ring: 240 4.9% 83.9%;
|
|
131
124
|
|
|
132
|
-
/* Chart palette
|
|
125
|
+
/* Chart palette (Canvas-specific; handoff dashboard uses --primary
|
|
126
|
+
* for bar fills rather than --chart-1, so these stay as-is). */
|
|
133
127
|
--chart-1: 220 70% 50%;
|
|
134
128
|
--chart-2: 160 60% 45%;
|
|
135
129
|
--chart-3: 30 80% 55%;
|
|
@@ -137,14 +131,14 @@
|
|
|
137
131
|
--chart-5: 340 75% 55%;
|
|
138
132
|
--chart-6: 173 70% 50%;
|
|
139
133
|
|
|
140
|
-
/*
|
|
141
|
-
--sidebar-background:
|
|
142
|
-
--sidebar-foreground:
|
|
143
|
-
--sidebar-primary:
|
|
134
|
+
/* Sidebar (neutral shadcn zinc per Athena handoff) */
|
|
135
|
+
--sidebar-background: 240 5.9% 10%;
|
|
136
|
+
--sidebar-foreground: 240 4.8% 95.9%;
|
|
137
|
+
--sidebar-primary: 224.3 76.3% 48%;
|
|
144
138
|
--sidebar-primary-foreground: 0 0% 100%;
|
|
145
|
-
--sidebar-accent:
|
|
146
|
-
--sidebar-accent-foreground:
|
|
147
|
-
--sidebar-border:
|
|
139
|
+
--sidebar-accent: 240 3.7% 15.9%;
|
|
140
|
+
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
|
141
|
+
--sidebar-border: 240 3.7% 15.9%;
|
|
148
142
|
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
149
143
|
|
|
150
144
|
/* StatCard variants — same hex; 10% tint reads on dark via opacity */
|
|
@@ -211,24 +205,24 @@
|
|
|
211
205
|
* mapping. They mirror the raw HSL triplets above; keep the two in sync.
|
|
212
206
|
*/
|
|
213
207
|
:root {
|
|
214
|
-
--sidebar: hsl(
|
|
215
|
-
--sidebar-foreground: hsl(
|
|
216
|
-
--sidebar-primary: hsl(
|
|
208
|
+
--sidebar: hsl(0 0% 98%);
|
|
209
|
+
--sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
210
|
+
--sidebar-primary: hsl(240 5.9% 10%);
|
|
217
211
|
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
218
|
-
--sidebar-accent: hsl(
|
|
219
|
-
--sidebar-accent-foreground: hsl(
|
|
220
|
-
--sidebar-border: hsl(
|
|
212
|
+
--sidebar-accent: hsl(240 4.8% 95.9%);
|
|
213
|
+
--sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
214
|
+
--sidebar-border: hsl(220 13% 91%);
|
|
221
215
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
222
216
|
}
|
|
223
217
|
|
|
224
218
|
.dark {
|
|
225
|
-
--sidebar: hsl(
|
|
226
|
-
--sidebar-foreground: hsl(
|
|
227
|
-
--sidebar-primary: hsl(
|
|
219
|
+
--sidebar: hsl(240 5.9% 10%);
|
|
220
|
+
--sidebar-foreground: hsl(240 4.8% 95.9%);
|
|
221
|
+
--sidebar-primary: hsl(224.3 76.3% 48%);
|
|
228
222
|
--sidebar-primary-foreground: hsl(0 0% 100%);
|
|
229
|
-
--sidebar-accent: hsl(
|
|
230
|
-
--sidebar-accent-foreground: hsl(
|
|
231
|
-
--sidebar-border: hsl(
|
|
223
|
+
--sidebar-accent: hsl(240 3.7% 15.9%);
|
|
224
|
+
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
|
|
225
|
+
--sidebar-border: hsl(240 3.7% 15.9%);
|
|
232
226
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
233
227
|
}
|
|
234
228
|
|