@kolkrabbi/kol-theme 0.132.1 → 0.133.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.
@@ -173,3 +173,40 @@
173
173
  --kol-shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.04);
174
174
  }
175
175
  }
176
+
177
+ /* =============================================================================
178
+ * TAILWIND CONTRACT — the widths and the z ladder as CLASSES
179
+ *
180
+ * THE LAW REQUIRED A CLASS THAT DID NOT EXIST (kol-client-olina 2026-09-03, off
181
+ * the brand app's full-consumption pass). Two of the six consumption checks say
182
+ * reach these tokens by class — check 2 flags `var(--kol-*)` in JSX, check 5
183
+ * flags a raw `z-[…]` — and the theme registered neither namespace, so the only
184
+ * way to use a content width or a z rung from JSX was
185
+ * `max-w-[var(--kol-content-measure)]` / `z-[var(--kol-z-modal)]`, which trip
186
+ * those very checks. Every consumer was hand-binding the same nine lines in its
187
+ * own `@theme` to get out of it; the brand app had done exactly that.
188
+ *
189
+ * Worse than verbose: SILENT. A `z-modal` written against an unregistered
190
+ * namespace emits nothing at all, which is how that app's skip link shipped
191
+ * with no fill and no stacking for a month (layout-skip-link, same pass).
192
+ *
193
+ * Tailwind v4 namespaces: `--container-*` generates `max-w-*` / `w-*` /
194
+ * `min-w-*`; `--z-index-*` generates `z-*`. The `--kol-*` tokens stay the source
195
+ * — these alias them, so there is one value and two ways to spell it, not two
196
+ * values. ============================================================== */
197
+ @theme {
198
+ --container-canvas: var(--kol-content-canvas);
199
+ --container-shell: var(--kol-content-shell);
200
+ --container-panel: var(--kol-content-panel);
201
+ --container-column: var(--kol-content-column);
202
+ --container-measure: var(--kol-content-measure);
203
+
204
+ --z-index-base: var(--kol-z-base);
205
+ --z-index-dropdown: var(--kol-z-dropdown);
206
+ --z-index-sticky: var(--kol-z-sticky);
207
+ --z-index-overlay: var(--kol-z-overlay);
208
+ --z-index-modal: var(--kol-z-modal);
209
+ --z-index-toast: var(--kol-z-toast);
210
+ --z-index-tooltip: var(--kol-z-tooltip);
211
+ --z-index-nav: var(--kol-z-nav);
212
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.132.1",
3
+ "version": "0.133.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",