@r_masseater/masseater-utils 0.1.1 → 0.1.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r_masseater/masseater-utils",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The small shared libraries of masseater's repositories as subpaths of one package: a chip row for React, Claude Code plugin helpers, Effect entry points for Node.js and GitHub Actions, file import mapping, Node package readers, OTLP assertions for Vitest and Cloudflare Workers tracing.",
5
5
  "keywords": [
6
6
  "actions",
@@ -51,7 +51,7 @@ export const Kinds = ({
51
51
 
52
52
  ## Match the theme
53
53
 
54
- Set `--skerm-surface`, `--skerm-on-surface`, `--skerm-border` and `--skerm-hover` on `[data-slot="skerm-row"]` or an ancestor. The defaults are system colors, so a site with its own theme maps its tokens to them once.
54
+ Set `--skerm-surface`, `--skerm-on-surface`, `--skerm-border` and `--skerm-hover` on any ancestor of the row, such as `:root`. Each one falls back to a system color, so a site with its own theme maps its tokens to them once.
55
55
 
56
56
  ## Common mistakes
57
57
 
package/src/app/skerm.css CHANGED
@@ -30,10 +30,6 @@
30
30
  }
31
31
 
32
32
  [data-slot="skerm-row"] {
33
- --skerm-surface: Canvas;
34
- --skerm-on-surface: CanvasText;
35
- --skerm-border: GrayText;
36
- --skerm-hover: color-mix(in srgb, CanvasText 8%, Canvas);
37
33
  timeline-scope: --skerm-row;
38
34
  position: relative;
39
35
  min-width: 0;
@@ -126,15 +122,15 @@
126
122
  width: 2rem;
127
123
  height: 2rem;
128
124
  place-items: center;
129
- border: 1px solid var(--skerm-border);
125
+ border: 1px solid var(--skerm-border, GrayText);
130
126
  border-radius: 9999px;
131
- background: var(--skerm-surface);
132
- color: var(--skerm-on-surface);
127
+ background: var(--skerm-surface, Canvas);
128
+ color: var(--skerm-on-surface, CanvasText);
133
129
  cursor: pointer;
134
130
  }
135
131
 
136
132
  [data-slot="skerm-arrow-button"]:hover {
137
- background: var(--skerm-hover);
133
+ background: var(--skerm-hover, color-mix(in srgb, CanvasText 8%, Canvas));
138
134
  }
139
135
 
140
136
  [data-slot="skerm-arrow-icon"] {