@rackbops/styles 0.1.3 → 0.1.4
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
package/rackbops-noir/design.md
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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:
|
|
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`.
|
|
111
|
-
|
|
112
|
-
|
|
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
|