@olympusoss/canvas 2.17.0 → 2.18.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/src/components/atoms/button.tsx +1 -1
- package/styles/tokens.css +26 -0
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const buttonVariants = cva(
|
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
13
|
-
destructive: "bg-destructive text-destructive-foreground shadow
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground shadow hover:bg-destructive/90",
|
|
14
14
|
outline:
|
|
15
15
|
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
16
16
|
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
package/styles/tokens.css
CHANGED
|
@@ -259,6 +259,32 @@
|
|
|
259
259
|
--color-stat-purple: hsl(var(--stat-purple));
|
|
260
260
|
--color-stat-destructive: hsl(var(--stat-destructive));
|
|
261
261
|
--color-stat-amber: hsl(var(--stat-amber));
|
|
262
|
+
|
|
263
|
+
/* ── Shadow scale (per handoff canvas.css) ──────────────────
|
|
264
|
+
* Two base tones, both single-layer at the small end:
|
|
265
|
+
* - `2xs` / `xs` / `sm`: 0 1px 2px / 5% — inputs, outline /
|
|
266
|
+
* secondary buttons (matches handoff `.input` and
|
|
267
|
+
* `.btn-outline` / `.btn-secondary`).
|
|
268
|
+
* - DEFAULT (`shadow`): 0 1px 3px / 8% — cards and primary /
|
|
269
|
+
* destructive buttons (matches handoff `.card`,
|
|
270
|
+
* `.btn-default`, `.btn-destructive`).
|
|
271
|
+
* - `md` / `lg` / `xl`: two-layer stacks softened to 8% / 6%
|
|
272
|
+
* opacity so popovers, dialogs, and drawers sit on the same
|
|
273
|
+
* depth ramp as cards instead of feeling heavier (Tailwind
|
|
274
|
+
* defaults use 10%).
|
|
275
|
+
* - `inner`: keeps Tailwind default (no handoff override).
|
|
276
|
+
*
|
|
277
|
+
* Overriding the @theme tokens propagates through every Canvas
|
|
278
|
+
* component class (`shadow-sm`, `shadow-md`, etc.) without
|
|
279
|
+
* touching component sources.
|
|
280
|
+
*/
|
|
281
|
+
--shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
282
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
283
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
284
|
+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
|
|
285
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
|
|
286
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
|
|
287
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06);
|
|
262
288
|
}
|
|
263
289
|
|
|
264
290
|
@keyframes orb-float-1 {
|