@hanzo/design 0.2.0 → 0.3.1

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.
@@ -16,6 +16,25 @@
16
16
  --text-5xl:2.5rem; --leading-5xl:1.05; /* 40px */
17
17
  --text-6xl:3.25rem; --leading-6xl:1; /* 52px */
18
18
  --text-7xl:4rem; --leading-7xl:1; /* 64px */
19
+ --text-8xl:5.25rem; --leading-8xl:1; /* 84px */
20
+ --text-9xl:7rem; --leading-9xl:1; /* 112px */
21
+
22
+ /* The SAME scale under @hanzo/brand's spelling. @hanzo/gui's shell theme and
23
+ Hanzo Studio address the ramp as --font-size-*; both names are one value, so
24
+ a component written against either resolves here. --text-* is canonical. */
25
+ --font-size-xs:var(--text-xs);
26
+ --font-size-sm:var(--text-sm);
27
+ --font-size-base:var(--text-base);
28
+ --font-size-lg:var(--text-lg);
29
+ --font-size-xl:var(--text-xl);
30
+ --font-size-2xl:var(--text-2xl);
31
+ --font-size-3xl:var(--text-3xl);
32
+ --font-size-4xl:var(--text-4xl);
33
+ --font-size-5xl:var(--text-5xl);
34
+ --font-size-6xl:var(--text-6xl);
35
+ --font-size-7xl:var(--text-7xl);
36
+ --font-size-8xl:var(--text-8xl);
37
+ --font-size-9xl:var(--text-9xl);
19
38
 
20
39
  --weight-normal:400;
21
40
  --weight-medium:500;
package/tokens/z.css CHANGED
@@ -1,14 +1,23 @@
1
1
  /* Stacking order — the one z-index ladder. Layers are named by role, never by a
2
2
  magic number, so a dropdown opened from the fixed header always sits above it
3
- and nothing ever reaches for 9999. Below --z-raised is ordinary document flow. */
3
+ and nothing ever reaches for 9999. Below --z-raised is ordinary document flow.
4
+
5
+ Rungs are 100 apart so a surface can slot a one-off BETWEEN two roles
6
+ (calc(var(--z-modal) + 1)) without inventing a new decade. */
4
7
  :root{
5
8
  --z-base:0;
6
- --z-raised:10; /* hover-lifted cards, sticky table headers */
7
- --z-sticky:200; /* pinned section rails */
8
- --z-header:300; /* the fixed site header */
9
- --z-dropdown:400; /* menus, selects, comboboxes */
10
- --z-overlay:500; /* dialog / sheet scrim */
11
- --z-modal:600; /* dialogs, sheets, command palette */
12
- --z-popover:700; /* popovers, tooltips (also when anchored in modals)*/
13
- --z-toast:800; /* toasts / notifications — always on top */
9
+ --z-raised:10; /* hover-lifted cards, sticky table headers */
10
+ --z-sticky:200; /* pinned section rails */
11
+ --z-header:300; /* the fixed site header */
12
+ --z-dropdown:400; /* menus, selects, comboboxes */
13
+ --z-overlay:500; /* dialog / sheet scrim */
14
+ --z-modal:600; /* dialogs, sheets, command palette */
15
+ --z-popover:700; /* popovers, tooltips (also when anchored in modals) */
16
+ --z-toast:800; /* toasts / notifications — always on top */
17
+
18
+ /* @hanzo/brand spells the top two rungs --z-tooltip and --z-notification.
19
+ Same rungs, so a component written against either vocabulary stacks
20
+ identically. --z-popover / --z-toast are canonical. */
21
+ --z-tooltip:var(--z-popover);
22
+ --z-notification:var(--z-toast);
14
23
  }
File without changes