@kolkrabbi/kol-theme 0.210.4 → 0.211.1
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-components-atoms.css +63 -1
- package/kol-components-molecules.css +74 -0
- package/kol-components-shell.css +20 -1
- package/kol-design-tokens.css +10 -2
- package/kol-theme.css +1 -0
- package/kol-type-float-classes.css +36 -0
- package/kol-typography.css +1 -0
- package/package.json +1 -1
package/kol-components-atoms.css
CHANGED
|
@@ -1488,11 +1488,22 @@ a.kol-icon-frame {
|
|
|
1488
1488
|
.kol-btn.kol-btn-float {
|
|
1489
1489
|
height: var(--kol-float-h-md);
|
|
1490
1490
|
padding: 0 calc(var(--kol-float-h-md) * 0.42);
|
|
1491
|
+
font-family: var(--kol-font-family-float);
|
|
1491
1492
|
font-size: var(--kol-float-t-md);
|
|
1493
|
+
font-weight: 500;
|
|
1492
1494
|
line-height: 1;
|
|
1493
1495
|
gap: 8px;
|
|
1494
1496
|
border-radius: 999px;
|
|
1495
1497
|
}
|
|
1498
|
+
/* FLOAT STATES (float-everything W0.2 · W0.7, 2026-11-04): the ground follows the tone as before; focus is a 2px ring of
|
|
1499
|
+
* the ink, disabled is 40%. One ladder for every float control. */
|
|
1500
|
+
.kol-btn.kol-btn-float:focus-visible,
|
|
1501
|
+
.kol-control.kol-control--float:focus-within,
|
|
1502
|
+
.kol-seg--float .kol-seg-cell:focus-visible,
|
|
1503
|
+
.kol-tabs-float .kol-btn.kol-btn-float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
1504
|
+
.kol-btn.kol-btn-float:disabled,
|
|
1505
|
+
.kol-btn.kol-btn-float[aria-disabled="true"],
|
|
1506
|
+
.kol-control.kol-control--float:has(input:disabled) { opacity: 0.4; }
|
|
1496
1507
|
.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); }
|
|
1497
1508
|
.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); }
|
|
1498
1509
|
.kol-btn.kol-btn-float.kol-btn-icon { width: var(--kol-float-h-md); padding: 0; }
|
|
@@ -1507,7 +1518,9 @@ a.kol-icon-frame {
|
|
|
1507
1518
|
border-radius: 999px;
|
|
1508
1519
|
border-color: transparent;
|
|
1509
1520
|
background-color: var(--kol-float-well);
|
|
1521
|
+
font-family: var(--kol-font-family-float);
|
|
1510
1522
|
font-size: var(--kol-float-t-md);
|
|
1523
|
+
font-weight: 500; /* W0.6: every float control at 500 — the shell had the family and size, not the weight (W3 row 36, 2026-11-04) */
|
|
1511
1524
|
}
|
|
1512
1525
|
.kol-control.kol-control--float.kol-control-sm { height: var(--kol-float-h-sm); font-size: var(--kol-float-t-sm); }
|
|
1513
1526
|
.kol-control.kol-control--float.kol-control-lg { height: var(--kol-float-h-lg); font-size: var(--kol-float-t-lg); }
|
|
@@ -1521,6 +1534,7 @@ a.kol-icon-frame {
|
|
|
1521
1534
|
border-radius: 999px;
|
|
1522
1535
|
background: var(--kol-surface-on-primary);
|
|
1523
1536
|
color: var(--kol-surface-primary);
|
|
1537
|
+
font-family: var(--kol-font-family-float);
|
|
1524
1538
|
font-size: var(--kol-float-tip-t);
|
|
1525
1539
|
}
|
|
1526
1540
|
|
|
@@ -1540,6 +1554,7 @@ a.kol-icon-frame {
|
|
|
1540
1554
|
border-radius: 999px;
|
|
1541
1555
|
background: transparent;
|
|
1542
1556
|
color: var(--kol-oq-64);
|
|
1557
|
+
font-family: var(--kol-font-family-float);
|
|
1543
1558
|
font-size: var(--kol-float-t-md);
|
|
1544
1559
|
line-height: 1;
|
|
1545
1560
|
}
|
|
@@ -1550,7 +1565,54 @@ a.kol-icon-frame {
|
|
|
1550
1565
|
|
|
1551
1566
|
/* the float TabsRow: pills 4 apart, the selected one oq-16 */
|
|
1552
1567
|
.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); }
|
|
1553
|
-
.kol-tabs-float .kol-btn.kol-btn-float.kol-btn-pressed { background: var(--kol-
|
|
1568
|
+
.kol-tabs-float .kol-btn.kol-btn-float.kol-btn-pressed { background: var(--kol-fg-16); color: var(--kol-fg-emphasis); } /* fg-16, not oq-16: selection on a float is translucent so glass shows through (W0.3, 2026-11-04) */
|
|
1569
|
+
|
|
1570
|
+
/* ─── FLOAT CONTROLS (float-everything W2 · W3, 2026-11-04 — the gap map's rows 6–45, kol-float--style). The roles are
|
|
1571
|
+
* tones (W0.5): primary `inverted` · secondary `secondary` · quiet `ghost` · destructive `danger`; hover and pressed are
|
|
1572
|
+
* each tone's own rungs, so no state is restated here. Everything below is a shape the exploration has and KOL's
|
|
1573
|
+
* default look did not: the cap inside a button, the switch, the checkbox, the slider, the note field, a segment's count. ─── */
|
|
1574
|
+
/* the key cap inside a float button (row 12): the cap takes the button's own ink, so it reads on the inverted fill too */
|
|
1575
|
+
.kol-btn.kol-btn-float .kol-btn-kbd { margin-left: 8px; background: color-mix(in srgb, currentColor 14%, transparent); color: currentColor; opacity: 0.8; }
|
|
1576
|
+
/* the switch (row 21): a 32 × 20 track, a 14 thumb 3 in; off oq-16 / oq-64, on fg-64 / the emphasis ink; Inter beside it */
|
|
1577
|
+
.toggle-switch.toggle-switch--float { gap: 12px; font-family: var(--kol-font-family-float); font-size: var(--kol-float-t-md); font-weight: 500; letter-spacing: normal; }
|
|
1578
|
+
.toggle-switch--float::before { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 24px; translate: 0 -50%; } /* the touch floor, as bare */
|
|
1579
|
+
.toggle-switch--float .toggle-switch-indicator { width: 32px; height: 20px; background-color: var(--kol-oq-16); }
|
|
1580
|
+
.toggle-switch--float .toggle-switch-indicator::after { width: 14px; height: 14px; top: 3px; left: 3px; background-color: var(--kol-oq-64); }
|
|
1581
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator { background-color: var(--kol-fg-64); }
|
|
1582
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator::after { transform: translateX(12px); background-color: var(--kol-fg-emphasis); }
|
|
1583
|
+
.toggle-switch--float:focus-visible { outline: none; } /* the ring sits on the track, not the whole row */
|
|
1584
|
+
.toggle-switch--float:focus-visible .toggle-switch-indicator { box-shadow: var(--kol-float-focus); }
|
|
1585
|
+
.toggle-switch--float:disabled { opacity: 0.4; }
|
|
1586
|
+
/* the checkbox (row 22): an 18 plate, no hairline; checked is the bare check glyph on nothing */
|
|
1587
|
+
.toggle-checkbox.toggle-checkbox--float { gap: 10px; }
|
|
1588
|
+
.toggle-checkbox--float .toggle-checkbox-indicator { width: 18px; height: 18px; border-radius: 5px; border: 0; background-color: var(--kol-oq-08); }
|
|
1589
|
+
.toggle-checkbox--float .toggle-checkbox-indicator svg { width: 12px; height: 9px; stroke: var(--kol-fg-emphasis); }
|
|
1590
|
+
.toggle-checkbox--float.is-active .toggle-checkbox-indicator { background-color: transparent; }
|
|
1591
|
+
.toggle-checkbox--float:has(input:focus-visible) .toggle-checkbox-indicator { box-shadow: var(--kol-float-focus); }
|
|
1592
|
+
.toggle-checkbox--float:has(input:disabled) { opacity: 0.4; }
|
|
1593
|
+
/* the slider (row 23): a 3px capsule track, the run fg-64 up to the thumb (`--kol-slider-pct`, set by Slider), a 12 thumb */
|
|
1594
|
+
.kol-slider-float {
|
|
1595
|
+
-webkit-appearance: none; appearance: none;
|
|
1596
|
+
background: transparent; cursor: pointer; height: 24px; touch-action: pan-y;
|
|
1597
|
+
}
|
|
1598
|
+
.kol-slider-float::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: linear-gradient(var(--kol-fg-64), var(--kol-fg-64)) 0 0 / var(--kol-slider-pct, 0%) 100% no-repeat, var(--kol-oq-16); }
|
|
1599
|
+
.kol-slider-float::-moz-range-track { height: 3px; border-radius: 999px; background: var(--kol-oq-16); }
|
|
1600
|
+
.kol-slider-float::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--kol-fg-64); }
|
|
1601
|
+
.kol-slider-float::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; margin-top: -4.5px; background: var(--kol-fg-emphasis); }
|
|
1602
|
+
.kol-slider-float::-moz-range-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--kol-fg-emphasis); }
|
|
1603
|
+
.kol-slider-float:focus-visible { outline: none; }
|
|
1604
|
+
.kol-slider-float:focus-visible::-webkit-slider-thumb { box-shadow: var(--kol-float-focus); }
|
|
1605
|
+
.kol-slider-float:disabled { opacity: 0.4; cursor: default; }
|
|
1606
|
+
/* the note field (row 42): the float well on the sheet radius, the type 16 in */
|
|
1607
|
+
.kol-control.kol-control--float.kol-control--textarea { height: auto; padding: 0; border-radius: var(--kol-float-menu-r); }
|
|
1608
|
+
.kol-control.kol-control--float.kol-control--textarea > textarea { padding: 12px 16px; font-family: var(--kol-font-family-float); font-size: var(--kol-float-t-md); font-weight: 500; line-height: 1.4; }
|
|
1609
|
+
/* the field's error (row 36): the mark inside takes the error ink; the message under it is the hint role */
|
|
1610
|
+
.kol-control.kol-control--float .kol-control-error { color: var(--ui-error); }
|
|
1611
|
+
/* a segment's count (row 26): mono, one step down, 12 after the label; on the lit cell it takes the cell's ink */
|
|
1612
|
+
.kol-seg--float .kol-seg-count { margin-left: 12px; font-family: var(--kol-font-family-mono); font-size: 11px; font-weight: 400; color: var(--kol-oq-64); }
|
|
1613
|
+
.kol-seg--float .kol-seg-cell.is-active .kol-seg-count { color: currentColor; opacity: 0.64; }
|
|
1614
|
+
/* the pagination / view circles (row 35): `ViewToggle variant="float"` — 32 rounds, the lit one fg-16 */
|
|
1615
|
+
.kol-view-toggle--float button:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
1554
1616
|
|
|
1555
1617
|
/* ─── THE SURFACE (`surface="solid|glass-dark|glass-light"`) — what a float is made of. `-m` marks a menu or a box (the
|
|
1556
1618
|
* medium blur and shadow); a bar, a button or a track is small. Solid is surface-secondary lifted by the float shadow.
|
|
@@ -2630,3 +2630,77 @@ article[role="button"]:focus-visible {
|
|
|
2630
2630
|
background-color: var(--kol-fg-02);
|
|
2631
2631
|
border-radius: var(--kol-radius-sm);
|
|
2632
2632
|
}
|
|
2633
|
+
|
|
2634
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
2635
|
+
* THE FLOAT CHIPS AND MENUS (float-everything W2 · W4, 2026-11-04 — the gap map's rows 17–20 and 46–60, kol-float--style).
|
|
2636
|
+
* `variant="float"` on Tag, Pill, Badge, the Menu family, Dropdown and ContentFilters; today's defaults are untouched.
|
|
2637
|
+
* Capsules in Inter 500; selection is `--kol-fg-16` (W0.3), the focus ring `--kol-float-focus` (W0.2), disabled 40% (W0.7).
|
|
2638
|
+
* A menu list rounds on `--kol-float-list-r` (8), the More sheet on `--kol-float-menu-r` (20); rows are 34, 12 in.
|
|
2639
|
+
* Doubled classes outrank the size class each component also stamps (`.kol-tag--sm`, `.pill-sm`, `.kol-badge-md`).
|
|
2640
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
2641
|
+
/* Tag (row 17): a 26 capsule 10 in, rest oq-04 / fg-64, hover oq-08, selected fg-16 / emphasis; no uppercase — the label is Inter */
|
|
2642
|
+
.kol-tag.kol-tag--float {
|
|
2643
|
+
height: 26px; padding: 0 10px; gap: 7px; border-radius: 999px; border-color: transparent;
|
|
2644
|
+
background-color: var(--kol-oq-04); color: var(--kol-fg-64);
|
|
2645
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none;
|
|
2646
|
+
}
|
|
2647
|
+
.kol-tag.kol-tag--float.kol-tag--md { height: 30px; padding: 0 14px; font-size: 12px; } /* the filter bar's chip (row 56) */
|
|
2648
|
+
.kol-tag.kol-tag--float:hover { background-color: var(--kol-oq-08); color: var(--kol-fg-emphasis); }
|
|
2649
|
+
.kol-tag.kol-tag--float.is-active { background-color: var(--kol-fg-16); color: var(--kol-fg-emphasis); border-color: transparent; }
|
|
2650
|
+
.kol-tag.kol-tag--float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2651
|
+
.kol-tag--float .kol-tag-count { font-family: var(--kol-font-family-mono); font-size: 10px; font-weight: 400; color: var(--kol-fg-64); }
|
|
2652
|
+
.kol-tag--float .kol-tag-dismiss { color: var(--kol-oq-64); }
|
|
2653
|
+
/* Pill (row 20): a 28 capsule with a value, oq-16 / emphasis */
|
|
2654
|
+
.pill-float.pill-float {
|
|
2655
|
+
display: inline-flex; align-items: center; height: 28px; padding: 0 16px; border-radius: 999px; border: 0;
|
|
2656
|
+
background-color: var(--kol-oq-16); color: var(--kol-fg-emphasis);
|
|
2657
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: normal;
|
|
2658
|
+
}
|
|
2659
|
+
/* Badge (row 18): the count capsule, 26, oq-16 / emphasis */
|
|
2660
|
+
.kol-badge.kol-badge-float {
|
|
2661
|
+
height: 26px; padding: 0 10px; border-radius: 999px; border: 0;
|
|
2662
|
+
background-color: var(--kol-oq-16); color: var(--kol-fg-emphasis);
|
|
2663
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1;
|
|
2664
|
+
}
|
|
2665
|
+
/* the Menu panel (rows 46–55): a list on the list radius, 4 in; the More sheet (`--sheet`) on the menu radius, 6 in.
|
|
2666
|
+
* Solid: the float surface (surface-secondary lifted by the float shadow) unless a tone rode in from the trigger. */
|
|
2667
|
+
.kol-menu-panel.kol-menu-panel--float {
|
|
2668
|
+
border-radius: var(--kol-float-list-r); padding: 4px;
|
|
2669
|
+
background-color: var(--kol-tone-panel-bg, var(--kol-surface-secondary)); box-shadow: var(--kol-shadow-float);
|
|
2670
|
+
font-family: var(--kol-font-family-float);
|
|
2671
|
+
}
|
|
2672
|
+
.kol-menu-panel.kol-menu-panel--float.kol-menu-panel--sheet { border-radius: var(--kol-float-menu-r); padding: var(--kol-float-inset); }
|
|
2673
|
+
/* the row: 34 tall, 12 in, radius 6, Inter 12 at fg-88; hovered, current or opened it lifts on fg-16 */
|
|
2674
|
+
.kol-menu-panel--float .kol-menu-row {
|
|
2675
|
+
height: 34px; padding-inline: 12px; border-radius: 6px; gap: 8px; color: var(--kol-fg-88);
|
|
2676
|
+
font-family: var(--kol-font-family-float); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none;
|
|
2677
|
+
}
|
|
2678
|
+
.kol-menu-panel--float .kol-menu-row:hover,
|
|
2679
|
+
.kol-menu-panel--float .kol-menu-row--current,
|
|
2680
|
+
.kol-menu-panel--float .kol-menu-row[aria-expanded="true"] { background-color: var(--kol-fg-16); color: var(--kol-fg-emphasis); }
|
|
2681
|
+
.kol-menu-panel--float .kol-menu-row:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2682
|
+
.kol-menu-panel--float .kol-menu-row:disabled { opacity: 0.4; }
|
|
2683
|
+
/* the destructive row (row 50): `MenuRow tone="danger"` — the error ink, the same lift */
|
|
2684
|
+
.kol-menu-panel .kol-menu-row.kol-menu-row--danger { color: var(--ui-error); }
|
|
2685
|
+
/* a rule runs through the panel's inset (row 51); the section label is the float label role (row 52) */
|
|
2686
|
+
.kol-menu-panel--float .kol-menu-rule { border-color: var(--kol-oq-08); margin: 4px -4px; }
|
|
2687
|
+
.kol-menu-panel--float.kol-menu-panel--sheet .kol-menu-rule { margin: 4px calc(var(--kol-float-inset) * -1); }
|
|
2688
|
+
.kol-menu-panel--float .kol-menu-label { padding: 8px 12px 4px; font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; color: var(--kol-fg-64); }
|
|
2689
|
+
.kol-menu-panel--float .kol-menu-kbd { border-color: var(--kol-oq-16); color: var(--kol-oq-64); }
|
|
2690
|
+
/* the fused list under a float select (row 54): detached 8 under the capsule, all four corners on the list radius, no hairline */
|
|
2691
|
+
.kol-menu-panel.kol-menu-panel--fused.kol-menu-panel--float { border-radius: var(--kol-float-list-r); padding: 0; }
|
|
2692
|
+
.kol-menu-panel--float .kol-dd-div { display: none; }
|
|
2693
|
+
.kol-menu-panel--float .kol-dd-list { padding: 4px; }
|
|
2694
|
+
/* the float select trigger (row 25): a capsule on the float well, the float heights (the trigger's own rung rules outrank
|
|
2695
|
+
* `.kol-btn-float`'s, so each height is restated), round while open */
|
|
2696
|
+
:where(.kol-dd-trigger--float) { --kol-tone-bg: var(--kol-float-well); --kol-tone-fg: var(--kol-surface-on-primary); --kol-tone-panel-bg: var(--kol-surface-secondary); }
|
|
2697
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-sm { height: var(--kol-float-h-sm); }
|
|
2698
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-md { height: var(--kol-float-h-md); }
|
|
2699
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-lg { height: var(--kol-float-h-lg); }
|
|
2700
|
+
.kol-dd-trigger.kol-dd-trigger--float.kol-dd-trigger--open { border-radius: 999px; }
|
|
2701
|
+
.kol-dd-trigger.kol-dd-trigger--float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2702
|
+
/* the float menu trigger (rows 33 · 59): a capsule on the well; the date chip's value is mono */
|
|
2703
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float { --kol-tone-bg: var(--kol-float-well); --kol-tone-fg: var(--kol-surface-on-primary); --kol-tone-pressed-bg: var(--kol-fg-16); --kol-tone-pressed-fg: var(--kol-fg-emphasis); }
|
|
2704
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float.kol-menu-trigger--mono { font-family: var(--kol-font-family-mono); font-weight: 400; }
|
|
2705
|
+
/* the open trigger keeps its lift under the pointer (the tab's rule): the press that opened it leaves the pointer there */
|
|
2706
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float.kol-btn-pressed:not(.kol-dd-trigger):hover { background-color: var(--kol-tone-pressed-bg); color: var(--kol-tone-pressed-fg); }
|
package/kol-components-shell.css
CHANGED
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
/* the open rail is the rail width — 380, the same as a side rail (his ruling 2026-10-25: *"navrail expanded also gets the
|
|
25
25
|
same width as we just set"*); it ramped 264 · 320 from 1536 until then */
|
|
26
26
|
--kol-shell-rail-open: 380px;
|
|
27
|
+
/* THE FLOAT RAIL'S FOOTPRINTS (float-everything W9 row 144, 2026-11-04 — the exploration's `Navigation layout
|
|
28
|
+
* footprints`): expanded 280 · rail 72 · hidden 0, beside the app rail's 48 / 380 above and the site rail's 240
|
|
29
|
+
* (kol-framework `--kol-sidenav-w`). Pinned states reflow the content; overlays (RailTrigger's card, RailFlyout) never. */
|
|
30
|
+
--kol-shell-float-rail-open: 280px;
|
|
31
|
+
--kol-shell-float-rail-width: 72px;
|
|
32
|
+
--kol-shell-float-rail-hidden: 0px;
|
|
27
33
|
/* Page gutter — PageShell's padding and PageBleed's negative margin.
|
|
28
34
|
* ONE LADDER FOR THE ESTATE (two-page-scaffolds-one-job, kol-client-olina
|
|
29
35
|
* 2026-09-03): this is `--kol-pad-section-x`, the page-content ladder every
|
|
@@ -264,7 +270,7 @@
|
|
|
264
270
|
padding: 0 12px;
|
|
265
271
|
gap: var(--kol-float-gap-ic);
|
|
266
272
|
}
|
|
267
|
-
.kol-more-sheet-float .kol-btn.kol-btn-float[aria-current="page"] { background: var(--kol-
|
|
273
|
+
.kol-more-sheet-float .kol-btn.kol-btn-float[aria-current="page"] { background: var(--kol-fg-16); color: var(--kol-fg-emphasis); } /* fg-16, not oq-16 (float-everything W0.3, 2026-11-04) */
|
|
268
274
|
.kol-phone-nav-more {
|
|
269
275
|
position: fixed;
|
|
270
276
|
left: 12px;
|
|
@@ -308,6 +314,19 @@
|
|
|
308
314
|
}
|
|
309
315
|
}
|
|
310
316
|
|
|
317
|
+
/* ── THE FLOAT CHROME (float-everything W5 · W9, 2026-11-04) — kol-shell's ToolRail, PropertyRail, DocumentCapsule,
|
|
318
|
+
TopControlsBar, ReaderBar, ProgressDock, RailTrigger, RailFlyout, RailDisplayControls, PeriodNav: every control on them
|
|
319
|
+
is a kol-component float Button; what Tailwind cannot say is here. The lit slot is the float selection (`--kol-fg-16`,
|
|
320
|
+
W0.3), the More sheet's rule. ── */
|
|
321
|
+
.kol-float-chrome .kol-btn.kol-btn-float.kol-btn-pressed,
|
|
322
|
+
.kol-float-chrome .kol-btn.kol-btn-float[aria-current="page"] { background: var(--kol-fg-16); color: var(--kol-fg-emphasis); }
|
|
323
|
+
/* ToolRail: the slot is the float row (40, 48 on touch), not the 36 icon button */
|
|
324
|
+
.kol-tool-rail .kol-btn.kol-btn-float.kol-btn-icon { width: var(--kol-float-row); height: var(--kol-float-row); }
|
|
325
|
+
/* RailFlyout: 34 rows on the list round, 12 in, the glyph 12 off the label */
|
|
326
|
+
.kol-rail-flyout .kol-btn.kol-btn-float { height: 34px; padding: 0 12px; gap: 12px; border-radius: var(--kol-float-list-r); font-size: var(--kol-float-t-sm); }
|
|
327
|
+
/* the float Slider's track fills a dock's column */
|
|
328
|
+
.kol-progress-dock .kol-slider-float { width: 100%; }
|
|
329
|
+
|
|
311
330
|
/* ── StudioDetail — the preview's hover veil (kol-shell 0.78.0, 2026-10-24): "Click to expand" over the image on hover
|
|
312
331
|
only; the overlay itself is opacity 0 inline, so a touch device never sees it until a tap opens the full view ── */
|
|
313
332
|
.kol-detail-preview:hover .kol-detail-preview-overlay { opacity: 1; }
|
package/kol-design-tokens.css
CHANGED
|
@@ -184,10 +184,16 @@
|
|
|
184
184
|
--kol-float-ic: 18px;
|
|
185
185
|
--kol-float-row: 40px;
|
|
186
186
|
--kol-float-gap-ic: 10px;
|
|
187
|
-
--kol-float-menu-r:
|
|
187
|
+
--kol-float-menu-r: 20px;
|
|
188
|
+
--kol-float-list-r: 8px;
|
|
189
|
+
--kol-float-window-r: 28px;
|
|
188
190
|
--kol-float-inset: 6px;
|
|
189
191
|
--kol-float-tip-h: 24px;
|
|
190
192
|
--kol-float-tip-t: 11px;
|
|
193
|
+
/* THE FLOAT RADII (float-everything W0.1, 2026-11-04, from the exploration's own scale): a bare list 8 · a sheet or
|
|
194
|
+
* panel 20 (the More sheet, inspector, cards) · a window 28 · a control is a pill. menu-r was 26 (round 3). */
|
|
195
|
+
/* THE FLOAT FOCUS RING (W0.2): 2px of the ink, on every float control's :focus-visible. Round 3 had none. */
|
|
196
|
+
--kol-float-focus: 0 0 0 2px var(--kol-surface-on-primary);
|
|
191
197
|
/* the field's well, on whatever float holds it — the light tier; dark below */
|
|
192
198
|
--kol-float-well: rgb(0 0 0 / 0.06);
|
|
193
199
|
|
|
@@ -240,7 +246,9 @@
|
|
|
240
246
|
--kol-float-ic: 20px;
|
|
241
247
|
--kol-float-row: 48px;
|
|
242
248
|
--kol-float-gap-ic: 12px;
|
|
243
|
-
--kol-float-menu-r:
|
|
249
|
+
--kol-float-menu-r: 24px;
|
|
250
|
+
--kol-float-list-r: 10px;
|
|
251
|
+
--kol-float-window-r: 32px;
|
|
244
252
|
--kol-float-tip-h: 28px;
|
|
245
253
|
--kol-float-tip-t: 12px;
|
|
246
254
|
}
|
package/kol-theme.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
@import "./kol-typography-mono.css" layer(components);
|
|
39
39
|
@import "./kol-type-mono-classes.css" layer(components);
|
|
40
40
|
@import "./kol-type-roles.css" layer(components);
|
|
41
|
+
@import "./kol-type-float-classes.css" layer(components);
|
|
41
42
|
@import "./kol-utilities.css" layer(components);
|
|
42
43
|
@import "./kol-components-atoms.css" layer(components);
|
|
43
44
|
@import "./kol-components-molecules.css" layer(components);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* kol-type-float-classes — the float style's type roles (float-everything W0.6 · W1.1, 2026-11-04).
|
|
3
|
+
*
|
|
4
|
+
* Twelve roles, Inter for the interface and JetBrains Mono for precision, carried from the exploration's
|
|
5
|
+
* "Complete type scale" (kol-float--style, W2.0 row 2). Each class sets family · size · weight · line-height ·
|
|
6
|
+
* tracking, so a float surface never reaches for a kol-sans-* or kol-mono-* class. Sizes are fixed — a float role
|
|
7
|
+
* is a control-sized voice, not a fluid one. The Figma text styles are `float/<role>` (library n48kE…), bound to
|
|
8
|
+
* `font/float` = Inter (`font/mono` for timecode and ruler).
|
|
9
|
+
*
|
|
10
|
+
* role size / weight / lh · tracking use
|
|
11
|
+
* display 116 / 400 / 110 · -7 the scene title on the canvas
|
|
12
|
+
* editorial 76 / 300 / 84 · -4.8 the scene subtitle
|
|
13
|
+
* sheet 38 / 500 / 44 · -1.2 a sheet's display line
|
|
14
|
+
* section 24 / 500 / 32 a section heading
|
|
15
|
+
* window 18 / 500 / 24 a window's title line
|
|
16
|
+
* body-lg 16 / 400 / 24 artwork body
|
|
17
|
+
* body 14 / 400 / 22 description
|
|
18
|
+
* panel 13 / 500 / 18 panel titles and control labels
|
|
19
|
+
* hint 12 / 400 / 18 hints and tooltips
|
|
20
|
+
* label 11 / 400 / 16 supporting labels
|
|
21
|
+
* timecode 12 / 400 / 18 mono timecode, technical readouts
|
|
22
|
+
* ruler 10 / 400 / 14 mono metadata, rulers
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
.kol-float-display { font-family: var(--kol-font-family-float); font-size: 116px; font-weight: 400; line-height: 110px; letter-spacing: -7px; }
|
|
26
|
+
.kol-float-editorial{ font-family: var(--kol-font-family-float); font-size: 76px; font-weight: 300; line-height: 84px; letter-spacing: -4.8px; }
|
|
27
|
+
.kol-float-sheet { font-family: var(--kol-font-family-float); font-size: 38px; font-weight: 500; line-height: 44px; letter-spacing: -1.2px; }
|
|
28
|
+
.kol-float-section { font-family: var(--kol-font-family-float); font-size: 24px; font-weight: 500; line-height: 32px; }
|
|
29
|
+
.kol-float-window { font-family: var(--kol-font-family-float); font-size: 18px; font-weight: 500; line-height: 24px; }
|
|
30
|
+
.kol-float-body-lg { font-family: var(--kol-font-family-float); font-size: 16px; font-weight: 400; line-height: 24px; }
|
|
31
|
+
.kol-float-body { font-family: var(--kol-font-family-float); font-size: 14px; font-weight: 400; line-height: 22px; }
|
|
32
|
+
.kol-float-panel { font-family: var(--kol-font-family-float); font-size: 13px; font-weight: 500; line-height: 18px; }
|
|
33
|
+
.kol-float-hint { font-family: var(--kol-font-family-float); font-size: 12px; font-weight: 400; line-height: 18px; }
|
|
34
|
+
.kol-float-label { font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 400; line-height: 16px; }
|
|
35
|
+
.kol-float-timecode { font-family: var(--kol-font-family-mono); font-size: 12px; font-weight: 400; line-height: 18px; }
|
|
36
|
+
.kol-float-ruler { font-family: var(--kol-font-family-mono); font-size: 10px; font-weight: 400; line-height: 14px; }
|
package/kol-typography.css
CHANGED
|
@@ -732,6 +732,7 @@
|
|
|
732
732
|
* headings, lede), base for body, Tight for display 01–04 (since 0.59.0).
|
|
733
733
|
* Atomic classes follow the same convention. */
|
|
734
734
|
--kol-font-family-sans: 'Right Grotesk', sans-serif;
|
|
735
|
+
--kol-font-family-float: 'Inter', sans-serif; /* the float style's sans (float-everything W0.6, 2026-11-04): every `variant="float"` control and the kol-float-* roles */
|
|
735
736
|
--kol-font-family-sans-neutral: 'Public Sans', sans-serif; /* TabsRow type="sans" (2026-10-29). Declared nowhere in kol-theme: the app that renders it adds the Google Fonts css2 link (PublicSansByLink, his ruling 2026-10-28 — hosted cuts were wrong, 2026-10-30) */
|
|
736
737
|
--kol-font-family-sans-narrow: 'Right Grotesk Narrow', 'Right Grotesk', sans-serif;
|
|
737
738
|
--kol-font-family-sans-compact: 'Right Grotesk Compact', 'Right Grotesk', sans-serif;
|