@tangle-network/brand 0.8.2 → 0.8.3
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/themes.css +19 -0
- package/src/styles/tokens.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9b91ac6: Fix code syntax highlighting contrast (WCAG AA). `--syntax-*` was defined only in the dark `:root`, so in all four light themes (light, aubergine-light, arena-light, tangle-light) code rendered near-white on the light `bg-card` — foreground ~1.2:1, effectively invisible. Added a light-tuned `--syntax-*` palette (dark-on-light, all ≥4.5:1 on white) for every light scope. Also bumped the dark `--syntax-comment` (`#6B7094`→`#8b8fbc`) which failed AA (~3.4:1) across the dark-family themes. All syntax colors now pass AA on their code surface in every theme.
|
|
8
|
+
|
|
3
9
|
## 0.8.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/styles/themes.css
CHANGED
|
@@ -56,6 +56,25 @@
|
|
|
56
56
|
--surface-info-bg: #f0f9ff; --surface-info-border: #bae6fd; --surface-info-text: #0369a1;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/* Light-tuned syntax highlighting for ALL light scopes (incl. base light).
|
|
60
|
+
* --syntax-* is defined only in the dark :root (near-white foreground), so on a
|
|
61
|
+
* light code surface (bg-card ≈ white) code was ~1.2:1 — invisible. Dark-on-light
|
|
62
|
+
* palette, all ≥4.5:1 on white. */
|
|
63
|
+
[data-theme="light"],
|
|
64
|
+
[data-theme="aubergine-light"],
|
|
65
|
+
[data-theme="arena-light"],
|
|
66
|
+
[data-theme="tangle-light"] {
|
|
67
|
+
--syntax-foreground: #24292f;
|
|
68
|
+
--syntax-comment: #57606a;
|
|
69
|
+
--syntax-keyword: #6d28d9;
|
|
70
|
+
--syntax-string: #047857;
|
|
71
|
+
--syntax-function: #1d4ed8;
|
|
72
|
+
--syntax-number: #92400e;
|
|
73
|
+
--syntax-meta: #7c3aed;
|
|
74
|
+
--syntax-variable: #24292f;
|
|
75
|
+
--syntax-error: #b91c1c;
|
|
76
|
+
}
|
|
77
|
+
|
|
59
78
|
/* ───────────────────────── Aubergine (bazaar) — dark purple ──────────────── */
|
|
60
79
|
[data-theme="aubergine"] {
|
|
61
80
|
/* Base lifted off near-black: at ~7% L the 258 hue read black; ~13-20% L with
|
package/src/styles/tokens.css
CHANGED
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
--tool-icon-size: 1.75rem;
|
|
289
289
|
|
|
290
290
|
/* Syntax highlighting — override per-theme in vault section */
|
|
291
|
-
--syntax-comment: #
|
|
291
|
+
--syntax-comment: #8b8fbc;
|
|
292
292
|
--syntax-keyword: #A78FFF;
|
|
293
293
|
--syntax-string: #10b981;
|
|
294
294
|
--syntax-function: #6D9FFF;
|