@karmo-co/drift-kit-reference 25.11.0 → 25.13.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.
@@ -7,7 +7,7 @@ The body-copy primitive: one element, eleven colours, two emphasis rungs, four s
7
7
 
8
8
  ```text
9
9
  p|span.dk-component-body[data-size="xlarge|large|medium|small|xsmall"]?[data-weight]?[data-color]?[data-emphasis="subtle"]?[data-align]?[data-style="normal|underline|italic|strikethrough"]?[data-trim]?[data-nowrap]?
10
- span.__value? (a figure inside running text)
10
+ span.__value[data-variant="inline|underline"]? (a figure inside running text)
11
11
  ```
12
12
 
13
13
  ## Attributes
@@ -24,6 +24,7 @@ p|span.dk-component-body[data-size="xlarge|large|medium|small|xsmall"]?[data-wei
24
24
  | `data-size` | `large`, `medium`, `small`, `xlarge`, `xsmall` |
25
25
  | `data-style` | `italic`, `normal`, `strikethrough`, `underline` |
26
26
  | `data-trim` | `both`, `end`, `start` |
27
+ | `data-variant` | `inline`, `underline` |
27
28
  | `data-weight` | `bold`, `extra-bold`, `extra-light`, `light`, `medium`, `regular`, `semi-bold`, `thin` |
28
29
 
29
30
  ## React
@@ -49,4 +50,4 @@ import { Body } from '@karmo-co/drift-kit/react';
49
50
 
50
51
  ## Component tokens
51
52
 
52
- `--dk-component-body-font-family`, `--dk-component-body-transition-duration`, `--dk-component-body-xlarge-font-size`, `--dk-component-body-xlarge-line-height`, `--dk-component-body-large-font-size`, `--dk-component-body-large-line-height`, `--dk-component-body-medium-font-size`, `--dk-component-body-medium-line-height`, `--dk-component-body-small-font-size`, `--dk-component-body-small-line-height`, `--dk-component-body-xsmall-font-size`, `--dk-component-body-xsmall-line-height`, `--dk-component-body-thin-font-weight`, `--dk-component-body-extra-light-font-weight`, `--dk-component-body-light-font-weight`, `--dk-component-body-regular-font-weight`, `--dk-component-body-medium-font-weight`, `--dk-component-body-semi-bold-font-weight`, `--dk-component-body-bold-font-weight`, `--dk-component-body-extra-bold-font-weight`, `--dk-component-body-default-color`, `--dk-component-body-inverse-color`, `--dk-component-body-white-color`, `--dk-component-body-black-color`, `--dk-component-body-primary-color`, `--dk-component-body-success-color`, `--dk-component-body-error-color`, `--dk-component-body-warning-color`, `--dk-component-body-information-color`, `--dk-component-body-neutral-default-color`, `--dk-component-body-neutral-subtle-color`, `--dk-component-body-disabled-color`, `--dk-component-body-value-surface`, `--dk-component-body-value-color`, `--dk-component-body-value-font-weight`, `--dk-component-body-value-font-size`, `--dk-component-body-value-line-height`, `--dk-component-body-value-padding-block`, `--dk-component-body-value-padding-inline`, `--dk-component-body-value-radius`
53
+ `--dk-component-body-font-family`, `--dk-component-body-transition-duration`, `--dk-component-body-xlarge-font-size`, `--dk-component-body-xlarge-line-height`, `--dk-component-body-large-font-size`, `--dk-component-body-large-line-height`, `--dk-component-body-medium-font-size`, `--dk-component-body-medium-line-height`, `--dk-component-body-small-font-size`, `--dk-component-body-small-line-height`, `--dk-component-body-xsmall-font-size`, `--dk-component-body-xsmall-line-height`, `--dk-component-body-thin-font-weight`, `--dk-component-body-extra-light-font-weight`, `--dk-component-body-light-font-weight`, `--dk-component-body-regular-font-weight`, `--dk-component-body-medium-font-weight`, `--dk-component-body-semi-bold-font-weight`, `--dk-component-body-bold-font-weight`, `--dk-component-body-extra-bold-font-weight`, `--dk-component-body-default-color`, `--dk-component-body-inverse-color`, `--dk-component-body-white-color`, `--dk-component-body-black-color`, `--dk-component-body-primary-color`, `--dk-component-body-success-color`, `--dk-component-body-error-color`, `--dk-component-body-warning-color`, `--dk-component-body-information-color`, `--dk-component-body-neutral-default-color`, `--dk-component-body-neutral-subtle-color`, `--dk-component-body-disabled-color`, `--dk-component-body-value-surface`, `--dk-component-body-value-color`, `--dk-component-body-value-font-weight`, `--dk-component-body-value-font-size`, `--dk-component-body-value-line-height`, `--dk-component-body-value-padding-block`, `--dk-component-body-value-padding-inline`, `--dk-component-body-value-radius`, `--dk-component-body-value-inline-padding-block`, `--dk-component-body-value-inline-padding-inline`, `--dk-component-body-value-underline-width`, `--dk-component-body-value-underline-color`, `--dk-component-body-value-underline-gap`
@@ -6,7 +6,7 @@ A grouped surface: a panel that separates what is in it from what is around it,
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-tone-fill][data-surface][data-interactive][data-align][data-sticky][data-flush="phone"]
9
+ section.dk-component-box[data-variant][data-shadow][data-size][data-radius][data-tone][data-tone-fill][data-surface][data-interactive][data-align][data-sticky][data-flush="phone"]
10
10
  header.__header
11
11
  div.__heading > .__title + .__description?
12
12
  div.__actions?
@@ -26,8 +26,9 @@ section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-t
26
26
  | `data-flush` | `phone` |
27
27
  | `data-interactive` | (present or absent) |
28
28
  | `data-interactive-fill` | `nested`, `raised` |
29
- | `data-pseudo-class` | `active`, `hover` |
29
+ | `data-pseudo-class` | `active`, `focus`, `hover` |
30
30
  | `data-radius` | `large`, `medium`, `xlarge` |
31
+ | `data-shadow` | `none` |
31
32
  | `data-size` | `large`, `small`, `xlarge`, `xsmall` |
32
33
  | `data-span` | `full` |
33
34
  | `data-surface` | (present or absent) |
@@ -62,9 +63,12 @@ import { Box } from '@karmo-co/drift-kit/react';
62
63
  | `radius` | `'medium' \| 'large' \| 'xlarge'` | The corner of that size, whatever the box's size: a small card a rung rounder without the large padding. |
63
64
  | `sticky` | `boolean` | Stays at the top of what scrolls, in its own paint (data-sticky): the page's surface for an untoned box; a toned or levelled one paints its fill, so stick a plain section around it instead. In style, --dk-sticky-cover opts into a cover rising above it (only where nothing sits above it in its scroller), --dk-sticky-bleed widens that cover and --dk-sticky-z-index lifts it. |
64
65
  | `flush` | `'phone'` | phone: below the kit's breakpoint the box runs to the screen's sides, no corner and no side edges (data-flush). The page bleeds it to the edges. |
66
+ | `shadow` | `boolean` | false drops the variant's shadow (data-shadow="none"), keeping its fill and edge. |
65
67
  | `interactivePress` | `InteractivePress` | With data-interactive: the press, over the tier's own. none keeps it still (a row in a divided list), control presses it like a button. |
66
- | `as` | `'section' \| 'div' \| 'aside' \| 'article'` | section when the box has a name (a title or an aria-label), div when it does not; pass one to choose. |
68
+ | `interactive` | `true \| 'control' \| 'compact' \| 'item' \| 'surface' \| 'panel'` | The interaction foundation (data-interactive): a whole box you click, its tier named. With it, interactiveFill gives it a fill at rest that ramps with its states (data-interactive-fill). |
69
+ | `interactiveFill` | `'raised' \| 'nested'` | |
70
+ | `as` | `'section' \| 'div' \| 'aside' \| 'article' \| 'a' \| 'button'` | section when the box has a name (a title or an aria-label), div when it does not; pass one to choose. a when the whole box goes somewhere (with href), button when it acts (type="button" unless you pass one). |
67
71
 
68
72
  ## Component tokens
69
73
 
70
- `--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
74
+ `--dk-component-box-xsmall-padding`, `--dk-component-box-small-padding`, `--dk-component-box-padding`, `--dk-component-box-large-padding`, `--dk-component-box-xlarge-padding`, `--dk-component-box-radius`, `--dk-component-box-large-radius`, `--dk-component-box-xlarge-radius`, `--dk-component-box-border-width`, `--dk-component-box-border-color`, `--dk-component-box-raised-border-color`, `--dk-component-box-inset-border-color`, `--dk-component-box-raised-shadow`, `--dk-component-box-inset-shadow`, `--dk-component-box-column-min`, `--dk-component-box-line-color`, `--dk-component-box-line-color-neutral`, `--dk-component-box-line-width`, `--dk-component-box-focus-room`, `--dk-component-box-label-color`, `--dk-component-box-label-font-size`, `--dk-component-box-label-line-height`, `--dk-component-box-label-letter-spacing`, `--dk-component-box-label-font-weight`, `--dk-component-box-fact-gap`, `--dk-component-box-value-color`, `--dk-component-box-value-font-size`, `--dk-component-box-value-line-height`, `--dk-component-box-value-font-weight`, `--dk-component-box-title-font-size`, `--dk-component-box-title-line-height`, `--dk-component-box-title-font-weight`, `--dk-component-box-description-font-size`, `--dk-component-box-description-line-height`, `--dk-component-box-large-title-font-size`, `--dk-component-box-large-title-line-height`, `--dk-component-box-large-description-font-size`, `--dk-component-box-large-description-line-height`, `--dk-component-box-xlarge-title-font-size`, `--dk-component-box-xlarge-title-line-height`, `--dk-component-box-xlarge-description-font-size`, `--dk-component-box-xlarge-description-line-height`, `--dk-component-box-header-gap`, `--dk-component-box-xsmall-band-padding`, `--dk-component-box-small-band-padding`, `--dk-component-box-band-padding`, `--dk-component-box-large-band-padding`, `--dk-component-box-xlarge-band-padding`, `--dk-component-box-font-family`, `--dk-component-box-title-color`, `--dk-component-box-description-color`
@@ -38,6 +38,11 @@ import { Button } from '@karmo-co/drift-kit/react';
38
38
  | `iconRight` | `ReactNode` | |
39
39
  | `loading` | `boolean` | |
40
40
  | `children` | `ReactNode` | |
41
+ | `href` | `string` | A Button that goes somewhere is a link (12 Nov 2026): with href it renders <a class="dk-component-button">, which the CSS already styles, and `as` swaps in a router's link component (Next's Link, say) that takes href. Disabled drops the href and says so (aria-disabled); loading keeps it but stops the click. |
42
+ | `target` | `string` | |
43
+ | `rel` | `string` | |
44
+ | `download` | `boolean \| string` | |
45
+ | `as` | `ElementType` | |
41
46
  | `variant` | `'default' \| 'outline' \| 'subtle' \| 'plain' \| 'ghost' \| 'accent' \| 'raised' \| 'inverse'` | |
42
47
  | `status` | `'primary' \| 'error' \| 'success' \| 'warning' \| 'information'` | |
43
48
 
@@ -19,6 +19,8 @@ label.dk-component-checkbox[data-size]
19
19
 
20
20
  | Attribute | Values the stylesheet styles |
21
21
  |---|---|
22
+ | `data-interactive` | (present or absent) |
23
+ | `data-interactive-fill` | (present or absent) |
22
24
  | `data-orientation` | `horizontal` |
23
25
  | `data-pseudo-class` | `active`, `focus`, `hover` |
24
26
  | `data-size` | `large`, `small` |
@@ -18,7 +18,7 @@ i.dk-component-icon[data-lucide|data-karmo|data-card|...="<glyph>"][data-size="1
18
18
  | `data-disabled` | (present or absent) |
19
19
  | `data-emphasis` | `subtle` |
20
20
  | `data-icon-kind` | `picture` |
21
- | `data-size` | `12`, `14`, `16`, `20`, `24`, `28`, `32`, `40`, `48` |
21
+ | `data-size` | `12`, `14`, `16`, `18`, `20`, `24`, `28`, `32`, `40`, `48` |
22
22
  | `data-weight` | `bold`, `extra-light`, `light`, `regular` |
23
23
 
24
24
  ## React
@@ -27,4 +27,4 @@ One component per glyph, per set: `import { Heart } from '@karmo-co/drift-kit/ic
27
27
 
28
28
  ## Component tokens
29
29
 
30
- `--dk-component-icon-transition-duration`, `--dk-component-icon-extra-light-stroke-width`, `--dk-component-icon-light-stroke-width`, `--dk-component-icon-regular-stroke-width`, `--dk-component-icon-bold-stroke-width`, `--dk-component-icon-12-size`, `--dk-component-icon-14-size`, `--dk-component-icon-16-size`, `--dk-component-icon-20-size`, `--dk-component-icon-24-size`, `--dk-component-icon-28-size`, `--dk-component-icon-32-size`, `--dk-component-icon-40-size`, `--dk-component-icon-48-size`, `--dk-component-icon-default-color`, `--dk-component-icon-inverse-color`, `--dk-component-icon-white-color`, `--dk-component-icon-black-color`, `--dk-component-icon-primary-color`, `--dk-component-icon-success-color`, `--dk-component-icon-error-color`, `--dk-component-icon-warning-color`, `--dk-component-icon-information-color`, `--dk-component-icon-neutral-default-color`, `--dk-component-icon-neutral-subtle-color`, `--dk-component-icon-disabled-color`
30
+ `--dk-component-icon-transition-duration`, `--dk-component-icon-extra-light-stroke-width`, `--dk-component-icon-light-stroke-width`, `--dk-component-icon-regular-stroke-width`, `--dk-component-icon-bold-stroke-width`, `--dk-component-icon-12-size`, `--dk-component-icon-14-size`, `--dk-component-icon-16-size`, `--dk-component-icon-18-size`, `--dk-component-icon-20-size`, `--dk-component-icon-24-size`, `--dk-component-icon-28-size`, `--dk-component-icon-32-size`, `--dk-component-icon-40-size`, `--dk-component-icon-48-size`, `--dk-component-icon-default-color`, `--dk-component-icon-inverse-color`, `--dk-component-icon-white-color`, `--dk-component-icon-black-color`, `--dk-component-icon-primary-color`, `--dk-component-icon-success-color`, `--dk-component-icon-error-color`, `--dk-component-icon-warning-color`, `--dk-component-icon-information-color`, `--dk-component-icon-neutral-default-color`, `--dk-component-icon-neutral-subtle-color`, `--dk-component-icon-disabled-color`
@@ -29,6 +29,7 @@ div.dk-component-modal[hidden][data-sheet][data-sheet-open][data-sheet-drag][dat
29
29
  | `data-sheet-drag` | (present or absent) |
30
30
  | `data-sheet-open` | (present or absent) |
31
31
  | `data-size` | `large`, `small`, `xlarge` |
32
+ | `data-tone` | (present or absent) |
32
33
 
33
34
  ## React
34
35
 
@@ -64,4 +65,4 @@ import { Modal } from '@karmo-co/drift-kit/react';
64
65
 
65
66
  ## Component tokens
66
67
 
67
- `--dk-component-modal-small-width`, `--dk-component-modal-width`, `--dk-component-modal-large-width`, `--dk-component-modal-xlarge-width`, `--dk-component-modal-radius`, `--dk-component-modal-surface`, `--dk-component-modal-border`, `--dk-component-modal-border-width`, `--dk-component-modal-shadow`, `--dk-component-modal-inset`, `--dk-component-modal-max-height`, `--dk-component-modal-backdrop`, `--dk-component-modal-backdrop-blur`, `--dk-component-modal-padding-inline`, `--dk-component-modal-header-padding-block`, `--dk-component-modal-body-padding-block`, `--dk-component-modal-footer-padding-block`, `--dk-component-modal-body-gap`, `--dk-component-modal-footer-gap`, `--dk-component-modal-actions-padding-block-start`, `--dk-component-modal-actions-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-size`, `--dk-component-modal-title-line-height`, `--dk-component-modal-title-font-weight`, `--dk-component-modal-title-color`, `--dk-component-modal-text-color`, `--dk-component-modal-icon-size`, `--dk-component-modal-icon-color`, `--dk-component-modal-sheet-max-height`, `--dk-component-modal-sheet-max-width`, `--dk-component-modal-sheet-radius`, `--dk-component-modal-sheet-action-height`, `--dk-component-modal-sheet-action-min`, `--dk-component-modal-grabber-width`, `--dk-component-modal-grabber-height`, `--dk-component-modal-grabber-offset`, `--dk-component-modal-grabber-color`, `--dk-component-modal-sheet-header-padding-top`, `--dk-component-modal-settle-duration`, `--dk-component-modal-settle-easing`, `--dk-component-modal-enter-duration`, `--dk-component-modal-exit-duration`, `--dk-component-modal-enter-easing`, `--dk-component-modal-exit-easing`, `--dk-component-modal-enter-travel`
68
+ `--dk-component-modal-small-width`, `--dk-component-modal-width`, `--dk-component-modal-large-width`, `--dk-component-modal-xlarge-width`, `--dk-component-modal-radius`, `--dk-component-modal-surface`, `--dk-component-modal-subtle-control-default`, `--dk-component-modal-subtle-control-hover`, `--dk-component-modal-subtle-control-active`, `--dk-component-modal-border`, `--dk-component-modal-border-width`, `--dk-component-modal-shadow`, `--dk-component-modal-inset`, `--dk-component-modal-max-height`, `--dk-component-modal-backdrop`, `--dk-component-modal-backdrop-blur`, `--dk-component-modal-padding-inline`, `--dk-component-modal-header-padding-block`, `--dk-component-modal-body-padding-block`, `--dk-component-modal-footer-padding-block`, `--dk-component-modal-body-gap`, `--dk-component-modal-footer-gap`, `--dk-component-modal-actions-padding-block-start`, `--dk-component-modal-actions-gap`, `--dk-component-modal-header-gap`, `--dk-component-modal-divider`, `--dk-component-modal-title-font-family`, `--dk-component-modal-title-font-size`, `--dk-component-modal-title-line-height`, `--dk-component-modal-title-font-weight`, `--dk-component-modal-title-color`, `--dk-component-modal-text-color`, `--dk-component-modal-icon-size`, `--dk-component-modal-icon-color`, `--dk-component-modal-sheet-max-height`, `--dk-component-modal-sheet-max-width`, `--dk-component-modal-sheet-radius`, `--dk-component-modal-sheet-action-height`, `--dk-component-modal-sheet-action-min`, `--dk-component-modal-grabber-width`, `--dk-component-modal-grabber-height`, `--dk-component-modal-grabber-offset`, `--dk-component-modal-grabber-color`, `--dk-component-modal-sheet-header-padding-top`, `--dk-component-modal-settle-duration`, `--dk-component-modal-settle-easing`, `--dk-component-modal-enter-duration`, `--dk-component-modal-exit-duration`, `--dk-component-modal-enter-easing`, `--dk-component-modal-exit-easing`, `--dk-component-modal-enter-travel`
@@ -19,6 +19,8 @@ label.dk-component-radio[data-size]
19
19
 
20
20
  | Attribute | Values the stylesheet styles |
21
21
  |---|---|
22
+ | `data-interactive` | (present or absent) |
23
+ | `data-interactive-fill` | (present or absent) |
22
24
  | `data-orientation` | `horizontal` |
23
25
  | `data-pseudo-class` | `active`, `focus`, `hover` |
24
26
  | `data-size` | `large`, `small` |
@@ -45,6 +45,7 @@ nav.dk-component-sidebar[data-collapsed]?
45
45
  | `data-nested` | (present or absent) |
46
46
  | `data-open` | (present or absent) |
47
47
  | `data-panel` | `closed`, `closing`, `filling` |
48
+ | `data-phone` | `rail` |
48
49
  | `data-presentation` | `bar`, `drawer`, `rail` |
49
50
  | `data-rising` | (present or absent) |
50
51
  | `data-sb-carry` | (present or absent) |
@@ -51,4 +51,4 @@ import { Stepper } from '@karmo-co/drift-kit/react';
51
51
 
52
52
  ## Component tokens
53
53
 
54
- `--dk-component-stepper-small-indicator-size`, `--dk-component-stepper-indicator-size`, `--dk-component-stepper-large-indicator-size`, `--dk-component-stepper-small-number-font-size`, `--dk-component-stepper-number-font-size`, `--dk-component-stepper-large-number-font-size`, `--dk-component-stepper-small-label-font-size`, `--dk-component-stepper-small-label-line-height`, `--dk-component-stepper-label-font-size`, `--dk-component-stepper-label-line-height`, `--dk-component-stepper-large-label-font-size`, `--dk-component-stepper-large-label-line-height`, `--dk-component-stepper-description-font-size`, `--dk-component-stepper-description-line-height`, `--dk-component-stepper-font-family`, `--dk-component-stepper-number-font-weight`, `--dk-component-stepper-label-font-weight`, `--dk-component-stepper-label-font-weight-current`, `--dk-component-stepper-icon-size`, `--dk-component-stepper-indicator-border-width`, `--dk-component-stepper-indicator-border-width-base`, `--dk-component-stepper-gap`, `--dk-component-stepper-text-gap`, `--dk-component-stepper-connector-thickness`, `--dk-component-stepper-vertical-step-gap`, `--dk-component-stepper-content-gap`, `--dk-component-stepper-target-radius`, `--dk-component-stepper-target-surface-hover`, `--dk-component-stepper-target-surface-active`, `--dk-component-stepper-inline-gap`, `--dk-component-stepper-target-padding`, `--dk-component-stepper-target-padding-block-interactive`, `--dk-component-stepper-target-padding-inline-interactive`, `--dk-component-stepper-complete-surface`, `--dk-component-stepper-complete-surface-hover`, `--dk-component-stepper-complete-surface-active`, `--dk-component-stepper-complete-icon`, `--dk-component-stepper-complete-icon-hover`, `--dk-component-stepper-complete-icon-active`, `--dk-component-stepper-complete-border`, `--dk-component-stepper-complete-border-hover`, `--dk-component-stepper-complete-border-active`, `--dk-component-stepper-current-surface`, `--dk-component-stepper-current-surface-hover`, `--dk-component-stepper-current-surface-active`, `--dk-component-stepper-current-border`, `--dk-component-stepper-current-text`, `--dk-component-stepper-upcoming-surface`, `--dk-component-stepper-upcoming-border`, `--dk-component-stepper-upcoming-text`, `--dk-component-stepper-error-surface`, `--dk-component-stepper-error-border`, `--dk-component-stepper-error-text`, `--dk-component-stepper-error-label`, `--dk-component-stepper-label-color`, `--dk-component-stepper-label-color-upcoming`, `--dk-component-stepper-label-color-complete`, `--dk-component-stepper-label-color-hover`, `--dk-component-stepper-description-color`, `--dk-component-stepper-optional-color`, `--dk-component-stepper-focus-ring`, `--dk-component-stepper-focus-ring-width`, `--dk-component-stepper-connector-track`, `--dk-component-stepper-connector-fill`, `--dk-component-stepper-fill-duration`, `--dk-component-stepper-easing`, `--dk-component-stepper-state-duration`, `--dk-component-stepper-arrive-delay`, `--dk-component-stepper-arrive-pulse-duration`, `--dk-component-stepper-arrive-pulse-easing`, `--dk-component-stepper-dot-ring-width`, `--dk-component-stepper-dot-size`, `--dk-component-stepper-segment-thickness`, `--dk-component-stepper-segment-content-gap-start`, `--dk-component-stepper-segment-content-gap-end`, `--dk-component-stepper-segment-length`, `--dk-component-stepper-segment-gap`, `--dk-component-stepper-segment-radius`, `--dk-component-stepper-narrow`, `--dk-component-stepper-narrow-label-max`, `--dk-component-stepper-narrow-inline-gap`
54
+ `--dk-component-stepper-small-indicator-size`, `--dk-component-stepper-indicator-size`, `--dk-component-stepper-large-indicator-size`, `--dk-component-stepper-small-number-font-size`, `--dk-component-stepper-number-font-size`, `--dk-component-stepper-large-number-font-size`, `--dk-component-stepper-small-label-font-size`, `--dk-component-stepper-small-label-line-height`, `--dk-component-stepper-label-font-size`, `--dk-component-stepper-label-line-height`, `--dk-component-stepper-large-label-font-size`, `--dk-component-stepper-large-label-line-height`, `--dk-component-stepper-description-font-size`, `--dk-component-stepper-description-line-height`, `--dk-component-stepper-font-family`, `--dk-component-stepper-number-font-weight`, `--dk-component-stepper-number-font-weight-upcoming`, `--dk-component-stepper-label-font-weight`, `--dk-component-stepper-label-font-weight-current`, `--dk-component-stepper-icon-size`, `--dk-component-stepper-indicator-border-width`, `--dk-component-stepper-indicator-border-width-base`, `--dk-component-stepper-gap`, `--dk-component-stepper-text-gap`, `--dk-component-stepper-connector-thickness`, `--dk-component-stepper-vertical-step-gap`, `--dk-component-stepper-content-gap`, `--dk-component-stepper-target-radius`, `--dk-component-stepper-target-surface-hover`, `--dk-component-stepper-target-surface-active`, `--dk-component-stepper-inline-gap`, `--dk-component-stepper-target-padding`, `--dk-component-stepper-target-padding-block-interactive`, `--dk-component-stepper-target-padding-inline-interactive`, `--dk-component-stepper-complete-surface`, `--dk-component-stepper-complete-surface-hover`, `--dk-component-stepper-complete-surface-active`, `--dk-component-stepper-complete-icon`, `--dk-component-stepper-complete-icon-hover`, `--dk-component-stepper-complete-icon-active`, `--dk-component-stepper-complete-border`, `--dk-component-stepper-complete-border-hover`, `--dk-component-stepper-complete-border-active`, `--dk-component-stepper-current-surface`, `--dk-component-stepper-current-surface-hover`, `--dk-component-stepper-current-surface-active`, `--dk-component-stepper-current-border`, `--dk-component-stepper-current-text`, `--dk-component-stepper-upcoming-surface`, `--dk-component-stepper-upcoming-border`, `--dk-component-stepper-upcoming-text`, `--dk-component-stepper-error-surface`, `--dk-component-stepper-error-border`, `--dk-component-stepper-error-text`, `--dk-component-stepper-error-label`, `--dk-component-stepper-label-color`, `--dk-component-stepper-label-color-upcoming`, `--dk-component-stepper-label-color-complete`, `--dk-component-stepper-label-color-hover`, `--dk-component-stepper-description-color`, `--dk-component-stepper-optional-color`, `--dk-component-stepper-focus-ring`, `--dk-component-stepper-focus-ring-width`, `--dk-component-stepper-connector-track`, `--dk-component-stepper-connector-fill`, `--dk-component-stepper-fill-duration`, `--dk-component-stepper-easing`, `--dk-component-stepper-state-duration`, `--dk-component-stepper-arrive-delay`, `--dk-component-stepper-arrive-pulse-duration`, `--dk-component-stepper-arrive-pulse-easing`, `--dk-component-stepper-dot-ring-width`, `--dk-component-stepper-dot-size`, `--dk-component-stepper-segment-thickness`, `--dk-component-stepper-segment-content-gap-start`, `--dk-component-stepper-segment-content-gap-end`, `--dk-component-stepper-segment-length`, `--dk-component-stepper-segment-gap`, `--dk-component-stepper-segment-radius`, `--dk-component-stepper-narrow`, `--dk-component-stepper-narrow-label-max`, `--dk-component-stepper-narrow-inline-gap`, `--dk-component-stepper-narrow-gap`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "25.11.0",
4
- "built": "2026-11-11",
3
+ "version": "25.13.0",
4
+ "built": "2026-11-16",
5
5
  "components": [
6
6
  {
7
7
  "id": "accordion",
@@ -352,6 +352,10 @@
352
352
  {
353
353
  "id": "shadow",
354
354
  "title": "Shadows"
355
+ },
356
+ {
357
+ "id": "scrollbar",
358
+ "title": "Scrollbars"
355
359
  }
356
360
  ],
357
361
  "migrations": [
@@ -1913,6 +1917,38 @@
1913
1917
  "components": [],
1914
1918
  "tokens": []
1915
1919
  }
1920
+ },
1921
+ "25.12.0": {
1922
+ "added": {
1923
+ "components": [],
1924
+ "tokens": []
1925
+ },
1926
+ "removed": {
1927
+ "components": [],
1928
+ "tokens": []
1929
+ }
1930
+ },
1931
+ "25.13.0": {
1932
+ "added": {
1933
+ "components": [],
1934
+ "tokens": [
1935
+ "--dk-motion-linger-delay",
1936
+ "--dk-scrollbar-inset",
1937
+ "--dk-scrollbar-large-inset",
1938
+ "--dk-scrollbar-large-size",
1939
+ "--dk-scrollbar-linger",
1940
+ "--dk-scrollbar-radius",
1941
+ "--dk-scrollbar-size",
1942
+ "--dk-scrollbar-small-inset",
1943
+ "--dk-scrollbar-small-size",
1944
+ "--dk-scrollbar-thumb",
1945
+ "--dk-scrollbar-thumb-hover"
1946
+ ]
1947
+ },
1948
+ "removed": {
1949
+ "components": [],
1950
+ "tokens": []
1951
+ }
1916
1952
  }
1917
1953
  }
1918
1954
  }
package/manifest/setup.md CHANGED
@@ -50,6 +50,7 @@ Set on any element, a kit component's or a plain one.
50
50
  |---|---|
51
51
  | `data-sticky` | On a Box or a plain section: stays at the top of what scrolls, in its own paint (`--dk-surface-current` as the element resolves it), at `z-index` `--dk-sticky-z-index` (5 when unset). `--dk-sticky-cover` opts into a cover of that height rising above it, set only where nothing sits above it in its scroller; `--dk-sticky-bleed` widens the cover past its sides. Top bar and Action bar keep their own `data-sticky`. |
52
52
  | `data-reveal="hover"` | On an element inside a `[data-interactive]` row (the row's own action): transparent until the row is hovered or holds focus where the pointer is fine and hovers and none is coarse, always shown on a touch screen. It keeps its room, stays in the tab order and the accessibility tree (Tab onto it shows it) and takes no clicks while hidden. Tile check keeps its own meaning of the attribute. |
53
+ | `data-scrollbar` | On anything that scrolls: the kit's scrollbar, an inset pill thumb on a clear track in the surface's raised edge colour. Empty or `medium` is the default size, `small` the slim pill, `large` a wider one. `data-scrollbar-reveal="scroll"` hides the thumb at rest and fades it in while scrolling, on hover and on keyboard focus (the runtime marks `data-scrolling`). Menu, Select, Table, Modal and Sidebar already wear it. `tokens scrollbar` has the tokens and the guide. |
53
54
 
54
55
  ## Verify
55
56
 
@@ -68,47 +69,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
68
69
 
69
70
  ```html
70
71
  <!-- in the head -->
71
- <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.11.0/drift-kit.css" integrity="sha384-uifJgxziWlWWwQlwt27ikZJUTTDWVwccq2r1GS7Fr/3cknJrdSAIK803PaqEIgCs" crossorigin="anonymous" />
72
- <script src="https://storage.googleapis.com/drift-kit-public/25.11.0/components.js" integrity="sha384-wHuQbySowJZMx15OQLVh5N22zftvgM8Aq8mc+4SdwWnE22lOAa84hpj4ELx8aZbw" crossorigin="anonymous" defer></script>
73
- <script src="https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
72
+ <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.13.0/drift-kit.css" integrity="sha384-b1hz0CKrP6WFL72p+8oMnaIaNzBcmBqJgMSr96OR9Hn/9wfxpq4mY4uSXSQY+wfU" crossorigin="anonymous" />
73
+ <script src="https://storage.googleapis.com/drift-kit-public/25.13.0/components.js" integrity="sha384-CB1ihNXnUpjhUJjOicCuxCogjbgstpVGDah51Rb6iYc6NdzAeaC/BhXUtmlqK3uO" crossorigin="anonymous" defer></script>
74
+ <script src="https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
74
75
  <!-- the attributes go on the body -->
75
76
  <body data-brand="karmo" data-theme="light">
76
77
  ```
77
78
 
78
79
  | File | Address | Integrity |
79
80
  |---|---|---|
80
- | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-kit.css` | `sha384-uifJgxziWlWWwQlwt27ikZJUTTDWVwccq2r1GS7Fr/3cknJrdSAIK803PaqEIgCs` |
81
- | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-kit.min.css` | `sha384-KWB42YMeXwL70c9+D72JPviQt5NqAb2DYRmoYxZ/JNd4EsyxWZ+Bn6Yc6R8/IwhD` |
82
- | `components.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/components.js` | `sha384-wHuQbySowJZMx15OQLVh5N22zftvgM8Aq8mc+4SdwWnE22lOAa84hpj4ELx8aZbw` |
83
- | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
84
- | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
85
- | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
86
- | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
87
- | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
88
- | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
89
- | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.11.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
81
+ | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-kit.css` | `sha384-b1hz0CKrP6WFL72p+8oMnaIaNzBcmBqJgMSr96OR9Hn/9wfxpq4mY4uSXSQY+wfU` |
82
+ | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-kit.min.css` | `sha384-B9YNQw5DZstH9cGfmwjjVkVESxgPmecmrgWozDMqKwPpJ19FXJUD1b95Nb2rUiLt` |
83
+ | `components.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/components.js` | `sha384-CB1ihNXnUpjhUJjOicCuxCogjbgstpVGDah51Rb6iYc6NdzAeaC/BhXUtmlqK3uO` |
84
+ | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
85
+ | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
86
+ | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
87
+ | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
88
+ | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
89
+ | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
90
+ | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.13.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
90
91
 
91
92
  ### In Claude chat and Cowork
92
93
 
93
94
  Their previews load nothing from the bucket. There, link the same version from jsdelivr instead, with these addresses and integrity: the stylesheet is `drift-kit.min.css`, and the attributes still go on `<body>`.
94
95
 
95
96
  ```html
96
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-kit.min.css" integrity="sha384-KWB42YMeXwL70c9+D72JPviQt5NqAb2DYRmoYxZ/JNd4EsyxWZ+Bn6Yc6R8/IwhD" crossorigin="anonymous" />
97
- <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/components.js" integrity="sha384-jH4ZY2sPTPsmHG7M7uJwwaka14DuYlMuGItqLNhLqS3T60OxkooLHIaUdubeqTHO" crossorigin="anonymous" defer></script>
97
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-kit.min.css" integrity="sha384-B9YNQw5DZstH9cGfmwjjVkVESxgPmecmrgWozDMqKwPpJ19FXJUD1b95Nb2rUiLt" crossorigin="anonymous" />
98
+ <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/components.js" integrity="sha384-hkeluHsFBCltjWl7WSka4Qvomr3gNx9iKGc6Bi+sY4m3BqCmCR4ByhCgVDbtX0ko" crossorigin="anonymous" defer></script>
98
99
  ```
99
100
 
100
101
  | File | Address | Integrity |
101
102
  |---|---|---|
102
- | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/components.js` | `sha384-jH4ZY2sPTPsmHG7M7uJwwaka14DuYlMuGItqLNhLqS3T60OxkooLHIaUdubeqTHO` |
103
- | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
104
- | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
105
- | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
106
- | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
107
- | `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
108
- | `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
109
- | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
110
- | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
111
- | `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.11.0/drift-kit.min.css` | `sha384-KWB42YMeXwL70c9+D72JPviQt5NqAb2DYRmoYxZ/JNd4EsyxWZ+Bn6Yc6R8/IwhD` |
103
+ | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/components.js` | `sha384-hkeluHsFBCltjWl7WSka4Qvomr3gNx9iKGc6Bi+sY4m3BqCmCR4ByhCgVDbtX0ko` |
104
+ | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
105
+ | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
106
+ | `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
107
+ | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
108
+ | `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
109
+ | `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
110
+ | `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
111
+ | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
112
+ | `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.13.0/drift-kit.min.css` | `sha384-B9YNQw5DZstH9cGfmwjjVkVESxgPmecmrgWozDMqKwPpJ19FXJUD1b95Nb2rUiLt` |
112
113
 
113
114
  ### Integrity for 23.4.0
114
115
 
@@ -140,5 +141,5 @@ The behaviour script initialises every component on the page when it loads. Mark
140
141
  The kit class names the drift-critique capture script keys on, at this version. Pass them to it as `--kit '<this JSON>'` so its alignment and reduced-motion checks read this version's names.
141
142
 
142
143
  ```json
143
- {"version":"25.11.0","field":".dk-component-input__field","trigger":".dk-component-select__trigger","button":".dk-component-button","iconButton":".dk-component-icon-button","spinners":[".dk-component-loading-spinner",".dk-component-button__spinner"],"componentPrefix":"dk-component-","fieldRoot":"dk-component-input"}
144
+ {"version":"25.13.0","field":".dk-component-input__field","trigger":".dk-component-select__trigger","button":".dk-component-button","iconButton":".dk-component-icon-button","spinners":[".dk-component-loading-spinner",".dk-component-button__spinner"],"componentPrefix":"dk-component-","fieldRoot":"dk-component-input"}
144
145
  ```
@@ -47,6 +47,7 @@ Declared values, light and dark. Reference a token by name; never copy its value
47
47
  | `--dk-motion-feedback-easing` | `var(--dk-motion-easing-spring)` | `var(--dk-motion-easing-spring)` |
48
48
  | `--dk-motion-grow-scale-panel` | `var(--dk-primitive-transform-scale-hover-panel)` | `var(--dk-primitive-transform-scale-hover-panel)` |
49
49
  | `--dk-motion-grow-scale-surface` | `var(--dk-primitive-transform-scale-hover-surface)` | `var(--dk-primitive-transform-scale-hover-surface)` |
50
+ | `--dk-motion-linger-delay` | `var(--dk-primitive-motion-duration-1000)` | `var(--dk-primitive-motion-duration-1000)` |
50
51
  | `--dk-motion-loop-easing` | `linear` | `linear` |
51
52
  | `--dk-motion-page-fade-duration` | `var(--dk-primitive-motion-duration-240)` | `var(--dk-primitive-motion-duration-240)` |
52
53
  | `--dk-motion-page-fade-easing` | `var(--dk-motion-easing-standard)` | `var(--dk-motion-easing-standard)` |
@@ -94,7 +95,7 @@ Every pattern is a duration and an easing pair, named for the pattern in the tok
94
95
 
95
96
  ### The cascade
96
97
 
97
- - **HTML:** `data-dk-cascade` on the root; its children are the units. `data-dk-cascade-grid` on a grid gives each visual row one beat, `data-dk-cascade-list` gives rows half a beat, `data-dk-cascade-through` walks into a wrapper (a panel: it is drawn from the first paint, at any depth, and only what it holds waits for its beat), `data-dk-cascade-skip` leaves something out. `reveal(root)` writes `--dk-cascade-last` on the root, the last beat it gave a unit, for anything timed to the arrival's end: a Shield with `data-animation="enter"` in the root enters a beat before it. Plain HTML reveals itself on load; content added later joins with `dk.motion.cascade.late(nodes)`.
98
+ - **HTML:** `data-dk-cascade` on the root; its children are the units. `data-dk-cascade-grid` on a grid gives each visual row one beat, `data-dk-cascade-list` gives rows half a beat, `data-dk-cascade-through` walks into a wrapper (a panel: it is drawn from the first paint, at any depth, and only what it holds waits for its beat), `data-dk-cascade-skip` leaves something out. `data-dk-cascade-parallel` beside `data-dk-cascade-through` walks the wrapper's children side by side, each from the same beat (two columns arriving together); what follows waits for the longest. `reveal(root)` writes `--dk-cascade-last` on the root, the last beat it gave a unit, for anything timed to the arrival's end: a Shield with `data-animation="enter"` in the root enters a beat before it. Plain HTML reveals itself on load; content added later joins with `dk.motion.cascade.late(nodes)`.
98
99
  - **TSX:** `<Cascade ready={loaded}>` (or `useCascade(ready)`), keyed or given `arrival` so a new page replays it. `after="leave"` waits for a parts leave.
99
100
 
100
101
  ### Changing page
@@ -0,0 +1,34 @@
1
+ # Scrollbars tokens
2
+
3
+ Declared values, light and dark. Reference a token by name; never copy its value.
4
+
5
+ | Token | Light | Dark |
6
+ |---|---|---|
7
+ | `--dk-scrollbar-inset` | `var(--dk-primitive-scale-0-75)` | `var(--dk-primitive-scale-0-75)` |
8
+ | `--dk-scrollbar-large-inset` | `var(--dk-primitive-scale-1)` | `var(--dk-primitive-scale-1)` |
9
+ | `--dk-scrollbar-large-size` | `var(--dk-primitive-scale-4)` | `var(--dk-primitive-scale-4)` |
10
+ | `--dk-scrollbar-linger` | `var(--dk-motion-linger-delay)` | `var(--dk-motion-linger-delay)` |
11
+ | `--dk-scrollbar-radius` | `var(--dk-border-radius-round-fixed)` | `var(--dk-border-radius-round-fixed)` |
12
+ | `--dk-scrollbar-size` | `var(--dk-primitive-scale-3)` | `var(--dk-primitive-scale-3)` |
13
+ | `--dk-scrollbar-small-inset` | `var(--dk-primitive-scale-0)` | `var(--dk-primitive-scale-0)` |
14
+ | `--dk-scrollbar-small-size` | `var(--dk-primitive-scale-1-5)` | `var(--dk-primitive-scale-1-5)` |
15
+ | `--dk-scrollbar-thumb` | `var(--dk-border-raised-active)` | `var(--dk-border-raised-active)` |
16
+ | `--dk-scrollbar-thumb-hover` | `var(--dk-icon-neutral-default)` | `var(--dk-icon-neutral-default)` |
17
+
18
+ ## Using it: the scrollbar foundation
19
+
20
+ Anything that scrolls and is not already a kit scroller (a panel's list, a long side column, a code block, a chat thread) takes `data-scrollbar` instead of hand-written `::-webkit-scrollbar` CSS. It gives the house scrollbar: an inset pill thumb on a clear track, in the raised edge colour of the surface it sits on, brightening under the pointer. It reads in light and dark, at every level and inside every tone, solid fills included. The value is the size:
21
+
22
+ | Size | For | Gutter and thumb |
23
+ |---|---|---|
24
+ | `data-scrollbar` (empty) or `="medium"` | Most scrollers: lists, panels, a dialog's body | A medium gutter, the thumb floating in it (`--dk-scrollbar-size`, `--dk-scrollbar-inset`) |
25
+ | `="small"` | A slim edge in tight chrome: a navigation rail | The thumb is the whole gutter (`--dk-scrollbar-small-size`) |
26
+ | `="large"` | A wide region read with a mouse: a big data grid | A wider gutter and a thumb easier to catch (`--dk-scrollbar-large-size`) |
27
+
28
+ Add `data-scrollbar-reveal="scroll"` for the overlay feel: the thumb is clear at rest and fades in while the region scrolls (wheel, trackpad, touch, keys or script), under a hovering pointer and when the scroller itself has keyboard focus, then fades out after `--dk-scrollbar-linger`. It still takes its gutter, as any styled scrollbar does in Chrome and Safari, so nothing shifts when it shows. The fades run on the state pattern and follow reduced motion. `dk.scrollbar.flash(el)` shows it for a moment as if it had scrolled, to say a region scrolls when it arrives.
29
+
30
+ The kit's own scrollers already wear it with no attribute: a Menu, a Select's menu and searchable list, a Table's scroller (both ways), a Modal's body (a phone sheet's included) and the Sidebar's body and panel, which takes the small size. Their `--dk-component-*-scrollbar-*` tokens alias onto these, so a product can still retune one component's alone.
31
+
32
+ In Firefox it is the thin standard scrollbar in the same thumb colour (the large size keeps Firefox's own width); Firefox has no thumb hover colour. Every rule is at weight zero, so a component's own rule or an app's always wins. To hide a scrollbar on purpose (a sideways strip of tabs), do not use this: the kit's strips hide theirs themselves.
33
+
34
+ In React the attributes are written as they are, `<div data-scrollbar="small" data-scrollbar-reveal="scroll">`, and `ScrollbarSize` and `ScrollbarReveal` type them. The runtime that marks a revealed scroller while it scrolls loads with the package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmo-co/drift-kit-reference",
3
- "version": "25.11.0",
3
+ "version": "25.13.0",
4
4
  "description": "Reference documentation of Karmo's private Drift design system, for Karmo's Claude skills. Documentation only.",
5
5
  "bin": {
6
6
  "drift-kit-ref": "bin/drift-kit-ref.js"