@karmo-co/drift-kit-reference 25.15.0 → 25.16.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.
- package/manifest/index.json +12 -2
- package/manifest/rules.md +65 -0
- package/manifest/setup.md +26 -26
- package/package.json +1 -1
package/manifest/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "25.
|
|
4
|
-
"built": "2026-11-
|
|
3
|
+
"version": "25.16.0",
|
|
4
|
+
"built": "2026-11-17",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"id": "accordion",
|
|
@@ -1969,6 +1969,16 @@
|
|
|
1969
1969
|
"components": [],
|
|
1970
1970
|
"tokens": []
|
|
1971
1971
|
}
|
|
1972
|
+
},
|
|
1973
|
+
"25.16.0": {
|
|
1974
|
+
"added": {
|
|
1975
|
+
"components": [],
|
|
1976
|
+
"tokens": []
|
|
1977
|
+
},
|
|
1978
|
+
"removed": {
|
|
1979
|
+
"components": [],
|
|
1980
|
+
"tokens": []
|
|
1981
|
+
}
|
|
1972
1982
|
}
|
|
1973
1983
|
}
|
|
1974
1984
|
}
|
package/manifest/rules.md
CHANGED
|
@@ -36,3 +36,68 @@ Every rule below is a test in drift-kit. A component the kit ships passes all of
|
|
|
36
36
|
|
|
37
37
|
- every component stylesheet opens with an Anatomy block rooted at its own class
|
|
38
38
|
- every component stylesheet says what the component is for, in a Purpose line
|
|
39
|
+
|
|
40
|
+
## border-geometry
|
|
41
|
+
|
|
42
|
+
- no component subtracts a border width from a size (allow-list carries the reasons)
|
|
43
|
+
- every allow-list entry still exists and has a reason
|
|
44
|
+
- the guard catches the class: a thumb sized from what a border leaves
|
|
45
|
+
- a thicker border tier grows the parts outward: the inner geometry is the same at thin and bold
|
|
46
|
+
- a rail too short for its rows scrolls them, and at the end the last row keeps thin's space above the divider
|
|
47
|
+
- the collapsed rail centres its glyph and the current row's fill covers it at bold
|
|
48
|
+
|
|
49
|
+
## hover-gate
|
|
50
|
+
|
|
51
|
+
- a plain hover rule is wrapped in @media (hover: hover)
|
|
52
|
+
- a list mixing hover with the forced state or focus is split; the rest stays outside
|
|
53
|
+
- :is() and :where() alternatives that mix hover with others are split
|
|
54
|
+
- hover only in :not(), the :is(:hover, *) specificity idiom, and rules already gated are left alone
|
|
55
|
+
- comments before a rule are kept, and a hover rule inside another @media nests
|
|
56
|
+
- the built bundle has no ungated hover rule
|
|
57
|
+
|
|
58
|
+
## control-heights
|
|
59
|
+
|
|
60
|
+
- one height at
|
|
61
|
+
- Glider labels read at Button's size at
|
|
62
|
+
|
|
63
|
+
## collection-scoping
|
|
64
|
+
|
|
65
|
+
- every component collection is scoped to its own component
|
|
66
|
+
- no collection carries the four legs any more
|
|
67
|
+
- no collection is declared on :root
|
|
68
|
+
- the collections that need extra roots still name them
|
|
69
|
+
|
|
70
|
+
## popup-contract
|
|
71
|
+
|
|
72
|
+
- every behaviour that opens a popup is in the contract
|
|
73
|
+
|
|
74
|
+
## hairline
|
|
75
|
+
|
|
76
|
+
- the hairline ramp: a rung up in light, the old values in dark
|
|
77
|
+
- hairline-current reads its own ramp at every level
|
|
78
|
+
- the raised chrome border does not move
|
|
79
|
+
|
|
80
|
+
## field-palette
|
|
81
|
+
|
|
82
|
+
- every field token is declared in both themes
|
|
83
|
+
- level 0 is written as primitives, never as a public token
|
|
84
|
+
- the ten level-dependent tokens step at levels 1 and 2
|
|
85
|
+
- no status tone declares a field token anywhere in the kit
|
|
86
|
+
- the field-shaped components paint from the palette
|
|
87
|
+
- the build mirrors the palette for inverse
|
|
88
|
+
|
|
89
|
+
## box-focus-ring
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## interactive-selected-content
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## Known exceptions
|
|
96
|
+
|
|
97
|
+
Each of these reads below the usual contrast line by decision. Do not report it as a finding or change it.
|
|
98
|
+
|
|
99
|
+
- **The selected Tabs label, glyph and bar in the brand's primary mid tone (about 2.8 to 1 on white).** A branding decision, made knowing the ratio. Decided 12 Oct 2026, by the kit's owner.
|
|
100
|
+
- **The Sidebar's current row filled with the brand's primary mid tone under white contents (2.82 to 1).** A branding decision, made knowing the ratio; the brand teal under white is a palette fact. Decided 12 Oct 2026, by the kit's owner.
|
|
101
|
+
- **A link at rest in light one step under the darker primary (4.25 to 1 on white).** The darker step clears AA and was judged too dark for links. Decided 29 Sep 2026, by the kit's owner.
|
|
102
|
+
- **A field's placeholder below AA on a light page at the page level.** The only colour clearing AA everywhere makes a placeholder read as a value. Decided with the Input rebuild.
|
|
103
|
+
- **A Switch track at rest a little under the graphical-object line (about 2.9 to 1 light, 2.8 to 1 dark).** The thumb's shadow carries the control; the steps that clear the floor read too heavy at rest. Decided with the Switch's choice palette.
|
package/manifest/setup.md
CHANGED
|
@@ -69,47 +69,47 @@ Both scripts are deferred, and an icon script goes after `components.js`, which
|
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<!-- in the head -->
|
|
72
|
-
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.
|
|
73
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
74
|
-
<script src="https://storage.googleapis.com/drift-kit-public/25.
|
|
72
|
+
<link rel="stylesheet" href="https://storage.googleapis.com/drift-kit-public/25.16.0/drift-kit.css" integrity="sha384-/r8cFG7LZ5JSM+eWwqDJV2T4mBH6JKUEZENjGyd3hOQsgEtRvzmLssakWIPO95cZ" crossorigin="anonymous" />
|
|
73
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.16.0/components.js" integrity="sha384-/DrWJ+CT1azkUV/cqdwm34npnpzwH/aX3MzhsYrN8G7kcomKo10UFy7nmTgsMSyG" crossorigin="anonymous" defer></script>
|
|
74
|
+
<script src="https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-<set>.js" integrity="<its integrity>" crossorigin="anonymous" defer></script>
|
|
75
75
|
<!-- the attributes go on the body -->
|
|
76
76
|
<body data-brand="karmo" data-theme="light">
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
| File | Address | Integrity |
|
|
80
80
|
|---|---|---|
|
|
81
|
-
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
82
|
-
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
83
|
-
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
84
|
-
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
85
|
-
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
86
|
-
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
87
|
-
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
88
|
-
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
89
|
-
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
90
|
-
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.
|
|
81
|
+
| `drift-kit.css` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-kit.css` | `sha384-/r8cFG7LZ5JSM+eWwqDJV2T4mBH6JKUEZENjGyd3hOQsgEtRvzmLssakWIPO95cZ` |
|
|
82
|
+
| `drift-kit.min.css` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-kit.min.css` | `sha384-rN0puWrmgSfMIlXu85+7bUdebP3JIZ4essg3pI9uIzc5Zsn6DvV60eDe8o4elufo` |
|
|
83
|
+
| `components.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/components.js` | `sha384-/DrWJ+CT1azkUV/cqdwm34npnpzwH/aX3MzhsYrN8G7kcomKo10UFy7nmTgsMSyG` |
|
|
84
|
+
| `drift-icons-card.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-card.js` | `sha384-Dl18Pw11QQ+/KtbAzbjt1DdP6fJwFNn4kCykxtFsF+uEZtUfMIseQJ7s14OmqEmg` |
|
|
85
|
+
| `drift-icons-coolicon.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
86
|
+
| `drift-icons-feather.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-feather.js` | `sha384-MFEltFi3gRSwgNdAMXGCYo+6Ri9iXLLWp4Gq3AeayzeliWAo3czd+pTTLAFHHU6s` |
|
|
87
|
+
| `drift-icons-flag-circle.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-flag-circle.js` | `sha384-gtU89vOz98Fbn0KZWzkHVQA4+kFhOFYoT/Dr43ljTskqkyGDMw1ihH1I7Zn25dzZ` |
|
|
88
|
+
| `drift-icons-flag.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-flag.js` | `sha384-VtM24IDkwASIVzD5hI+ijQYRXufYQbveKM0+wqaFSGZbrYZlodFlnvZOexhCpiH9` |
|
|
89
|
+
| `drift-icons-lucide.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
90
|
+
| `drift-icons-social.js` | `https://storage.googleapis.com/drift-kit-public/25.16.0/drift-icons-social.js` | `sha384-+hPy5fFjIqfIAmDN+WOwekTLu7NIFZvyzOwXUTAiBEQqnZ0/kXgd4frbSGOr/c8c` |
|
|
91
91
|
|
|
92
92
|
### In Claude chat and Cowork
|
|
93
93
|
|
|
94
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>`.
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
97
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.0/drift-kit.min.css" integrity="sha384-rN0puWrmgSfMIlXu85+7bUdebP3JIZ4essg3pI9uIzc5Zsn6DvV60eDe8o4elufo" crossorigin="anonymous" />
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.0/components.js" integrity="sha384-p5+iOjph5AWNkpzUtDd1R1PAp1ycq7AQjs+txA1EwiDvm2c09t5PCcM8lXW+9MuJ" crossorigin="anonymous" defer></script>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
| File | Address | Integrity |
|
|
102
102
|
|---|---|---|
|
|
103
|
-
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
104
|
-
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
105
|
-
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
106
|
-
| `drift-icons-coolicon.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
107
|
-
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
108
|
-
| `drift-icons-flag-circle.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
109
|
-
| `drift-icons-flag.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
110
|
-
| `drift-icons-lucide.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
111
|
-
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
112
|
-
| `drift-kit.min.css` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.
|
|
103
|
+
| `components.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.0/components.js` | `sha384-p5+iOjph5AWNkpzUtDd1R1PAp1ycq7AQjs+txA1EwiDvm2c09t5PCcM8lXW+9MuJ` |
|
|
104
|
+
| `drift-data-countries.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.0/drift-data-countries.js` | `sha384-GttgZnsRDPioKDxlsEyQtUqCwO0ObYYdjdjKBBt9LWThZld3OnUBnZ9EScI41qIf` |
|
|
105
|
+
| `drift-icons-card.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.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.16.0/drift-icons-coolicon.js` | `sha384-CfSMUCWuUL4AcPkDdPtAHpifYxAeW0OarhAAJ+7sNGvRJkzvUBege6vq8G3N6LTH` |
|
|
107
|
+
| `drift-icons-feather.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.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.16.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.16.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.16.0/drift-icons-lucide.js` | `sha384-wLKQdccKZKGXZJ9kcU8XCKyNI79EGI/7NrBVmOAlE0DZNThpyW1SY6z4j3teJLB0` |
|
|
111
|
+
| `drift-icons-social.js` | `https://cdn.jsdelivr.net/npm/@karmo-co/drift-kit-public@25.16.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.16.0/drift-kit.min.css` | `sha384-rN0puWrmgSfMIlXu85+7bUdebP3JIZ4essg3pI9uIzc5Zsn6DvV60eDe8o4elufo` |
|
|
113
113
|
|
|
114
114
|
### Integrity for 23.4.0
|
|
115
115
|
|
|
@@ -141,5 +141,5 @@ The behaviour script initialises every component on the page when it loads. Mark
|
|
|
141
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.
|
|
142
142
|
|
|
143
143
|
```json
|
|
144
|
-
{"version":"25.
|
|
144
|
+
{"version":"25.16.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","icon":".dk-component-icon","card":".dk-component-card","symmetric":[".dk-component-tag",".dk-component-alert"]}
|
|
145
145
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karmo-co/drift-kit-reference",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.16.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"
|