@rackbops/styles 0.1.3 → 0.1.5

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.
@@ -49,8 +49,9 @@ Muted-on-surface is tuned to clear WCAG AA (4.5:1) on every surface; the light
49
49
  weight 600, tight tracking (`-0.01em`). Monospace *is* the display voice.
50
50
  - **Body & UI:** `system-ui, -apple-system, "Segoe UI", Roboto, …`, weight 400.
51
51
  - **Numerals:** `font-variant-numeric: tabular-nums` everywhere data is shown.
52
- - **Labels** (eyebrows, badges, table headers): mono, uppercase, ~11px, tracked
53
- `0.06em`.
52
+ - **Labels** (eyebrows, badges): mono, uppercase, ~11px, tracked `0.06em`.
53
+ Table headers are the one stated departure — body-sans, normal case
54
+ (`components/table.css:9-15`; badges stay mono uppercase, `badge.css:10-14`).
54
55
  - **Bare tags:** unclassed `h1`-`h6` pick up the mono display voice directly —
55
56
  weight 600, tracking `-0.01em`, `--rb-space-3` margin below. `.rb-card`
56
57
  renders a bare `<h3>` and gets this treatment too, since `card.css` declares
@@ -140,8 +141,8 @@ voices reused, never new decorative hues.
140
141
 
141
142
  ## Light counterpart — "Parchment"
142
143
 
143
- The AA-tuned light secondary. Not shipped as a separate theme yet; documented so
144
- it can become one additively.
144
+ The AA-tuned light secondary, shipped as its own theme: `arcane-parchment`
145
+ (`styles/arcane-parchment/design.md`).
145
146
 
146
147
  | Role | Value |
147
148
  | --- | --- |
@@ -11,8 +11,8 @@
11
11
  * Every theme declares the same baseline token set (styles/test enforces
12
12
  * parity); names marked (extra) are additions beyond it that only this
13
13
  * theme's own component CSS may rely on. This theme ships its dark, primary
14
- * look ("Obsidian"); its AA-tuned light counterpart ("Parchment") is
15
- * documented in design.md and can become its own theme later.
14
+ * look ("Obsidian"); its AA-tuned light counterpart ("Parchment") ships as
15
+ * its own theme, arcane-parchment (see design.md).
16
16
  */
17
17
  :where([data-rb-style="arcane-obsidian"]) {
18
18
  color-scheme: dark;
@@ -45,7 +45,9 @@ hues appear. Muted-on-surface is tuned to clear WCAG AA (4.5:1) on every surface
45
45
 
46
46
  Identical to arcane-obsidian: monospace display voice (the wordmark, weight 600,
47
47
  tracking `-0.01em`) over a `system-ui` body (weight 400); `tabular-nums` wherever
48
- data is shown; mono uppercase labels tracked `0.06em`. Bare `h1`-`h6`/`p`/`ul`/`ol`
48
+ data is shown; mono uppercase labels tracked `0.06em` (table headers are the
49
+ one stated departure — body-sans, normal case, `components/table.css:9-15`).
50
+ Bare `h1`-`h6`/`p`/`ul`/`ol`
49
51
  get the same treatment as arcane-obsidian too: unclassed headlines carry that
50
52
  same mono voice with `--rb-space-3` margin, and bare `ul`/`ol` add
51
53
  `--rb-space-4` marker indent with real disc/decimal markers.
@@ -87,8 +87,10 @@ and the accent itself is spent sparingly — never for decoration.
87
87
 
88
88
  ## Components
89
89
 
90
- Class prefix `rb-`; shared token/class contract with the other themes. Only
91
- the baseline ten no theme extras.
90
+ Class prefix `rb-`; shared token/class contract with the other themes (the
91
+ full required set is `styles/contract.json` / STANDARD.md 5.1 — not restated
92
+ as a count here, since that count has drifted before) — no theme-specific
93
+ extras.
92
94
 
93
95
  - **Button** `.rb-btn` — plain bordered ghost on white by default;
94
96
  `--primary` is the one solid accent fill (barely-there shadow lift on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rackbops/styles",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Rackbops design-system styles: tokens, base styles, and component classes per theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -76,12 +76,7 @@ matches rackbops.com's dark-mode rack — a near-canvas block set off by its bor
76
76
  the per-component notes. The Boppy mascot asset ships with rackbops-studio
77
77
  (`styles/rackbops-studio/assets/boppy.svg`) and is shared.
78
78
 
79
- Two components diverge beyond palette. `components/button.css`'s `--primary`
80
- label colour (`var(--rb-bg)`) and `--accent` hover/focus fill
81
- (`color-mix(in srgb, var(--rb-accent), var(--rb-text) 15%)`) are proper token
82
- expressions here; rackbops-studio's equivalents are pre-existing literal
83
- colours (`#f4f7f9`, `#c93c1c`) that predate STANDARD.md 4.2 and haven't been
84
- migrated yet (see its `design.md`). `components/rack.css` declares its own
79
+ One component diverges beyond palette. `components/rack.css` declares its own
85
80
  local `--rb-rack-panel`/`--rb-rack-line` values, tuned slightly darker here
86
81
  than rackbops-studio's to read correctly against this theme's already-dark
87
82
  canvas.
@@ -41,7 +41,7 @@
41
41
  }
42
42
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--primary {
43
43
  background: var(--rb-text);
44
- color: #f4f7f9;
44
+ color: var(--rb-bg);
45
45
  }
46
46
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--primary:hover,
47
47
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--primary:focus-visible {
@@ -54,7 +54,7 @@
54
54
  }
55
55
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--accent:hover,
56
56
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--accent:focus-visible {
57
- background: #c93c1c;
57
+ background: color-mix(in srgb, var(--rb-accent), var(--rb-text) 15%);
58
58
  }
59
59
  :where([data-rb-style="rackbops-studio"], [data-rb-style="rackbops-studio"] *).rb-btn--ghost {
60
60
  background: transparent;
@@ -107,12 +107,9 @@ Class prefix `rb-`; shared token/class contract with the other themes.
107
107
  vermillion, `--ghost` bordered outline, `--danger` rose outline; `.rb-btn__arrow`
108
108
  slides on hover. `--sm` is a compact size for inline/table-row actions — the
109
109
  arrow scales with it. `.rb-icon-btn` is a square icon-only hit target
110
- (>=2rem), paired with `.rb-btn`. Pair divergence: `components/button.css`
111
- carries two literal (non-token) colours here that predate the "tokens, not
112
- literals" rule (STANDARD.md 4.2) and haven't been migrated yet — `--primary`'s
113
- label colour (`#f4f7f9`) and `--accent`'s hover/focus fill (`#c93c1c`).
114
- rackbops-noir's equivalents already use `var(--rb-bg)` and a `color-mix()`
115
- formula respectively; bringing this theme in line is tracked separately.
110
+ (>=2rem), paired with `.rb-btn`. `--primary`'s label colour is `var(--rb-bg)`
111
+ and `--accent`'s hover/focus fill is `color-mix(in srgb, var(--rb-accent),
112
+ var(--rb-text) 15%)` identical to rackbops-noir's `components/button.css`.
116
113
  - **Card** `.rb-card` (+ `__tag`) — white panel, soft shadow, `-4px` hover lift.
117
114
  `--raised` makes that lift the resting state (a further `-6px` on hover).
118
115
  - **NavLink** `.rb-link` — mono header nav; hover fills to a surface pill; accent
@@ -170,8 +167,8 @@ Class prefix `rb-`; shared token/class contract with the other themes.
170
167
 
171
168
  ## Dark counterpart
172
169
 
173
- The dark mode rackbops.com toggles into. Not shipped as a separate theme yet;
174
- documented so it can become one additively.
170
+ The dark mode rackbops.com toggles into, shipped as its own theme:
171
+ `rackbops-noir` (`styles/rackbops-noir/design.md`).
175
172
 
176
173
  | Role | Value |
177
174
  | --- | --- |
@@ -8,8 +8,8 @@
8
8
  * The :where() keeps specificity at zero, so any consumer rule overrides.
9
9
  *
10
10
  * This theme ships its canonical, primary look (light); the dark counterpart
11
- * that rackbops.com toggles into is documented in design.md and can become its
12
- * own theme later. Every theme declares the same baseline token set (styles/test
11
+ * that rackbops.com toggles into ships as its own theme, rackbops-noir (see
12
+ * design.md). Every theme declares the same baseline token set (styles/test
13
13
  * enforces parity); names marked (extra) are additions this theme's own
14
14
  * component CSS may rely on.
15
15
  */