@kolkrabbi/kol-theme 0.32.4 → 0.33.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 +22 -0
- package/kol-components-molecules.css +23 -0
- package/package.json +1 -1
package/kol-base-tokens.css
CHANGED
|
@@ -75,6 +75,22 @@
|
|
|
75
75
|
--kol-surface-absolute-split-inverse: #ffffff;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/* UI STATE — dark tier. The base ladder (kol-color.css) is authored for
|
|
79
|
+
* light surfaces; on dark it read as dull ink (StatusChip frame, user
|
|
80
|
+
* 2026-08-09 — success sampled off the reference mint). Own block, NOT the
|
|
81
|
+
* one above: kol-color.css loads AFTER this file, so its bare `:root` beats
|
|
82
|
+
* an equal-specificity dark selector on the tie — the :root-qualified forms
|
|
83
|
+
* here outrank it; bare `.dark` stays for subtree-scoped dark wrappers,
|
|
84
|
+
* where the element's own props beat anything inherited. */
|
|
85
|
+
:root[data-theme="dark"],
|
|
86
|
+
:root.dark,
|
|
87
|
+
.dark {
|
|
88
|
+
--ui-error: #F87171;
|
|
89
|
+
--ui-warning: #FACC15;
|
|
90
|
+
--ui-info: #60A5FA;
|
|
91
|
+
--ui-success: #3DD68C;
|
|
92
|
+
}
|
|
93
|
+
|
|
78
94
|
/* System-follow dark (0.11.6, user law: explicit choice > system > light).
|
|
79
95
|
* Applies ONLY when no explicit theme is stamped — a consumer that sets
|
|
80
96
|
* data-theme (any value) vetoes the OS. MIRROR of the block above — edit both. */
|
|
@@ -102,5 +118,11 @@
|
|
|
102
118
|
--kol-surface-support-split-inverse: #eeeeee;
|
|
103
119
|
--kol-surface-absolute-split: #000000;
|
|
104
120
|
--kol-surface-absolute-split-inverse: #ffffff;
|
|
121
|
+
|
|
122
|
+
/* UI STATE — dark tier (mirror of the block above — edit both) */
|
|
123
|
+
--ui-error: #F87171;
|
|
124
|
+
--ui-warning: #FACC15;
|
|
125
|
+
--ui-info: #60A5FA;
|
|
126
|
+
--ui-success: #3DD68C;
|
|
105
127
|
}
|
|
106
128
|
}
|
|
@@ -284,6 +284,22 @@
|
|
|
284
284
|
color: var(--kol-surface-on-primary);
|
|
285
285
|
background-color: color-mix(in srgb, var(--kol-surface-on-primary) 8%, var(--kol-surface-primary));
|
|
286
286
|
}
|
|
287
|
+
/* ── FieldRow — .kol-field-row ────────────────────────────────────────────
|
|
288
|
+
* Row anatomy: label column LEFT beside the control column (reference,
|
|
289
|
+
* 2026-08-09). Lives here, not in a Tailwind arbitrary utility — package
|
|
290
|
+
* chrome rides theme CSS (the SegmentedToggle lesson): an arbitrary class
|
|
291
|
+
* silently missed generation in a consumer build and the rows stacked. */
|
|
292
|
+
.kol-field-row {
|
|
293
|
+
display: grid;
|
|
294
|
+
grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Chevron weight (user frames 2026-08-09): at the chip size the set
|
|
298
|
+
* chevron's 1.5 stroke renders a 0.75px hairline; 4 units read too thick.
|
|
299
|
+
* 3 units on the 24 viewBox → 1.5px rendered at size 12. Chip-scoped: the
|
|
300
|
+
* keyline law governs the set's drawings; chrome may weight a glyph in
|
|
301
|
+
* context. */
|
|
302
|
+
.kol-status-chip svg path { stroke-width: 3px; }
|
|
287
303
|
.kol-status-chip--success {
|
|
288
304
|
color: var(--ui-success);
|
|
289
305
|
background-color: color-mix(in srgb, var(--ui-success) 15%, var(--kol-surface-primary));
|
|
@@ -300,6 +316,13 @@
|
|
|
300
316
|
color: var(--ui-info);
|
|
301
317
|
background-color: color-mix(in srgb, var(--ui-info) 15%, var(--kol-surface-primary));
|
|
302
318
|
}
|
|
319
|
+
/* --primary — the Dropdown-primary trigger's fill + ink on the pill box
|
|
320
|
+
* (select columns in record surfaces, user frame 2026-08-09: "use status
|
|
321
|
+
* pill, but same look as dropdown primary"). Values mirror .kol-btn-primary. */
|
|
322
|
+
.kol-status-chip--primary {
|
|
323
|
+
color: var(--kol-surface-on-primary);
|
|
324
|
+
background-color: var(--kol-surface-secondary);
|
|
325
|
+
}
|
|
303
326
|
|
|
304
327
|
/* inverse — the flipped chip. Mirrors .pill-inverse. */
|
|
305
328
|
.kol-tag--inverse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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",
|