@kolkrabbi/kol-theme 0.11.2 → 0.11.4
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-color.css +8 -5
- package/kol-components-atoms.css +26 -0
- package/package.json +1 -1
package/kol-color.css
CHANGED
|
@@ -105,13 +105,16 @@
|
|
|
105
105
|
* ============================================================================= */
|
|
106
106
|
|
|
107
107
|
/* =============================================================================
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* (
|
|
108
|
+
* LINK COLOR — OPT-IN, never global. The old bare `a { color }` rule painted
|
|
109
|
+
* every anchor in every consumer and out-ranked chrome on two axes: `a:hover`
|
|
110
|
+
* (0,1,1) beats any single utility class, and an unlayered theme import beats
|
|
111
|
+
* whole `layer(...)` chrome sheets regardless of specificity. Chrome owns its
|
|
112
|
+
* anchor colors; content links are `.kol-prose a` (inherit + underline).
|
|
113
|
+
* Blue is a choice: add `.kol-link` at the call site.
|
|
111
114
|
* ============================================================================= */
|
|
112
115
|
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
.kol-link { color: var(--kol-link); }
|
|
117
|
+
.kol-link:hover { color: var(--kol-link-hover); }
|
|
115
118
|
|
|
116
119
|
/* =============================================================================
|
|
117
120
|
* CONTEXT-AWARE SURFACE INVERSE
|
package/kol-components-atoms.css
CHANGED
|
@@ -297,6 +297,32 @@
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
/* Navigation (2026-07-28, user-ordered) — chrome for links that move between
|
|
301
|
+
* pages, not tool actions. SQUARE container: padding = the rung's vertical pad
|
|
302
|
+
* on all four sides (sm 24 / md 30 / lg 36 outer — the text-button height of
|
|
303
|
+
* the same rung, so mixed bars line up). Quiet states: rest dimmed, hover the
|
|
304
|
+
* ghost wash, and ACTIVE keys off aria-current="page" (NavLink sets it
|
|
305
|
+
* natively) — brighter glyph on a faint wash, never the pressed fill;
|
|
306
|
+
* navigation is location, not a toggled tool. */
|
|
307
|
+
.kol-btn-nav {
|
|
308
|
+
background: transparent;
|
|
309
|
+
color: var(--kol-oq-48);
|
|
310
|
+
border: 1px solid transparent;
|
|
311
|
+
}
|
|
312
|
+
@media (hover: hover) {
|
|
313
|
+
.kol-btn-nav:not(.kol-btn-animate):hover {
|
|
314
|
+
background-color: var(--kol-oq-04);
|
|
315
|
+
color: var(--kol-surface-on-primary);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
.kol-btn-nav[aria-current="page"] {
|
|
319
|
+
background-color: var(--kol-oq-08);
|
|
320
|
+
color: var(--kol-surface-on-primary);
|
|
321
|
+
}
|
|
322
|
+
.kol-btn-nav.kol-btn-sm { padding: 4px; }
|
|
323
|
+
.kol-btn-nav.kol-btn-md { padding: 6px; }
|
|
324
|
+
.kol-btn-nav.kol-btn-lg { padding: 8px; }
|
|
325
|
+
|
|
300
326
|
/* Grey (2026-07-15, user-ordered) — pill-subtle's visual weight as a real
|
|
301
327
|
* Button variant on the opaque tier: rest oq-12, hover/active one stop past
|
|
302
328
|
* each, same state math as the rest of the family. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-theme",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
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",
|