@kolkrabbi/kol-theme 0.11.25 → 0.12.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/kol-base-tokens.css +2 -6
- package/kol-color.css +11 -3
- package/kol-components-molecules.css +8 -0
- package/kol-type-roles.css +35 -2
- 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); }
|
|
@@ -427,6 +427,14 @@
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
+
/* The elder hardcoded SpectrumGrid block (grid-template-columns: 100px
|
|
431
|
+
repeat(10,...), per-cell padding/hex chrome) lived in kol-framework.css and
|
|
432
|
+
was deleted 2026-07-30 (task 8) rather than moved: it predates the inline
|
|
433
|
+
var() contract above and would fight it by re-declaring the template the
|
|
434
|
+
component sets itself. The two custom-property overrides above are the
|
|
435
|
+
whole stylesheet contract. */
|
|
436
|
+
|
|
437
|
+
|
|
430
438
|
/* SwatchControls chrome — the only bespoke CSS the component needs.
|
|
431
439
|
*
|
|
432
440
|
* The paint chips + sample chip reuse ColorSwatch's `halo` variant for the
|
package/kol-type-roles.css
CHANGED
|
@@ -138,6 +138,9 @@
|
|
|
138
138
|
text-transform: uppercase;
|
|
139
139
|
color: var(--kol-fg-meta);
|
|
140
140
|
padding: 10px 16px;
|
|
141
|
+
/* Task 1: td sets this but th didn't, so a label centred itself against a
|
|
142
|
+
4-line value and the label↔value pairing broke. Both cell types agree. */
|
|
143
|
+
vertical-align: top;
|
|
141
144
|
}
|
|
142
145
|
.kol-prose td,
|
|
143
146
|
.kol-doc-table td {
|
|
@@ -148,13 +151,43 @@
|
|
|
148
151
|
}
|
|
149
152
|
.kol-prose tbody tr:last-child td,
|
|
150
153
|
.kol-doc-table tbody tr:last-child td { border-bottom: 0; }
|
|
154
|
+
/* Cell roles — named by ROLE + TIER, split on the ONE mono fault line
|
|
155
|
+
* (kol-type-conform law): line-height-1 helper tier for single-line chrome,
|
|
156
|
+
* line-height-bearing mono tier for anything that can wrap. The old
|
|
157
|
+
* `kol-doc-table-value` was a slot name doing both jobs — a nowrap 12/16 role
|
|
158
|
+
* that every wrapping cell inherited, so a 4-line cell read as one block
|
|
159
|
+
* (tasks 2-4, 2026-07-30). */
|
|
160
|
+
|
|
161
|
+
/* Single-line: one token — a hex, a class name, a count. Never wraps. */
|
|
162
|
+
.kol-doc-table td.kol-doc-table-token {
|
|
163
|
+
font-family: var(--kol-font-family-mono);
|
|
164
|
+
font-size: 12px;
|
|
165
|
+
line-height: 1;
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Multi-line: prose-ish cell content. Wraps, and carries real leading. */
|
|
170
|
+
.kol-doc-table td.kol-doc-table-copy {
|
|
171
|
+
font-family: var(--kol-font-family-mono);
|
|
172
|
+
font-size: 12px;
|
|
173
|
+
line-height: 18px;
|
|
174
|
+
white-space: normal;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* DEPRECATED (2026-07-30) — `-value` is a slot name, and `--wrap` flipped
|
|
178
|
+
* wrapping while leaving single-line leading in place, which was the actual
|
|
179
|
+
* defect. Aliased so existing consumers keep rendering; use the two roles
|
|
180
|
+
* above. Remove once no consumer references them. */
|
|
151
181
|
.kol-doc-table td.kol-doc-table-value {
|
|
152
182
|
font-family: var(--kol-font-family-mono);
|
|
153
183
|
font-size: 12px;
|
|
154
|
-
line-height:
|
|
184
|
+
line-height: 1;
|
|
155
185
|
white-space: nowrap;
|
|
156
186
|
}
|
|
157
|
-
.kol-doc-table td.kol-doc-table-value--wrap {
|
|
187
|
+
.kol-doc-table td.kol-doc-table-value--wrap {
|
|
188
|
+
white-space: normal;
|
|
189
|
+
line-height: 18px;
|
|
190
|
+
}
|
|
158
191
|
|
|
159
192
|
/* figure — the framed content container (preview cards, embedded media). */
|
|
160
193
|
.kol-prose figure,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
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",
|