@lace-cloud/design-tokens 0.37.0 → 0.37.1
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 +1 -1
- package/tokens.css +11 -6
package/package.json
CHANGED
package/tokens.css
CHANGED
|
@@ -244,7 +244,8 @@
|
|
|
244
244
|
* with one edit.
|
|
245
245
|
* ══════════════════════════════════════════════════════════════════════ */
|
|
246
246
|
|
|
247
|
-
:root
|
|
247
|
+
:root,
|
|
248
|
+
[data-lace-dark-tokens] {
|
|
248
249
|
/* ── Surface (background layers) ── */
|
|
249
250
|
--lace-color-bg-canvas: var(--lace-color-neutral-900);
|
|
250
251
|
--lace-color-bg-surface: var(--lace-color-neutral-850);
|
|
@@ -367,7 +368,8 @@
|
|
|
367
368
|
* component-specific colors.
|
|
368
369
|
* ══════════════════════════════════════════════════════════════════════ */
|
|
369
370
|
|
|
370
|
-
:root
|
|
371
|
+
:root,
|
|
372
|
+
[data-lace-dark-tokens] {
|
|
371
373
|
/* ── Brand aliases (prefer semantic tokens) ── */
|
|
372
374
|
--lace-green: var(--lace-color-green-500);
|
|
373
375
|
--lace-green-bright: var(--lace-color-green-300);
|
|
@@ -615,8 +617,8 @@
|
|
|
615
617
|
* Override Tier-2 semantic + Tier-3 component tokens for light surfaces.
|
|
616
618
|
* Tier-1 primitives (raw palette + alpha variants) stay theme-neutral.
|
|
617
619
|
* Apps opt in via `<html data-theme="light">`, or `high-contrast-light`, which
|
|
618
|
-
* takes these and the high-contrast remap below
|
|
619
|
-
* dark
|
|
620
|
+
* takes these and the high-contrast remap below. A nested surface may apply
|
|
621
|
+
* `[data-lace-dark-tokens]` to restore the dark semantic and component tokens.
|
|
620
622
|
* ══════════════════════════════════════════════════════════════════════ */
|
|
621
623
|
|
|
622
624
|
[data-theme="light"],
|
|
@@ -828,7 +830,9 @@
|
|
|
828
830
|
}
|
|
829
831
|
|
|
830
832
|
[data-theme="high-contrast"],
|
|
831
|
-
[data-theme="high-contrast-light"]
|
|
833
|
+
[data-theme="high-contrast-light"],
|
|
834
|
+
[data-theme="high-contrast"] [data-lace-dark-tokens],
|
|
835
|
+
[data-theme="high-contrast-light"] [data-lace-dark-tokens] {
|
|
832
836
|
--lace-color-border-default: var(--lace-hc-edge);
|
|
833
837
|
--lace-color-border-subtle: var(--lace-hc-edge);
|
|
834
838
|
--lace-color-border-input: var(--lace-hc-edge);
|
|
@@ -1003,7 +1007,8 @@ body {
|
|
|
1003
1007
|
/* Windows forced colours: the high-contrast remap above, on system colours, for every theme.
|
|
1004
1008
|
* It is the last rule so it outranks each theme block at equal specificity. */
|
|
1005
1009
|
@media (forced-colors: active) {
|
|
1006
|
-
:root
|
|
1010
|
+
:root,
|
|
1011
|
+
[data-lace-dark-tokens] {
|
|
1007
1012
|
--lace-hc-edge: CanvasText;
|
|
1008
1013
|
--lace-hc-active: Highlight;
|
|
1009
1014
|
--lace-hc-focus: Highlight;
|