@hanzo/design 0.5.2 → 0.5.3

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.
@@ -242,8 +242,8 @@ export declare const elevation: {
242
242
  readonly 'sheet-0': "var(--surface-page)";
243
243
  readonly 'sheet-1': "var(--surface-card)";
244
244
  readonly 'sheet-2': "var(--surface-card-emphasis)";
245
- readonly 'shadow-sheet-1': "var(--edge-highlight),var(--shadow-md)";
246
- readonly 'shadow-sheet-2': "var(--edge-highlight),var(--shadow-lg)";
245
+ readonly 'shadow-sheet-1': "var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)";
246
+ readonly 'shadow-sheet-2': "var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)";
247
247
  readonly fold: "12px";
248
248
  readonly 'fold-face': "linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))";
249
249
  readonly 'glow-hero': "radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)";
@@ -522,8 +522,8 @@ export declare const cssVars: {
522
522
  readonly '--sheet-0': "var(--surface-page)";
523
523
  readonly '--sheet-1': "var(--surface-card)";
524
524
  readonly '--sheet-2': "var(--surface-card-emphasis)";
525
- readonly '--shadow-sheet-1': "var(--edge-highlight),var(--shadow-md)";
526
- readonly '--shadow-sheet-2': "var(--edge-highlight),var(--shadow-lg)";
525
+ readonly '--shadow-sheet-1': "var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)";
526
+ readonly '--shadow-sheet-2': "var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)";
527
527
  readonly '--fold': "12px";
528
528
  readonly '--fold-face': "linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))";
529
529
  readonly '--glow-hero': "radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)";
@@ -245,8 +245,8 @@ export const elevation = {
245
245
  'sheet-0': 'var(--surface-page)',
246
246
  'sheet-1': 'var(--surface-card)',
247
247
  'sheet-2': 'var(--surface-card-emphasis)',
248
- 'shadow-sheet-1': 'var(--edge-highlight),var(--shadow-md)',
249
- 'shadow-sheet-2': 'var(--edge-highlight),var(--shadow-lg)',
248
+ 'shadow-sheet-1': 'var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)',
249
+ 'shadow-sheet-2': 'var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)',
250
250
  'fold': '12px',
251
251
  'fold-face': 'linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))',
252
252
  'glow-hero': 'radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)',
@@ -525,8 +525,8 @@ export const cssVars = {
525
525
  '--sheet-0': 'var(--surface-page)',
526
526
  '--sheet-1': 'var(--surface-card)',
527
527
  '--sheet-2': 'var(--surface-card-emphasis)',
528
- '--shadow-sheet-1': 'var(--edge-highlight),var(--shadow-md)',
529
- '--shadow-sheet-2': 'var(--edge-highlight),var(--shadow-lg)',
528
+ '--shadow-sheet-1': 'var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)',
529
+ '--shadow-sheet-2': 'var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)',
530
530
  '--fold': '12px',
531
531
  '--fold-face': 'linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))',
532
532
  '--glow-hero': 'radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/design",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "packageManager": "pnpm@11.17.0",
5
5
  "description": "Hanzo Design System \u2014 monochrome, dark-default tokens + components + brand assets, the single source of truth for every Hanzo surface. CSS + typed programmatic tokens.",
6
6
  "license": "MIT OR Apache-2.0",
package/src/tokens.gen.ts CHANGED
@@ -251,8 +251,8 @@ export const elevation = {
251
251
  'sheet-0': 'var(--surface-page)',
252
252
  'sheet-1': 'var(--surface-card)',
253
253
  'sheet-2': 'var(--surface-card-emphasis)',
254
- 'shadow-sheet-1': 'var(--edge-highlight),var(--shadow-md)',
255
- 'shadow-sheet-2': 'var(--edge-highlight),var(--shadow-lg)',
254
+ 'shadow-sheet-1': 'var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)',
255
+ 'shadow-sheet-2': 'var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)',
256
256
  'fold': '12px',
257
257
  'fold-face': 'linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))',
258
258
  'glow-hero': 'radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)',
@@ -538,8 +538,8 @@ export const cssVars = {
538
538
  '--sheet-0': 'var(--surface-page)',
539
539
  '--sheet-1': 'var(--surface-card)',
540
540
  '--sheet-2': 'var(--surface-card-emphasis)',
541
- '--shadow-sheet-1': 'var(--edge-highlight),var(--shadow-md)',
542
- '--shadow-sheet-2': 'var(--edge-highlight),var(--shadow-lg)',
541
+ '--shadow-sheet-1': 'var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40)',
542
+ '--shadow-sheet-2': 'var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55)',
543
543
  '--fold': '12px',
544
544
  '--fold-face': 'linear-gradient(315deg,var(--glass-strong) 0,var(--glass-strong) calc(var(--fold) - 1px),var(--border-strong) calc(var(--fold) - 1px),var(--border-strong) var(--fold),transparent var(--fold))',
545
545
  '--glow-hero': 'radial-gradient(circle,rgb(255 255 255 / .12) 0%,transparent 68%)',
package/styles.css CHANGED
@@ -610,8 +610,18 @@
610
610
  --sheet-0:var(--surface-page); /* the workspace ground */
611
611
  --sheet-1:var(--surface-card); /* an active tool */
612
612
  --sheet-2:var(--surface-card-emphasis); /* what opened, or what is inside */
613
- --shadow-sheet-1:var(--edge-highlight),var(--shadow-md);
614
- --shadow-sheet-2:var(--edge-highlight),var(--shadow-lg);
613
+ /* The drops are spelled out rather than read from the t-shirt ramp above, and
614
+ that is the whole reason this ladder can be shared. `--shadow-sm` is a name
615
+ this package does not own — @hanzo/brand declares the same names at :root
616
+ with white-canvas alphas, and load order decides who wins — so a rung built
617
+ on one is a rung somebody else can flatten. `--shadow-sheet-*` is ours
618
+ alone, which is what lets @hanzo/ui's `.elevation-*` read it instead of
619
+ keeping a private copy. The numbers ARE rung 1 and rung 2 of the ramp; if
620
+ one moves, move both. `--edge-highlight` stays deferred: it is role-named,
621
+ uncollided, and its `.light` zeroing is what makes one value work on both
622
+ canvases. */
623
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40);
624
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55);
615
625
 
616
626
  /* The fold — a corner turned back, and the one mark that means THIS OPENS.
617
627
  Ornament nowhere: a sheet that does not expand does not wear one.
@@ -655,6 +665,11 @@
655
665
  costs nothing. */
656
666
  .light{
657
667
  --shadow-floating:0 24px 60px -16px rgb(0 0 0 / .18);
668
+ /* On white the drop does all of it, so the paper rungs are restated here even
669
+ though check 4 does not demand it — their white is inside --edge-highlight,
670
+ which flips underneath. Rung 1 and rung 2 of the light ramp, same as dark. */
671
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .06);
672
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .09),0 4px 6px -4px rgb(0 0 0 / .07);
658
673
  --shadow-inset-hairline:inset 0 0 0 1px rgb(0 0 0 / .10);
659
674
  --edge-highlight:inset 0 0 0 0 transparent;
660
675
  --bloom:0 6px 20px -4px rgb(0 0 0 / .18);
package/tailwind.css CHANGED
@@ -633,8 +633,18 @@
633
633
  --sheet-0:var(--surface-page); /* the workspace ground */
634
634
  --sheet-1:var(--surface-card); /* an active tool */
635
635
  --sheet-2:var(--surface-card-emphasis); /* what opened, or what is inside */
636
- --shadow-sheet-1:var(--edge-highlight),var(--shadow-md);
637
- --shadow-sheet-2:var(--edge-highlight),var(--shadow-lg);
636
+ /* The drops are spelled out rather than read from the t-shirt ramp above, and
637
+ that is the whole reason this ladder can be shared. `--shadow-sm` is a name
638
+ this package does not own — @hanzo/brand declares the same names at :root
639
+ with white-canvas alphas, and load order decides who wins — so a rung built
640
+ on one is a rung somebody else can flatten. `--shadow-sheet-*` is ours
641
+ alone, which is what lets @hanzo/ui's `.elevation-*` read it instead of
642
+ keeping a private copy. The numbers ARE rung 1 and rung 2 of the ramp; if
643
+ one moves, move both. `--edge-highlight` stays deferred: it is role-named,
644
+ uncollided, and its `.light` zeroing is what makes one value work on both
645
+ canvases. */
646
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40);
647
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55);
638
648
 
639
649
  /* The fold — a corner turned back, and the one mark that means THIS OPENS.
640
650
  Ornament nowhere: a sheet that does not expand does not wear one.
@@ -678,6 +688,11 @@
678
688
  costs nothing. */
679
689
  .light{
680
690
  --shadow-floating:0 24px 60px -16px rgb(0 0 0 / .18);
691
+ /* On white the drop does all of it, so the paper rungs are restated here even
692
+ though check 4 does not demand it — their white is inside --edge-highlight,
693
+ which flips underneath. Rung 1 and rung 2 of the light ramp, same as dark. */
694
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .06);
695
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .09),0 4px 6px -4px rgb(0 0 0 / .07);
681
696
  --shadow-inset-hairline:inset 0 0 0 1px rgb(0 0 0 / .10);
682
697
  --edge-highlight:inset 0 0 0 0 transparent;
683
698
  --bloom:0 6px 20px -4px rgb(0 0 0 / .18);
@@ -75,8 +75,18 @@
75
75
  --sheet-0:var(--surface-page); /* the workspace ground */
76
76
  --sheet-1:var(--surface-card); /* an active tool */
77
77
  --sheet-2:var(--surface-card-emphasis); /* what opened, or what is inside */
78
- --shadow-sheet-1:var(--edge-highlight),var(--shadow-md);
79
- --shadow-sheet-2:var(--edge-highlight),var(--shadow-lg);
78
+ /* The drops are spelled out rather than read from the t-shirt ramp above, and
79
+ that is the whole reason this ladder can be shared. `--shadow-sm` is a name
80
+ this package does not own — @hanzo/brand declares the same names at :root
81
+ with white-canvas alphas, and load order decides who wins — so a rung built
82
+ on one is a rung somebody else can flatten. `--shadow-sheet-*` is ours
83
+ alone, which is what lets @hanzo/ui's `.elevation-*` read it instead of
84
+ keeping a private copy. The numbers ARE rung 1 and rung 2 of the ramp; if
85
+ one moves, move both. `--edge-highlight` stays deferred: it is role-named,
86
+ uncollided, and its `.light` zeroing is what makes one value work on both
87
+ canvases. */
88
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .40);
89
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .55),0 4px 6px -4px rgb(0 0 0 / .55);
80
90
 
81
91
  /* The fold — a corner turned back, and the one mark that means THIS OPENS.
82
92
  Ornament nowhere: a sheet that does not expand does not wear one.
@@ -120,6 +130,11 @@
120
130
  costs nothing. */
121
131
  .light{
122
132
  --shadow-floating:0 24px 60px -16px rgb(0 0 0 / .18);
133
+ /* On white the drop does all of it, so the paper rungs are restated here even
134
+ though check 4 does not demand it — their white is inside --edge-highlight,
135
+ which flips underneath. Rung 1 and rung 2 of the light ramp, same as dark. */
136
+ --shadow-sheet-1:var(--edge-highlight),0 1px 2px 0 rgb(0 0 0 / .06);
137
+ --shadow-sheet-2:var(--edge-highlight),0 10px 15px -3px rgb(0 0 0 / .09),0 4px 6px -4px rgb(0 0 0 / .07);
123
138
  --shadow-inset-hairline:inset 0 0 0 1px rgb(0 0 0 / .10);
124
139
  --edge-highlight:inset 0 0 0 0 transparent;
125
140
  --bloom:0 6px 20px -4px rgb(0 0 0 / .18);