@karmo-co/drift-kit-reference 25.9.0 → 25.11.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.
@@ -23,6 +23,7 @@ A list of things you can open: FAQs, settings, details on demand. Built on <deta
23
23
  | `data-flush` | (present or absent) |
24
24
  | `data-glyph` | `chevron` |
25
25
  | `data-icon` | `plus` |
26
+ | `data-interactive` | (present or absent) |
26
27
  | `data-size` | `large`, `small` |
27
28
  | `data-state` | `closing`, `opening` |
28
29
  | `data-variant` | `flush`, `joined` |
@@ -6,7 +6,7 @@ A person, as their photo or their initials: the photo fades in once it has loade
6
6
  ## Anatomy (HTML)
7
7
 
8
8
  ```text
9
- span.dk-component-avatar[data-name][data-size="24|40|48|<px>"]?[data-variant="solid"]?[data-hue]?
9
+ span.dk-component-avatar[data-name][data-size="24|40|48|<px>"]?[data-variant="solid|ringed"]?[data-hue]?
10
10
  img? (the photo; the runtime sets data-loaded)
11
11
  span.__initials (written by the runtime from data-name, unless written in it)
12
12
  ```
@@ -18,7 +18,7 @@ span.dk-component-avatar[data-name][data-size="24|40|48|<px>"]?[data-variant="so
18
18
  | `data-hue` | `next1`, `next2`, `next3`, `next4`, `prev1`, `prev2`, `prev3`, `prev4`, `primary` |
19
19
  | `data-loaded` | `error`, `false`, `true` |
20
20
  | `data-size` | `24`, `40`, `48` |
21
- | `data-variant` | `solid` |
21
+ | `data-variant` | `ringed`, `solid` |
22
22
 
23
23
  ## React
24
24
 
@@ -33,11 +33,11 @@ import { Avatar } from '@karmo-co/drift-kit/react';
33
33
  | `src` | `string` | A photo. Until it decodes, and if it fails, the initials show. |
34
34
  | `size` | `AvatarSize \| number` | 32 when absent. 24, 40 or 48, or any other number of pixels: the avatar is drawn at that size, its initials a quarter of it plus 4px (the step the named sizes follow, so 64 has 20px initials). |
35
35
  | `hue` | `AvatarHue` | A category colour instead of primary, to tell people apart without photos. |
36
- | `variant` | `'subtle' \| 'solid'` | Subtle when absent. |
36
+ | `variant` | `'subtle' \| 'solid' \| 'ringed'` | Subtle when absent. |
37
37
  | `label` | `string` | A name for a screen reader, for an avatar that stands on its own. Without one it is decorative: the name is usually written beside it. |
38
38
  | `href` | `string` | A link to the person: the avatar becomes an <a>, named by label or name, and steps through hover and press. |
39
39
  | `onClick` | `(event: ReactMouseEvent<HTMLElement>) => void` | An action, an account menu say: the avatar becomes a <button>, named by label or name, and steps through hover and press. |
40
40
 
41
41
  ## Component tokens
42
42
 
43
- `--dk-component-avatar-radius`, `--dk-component-avatar-24-size`, `--dk-component-avatar-24-font-size`, `--dk-component-avatar-32-size`, `--dk-component-avatar-32-font-size`, `--dk-component-avatar-40-size`, `--dk-component-avatar-40-font-size`, `--dk-component-avatar-48-size`, `--dk-component-avatar-48-font-size`, `--dk-component-avatar-font-family`, `--dk-component-avatar-font-weight`, `--dk-component-avatar-letter-spacing`, `--dk-component-avatar-subtle-surface`, `--dk-component-avatar-subtle-text`, `--dk-component-avatar-solid-surface`, `--dk-component-avatar-solid-text`, `--dk-component-avatar-ring`, `--dk-component-avatar-edge-mix`, `--dk-component-avatar-solid-mix-to`, `--dk-component-avatar-hover-mix`, `--dk-component-avatar-active-mix`, `--dk-component-avatar-photo-hover`, `--dk-component-avatar-photo-active`, `--dk-component-avatar-focus-ring`, `--dk-component-avatar-focus-ring-width`, `--dk-component-avatar-transition-duration`, `--dk-component-avatar-fade-duration`, `--dk-component-avatar-fade-easing`
43
+ `--dk-component-avatar-radius`, `--dk-component-avatar-24-size`, `--dk-component-avatar-24-font-size`, `--dk-component-avatar-32-size`, `--dk-component-avatar-32-font-size`, `--dk-component-avatar-40-size`, `--dk-component-avatar-40-font-size`, `--dk-component-avatar-48-size`, `--dk-component-avatar-48-font-size`, `--dk-component-avatar-font-family`, `--dk-component-avatar-font-weight`, `--dk-component-avatar-letter-spacing`, `--dk-component-avatar-subtle-surface`, `--dk-component-avatar-subtle-text`, `--dk-component-avatar-solid-surface`, `--dk-component-avatar-solid-text`, `--dk-component-avatar-ringed-surface`, `--dk-component-avatar-ringed-text`, `--dk-component-avatar-ringed-ring`, `--dk-component-avatar-ringed-ring-width`, `--dk-component-avatar-ring`, `--dk-component-avatar-edge-mix`, `--dk-component-avatar-solid-mix-to`, `--dk-component-avatar-hover-mix`, `--dk-component-avatar-active-mix`, `--dk-component-avatar-photo-hover`, `--dk-component-avatar-photo-active`, `--dk-component-avatar-focus-ring`, `--dk-component-avatar-focus-ring-width`, `--dk-component-avatar-transition-duration`, `--dk-component-avatar-fade-duration`, `--dk-component-avatar-fade-easing`
@@ -18,7 +18,9 @@ p|span.dk-component-body[data-size="xlarge|large|medium|small|xsmall"]?[data-wei
18
18
  | `data-color` | `black`, `default`, `error`, `information`, `inverse`, `neutral`, `primary`, `success`, `warning`, `white` |
19
19
  | `data-disabled` | (present or absent) |
20
20
  | `data-emphasis` | `subtle` |
21
+ | `data-interactive` | (present or absent) |
21
22
  | `data-nowrap` | (present or absent) |
23
+ | `data-pseudo-class` | `active`, `hover` |
22
24
  | `data-size` | `large`, `medium`, `small`, `xlarge`, `xsmall` |
23
25
  | `data-style` | `italic`, `normal`, `strikethrough`, `underline` |
24
26
  | `data-trim` | `both`, `end`, `start` |
@@ -25,6 +25,8 @@ section.dk-component-box[data-variant][data-size][data-radius][data-tone][data-t
25
25
  | `data-dividers` | `both`, `columns`, `rows` |
26
26
  | `data-flush` | `phone` |
27
27
  | `data-interactive` | (present or absent) |
28
+ | `data-interactive-fill` | `nested`, `raised` |
29
+ | `data-pseudo-class` | `active`, `hover` |
28
30
  | `data-radius` | `large`, `medium`, `xlarge` |
29
31
  | `data-size` | `large`, `small`, `xlarge`, `xsmall` |
30
32
  | `data-span` | `full` |
@@ -45,14 +47,14 @@ import { Box } from '@karmo-co/drift-kit/react';
45
47
  | `size` | `'xsmall' \| 'small' \| 'medium' \| 'large' \| 'xlarge'` | Padding and gaps together: 12, 18, 24 (medium, the default), 32 or 40. Past medium the corner and the header grow with it. |
46
48
  | `tone` | `'primary' \| 'success' \| 'warning' \| 'error' \| 'information' \| 'inverse'` | The kit's tone: tints the box and remaps the colours of everything in it. |
47
49
  | `toneFill` | `'solid'` | With a tone: the solid fill instead of the tint. |
48
- | `surface` | `0 \| 1 \| 2` | A step down the neutral ladder (1 or 2), so a flat box reads as a panel. |
50
+ | `surface` | `0 \| 1 \| 2 \| 'below'` | A step down the neutral ladder (1 or 2), so a flat box reads as a panel. below is one level under whatever level the box sits on: level 1 on the page, level 2 on level 1, and on a raised surface level 1 in light and level 2 in dark. One markup that reads in both themes. |
49
51
  | `title` | `ReactNode` | A header: the title wires aria-labelledby, so the box is a named region. |
50
52
  | `titleAs` | `'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6'` | |
51
53
  | `titleId` | `string` | The title's id, when something in the box is named by it (a Day of month's grid). Generated otherwise. |
52
54
  | `heading` | `ReactNode` | A heading of your own in place of title and description: a Section heading, for one with an icon. Name the box with aria-labelledby. |
53
55
  | `description` | `ReactNode` | |
54
56
  | `actions` | `ReactNode` | Beside the title: a Link, a Button, an icon button. |
55
- | `headerBand` | `boolean` | The header as a band: edge to edge, one level up from the box's surface (a level-2 box steps back to 1), with a hairline under it. On a toned box it carries the tone too. |
57
+ | `headerBand` | `boolean` | The header as a band: edge to edge, one level up from the box's surface (a level-2 box steps back to 1), with a hairline under it. On a toned box it carries the tone too. A below box's band is below again: one level under the box, as far as the ladder goes. |
56
58
  | `columns` | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | Lays the children out as a grid of at most this many columns, wrapping to fewer on its own once a column would be narrower than 10rem. Without it the children sit straight in the box, as a plain panel. |
57
59
  | `dividers` | `'rows' \| 'columns' \| 'both'` | Hairlines between the cells, correct at any wrap. |
58
60
  | `align` | `'start' \| 'center' \| 'end'` | Cells stretch to the row when absent. |
@@ -59,7 +59,7 @@ import { Card } from '@karmo-co/drift-kit/react';
59
59
  | `orientation` | `'vertical' \| 'horizontal'` | horizontal puts the media beside the body. |
60
60
  | `tone` | `'primary' \| 'success' \| 'warning' \| 'error' \| 'information' \| 'inverse'` | The kit's tone, level and fill, as Box takes them. |
61
61
  | `toneFill` | `'solid'` | |
62
- | `surface` | `0 \| 1 \| 2` | |
62
+ | `surface` | `0 \| 1 \| 2 \| 'below'` | |
63
63
  | `selected` | `boolean` | The chosen one: aria-current on a link, aria-pressed on a button. |
64
64
  | `disabled` | `boolean` | |
65
65
  | `href` | `string` | A card that goes somewhere is a link: the whole card is the target. |
@@ -0,0 +1,35 @@
1
+ # Illustration (`illustration`)
2
+
3
+ Drawn art from the kit, by name, painted in the theme's colours: cards, the Payment Methods stack of three cards.
4
+
5
+
6
+ ## Anatomy (HTML)
7
+
8
+ ```text
9
+ span.dk-component-illustration[data-name="cards"][aria-label]?
10
+ svg (drawn by the runtime)
11
+ g[data-layer="back|middle|front"] > path[data-part]
12
+ ```
13
+
14
+ ## Attributes
15
+
16
+ | Attribute | Values the stylesheet styles |
17
+ |---|---|
18
+ | `data-name` | `cards` |
19
+ | `data-part` | `chip`, `gold`, `line`, `mark`, `shine` |
20
+ | `data-stop` | `back-body-end`, `back-body-start`, `back-edge-end`, `back-edge-start`, `front-body-end`, `front-body-start`, `front-edge-end`, `front-edge-start`, `middle-body-end`, `middle-body-start`, `middle-edge-end`, `middle-edge-start` |
21
+
22
+ ## React
23
+
24
+ ```tsx
25
+ import { Illustration } from '@karmo-co/drift-kit/react';
26
+ ```
27
+
28
+ | Prop | Type | Notes |
29
+ |---|---|---|
30
+ | `name` (required) | `IllustrationName` | Which art: cards, the Payment Methods stack of three cards. |
31
+ | `label` | `string` | A name for the art when it says something the words around it do not. Without one it is decoration, hidden from assistive technology. Its width is --dk-component-illustration-size (set it in style); the height follows. |
32
+
33
+ ## Component tokens
34
+
35
+ `--dk-component-illustration-size`, `--dk-component-illustration-cards-front-body-start`, `--dk-component-illustration-cards-front-body-end`, `--dk-component-illustration-cards-front-edge-start`, `--dk-component-illustration-cards-front-edge-end`, `--dk-component-illustration-cards-middle-body-start`, `--dk-component-illustration-cards-middle-body-end`, `--dk-component-illustration-cards-middle-edge-start`, `--dk-component-illustration-cards-middle-edge-end`, `--dk-component-illustration-cards-back-body-start`, `--dk-component-illustration-cards-back-body-end`, `--dk-component-illustration-cards-back-edge-start`, `--dk-component-illustration-cards-back-edge-end`, `--dk-component-illustration-cards-line`, `--dk-component-illustration-cards-chip`, `--dk-component-illustration-cards-shine`, `--dk-component-illustration-cards-mark`, `--dk-component-illustration-cards-gold`
@@ -19,6 +19,8 @@ span.dk-component-tag[data-status|data-hue][data-variant][data-size][data-caret]
19
19
  |---|---|
20
20
  | `data-caret` | (present or absent) |
21
21
  | `data-hue` | `next1`, `next2`, `next3`, `next4`, `prev1`, `prev2`, `prev3`, `prev4`, `primary` |
22
+ | `data-interactive` | (present or absent) |
23
+ | `data-pseudo-class` | `active`, `hover` |
22
24
  | `data-shape` | `circle` |
23
25
  | `data-size` | `large`, `small`, `xsmall` |
24
26
  | `data-status` | `error`, `information`, `primary`, `success`, `warning` |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "25.9.0",
3
+ "version": "25.11.0",
4
4
  "built": "2026-11-11",
5
5
  "components": [
6
6
  {
@@ -158,6 +158,11 @@
158
158
  "name": "Icon tile",
159
159
  "purpose": "A glyph on a small coloured square, subtle or solid, with one corner at every size."
160
160
  },
161
+ {
162
+ "id": "illustration",
163
+ "name": "Illustration",
164
+ "purpose": "Drawn art from the kit, by name, painted in the theme's colours: cards, the Payment Methods stack of three cards."
165
+ },
161
166
  {
162
167
  "id": "image",
163
168
  "name": "Image",
@@ -1886,6 +1891,28 @@
1886
1891
  "components": [],
1887
1892
  "tokens": []
1888
1893
  }
1894
+ },
1895
+ "25.10.0": {
1896
+ "added": {
1897
+ "components": [],
1898
+ "tokens": []
1899
+ },
1900
+ "removed": {
1901
+ "components": [],
1902
+ "tokens": []
1903
+ }
1904
+ },
1905
+ "25.11.0": {
1906
+ "added": {
1907
+ "components": [
1908
+ "illustration"
1909
+ ],
1910
+ "tokens": []
1911
+ },
1912
+ "removed": {
1913
+ "components": [],
1914
+ "tokens": []
1915
+ }
1889
1916
  }
1890
1917
  }
1891
1918
  }
package/manifest/setup.md CHANGED
@@ -38,7 +38,7 @@ Set on a panel, not on `<body>`: everything inside follows. The attributes remap
38
38
 
39
39
  | Attribute | Values |
40
40
  |---|---|
41
- | `data-surface` | `0`, `1`, `2`, `raised` |
41
+ | `data-surface` | `0`, `1`, `2`, `below`, `raised` |
42
42
  | `data-tone` | `credit`, `error`, `information`, `inverse`, `muted`, `neutral`, `none`, `primary`, `success`, `warning` |
43
43
  | `data-tone-fill` | `solid` |
44
44
 
@@ -68,47 +68,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
68
68
 
69
69
  ```html
70
70
  <!-- in the head -->
71
- <link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.9.0/drift-kit.css" integrity="sha384-k9GmpJTwvzsTrUfwWmmDzGbjL3AJolL4OF7/xWkb/RUn6R5gCSa7DVubosX5SOLu" crossorigin="anonymous" />
72
- <script src="https://storage.googleapis.com/drift-kit-public/25.9.0/components.js" integrity="sha384-DEwnGtxcQRORjIEL73GWF12RhpRwyohZpdbDqaJoKJydoCEZXlbEnD+wVWmXkiDp" crossorigin="anonymous" defer></script>
73
- <script src="https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
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>
74
74
  <!-- the attributes go on the body -->
75
75
  <body data-brand="karmo" data-theme="light">
76
76
  ```
77
77
 
78
78
  | File | Address | Integrity |
79
79
  |---|---|---|
80
- | `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-kit.css` | `sha384-k9GmpJTwvzsTrUfwWmmDzGbjL3AJolL4OF7/xWkb/RUn6R5gCSa7DVubosX5SOLu` |
81
- | `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-kit.min.css` | `sha384-sD9LwRdJKowditcM1KwCbe8zRaGUYpP5KjaHBlC+Qb3GPDD/hsOhjJtEMVifucMg` |
82
- | `components.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/components.js` | `sha384-DEwnGtxcQRORjIEL73GWF12RhpRwyohZpdbDqaJoKJydoCEZXlbEnD+wVWmXkiDp` |
83
- | `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
84
- | `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
85
- | `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
86
- | `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
87
- | `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
88
- | `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
89
- | `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.9.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
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` |
90
90
 
91
91
  ### In Claude chat and Cowork
92
92
 
93
93
  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
94
 
95
95
  ```html
96
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.0/drift-kit.min.css" integrity="sha384-sD9LwRdJKowditcM1KwCbe8zRaGUYpP5KjaHBlC+Qb3GPDD/hsOhjJtEMVifucMg" crossorigin="anonymous" />
97
- <script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.0/components.js" integrity="sha384-EkxpP8foDxi+64liYemlkT26UWaZ9+OR6MVJ+bsxZJ9JFermGICWgHTTsHidIKtE" crossorigin="anonymous" defer></script>
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>
98
98
  ```
99
99
 
100
100
  | File | Address | Integrity |
101
101
  |---|---|---|
102
- | `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.0/components.js` | `sha384-EkxpP8foDxi+64liYemlkT26UWaZ9+OR6MVJ+bsxZJ9JFermGICWgHTTsHidIKtE` |
103
- | `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
104
- | `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.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.9.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
106
- | `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.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.9.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.9.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.9.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
110
- | `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.9.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.9.0/drift-kit.min.css` | `sha384-sD9LwRdJKowditcM1KwCbe8zRaGUYpP5KjaHBlC+Qb3GPDD/hsOhjJtEMVifucMg` |
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` |
112
112
 
113
113
  ### Integrity for 23.4.0
114
114
 
@@ -140,5 +140,5 @@ The behaviour script initialises every component on the page when it loads. Mark
140
140
  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
141
 
142
142
  ```json
143
- {"version":"25.9.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"}
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
144
  ```
@@ -141,3 +141,16 @@ Declared values, light and dark. Reference a token by name; never copy its value
141
141
  | `--dk-surface-warning-subtle-active` | `var(--dk-color-warning-300)` | `var(--dk-color-warning-600)` |
142
142
  | `--dk-surface-warning-subtle-focus` | `var(--dk-color-warning-200)` | `var(--dk-color-warning-700)` |
143
143
  | `--dk-surface-warning-subtle-hover` | `var(--dk-color-warning-100)` | `var(--dk-color-warning-800)` |
144
+
145
+ ## Using it: levels
146
+
147
+ `data-surface` on a container sets its level, and everything inside follows: fields, control fills, hairlines, text and icons all take that level's values. The container paints itself with `--dk-surface-current` (Box and Card already do).
148
+
149
+ | Value | Level |
150
+ |---|---|
151
+ | `0` | The page. Inside a toned or levelled panel, the page again. |
152
+ | `1`, `2` | One and two rungs down the ladder. Light darkens down it, dark lightens. |
153
+ | `raised` | The level a raised surface already paints: level 0 in light, level 1 in dark. Put it on a raised card so what is inside matches the card. |
154
+ | `below` | One level below the level it sits on: level 1 on the page, level 2 on level 1, and on a raised surface level 1 in light and level 2 in dark. The ladder has three rungs, so on level 2 it stays level 2. |
155
+
156
+ `below` is the one to use for a panel that has to read against whatever it sits on in both themes, such as a placeholder panel on a raised card beside the Vehicle showcase's panels (`data-on="raised"`): it paints the same fill as they do in light and in dark from one markup, where a fixed level reads in one theme and all but vanishes in the other. It reads the nearest ancestor that sets a level (a `data-theme` scope, a tone, `data-surface`, or another `below`), so the raised card under it has to carry `data-surface="raised"`, as it should anyway. Inside a tone, put the tone on the same element as `below` for the tone's next level, as with any level.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmo-co/drift-kit-reference",
3
- "version": "25.9.0",
3
+ "version": "25.11.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"