@kolkrabbi/kol-theme 0.202.0 → 0.203.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.
@@ -1476,18 +1476,112 @@ a.kol-icon-frame {
1476
1476
  .kol-tabs-scroll > * { flex: none; min-width: 100%; }
1477
1477
 
1478
1478
  /* ═══════════════════════════════════════════════════════════════
1479
- * THE FLOATING STYLE — B (FloatingStyleAndSignInDemos, kol-fxr 2026-10-30, canvas Round 3). `variant="float"` — the
1480
- * house word for a look (user ruling 2026-10-30) — on Button, Input and the menu rows; A, today's square controls,
1481
- * stays the default. The composed float components (AppFloatNav, AccountForm's box, the signed-out Home's menu) pass it
1482
- * to their children, so a consumer never sets it by hand. Shape only — no layout, no breakpoint:
1483
- * a 44 control (44×44 icon-only) · an 18 radius (24 − the 6 inset) · a field on the page's ground inside the float box
1484
- * The box and the menu are 24 round on surface-secondary with a 6 inset — the menu's is `.kol-more-sheet-float`
1485
- * (kol-components-shell.css, beside the sheet).
1486
- * A full-round button (`radius="full"`) stays round.
1479
+ * THE FLOATING STYLE (FloatingStyleAndSignInDemos, kol-fxr 2026-10-30; values from round 3, accepted 2026-10-31 — W16,
1480
+ * https://claude.ai/artifact/VMiZCd6QZm5PRaWc4Yy4yF). `variant="float"` — the house word for a look — on Button, Input,
1481
+ * Tooltip, SegmentedToggle, TabsRow and the menu rows; today's square controls stay the default. Capsules: height and type
1482
+ * step together (`--kol-float-h-*` · `-t-*`, kol-design-tokens.css), one size up on `pointer: coarse`.
1483
+ * The composed float components (AppFloatNav, AccountForm's box, the signed-out Home's menu) pass it to their children.
1487
1484
  * ═══════════════════════════════════════════════════════════════ */
1488
- .kol-btn-float:not(.kol-btn-radius-full),
1489
- .kol-control--float { border-radius: 18px; }
1490
- .kol-btn-float:not(.kol-btn-icon):not(.kol-btn-xs):not(.kol-btn-sm),
1491
- .kol-control--float:not(.kol-control-xs):not(.kol-control-sm) { min-height: 44px; }
1492
- .kol-btn-float.kol-btn-icon:not(.kol-btn-xs):not(.kol-btn-sm):not(.kol-btn-radius-full) { width: 44px; height: 44px; }
1493
- .kol-control--float { padding-top: 0; padding-bottom: 0; background-color: var(--kol-surface-primary); }
1485
+ .kol-btn.kol-btn-float {
1486
+ height: var(--kol-float-h-md);
1487
+ padding: 0 calc(var(--kol-float-h-md) * 0.42);
1488
+ font-size: var(--kol-float-t-md);
1489
+ line-height: 1;
1490
+ gap: 8px;
1491
+ border-radius: 999px;
1492
+ }
1493
+ .kol-btn.kol-btn-float.kol-btn-sm { height: var(--kol-float-h-sm); padding: 0 calc(var(--kol-float-h-sm) * 0.42); font-size: var(--kol-float-t-sm); }
1494
+ .kol-btn.kol-btn-float.kol-btn-lg { height: var(--kol-float-h-lg); padding: 0 calc(var(--kol-float-h-lg) * 0.42); font-size: var(--kol-float-t-lg); }
1495
+ .kol-btn.kol-btn-float.kol-btn-icon { width: var(--kol-float-h-md); padding: 0; }
1496
+ .kol-btn.kol-btn-float.kol-btn-icon.kol-btn-sm { width: var(--kol-float-h-sm); }
1497
+ .kol-btn.kol-btn-float.kol-btn-icon.kol-btn-lg { width: var(--kol-float-h-lg); }
1498
+ .kol-btn.kol-btn-float svg { width: var(--kol-float-ic); height: var(--kol-float-ic); }
1499
+
1500
+ /* the field: a capsule on the float's well, 16 in; KOL fields keep no focus change */
1501
+ .kol-control.kol-control--float {
1502
+ height: var(--kol-float-h-md);
1503
+ padding: 0 16px;
1504
+ border-radius: 999px;
1505
+ border-color: transparent;
1506
+ background-color: var(--kol-float-well);
1507
+ font-size: var(--kol-float-t-md);
1508
+ }
1509
+ .kol-control.kol-control--float.kol-control-sm { height: var(--kol-float-h-sm); font-size: var(--kol-float-t-sm); }
1510
+ .kol-control.kol-control--float.kol-control-lg { height: var(--kol-float-h-lg); font-size: var(--kol-float-t-lg); }
1511
+ .kol-control.kol-control--float input { font-size: inherit; line-height: normal; height: auto; }
1512
+
1513
+ /* the float Tooltip: an inverted pill */
1514
+ .kol-tooltip.kol-tooltip-float {
1515
+ height: var(--kol-float-tip-h);
1516
+ padding: 0 10px;
1517
+ border: 0;
1518
+ border-radius: 999px;
1519
+ background: var(--kol-surface-on-primary);
1520
+ color: var(--kol-surface-primary);
1521
+ font-size: var(--kol-float-tip-t);
1522
+ }
1523
+
1524
+ /* the float SegmentedToggle: a capsule track 6 in, pills 4 apart, the selected one filled with the ink */
1525
+ .kol-seg.kol-seg--float {
1526
+ height: auto;
1527
+ gap: 4px;
1528
+ padding: var(--kol-float-inset);
1529
+ border: 0;
1530
+ border-radius: 999px;
1531
+ overflow: visible;
1532
+ }
1533
+ .kol-seg--float .kol-seg-cell {
1534
+ flex: none;
1535
+ height: var(--kol-float-h-md);
1536
+ padding: 0 calc(var(--kol-float-h-md) * 0.45);
1537
+ border-radius: 999px;
1538
+ background: transparent;
1539
+ color: var(--kol-oq-64);
1540
+ font-size: var(--kol-float-t-md);
1541
+ line-height: 1;
1542
+ }
1543
+ .kol-seg--float.kol-seg--sm .kol-seg-cell { height: var(--kol-float-h-sm); padding: 0 calc(var(--kol-float-h-sm) * 0.45); font-size: var(--kol-float-t-sm); }
1544
+ .kol-seg--float.kol-seg--lg .kol-seg-cell { height: var(--kol-float-h-lg); padding: 0 calc(var(--kol-float-h-lg) * 0.45); font-size: var(--kol-float-t-lg); }
1545
+ .kol-seg--float .kol-seg-cell + .kol-seg-cell { border-left: 0; }
1546
+ .kol-seg--float .kol-seg-cell.is-active { background: var(--kol-surface-on-primary); color: var(--kol-surface-primary); }
1547
+
1548
+ /* the float TabsRow: pills 4 apart, the selected one oq-16 */
1549
+ .kol-tabs-float .kol-btn.kol-btn-float { padding: 0 calc(var(--kol-float-h-md) * 0.45); background: transparent; color: var(--kol-oq-64); }
1550
+ .kol-tabs-float .kol-btn.kol-btn-float.kol-btn-pressed { background: var(--kol-oq-16); color: var(--kol-fg-emphasis); }
1551
+
1552
+ /* ─── THE SURFACE (`surface="solid|glass-dark|glass-light"`) — what a float is made of. `-m` marks a menu or a box (the
1553
+ * medium blur and shadow); a bar, a button or a track is small. Solid is surface-secondary lifted by the float shadow.
1554
+ * glass-dark is a dark material in either theme, so the component stamps `.dark` beside it and what sits on it takes
1555
+ * dark-theme ink. Reduced transparency → solid. No border: the rim is the glass's own edge. Each class is doubled (the
1556
+ * `.kol-menu-btn.kol-menu-btn` idiom) so it outranks the ground a later file gives its host (`.kol-more-sheet`). ─── */
1557
+ .kol-float-solid.kol-float-solid { background: var(--kol-surface-secondary); box-shadow: var(--kol-shadow-float); }
1558
+ .kol-float-glass-dark.kol-float-glass-dark {
1559
+ --kol-glass-fill: var(--kol-glass-dark-fill);
1560
+ --kol-glass-blur: var(--kol-glass-dark-blur-s);
1561
+ --kol-glass-rim: var(--kol-glass-dark-rim);
1562
+ --kol-glass-shadow: var(--kol-glass-dark-shadow-s);
1563
+ }
1564
+ .kol-float-glass-dark.kol-float-glass-dark.kol-float-m { --kol-glass-blur: var(--kol-glass-dark-blur-m); --kol-glass-shadow: var(--kol-glass-dark-shadow-m); }
1565
+ .kol-float-glass-light.kol-float-glass-light {
1566
+ --kol-glass-fill: var(--kol-glass-light-fill);
1567
+ --kol-glass-blur: var(--kol-glass-light-blur-s);
1568
+ --kol-glass-rim: var(--kol-glass-light-rim);
1569
+ --kol-glass-shadow: var(--kol-glass-light-shadow-s);
1570
+ }
1571
+ .kol-float-glass-light.kol-float-glass-light.kol-float-m { --kol-glass-blur: var(--kol-glass-light-blur-m); --kol-glass-shadow: var(--kol-glass-light-shadow-m); }
1572
+ .kol-float-glass-dark.kol-float-glass-dark,
1573
+ .kol-float-glass-light.kol-float-glass-light {
1574
+ background: var(--kol-glass-fill);
1575
+ -webkit-backdrop-filter: blur(var(--kol-glass-blur)) saturate(1.8);
1576
+ backdrop-filter: blur(var(--kol-glass-blur)) saturate(1.8);
1577
+ box-shadow: var(--kol-glass-rim), var(--kol-glass-shadow);
1578
+ color: var(--kol-fg-emphasis);
1579
+ }
1580
+ @media (prefers-reduced-transparency: reduce) {
1581
+ .kol-float-glass-dark.kol-float-glass-dark,
1582
+ .kol-float-glass-light.kol-float-glass-light {
1583
+ background: var(--kol-surface-secondary);
1584
+ -webkit-backdrop-filter: none;
1585
+ backdrop-filter: none;
1586
+ }
1587
+ }
@@ -256,9 +256,15 @@
256
256
  /* NO BORDER BY DEFAULT (FloatingStyleAndSignInDemos, kol-fxr 2026-10-30 — the Round 3 board's menus have none); the
257
257
  * hairline is opt-in, the `menuBorder` prop of AppFloatNav and TransportPill */
258
258
  .kol-more-sheet-bordered { border: 1px solid var(--kol-oq-08); }
259
- /* THE FLOAT MENU (style B, `variant="float"` — kol-components-atoms.css): the 6 inset, rows flush, each row 14 in */
260
- .kol-more-sheet-float { padding: 6px; gap: 0; }
261
- .kol-more-sheet-float .kol-btn-float { padding-left: 14px; padding-right: 14px; }
259
+ /* THE FLOAT MENU (`variant="float"` — kol-components-atoms.css; round 3, W16 2026-10-31): r 26 (30 on touch), a 6 inset,
260
+ * pill rows 40 (48) tall, 12 in, the glyph 10 (12) off the label, the lit row oq-16. Its surface is `.kol-float-*` + `-m` */
261
+ .kol-more-sheet.kol-more-sheet-float { padding: var(--kol-float-inset); gap: 0; border-radius: var(--kol-float-menu-r); }
262
+ .kol-more-sheet-float .kol-btn.kol-btn-float.kol-btn-lg {
263
+ height: var(--kol-float-row);
264
+ padding: 0 12px;
265
+ gap: var(--kol-float-gap-ic);
266
+ }
267
+ .kol-more-sheet-float .kol-btn.kol-btn-float[aria-current="page"] { background: var(--kol-oq-16); color: var(--kol-fg-emphasis); }
262
268
  .kol-phone-nav-more {
263
269
  position: fixed;
264
270
  left: 12px;
@@ -155,6 +155,42 @@
155
155
  * an elevation ramp, so it has no dark mirror below */
156
156
  --kol-shadow-float: 0 8px 24px -8px rgba(0, 0, 0, 0.4), 0 2px 6px -2px rgba(0, 0, 0, 0.3);
157
157
 
158
+ /* THE TWO GLASSES (W16, round 3 — https://claude.ai/artifact/VMiZCd6QZm5PRaWc4Yy4yF, accepted 2026-10-31: *"both glass
159
+ * styles"*). Materials, not theme tiers: either one in either theme (his ruling 2026-10-30). `s` is a bar, a button, a
160
+ * track; `m` a menu or a box. Worn through `.kol-float-glass-dark` / `-light` (kol-components-atoms.css), never inline.
161
+ * glass-dark is Apple's dark recipe (iOS 27 kit); glass-light is round 1's light tint. */
162
+ --kol-glass-dark-fill: rgb(26 26 26 / 0.62);
163
+ --kol-glass-dark-blur-s: 6px;
164
+ --kol-glass-dark-blur-m: 16px;
165
+ --kol-glass-dark-rim: inset 0 0 0 0.5px rgb(255 255 255 / 0.2), inset 1.25px 1px 0 -0.75px rgb(255 255 255 / 0.3), inset 0 -10px 10px -10px rgb(0 0 0 / 0.3);
166
+ --kol-glass-dark-shadow-s: 0 8px 15px rgb(0 0 0 / 0.04);
167
+ --kol-glass-dark-shadow-m: 0 8px 48px rgb(0 0 0 / 0.45);
168
+ --kol-glass-light-fill: rgb(236 236 232 / 0.1);
169
+ --kol-glass-light-blur-s: 6px;
170
+ --kol-glass-light-blur-m: 6px;
171
+ --kol-glass-light-rim: inset 0 0 0 0.5px rgb(255 255 255 / 0.22), inset 1.25px 1px 0 -0.75px rgb(255 255 255 / 0.35), inset -1.25px -1px 0 -0.75px rgb(255 255 255 / 0.18), inset 0 -10px 10px -10px rgb(0 0 0 / 0.25);
172
+ --kol-glass-light-shadow-s: 0 8px 15px rgb(0 0 0 / 0.04);
173
+ --kol-glass-light-shadow-m: 0 8px 15px rgb(0 0 0 / 0.04);
174
+
175
+ /* THE FLOAT SIZES (W16, round 3): height and type step together; the touch row is below (`pointer: coarse`).
176
+ * h · t = Button / Input / SegmentedToggle / TabsRow `variant="float"` per size · ic its glyph · row the menu row ·
177
+ * menu-r the menu's round, inset its pad · tip the float Tooltip */
178
+ --kol-float-h-sm: 28px;
179
+ --kol-float-h-md: 36px;
180
+ --kol-float-h-lg: 44px;
181
+ --kol-float-t-sm: 12px;
182
+ --kol-float-t-md: 13px;
183
+ --kol-float-t-lg: 14px;
184
+ --kol-float-ic: 18px;
185
+ --kol-float-row: 40px;
186
+ --kol-float-gap-ic: 10px;
187
+ --kol-float-menu-r: 26px;
188
+ --kol-float-inset: 6px;
189
+ --kol-float-tip-h: 24px;
190
+ --kol-float-tip-t: 11px;
191
+ /* the field's well, on whatever float holds it — the light tier; dark below */
192
+ --kol-float-well: rgb(0 0 0 / 0.06);
193
+
158
194
  /* Transitions (consistent timing) */
159
195
  --kol-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
160
196
  --kol-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -186,6 +222,28 @@
186
222
  --kol-shadow-lg: 0 10px 15px rgba(255, 255, 255, 0.08);
187
223
  --kol-shadow-xl: 0 20px 25px rgba(255, 255, 255, 0.1);
188
224
  --kol-shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.04);
225
+ --kol-float-well: rgb(0 0 0 / 0.35);
226
+ }
227
+ /* a light subtree inside a dark page keeps the light well */
228
+ [data-theme="light"],
229
+ .light { --kol-float-well: rgb(0 0 0 / 0.06); }
230
+
231
+ /* THE FLOAT ON TOUCH (W16, round 3) — a finger gets the next height up and a step of type */
232
+ @media (pointer: coarse) {
233
+ :root {
234
+ --kol-float-h-sm: 36px;
235
+ --kol-float-h-md: 44px;
236
+ --kol-float-h-lg: 52px;
237
+ --kol-float-t-sm: 13px;
238
+ --kol-float-t-md: 15px;
239
+ --kol-float-t-lg: 16px;
240
+ --kol-float-ic: 20px;
241
+ --kol-float-row: 48px;
242
+ --kol-float-gap-ic: 12px;
243
+ --kol-float-menu-r: 30px;
244
+ --kol-float-tip-h: 28px;
245
+ --kol-float-tip-t: 12px;
246
+ }
189
247
  }
190
248
 
191
249
  /* the overlay inset steps up with the chrome inset (--kol-pad-overlay, above) */
@@ -202,6 +260,7 @@
202
260
  --kol-shadow-lg: 0 10px 15px rgba(255, 255, 255, 0.08);
203
261
  --kol-shadow-xl: 0 20px 25px rgba(255, 255, 255, 0.1);
204
262
  --kol-shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.04);
263
+ --kol-float-well: rgb(0 0 0 / 0.35);
205
264
  }
206
265
  }
207
266
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.202.0",
3
+ "version": "0.203.0",
4
4
  "description": "Tokens and base CSS",
5
5
  "license": "MIT",
6
6
  "type": "module",