@tjakoen/grain 0.1.35 → 0.1.36

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.
@@ -20,8 +20,10 @@
20
20
  /* ---- tone (attribute) — ink-level + border weight, NOT hue ----
21
21
  default : the calm baseline (a healthy/positive count needs no shouting).
22
22
  ok : same calm baseline — an explicit "good" that reads identical, by design.
23
+ warn : worth a look, not yet wrong — the value firms to semibold, the border stays calm.
23
24
  bad : draws the eye monochromatically — a solid-ink border + full-ink value.
24
25
  muted : a context/secondary count (skipped, pending, a total) recedes to faint. */
26
+ .stat[data-tone="warn"] .stat__value { font-weight: var(--font-weight-semibold); }
25
27
  .stat[data-tone="bad"] { border-color: var(--ink); }
26
28
  .stat[data-tone="muted"] .stat__value { color: var(--ink-muted); }
27
29
  .stat[data-tone="muted"] .stat__label { color: var(--ink-muted); }
@@ -32,11 +32,14 @@ state.
32
32
  ```
33
33
 
34
34
  ## Tones
35
- `data-tone` shifts ink-level, not hue. `bad` draws the eye with a solid-ink border; `muted` is a
35
+ `data-tone` shifts ink-level, not hue. `warn` marks a count worth a look that is not yet wrong
36
+ (items waiting, checks due) by setting the value in semibold while the border stays calm; `bad`
37
+ draws the eye with a solid-ink border; `muted` is a
36
38
  secondary/context count that recedes to faint; `ok` and the default read identically on purpose
37
39
  (a healthy count needs no shouting).
38
40
  ```html
39
41
  <div class="stat" data-tone="ok"><span class="stat__value">14</span><span class="stat__label">passed</span></div>
42
+ <div class="stat" data-tone="warn"><span class="stat__value">4</span><span class="stat__label">due</span></div>
40
43
  <div class="stat" data-tone="bad"><span class="stat__value">2</span><span class="stat__label">failed</span></div>
41
44
  <div class="stat" data-tone="muted"><span class="stat__value">3</span><span class="stat__label">skipped</span></div>
42
45
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tjakoen/grain",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "GRAIN — an AI-interaction design system where every surface is operable by both a human and an AI through one shared vocabulary.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",