@tangle-network/brand 1.7.0 → 1.8.0
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/styles/tokens.css +51 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bddb32c: Add `--chart-*` tokens for benchmark charts, dark and light: ink, muted ink, one accent, one muted mark, grid, table rule, row shade and an ordinal App Grade tier ramp (C, B, A, S). Aliases re-resolve on every theme scope; named light themes get the light accent and ramp.
|
|
8
|
+
|
|
3
9
|
## 1.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
package/src/styles/tokens.css
CHANGED
|
@@ -718,3 +718,54 @@
|
|
|
718
718
|
* paper, lighter on a dark card, never tinted. */
|
|
719
719
|
--border-strong: color-mix(in srgb, hsl(var(--hsl-border)), hsl(var(--hsl-foreground)) 20%);
|
|
720
720
|
}
|
|
721
|
+
|
|
722
|
+
/* Chart marks — the palette behind @tangle-network/charts.
|
|
723
|
+
*
|
|
724
|
+
* One accent marks the measure a reader decides on (a rate bar, a frontier
|
|
725
|
+
* point, a solved attempt). One muted grey marks everything secondary. An
|
|
726
|
+
* ordinal indigo ramp marks App Grade tiers C < B < A < S; F has no fill and
|
|
727
|
+
* draws as a --chart-muted outline, the same mark as an unsolved attempt. No
|
|
728
|
+
* categorical palette ships: identity is carried by direct labels.
|
|
729
|
+
*
|
|
730
|
+
* Contrast against the dark canvas (#151523) and white paper, checked with the
|
|
731
|
+
* dataviz palette validator and WCAG ratios:
|
|
732
|
+
* ink 14.45 / 13.70, ink-muted 7.34 / 5.56, accent 6.05 / 7.41,
|
|
733
|
+
* muted 5.54 / 4.41, grid 1.46 / 1.12 (recessive by design).
|
|
734
|
+
* Tiers pass the ordinal checks in both modes: one hue, monotone lightness,
|
|
735
|
+
* visible steps. They are iris ladder steps (ladders.css) except #8b87f0 dark
|
|
736
|
+
* and #7c7fe3 light, which sit between two steps to keep the gaps even.
|
|
737
|
+
*
|
|
738
|
+
* The aliases re-resolve on every theme scope, as the focus rule above does,
|
|
739
|
+
* so a named theme's ink and hairlines carry into its charts. */
|
|
740
|
+
:root,
|
|
741
|
+
.dark,
|
|
742
|
+
.light,
|
|
743
|
+
[data-sandbox-ui],
|
|
744
|
+
[data-sandbox-theme],
|
|
745
|
+
[data-theme] {
|
|
746
|
+
--chart-ink: var(--text-primary);
|
|
747
|
+
--chart-ink-muted: var(--text-dim);
|
|
748
|
+
--chart-muted: var(--md3-outline);
|
|
749
|
+
--chart-grid: var(--md3-surface-container-high);
|
|
750
|
+
--chart-rule: var(--md3-outline-variant);
|
|
751
|
+
--chart-shade: var(--bg-hover);
|
|
752
|
+
--chart-accent: var(--brand-cool);
|
|
753
|
+
--chart-tier-c: #4a4a95;
|
|
754
|
+
--chart-tier-b: #5b5bd6;
|
|
755
|
+
--chart-tier-a: #8b87f0;
|
|
756
|
+
--chart-tier-s: #b1a9ff;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/* Light: the accent is the indigo fill (#4c3fc6, 7.41:1 on white) and the tier
|
|
760
|
+
* ramp runs light to dark. `[data-theme$="-light"]` covers the named light
|
|
761
|
+
* themes, which would otherwise inherit the dark ramp from :root. */
|
|
762
|
+
[data-sandbox-theme="vault"],
|
|
763
|
+
[data-theme="light"],
|
|
764
|
+
.light,
|
|
765
|
+
[data-theme$="-light"] {
|
|
766
|
+
--chart-accent: hsl(var(--hsl-primary));
|
|
767
|
+
--chart-tier-c: #9b9ef0;
|
|
768
|
+
--chart-tier-b: #7c7fe3;
|
|
769
|
+
--chart-tier-a: #5b5bd6;
|
|
770
|
+
--chart-tier-s: #272962;
|
|
771
|
+
}
|