@kolkrabbi/kol-theme 0.12.0 → 0.12.2
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.
|
@@ -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
|
|
@@ -82,6 +82,13 @@
|
|
|
82
82
|
scrollbar-width: none;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/* Shell content grid — the rail/main/toc gutter. The gap lives HERE, not as a
|
|
86
|
+
* utility on the element: a gap-8 in the JSX outranked this layer at every
|
|
87
|
+
* width and made the 48px wide step (below, ≥1600px) dead code. */
|
|
88
|
+
.shell-content-grid {
|
|
89
|
+
gap: 32px;
|
|
90
|
+
}
|
|
91
|
+
|
|
85
92
|
.shell-sidebar-sticky::-webkit-scrollbar {
|
|
86
93
|
display: none;
|
|
87
94
|
}
|
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.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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",
|