@kolkrabbi/kol-theme 0.11.25 → 0.12.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/kol-base-tokens.css +2 -6
- package/kol-color.css +11 -3
- package/package.json +1 -1
package/kol-base-tokens.css
CHANGED
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Dark Mode — surface overrides */
|
|
51
|
+
/* (no --kol-link override here: link color is a per-repo hook, user law
|
|
52
|
+
2026-07-29 — a consumer binding it owns both modes) */
|
|
51
53
|
:is([data-theme="dark"], .dark) {
|
|
52
|
-
--kol-link: #60A5FA;
|
|
53
|
-
--kol-link-hover: #93C5FD;
|
|
54
|
-
|
|
55
54
|
--kol-surface-primary: #121215;
|
|
56
55
|
--kol-surface-on-primary: #fafafa;
|
|
57
56
|
|
|
@@ -81,9 +80,6 @@
|
|
|
81
80
|
* data-theme (any value) vetoes the OS. MIRROR of the block above — edit both. */
|
|
82
81
|
@media (prefers-color-scheme: dark) {
|
|
83
82
|
:root:not([data-theme]) {
|
|
84
|
-
--kol-link: #60A5FA;
|
|
85
|
-
--kol-link-hover: #93C5FD;
|
|
86
|
-
|
|
87
83
|
--kol-surface-primary: #121215;
|
|
88
84
|
--kol-surface-on-primary: #fafafa;
|
|
89
85
|
|
package/kol-color.css
CHANGED
|
@@ -41,8 +41,14 @@
|
|
|
41
41
|
* brand layer overrides the tokens, consumers override per element.
|
|
42
42
|
* --------------------------------------------------------------------------- */
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
/* Link color is a PER-REPO decision (user law 2026-07-29): the DS ships the
|
|
45
|
+
* hook, not a color. currentColor = links render as surrounding ink until a
|
|
46
|
+
* consumer binds the token at its root, e.g.
|
|
47
|
+
* :root { --kol-link: var(--kol-color-yellow-300); --kol-link-hover: … }
|
|
48
|
+
* (The old defaults were raw Tailwind blue-600/700 — placeholder, never
|
|
49
|
+
* brand-bound; killed the same day a consumer's DS-Table flush exposed it.) */
|
|
50
|
+
--kol-link: currentColor;
|
|
51
|
+
--kol-link-hover: currentColor;
|
|
46
52
|
|
|
47
53
|
/* ---------------------------------------------------------------------------
|
|
48
54
|
* UI STATE — error / warning / info / success.
|
|
@@ -110,7 +116,9 @@
|
|
|
110
116
|
* (0,1,1) beats any single utility class, and an unlayered theme import beats
|
|
111
117
|
* whole `layer(...)` chrome sheets regardless of specificity. Chrome owns its
|
|
112
118
|
* anchor colors; content links are `.kol-prose a` (inherit + underline).
|
|
113
|
-
*
|
|
119
|
+
* COLOR is a per-repo choice (user law 2026-07-29): `.kol-link` and
|
|
120
|
+
* `.kol-table a` are hooks on `--kol-link`, which defaults to currentColor —
|
|
121
|
+
* the DS ships NO link color. A repo binds the token at its root to opt in.
|
|
114
122
|
* ============================================================================= */
|
|
115
123
|
|
|
116
124
|
.kol-link { color: var(--kol-link); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "KOL (Kolkrabbi) design-system tokens + base CSS — brand-neutral. The canonical token/cascade layer every other KOL package and consumer builds on.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|