@crewlethq/tokens 0.96.0 → 0.97.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/README.md CHANGED
@@ -459,6 +459,8 @@ No token is renamed; two values moved to the approved design.
459
459
 
460
460
  The focus indicator is an **outline**, never a box-shadow alone. Forced-colors mode drops every box-shadow and keeps outlines, so a ring drawn as a shadow disappears for exactly the readers who most need one. `--shadow-focus` is still there for a component that wants a shadow as well, paired with a transparent outline so forced colors substitutes a system colour for it. `--size-focus-ring-inset-offset` is the offset for a ring drawn inside its own box: on a focusable row inside a clipping scroller, where an outset ring is clipped by the scroller and painted over by the next row, and on any control that draws a visible boundary of its own, where a ring standing off the border is two edges with a gap between them. At -2px the ring covers a 1px border, so a focused control shows one edge.
461
461
 
462
+ The scrollbar is a 6px track with a 4px thumb in `--color-scrollbar` (`--color-scrollbar-hover` under the pointer) where the browser reads `::-webkit-scrollbar` (Chromium and Safari), and `scrollbar-width: thin` in the same colours where it does not (Firefox, 8px). `scrollbar-width` and `scrollbar-color` are set only in the second case, because Chromium ignores the `::-webkit-scrollbar` rules on an element with either one and draws its native bar. A stylesheet of your own keeps them inside `@supports not selector(::-webkit-scrollbar)` as well (`npx crewlet-css-check` refuses them anywhere else), and a layout that reserves room for the bar reserves 8px, the wider of the two.
463
+
462
464
  The body's height and overflow are deliberately not here. A page that can scroll as a whole moves an application's rail off the top of the window, so the rule that stops it belongs to the shell that owns the rail.
463
465
 
464
466
  ## Type
package/dist/css/base.css CHANGED
@@ -163,16 +163,12 @@ img {
163
163
  background: var(--color-brand-accent-soft);
164
164
  }
165
165
 
166
- /* Scrollbars belong to the palette. A bright system gutter down the side of a
167
- dark page is the most visible way an application admits it is a web page. */
168
- * {
169
- scrollbar-color: var(--color-scrollbar) transparent;
170
- scrollbar-width: thin;
171
- }
172
-
166
+ /* Scrollbars belong to the palette: a 6px track and a 4px thumb. Chromium
167
+ ignores these rules on an element with `scrollbar-width` or
168
+ `scrollbar-color`, so those two are set only in the block below. */
173
169
  ::-webkit-scrollbar {
174
- width: 10px;
175
- height: 10px;
170
+ width: 6px;
171
+ height: 6px;
176
172
  }
177
173
 
178
174
  ::-webkit-scrollbar-track {
@@ -181,7 +177,7 @@ img {
181
177
 
182
178
  ::-webkit-scrollbar-thumb {
183
179
  background: var(--color-scrollbar);
184
- border: 3px solid transparent;
180
+ border: 1px solid transparent;
185
181
  background-clip: content-box;
186
182
  border-radius: var(--radius-pill);
187
183
  }
@@ -195,6 +191,15 @@ img {
195
191
  background: transparent;
196
192
  }
197
193
 
194
+ /* Where `::-webkit-scrollbar` is not read (Firefox): the standard properties,
195
+ a thin bar in the same colours. */
196
+ @supports not selector(::-webkit-scrollbar) {
197
+ * {
198
+ scrollbar-color: var(--color-scrollbar) transparent;
199
+ scrollbar-width: thin;
200
+ }
201
+ }
202
+
198
203
  /* The one place a reduced-motion preference is honoured for the whole
199
204
  document. A component still states its own rule, because a component is
200
205
  also used in a document that does not import this file. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/tokens",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "description": "Crewlet design tokens. Single JSON source compiled to CSS variables and typed JS modules.",
5
5
  "license": "MIT AND OFL-1.1",
6
6
  "repository": {