hydrateless 0.5.0 → 0.6.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/dist/toc.css CHANGED
@@ -1,10 +1,8 @@
1
1
  @layer components {
2
2
  nav[data-hl-toc] {
3
- border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
4
- border-radius: 0.5rem;
5
- border-radius: var(--hl-radius-3, 0.5rem);
6
- padding: 0.75rem;
7
- padding: var(--hl-spacing-3, 0.75rem);
3
+ border: 1px solid var(--hl-border);
4
+ border-radius: var(--hl-radius-lg);
5
+ padding: var(--hl-space-3);
8
6
  }
9
7
 
10
8
  nav[data-hl-toc] ul {
@@ -20,21 +18,23 @@
20
18
 
21
19
  nav[data-hl-toc] a {
22
20
  display: block;
23
- padding: 0.25rem 0.5rem;
24
- padding: var(--hl-spacing-1, 0.25rem) var(--hl-spacing-2, 0.5rem);
25
- border-radius: 0.25rem;
26
- border-radius: var(--hl-radius-2, 0.25rem);
21
+ padding: var(--hl-space-1) var(--hl-space-2);
22
+ border-radius: var(--hl-radius-sm);
27
23
  color: inherit;
28
24
  -webkit-text-decoration: none;
29
25
  text-decoration: none;
30
26
  }
31
27
 
28
+ nav[data-hl-toc] a:focus-visible {
29
+ outline: var(--hl-focus-ring);
30
+ outline-offset: -2px;
31
+ }
32
+
32
33
  nav[data-hl-toc] a[aria-current='true'] {
33
- background: var(--hl-color-muted);
34
+ background: var(--hl-surface-2);
34
35
  }
35
36
 
36
37
  nav[data-hl-toc] ul ul {
37
- padding-left: 0.75rem;
38
- padding-left: var(--hl-spacing-3, 0.75rem);
38
+ padding-left: var(--hl-space-3);
39
39
  }
40
40
  }
package/dist/tokens.css CHANGED
@@ -235,19 +235,6 @@
235
235
  --hl-scrim: hsla(222, 47%, 11%, 0.5);
236
236
  --hl-overlay: var(--hl-surface);
237
237
  --hl-overlay-shadow: var(--hl-shadow-lg);
238
-
239
- /* Component-facing aliases — a single mapping onto the tokens above so every
240
- component (old and new) themes and dark-modes from one source of truth. */
241
- --hl-color-bg: var(--hl-surface);
242
- --hl-color-fg: var(--hl-fg);
243
- --hl-color-muted: var(--hl-surface-2);
244
- --hl-color-accent: var(--hl-primary);
245
- --hl-radius-2: var(--hl-radius-sm);
246
- --hl-radius-3: var(--hl-radius-lg);
247
- --hl-spacing-1: var(--hl-space-1);
248
- --hl-spacing-2: var(--hl-space-2);
249
- --hl-spacing-3: var(--hl-space-3);
250
- --hl-spacing-4: var(--hl-space-4);
251
238
  }
252
239
 
253
240
  /* Dark theme values, shared by auto + manual dark. */
package/dist/tooltip.css CHANGED
@@ -1,18 +1,20 @@
1
1
  @layer components {
2
2
  [role='tooltip'] {
3
3
  position: absolute;
4
- z-index: 1000;
4
+ z-index: var(--hl-z-tooltip);
5
5
  top: auto;
6
6
  right: auto;
7
7
  bottom: auto;
8
8
  left: 0;
9
9
  translate: 0 -0.25rem;
10
- padding: 0.25rem 0.5rem;
11
- border-radius: 0.25rem;
12
- border-radius: var(--hl-radius-2, 0.25rem);
13
- background: color-mix(in oklab, var(--hl-color-fg) 96%, var(--hl-color-bg) 4%);
14
- color: var(--hl-color-bg);
15
- font-size: 0.875rem;
10
+ padding: var(--hl-space-1) var(--hl-space-2);
11
+ border-radius: var(--hl-radius-sm);
12
+ background: var(--hl-fg);
13
+ color: var(--hl-surface);
14
+ font-size: var(--hl-text-sm);
15
+ max-width: 32ch;
16
+ width: -moz-max-content;
17
+ width: max-content;
16
18
  }
17
19
 
18
20
  [role='tooltip'][hidden] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hydrateless",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Accessible, themeable UI primitives — semantic HTML + modern CSS first, optional JS enhancers.",
5
5
  "license": "MIT",
6
6
  "repository": {