viewkitjs 0.21.0 → 0.23.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.
Files changed (237) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/MIGRATION.md +1 -1
  3. package/README.md +1 -1
  4. package/fields/dist/conventions.d.ts +15 -3
  5. package/fields/dist/conventions.js +25 -0
  6. package/fields/dist/design/category-colors.d.ts +12 -5
  7. package/fields/dist/design/category-colors.js +7 -7
  8. package/fields/dist/query/buckets.js +42 -35
  9. package/fields/dist/query/date.js +2 -13
  10. package/fields/docs/guides/conventions.md +1 -1
  11. package/fields/docs/guides/options.md +2 -1
  12. package/fields/docs/reference/design-category-colors.md +2 -2
  13. package/fields/docs/reference/fields.md +1 -1
  14. package/package.json +13 -1
  15. package/views/dist/atoms/tones.js +7 -7
  16. package/views/dist/contract.d.ts +6 -1
  17. package/views/dist/contract.js +1 -0
  18. package/views/dist/controls/atoms.d.ts +8 -0
  19. package/views/dist/controls/atoms.js +8 -0
  20. package/views/dist/controls/button/button.d.ts +40 -0
  21. package/views/dist/controls/button/button.js +40 -0
  22. package/views/dist/controls/button/looks.d.ts +4 -0
  23. package/views/dist/controls/button/looks.js +20 -0
  24. package/views/dist/controls/button/map-button.d.ts +11 -0
  25. package/views/dist/controls/button/map-button.js +20 -0
  26. package/views/dist/controls/button/own-look.d.ts +59 -0
  27. package/views/dist/controls/button/own-look.js +33 -0
  28. package/views/dist/controls/button/tokens.d.ts +351 -0
  29. package/views/dist/controls/button/tokens.js +90 -0
  30. package/views/dist/controls/button.css +530 -0
  31. package/views/dist/controls/checkbox/checkbox.d.ts +28 -0
  32. package/views/dist/controls/checkbox/checkbox.js +15 -0
  33. package/views/dist/controls/checkbox/looks.d.ts +3 -0
  34. package/views/dist/controls/checkbox/looks.js +8 -0
  35. package/views/dist/controls/checkbox/map-checkbox.d.ts +2 -0
  36. package/views/dist/controls/checkbox/map-checkbox.js +5 -0
  37. package/views/dist/controls/checkbox/tokens.d.ts +131 -0
  38. package/views/dist/controls/checkbox/tokens.js +35 -0
  39. package/views/dist/controls/checkbox.css +133 -0
  40. package/views/dist/controls/controls.d.ts +14 -0
  41. package/views/dist/controls/controls.js +14 -0
  42. package/views/dist/controls/field/field.d.ts +94 -0
  43. package/views/dist/controls/field/field.js +46 -0
  44. package/views/dist/controls/field/looks.d.ts +13 -0
  45. package/views/dist/controls/field/looks.js +22 -0
  46. package/views/dist/controls/field/tokens.d.ts +75 -0
  47. package/views/dist/controls/field/tokens.js +21 -0
  48. package/views/dist/controls/field.css +98 -0
  49. package/views/dist/controls/glass-button/glass-button.d.ts +40 -0
  50. package/views/dist/controls/glass-button/glass-button.js +16 -0
  51. package/views/dist/controls/glass-button/looks.d.ts +4 -0
  52. package/views/dist/controls/glass-button/looks.js +4 -0
  53. package/views/dist/controls/glass-button/tokens.d.ts +127 -0
  54. package/views/dist/controls/glass-button/tokens.js +34 -0
  55. package/views/dist/controls/glass-button.css +111 -0
  56. package/views/dist/controls/index.d.ts +37 -0
  57. package/views/dist/controls/index.js +31 -0
  58. package/views/dist/controls/inline-input/inline-input.d.ts +14 -0
  59. package/views/dist/controls/inline-input/inline-input.js +10 -0
  60. package/views/dist/controls/inline-input/looks.d.ts +3 -0
  61. package/views/dist/controls/inline-input/looks.js +16 -0
  62. package/views/dist/controls/inline-input/tokens.d.ts +79 -0
  63. package/views/dist/controls/inline-input/tokens.js +22 -0
  64. package/views/dist/controls/inline-input.css +78 -0
  65. package/views/dist/controls/input/autofill.d.ts +25 -0
  66. package/views/dist/controls/input/autofill.js +17 -0
  67. package/views/dist/controls/input/input.d.ts +119 -0
  68. package/views/dist/controls/input/input.js +127 -0
  69. package/views/dist/controls/input/looks.d.ts +41 -0
  70. package/views/dist/controls/input/looks.js +48 -0
  71. package/views/dist/controls/input/map-input.d.ts +2 -0
  72. package/views/dist/controls/input/map-input.js +5 -0
  73. package/views/dist/controls/input/tokens.d.ts +171 -0
  74. package/views/dist/controls/input/tokens.js +45 -0
  75. package/views/dist/controls/input.css +381 -0
  76. package/views/dist/controls/internal/anchor.d.ts +16 -0
  77. package/views/dist/controls/internal/anchor.js +8 -0
  78. package/views/dist/controls/internal/close-reason.d.ts +5 -0
  79. package/views/dist/controls/internal/close-reason.js +2 -0
  80. package/views/dist/controls/internal/popup-host.d.ts +7 -0
  81. package/views/dist/controls/internal/popup-host.js +10 -0
  82. package/views/dist/controls/internal/scroll.d.ts +11 -0
  83. package/views/dist/controls/internal/scroll.js +14 -0
  84. package/views/dist/controls/kbd/kbd.d.ts +13 -0
  85. package/views/dist/controls/kbd/kbd.js +10 -0
  86. package/views/dist/controls/kbd/looks.d.ts +4 -0
  87. package/views/dist/controls/kbd/looks.js +4 -0
  88. package/views/dist/controls/kbd/tokens.d.ts +47 -0
  89. package/views/dist/controls/kbd/tokens.js +14 -0
  90. package/views/dist/controls/kbd.css +46 -0
  91. package/views/dist/controls/number-field/number-field.d.ts +48 -0
  92. package/views/dist/controls/number-field/number-field.js +34 -0
  93. package/views/dist/controls/number-field/tokens.d.ts +47 -0
  94. package/views/dist/controls/number-field/tokens.js +14 -0
  95. package/views/dist/controls/number-field.css +54 -0
  96. package/views/dist/controls/option/atom-tag.d.ts +6 -0
  97. package/views/dist/controls/option/atom-tag.js +6 -0
  98. package/views/dist/controls/option/looks.d.ts +7 -0
  99. package/views/dist/controls/option/looks.js +21 -0
  100. package/views/dist/controls/option/option.d.ts +35 -0
  101. package/views/dist/controls/option/option.js +32 -0
  102. package/views/dist/controls/option/tokens.d.ts +223 -0
  103. package/views/dist/controls/option/tokens.js +58 -0
  104. package/views/dist/controls/option.css +92 -0
  105. package/views/dist/controls/phone-header/header-bar.d.ts +18 -0
  106. package/views/dist/controls/phone-header/header-bar.js +9 -0
  107. package/views/dist/controls/phone-header/looks.d.ts +4 -0
  108. package/views/dist/controls/phone-header/looks.js +4 -0
  109. package/views/dist/controls/phone-header/soft-edge.d.ts +5 -0
  110. package/views/dist/controls/phone-header/soft-edge.js +3 -0
  111. package/views/dist/controls/phone-header/tokens.d.ts +59 -0
  112. package/views/dist/controls/phone-header/tokens.js +17 -0
  113. package/views/dist/controls/phone-header.css +51 -0
  114. package/views/dist/controls/popover/looks.d.ts +4 -0
  115. package/views/dist/controls/popover/looks.js +10 -0
  116. package/views/dist/controls/popover/map-popover.d.ts +3 -0
  117. package/views/dist/controls/popover/map-popover.js +5 -0
  118. package/views/dist/controls/popover/popover.d.ts +74 -0
  119. package/views/dist/controls/popover/popover.js +106 -0
  120. package/views/dist/controls/popover/tokens.d.ts +83 -0
  121. package/views/dist/controls/popover/tokens.js +23 -0
  122. package/views/dist/controls/popover.css +94 -0
  123. package/views/dist/controls/scrollbar/scrollbar.d.ts +10 -0
  124. package/views/dist/controls/scrollbar/scrollbar.js +143 -0
  125. package/views/dist/controls/scrollbar/tokens.d.ts +43 -0
  126. package/views/dist/controls/scrollbar/tokens.js +13 -0
  127. package/views/dist/controls/scrollbar.css +47 -0
  128. package/views/dist/controls/sheet/bottom-sheet.d.ts +98 -0
  129. package/views/dist/controls/sheet/bottom-sheet.js +372 -0
  130. package/views/dist/controls/sheet/forms.d.ts +38 -0
  131. package/views/dist/controls/sheet/forms.js +26 -0
  132. package/views/dist/controls/sheet/looks.d.ts +4 -0
  133. package/views/dist/controls/sheet/looks.js +10 -0
  134. package/views/dist/controls/sheet/map-sheet.d.ts +3 -0
  135. package/views/dist/controls/sheet/map-sheet.js +12 -0
  136. package/views/dist/controls/sheet/spring.d.ts +22 -0
  137. package/views/dist/controls/sheet/spring.js +48 -0
  138. package/views/dist/controls/sheet/tokens.d.ts +143 -0
  139. package/views/dist/controls/sheet/tokens.js +38 -0
  140. package/views/dist/controls/sheet.css +220 -0
  141. package/views/dist/controls/smooth.css +101 -0
  142. package/views/dist/controls/spinner/looks.d.ts +4 -0
  143. package/views/dist/controls/spinner/looks.js +32 -0
  144. package/views/dist/controls/spinner/spinner.d.ts +23 -0
  145. package/views/dist/controls/spinner/spinner.js +16 -0
  146. package/views/dist/controls/spinner/tokens.d.ts +55 -0
  147. package/views/dist/controls/spinner/tokens.js +16 -0
  148. package/views/dist/controls/spinner.css +147 -0
  149. package/views/dist/controls/status/atom-status-badge.d.ts +10 -0
  150. package/views/dist/controls/status/atom-status-badge.js +13 -0
  151. package/views/dist/controls/status/looks.d.ts +4 -0
  152. package/views/dist/controls/status/looks.js +22 -0
  153. package/views/dist/controls/status/marks.d.ts +26 -0
  154. package/views/dist/controls/status/marks.js +73 -0
  155. package/views/dist/controls/status/status.d.ts +43 -0
  156. package/views/dist/controls/status/status.js +26 -0
  157. package/views/dist/controls/status/tokens.d.ts +407 -0
  158. package/views/dist/controls/status/tokens.js +104 -0
  159. package/views/dist/controls/status.css +164 -0
  160. package/views/dist/controls/switch/looks.d.ts +4 -0
  161. package/views/dist/controls/switch/looks.js +19 -0
  162. package/views/dist/controls/switch/switch.d.ts +15 -0
  163. package/views/dist/controls/switch/switch.js +11 -0
  164. package/views/dist/controls/switch/tokens.d.ts +139 -0
  165. package/views/dist/controls/switch/tokens.js +37 -0
  166. package/views/dist/controls/switch.css +169 -0
  167. package/views/dist/controls/tag/atom-cell-more.d.ts +3 -0
  168. package/views/dist/controls/tag/atom-cell-more.js +5 -0
  169. package/views/dist/controls/tag/looks.d.ts +4 -0
  170. package/views/dist/controls/tag/looks.js +4 -0
  171. package/views/dist/controls/tag/tag.d.ts +25 -0
  172. package/views/dist/controls/tag/tag.js +19 -0
  173. package/views/dist/controls/tag/tokens.d.ts +63 -0
  174. package/views/dist/controls/tag/tokens.js +18 -0
  175. package/views/dist/controls/tag.css +81 -0
  176. package/views/dist/controls/toggle/looks.d.ts +3 -0
  177. package/views/dist/controls/toggle/looks.js +12 -0
  178. package/views/dist/controls/toggle/toggle.d.ts +47 -0
  179. package/views/dist/controls/toggle/toggle.js +23 -0
  180. package/views/dist/controls/toggle/tokens.d.ts +55 -0
  181. package/views/dist/controls/toggle/tokens.js +16 -0
  182. package/views/dist/controls/toggle.css +67 -0
  183. package/views/dist/controls/tokens.d.ts +16 -0
  184. package/views/dist/controls/tokens.js +45 -0
  185. package/views/dist/controls/tooltip/looks.d.ts +4 -0
  186. package/views/dist/controls/tooltip/looks.js +4 -0
  187. package/views/dist/controls/tooltip/map-tooltip.d.ts +3 -0
  188. package/views/dist/controls/tooltip/map-tooltip.js +5 -0
  189. package/views/dist/controls/tooltip/tokens.d.ts +75 -0
  190. package/views/dist/controls/tooltip/tokens.js +21 -0
  191. package/views/dist/controls/tooltip/tooltip.d.ts +54 -0
  192. package/views/dist/controls/tooltip/tooltip.js +78 -0
  193. package/views/dist/controls/tooltip.css +94 -0
  194. package/views/dist/display/date.js +15 -2
  195. package/views/dist/grid/chrome/GridTable.js +21 -19
  196. package/views/dist/grid/chrome/grid-row-window.js +3 -0
  197. package/views/dist/grid/chrome/useGridColumnLayout.d.ts +4 -1
  198. package/views/dist/grid/chrome/useGridColumnLayout.js +17 -2
  199. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +29 -0
  200. package/views/dist/grid/chrome/useGridFittedWidths.js +46 -0
  201. package/views/dist/looks/index.d.ts +17 -0
  202. package/views/dist/looks/index.js +17 -0
  203. package/views/dist/looks/looks.d.ts +2 -1
  204. package/views/dist/looks/pieces.js +37 -1
  205. package/views/dist/model/column-schema.d.ts +3 -2
  206. package/views/dist/model/column-state.d.ts +11 -1
  207. package/views/dist/model/column-state.js +8 -2
  208. package/views/dist/panels/react/views-row/FoldingViewRow.js +8 -8
  209. package/views/dist/styles.css +2748 -56
  210. package/views/dist/styles.unlayered.css +2765 -56
  211. package/views/docs/contract.md +39 -8
  212. package/views/docs/controls/button.md +93 -0
  213. package/views/docs/controls/checkbox.md +38 -0
  214. package/views/docs/controls/field.md +26 -0
  215. package/views/docs/controls/glass-button.md +37 -0
  216. package/views/docs/controls/inline-input.md +27 -0
  217. package/views/docs/controls/input.md +48 -0
  218. package/views/docs/controls/kbd.md +17 -0
  219. package/views/docs/controls/number-field.md +17 -0
  220. package/views/docs/controls/option.md +61 -0
  221. package/views/docs/controls/phone-header.md +20 -0
  222. package/views/docs/controls/popover.md +26 -0
  223. package/views/docs/controls/scrollbar.md +16 -0
  224. package/views/docs/controls/sheet.md +41 -0
  225. package/views/docs/controls/spinner.md +19 -0
  226. package/views/docs/controls/status.md +107 -0
  227. package/views/docs/controls/switch.md +40 -0
  228. package/views/docs/controls/tag.md +21 -0
  229. package/views/docs/controls/toggle.md +19 -0
  230. package/views/docs/controls/tooltip.md +24 -0
  231. package/views/docs/getting-started.md +1 -1
  232. package/views/docs/guides/the-provider.md +1 -1
  233. package/views/docs/index.md +1 -0
  234. package/views/docs/install.md +2 -0
  235. package/views/docs/reference/controls.md +207 -0
  236. package/views/docs/reference/looks.md +77 -2
  237. package/views/docs/reference/views.md +10 -2
@@ -250,9 +250,9 @@ declares both wherever a ground declares its own, so a part takes the states of
250
250
  The default atoms and the display also read `--vk-success`, `--vk-warning`, `--vk-info`,
251
251
  `--vk-label-blue`, `--vk-label-green`, `--vk-label-amber`, `--vk-label-red`, `--vk-label-purple`,
252
252
  `--vk-label-pink` and `--vk-label-teal` when the app declares them, each with a built-in fallback. The
253
- default Tag draws each hue as a pill, and the stylesheet draws fields' soft fills and the words on a filled
253
+ default Tag draws each hue as a pill, as does fields' chip map (`CATEGORY_COLOR_CLASSES`), and the stylesheet draws fields' soft fills and the words on a filled
254
254
  status, through the optional colours below (`<hue>` is each of the seven: blue, green, amber, red, purple,
255
- pink, teal). Each is optional: the stylesheet declares the Outright look's, and with `@source` the Tag's
255
+ pink, teal). Each is optional: the stylesheet declares the Outright look's, and with `@source` the pill's
256
256
  rungs fall back to the hue itself, so an app that declares only `--vk-label-<hue>` keeps its hue, and
257
257
  fields' names draw on the app's own theme.
258
258
 
@@ -263,10 +263,10 @@ fields' names draw on the app's own theme.
263
263
  | `--vk-info-subtlest` | an information wash (`bg-info-soft`) |
264
264
  | `--vk-fg-inverse` | words on a filled success, information or error |
265
265
  | `--vk-fg-warning-inverse` | words on a filled warning |
266
- | `--vk-label-<hue>-soft` | the hue's pale ground: a category chip's fill (`bg-label-<hue>-soft`) |
267
- | `--vk-label-<hue>-fill` | the Tag's fill; undeclared, the hue 15% into `--vk-ground` |
268
- | `--vk-label-<hue>-edge` | the Tag's edge, drawn inside; undeclared, the hue 40% into `--vk-ground` |
269
- | `--vk-label-<hue>-strong` | the Tag's words; undeclared, the hue 60% into `--vk-fg` |
266
+ | `--vk-label-<hue>-soft` | the hue's pale ground, for a class of the app's own (`bg-label-<hue>-soft`) |
267
+ | `--vk-label-<hue>-fill` | the pill's fill; undeclared, the hue 15% into `--vk-ground` |
268
+ | `--vk-label-<hue>-edge` | the pill's edge, drawn inside; undeclared, the hue 40% into `--vk-ground` |
269
+ | `--vk-label-<hue>-strong` | the pill's words; undeclared, the hue 60% into `--vk-fg` |
270
270
 
271
271
  By name: `--vk-label-blue-soft`, `--vk-label-green-soft`, `--vk-label-amber-soft`, `--vk-label-red-soft`, `--vk-label-purple-soft`, `--vk-label-pink-soft`, `--vk-label-teal-soft`; `--vk-label-blue-fill`, `--vk-label-green-fill`, `--vk-label-amber-fill`, `--vk-label-red-fill`, `--vk-label-purple-fill`, `--vk-label-pink-fill`, `--vk-label-teal-fill`; `--vk-label-blue-edge`, `--vk-label-green-edge`, `--vk-label-amber-edge`, `--vk-label-red-edge`, `--vk-label-purple-edge`, `--vk-label-pink-edge`, `--vk-label-teal-edge`; `--vk-label-blue-strong`, `--vk-label-green-strong`, `--vk-label-amber-strong`, `--vk-label-red-strong`, `--vk-label-purple-strong`, `--vk-label-pink-strong`, `--vk-label-teal-strong`.
272
272
 
@@ -363,17 +363,43 @@ sideways) for itself. The stylesheet declares `--vk-t-<name>`, its own theme val
363
363
  dark (a shadow). They carry the prefix because they share the global namespace;
364
364
  an app neither sets nor reads them, and they may change in any release.
365
365
 
366
+ ### The controls' tokens
367
+
368
+ ViewKit's default controls (`viewkitjs/views/controls`) read only these names, each optional: the ready stylesheet
369
+ declares every one at My preset's value, and an app declares one to change it. Each stands for one Outright token, which an
370
+ app on the Outright tokens declares it as. Sixteen are the contract's colours already. **How a new one is named**, so every
371
+ control that moves names the same way:
372
+
373
+ 1. A token already public keeps its name.
374
+ 2. A colour joins its family (`fg-`, the grounds, the fills, `border-`) in the family's words.
375
+ 3. A scale's name starts with the scale, a role's ends with it: `--vk-radius-md`, `--vk-shadow-key`, `--vk-font-size-sm`,
376
+ against `--vk-outline-radius`, `--vk-frozen-shadow-width`.
377
+ 4. Anything else is the prefix and the Outright token's own name.
378
+ 5. A scale step never falls back to a role's single name: each duration step is declared, and the grid's one `--vk-duration`
379
+ stays the grid's.
380
+ 6. No name repeats one the contract already gives a geometry, a layout or the grid's own machinery.
381
+
382
+ `--vk-fg-accent` is the brand's colour on words that aren't links; `--vk-fg-brand` stays the link's. The controls' own
383
+ machinery (the variables named for the button, the smooth corner, the spinner, the loading bar and the pressing room) is
384
+ private, set and read by a control alone.
385
+
386
+ Each control's names, with their kind, the Outright token each stands for and its default, are on the control's own page,
387
+ `docs/controls/<piece>.md`, beside its stylesheet `viewkitjs/views/controls/<piece>.css`. A name two controls read is on
388
+ both pages, one kind and one token.
389
+
366
390
  ## Looks
367
391
 
368
392
  A piece's looks are declared beside the piece and listed in `LOOKS` (`viewkitjs/views/looks`). An option is a closed set
369
- of values with a default; a look is a named set of picks, one value for every option, its first the piece's own. An app
393
+ of values with a default; a look is a named set of picks, one value for every option. Nothing picked wears each option's
394
+ default, My preset's pick, which no look need match whole. An app
370
395
  wears a set of picks as data attributes on a frame round the piece, `data-<piece>-<option>="<value>"` (`lookAttrs`), which
371
396
  the piece's look stylesheet reads, and the piece's code reads the same picks back (`lookWorn`, `lookWornOf`); a pick its
372
397
  option doesn't have wears the default. **Public:** a piece's id, its options' ids, their values' ids and its looks' ids,
373
398
  renamed only with a codemod, since apps save picks by them. Not public: the words (`name`), which a later version may
374
399
  reword. Only options live in the shape: what a piece takes from an app's own design beyond its options stays outside it.
375
400
 
376
- Today one piece declares looks, the grid (`GRID_LOOKS`): 25 options and two looks, `attio` and `portal`. Fourteen of its
401
+ Each default control declares its looks beside it in the controls part (its folder's `looks.ts`, listed in `LOOKS`), and
402
+ its stylesheet is its look stylesheet. The grid (`GRID_LOOKS`): 25 options and two looks, `attio` and `portal`. Fourteen of its
377
403
  options are read by the grid's code (`GRID_LOOK_READ`): eleven become the props it is handed (`gridLookProps`), and three
378
404
  the app wires itself, `more` (pages under `GridTable`'s `pages`), `figures` (the footer's words, through the provider's
379
405
  messages) and `wait` (`RowsWait` in the components map). The other eleven are its look stylesheet's, which ships later.
@@ -392,6 +418,11 @@ on a focus that bubbles up from within, and where yours checks `:focus-visible`,
392
418
  grid's editors and menus use, each in Base UI's shape, and an adapter on Radix and one on Base UI
393
419
  both fill every one.
394
420
 
421
+ **Defaults for an app that hands none:** `CONTROLS`, from `viewkitjs/views/controls`, holds ViewKit's default controls,
422
+ the Outright kit's, on Base UI: today the `Button`. An app spreads it first and its own after
423
+ (`components={{ ...CONTROLS, ...own }}`), so whatever it hands wins. That door alone needs `@base-ui/react`, an optional
424
+ peer; the provider and every other door import neither library, so an app that hands every control never installs it.
425
+
395
426
  `Button` · `Popover` · `Tooltip` · `Checkbox` · `Menu` · `Collapse` · `Sheet` · `AppIcon` · `Markdown`
396
427
 
397
428
  `Button`: `ViewsButtonProps`, its children, `onClick`, `disabled`, `variant`, `size`, `type`, a class, `aria-label` and `title`, and, for the grid's own buttons when the provider's `gridButtons` is `button`, a `ref`, `tabIndex`, `aria-haspopup`, `aria-expanded`, `data-slot` and `data-open`, each forwarded to your element. A command cell's ▾ and trigger, under `gridButtons` too, and the selection chip, when the provider's `selectionBar`'s `chip` is `button`, are handed only the props named first, the chip also `data-slot`. A field row's own buttons, when the provider's `fieldRowButtons` is `button`, are handed `type`, `variant`, `size`, `className`, `aria-label`, `disabled` and `onClick` (the ▾ and the verb trigger no `onClick`: the menu opens on them), Show more also `data-slot`, and the edit target also a ref and `aria-disabled` while its write is pending, each forwarded to your element. The panels' own buttons, when the provider's `panelButtons` is `button`, are handed `type`, `variant` (`ghost`, `outline` or `secondary`), `size`, `className` and their children, each with what it needs of `onClick`, `disabled`, `aria-label`, `title`, a ref, `aria-haspopup`, `aria-expanded`, `aria-pressed`, `role`, `aria-selected`, `aria-disabled` and `aria-describedby` (a button that can't be used, described by why), `data-slot`, `data-state="open"` or `data-state="closed"` and `data-vs-row="true"`, each forwarded to your element.
@@ -0,0 +1,93 @@
1
+ # The Button's tokens
2
+
3
+ Every name the Button's stylesheet (`button.css`) reads, its group's too, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
8
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
9
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
10
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
11
+ | `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
12
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
13
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
14
+ | `--vk-fg-brand` | colour | `link` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
15
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
16
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
17
+ | `--vk-pressed` | colour | `surface-pressed` | `hsl(0 0% 94.5%)` · dark `hsl(225 7% 11%)` |
18
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
19
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
20
+ | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
21
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
22
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
23
+ | `--vk-brand-hovered` | colour | `background-brand-bold-hovered` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
24
+ | `--vk-brand-pressed` | colour | `background-brand-bold-pressed` | `hsl(219 70% 38%)` · dark `hsl(219 100% 72.5%)` |
25
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
26
+ | `--vk-brand-subtler-hovered` | colour | `background-brand-subtler-hovered` | `hsl(218 100% 89%)` · dark `hsl(219 46% 21%)` |
27
+ | `--vk-brand-subtler-pressed` | colour | `background-brand-subtler-pressed` | `hsl(218 97% 82%)` · dark `hsl(219 55% 29%)` |
28
+ | `--vk-danger-bold` | colour | `background-danger-bold` | `hsl(0 81% 58%)` |
29
+ | `--vk-danger-bold-hovered` | colour | `background-danger-bold-hovered` | `hsl(0 59% 49%)` · dark `hsl(3 90% 66.5%)` |
30
+ | `--vk-danger-bold-pressed` | colour | `background-danger-bold-pressed` | `hsl(0 59% 39%)` · dark `hsl(4 100% 75%)` |
31
+ | `--vk-info-bold` | colour | `background-information-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
32
+ | `--vk-info-bold-hovered` | colour | `background-information-bold-hovered` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
33
+ | `--vk-info-bold-pressed` | colour | `background-information-bold-pressed` | `hsl(219 70% 38%)` · dark `hsl(219 100% 72.5%)` |
34
+ | `--vk-success-bold` | colour | `background-success-bold` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
35
+ | `--vk-success-bold-hovered` | colour | `background-success-bold-hovered` | `hsl(157 88% 24%)` · dark `hsl(150 45% 51.5%)` |
36
+ | `--vk-success-bold-pressed` | colour | `background-success-bold-pressed` | `hsl(156 87% 21%)` · dark `hsl(148 46% 62.5%)` |
37
+ | `--vk-warning-bold` | colour | `background-warning-bold` | `hsl(25 92% 41%)` |
38
+ | `--vk-warning-bold-hovered` | colour | `background-warning-bold-hovered` | `hsl(24 86% 35.5%)` · dark `hsl(21 66% 55%)` |
39
+ | `--vk-warning-bold-pressed` | colour | `background-warning-bold-pressed` | `hsl(23 85% 29%)` · dark `hsl(20 73% 65.5%)` |
40
+ | `--vk-brighten` | colour | `background-brighten` | `hsl(0 0% 100% / 0.09)` · dark `hsl(210 8% 95% / 0.09)` |
41
+ | `--vk-darken` | colour | `background-darken` | `hsl(214 30% 10% / 0.1)` · dark `hsl(0 0% 0% / 0.15)` |
42
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
43
+ | `--vk-border-input-hovered` | colour | `border-input-hovered` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
44
+ | `--vk-raised` | colour | `surface-raised` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
45
+ | `--vk-raised-hovered` | colour | `surface-raised-hovered` | `hsl(220 3% 97%)` · dark `hsl(225 7% 15%)` |
46
+ | `--vk-overlay-hovered` | colour | `surface-overlay-hovered` | `hsl(220 3% 97%)` · dark `hsl(225 7% 15%)` |
47
+ | `--vk-overlay-pressed` | colour | `surface-overlay-pressed` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
48
+ | `--vk-overlay-card-pressed` | colour | `surface-overlay-card-pressed` | `hsl(220 7% 90%)` · dark `hsl(220 4% 22%)` |
49
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
50
+ | `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
51
+ | `--vk-border-width` | size | `border-width` | `1px` |
52
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
53
+ | `--vk-dot-size` | size | `dot-size` | `6px` |
54
+ | `--vk-duration-instant` | motion | `duration-instant` | `60ms` |
55
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
56
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
57
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
58
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
59
+ | `--vk-ease-spring` | motion | `ease-spring` | `cubic-bezier(0.34, 1.56, 0.64, 1)` |
60
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
61
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
62
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
63
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
64
+ | `--vk-hover-lift` | motion | `hover-lift` | `1px` |
65
+ | `--vk-press-scale` | motion | `press-scale` | `0.98` |
66
+ | `--vk-press-squash` | motion | `press-squash` | `1.025 0.92` |
67
+ | `--vk-press-travel` | motion | `press-travel` | `1px` |
68
+ | `--vk-press-travel-lg` | motion | `press-travel-lg` | `2px` |
69
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
70
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
71
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
72
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
73
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
74
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
75
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
76
+ | `--vk-shadow-key` | shadow | `shadow-key` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.18), 0 1px 0 0 hsl(214 30% 10% / 0.32), 0 1px 2px 0 hsl(214 30% 10% / 0.12)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.27), 0 1px 0 0 hsl(0 0% 0% / 0.5), 0 1px 2px 0 hsl(0 0% 0% / 0.18)` |
77
+ | `--vk-shadow-key-pressed` | shadow | `shadow-key-pressed` | `inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.12)` · dark `inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.18)` |
78
+ | `--vk-shadow-key-pressed-bold` | shadow | `shadow-key-pressed-bold` | `inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.28)` · dark `inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.42)` |
79
+ | `--vk-shadow-key-shallow` | shadow | `shadow-key-shallow` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.064)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.096)` |
80
+ | `--vk-shadow-key-soft` | shadow | `shadow-key-soft` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.3), inset 0 -1px 0 0 hsl(214 30% 10% / 0.088)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.3), inset 0 -1px 0 0 hsl(0 0% 0% / 0.132)` |
81
+ | `--vk-shadow-key-subtle` | shadow | `shadow-key-subtle` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.088), 0 1px 2px 0 hsl(214 30% 10% / 0.04)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.132), 0 1px 2px 0 hsl(0 0% 0% / 0.06)` |
82
+ | `--vk-shadow-key-subtle-raised` | shadow | `shadow-key-subtle-raised` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.128), 0 1px 2px 0 hsl(214 30% 10% / 0.04)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.192), 0 1px 2px 0 hsl(0 0% 0% / 0.06)` |
83
+ | `--vk-shadow-lift` | shadow | `shadow-lift` | `0 1px 2px 0 hsl(214 30% 10% / 0.104), 0 2px 6px -1px hsl(214 30% 10% / 0.064)` · dark `0 1px 2px 0 hsl(0 0% 0% / 0.156), 0 2px 6px -1px hsl(0 0% 0% / 0.096)` |
84
+ | `--vk-shadow-lift-raised` | shadow | `shadow-lift-raised` | `0 2px 4px -1px hsl(214 30% 10% / 0.104), 0 9px 20px -6px hsl(214 30% 10% / 0.136), 0 6px 18px -6px hsl(0 0% 100% / 0.1)` · dark `0 2px 4px -1px hsl(0 0% 0% / 0.156), 0 9px 20px -6px hsl(0 0% 0% / 0.204), 0 6px 18px -6px hsl(210 8% 95% / 0.1)` |
85
+ | `--vk-shadow-rim` | shadow | `shadow-rim` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.07)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.07)` |
86
+ | `--vk-shadow-rim-bold` | shadow | `shadow-rim-bold` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.22)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.22)` |
87
+ | `--vk-shadow-rim-bold-raised` | shadow | `shadow-rim-bold-raised` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.3)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.3)` |
88
+ | `--vk-shadow-rim-raised` | shadow | `shadow-rim-raised` | `inset 0 1px 0 0 hsl(0 0% 100% / 0.14)` · dark `inset 0 1px 0 0 hsl(210 8% 95% / 0.14)` |
89
+ | `--vk-spacing` | size | `spacing` | `4px` |
90
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
91
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
92
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
93
+ | `--vk-font-size-lg` | size | `text-lg` | `18px` |
@@ -0,0 +1,38 @@
1
+ # The Checkbox's tokens
2
+
3
+ Every name the Checkbox's and the checkbox list's stylesheet (`checkbox.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
9
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
10
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
11
+ | `--vk-border-input-hovered` | colour | `border-input-hovered` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
12
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
13
+ | `--vk-border-width` | size | `border-width` | `1px` |
14
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
15
+ | `--vk-brand-hovered` | colour | `background-brand-bold-hovered` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
16
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
17
+ | `--vk-danger-bold` | colour | `background-danger-bold` | `hsl(0 81% 58%)` |
18
+ | `--vk-danger-bold-hovered` | colour | `background-danger-bold-hovered` | `hsl(0 59% 49%)` · dark `hsl(3 90% 66.5%)` |
19
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
20
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
21
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
22
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
23
+ | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
24
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
25
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
26
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
27
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
28
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
29
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
30
+ | `--vk-input` | colour | `background-input` | `hsl(0 0% 100% / 0)` |
31
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
32
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
33
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
34
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
35
+ | `--vk-selected` | colour | `surface-selected` | `hsl(0 0% 94.5%)` · dark `hsl(225 7% 15%)` |
36
+ | `--vk-spacing` | size | `spacing` | `4px` |
37
+ | `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
38
+ | `--vk-sunken-hovered` | colour | `surface-sunken-hovered` | `hsl(0 0% 94.5%)` · dark `hsl(210 4% 9.5%)` |
@@ -0,0 +1,26 @@
1
+ # The Field's tokens
2
+
3
+ Every name the Field's, the FieldSet's, the separator's and Field rows' stylesheet (`field.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ Its options set its variables on the frame that picks them (`data-field-rows-*`), from some of these names: an app that declares the names on each element, rather than once at its root, declares them on those frames too, or a frame's pick falls back to the default.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-border-overlay-card` | colour | `border-overlay-card` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
10
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
11
+ | `--vk-border-width` | size | `border-width` | `1px` |
12
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` |
13
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
14
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
15
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
16
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
17
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
18
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
19
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
20
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
21
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
22
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
23
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
24
+ | `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
25
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
26
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,37 @@
1
+ # The Glass button's tokens
2
+
3
+ Every name the Glass button's stylesheet (`glass-button.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-glass` | colour | `glass` | `hsl(0 0% 97% / 0.72)` · dark `hsl(0 0% 13% / 0.6)` |
8
+ | `--vk-glass-rim-soft` | colour | `glass-rim-soft` | `hsl(0 0% 100% / 0.82)` · dark `hsl(0 0% 100% / 0.12)` |
9
+ | `--vk-glass-rim-faint` | colour | `glass-rim-faint` | `hsl(0 0% 100% / 0.55)` · dark `hsl(0 0% 100% / 0.01)` |
10
+ | `--vk-glass-rim` | colour | `glass-rim` | `hsl(0 0% 100%)` · dark `hsl(0 0% 100% / 0.26)` |
11
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
12
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
13
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
14
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
15
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
16
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
17
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` · dark `hsl(0 81% 58%)` |
18
+ | `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
19
+ | `--vk-brand-hovered` | colour | `background-brand-bold-hovered` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
20
+ | `--vk-shadow-glass` | shadow | `shadow-glass` | `0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.15)` · dark `0 8px 40px 4px hsl(0 0% 0% / 0.06)` |
21
+ | `--vk-shadow-glass-pair` | shadow | `shadow-glass-pair` | `0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.12)` · dark `0 8px 40px 4px hsl(0 0% 0% / 0.06)` |
22
+ | `--vk-shadow-glass-pill` | shadow | `shadow-glass-pill` | `0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.1)` · dark `0 8px 40px 4px hsl(0 0% 0% / 0.06)` |
23
+ | `--vk-blur-md` | size | `blur-md` | `12px` |
24
+ | `--vk-border-width` | size | `border-width` | `1px` |
25
+ | `--vk-spacing` | size | `spacing` | `4px` |
26
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
27
+ | `--vk-glass-icon-stroke` | size | `glass-icon-stroke` | `1.7` |
28
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
29
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
30
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
31
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
32
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
33
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
34
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
35
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
36
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
37
+ | `--vk-press-scale` | motion | `press-scale` | `0.98` |
@@ -0,0 +1,27 @@
1
+ # The inline input's tokens
2
+
3
+ Every name `inline-input.css` reads (beside the Input's `input.css`, whose bare control it types into, and the Button's `button.css` for its group's buttons), each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ Its options set its variables on the frame that picks them (`data-inline-input-*`), from some of these names: an app that declares the names on each element, rather than once at its root, declares them on those frames too, or a frame's pick falls back to the default.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
10
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
11
+ | `--vk-border-width` | size | `border-width` | `1px` |
12
+ | `--vk-brand-300` | colour | `brand-300` | `hsl(218 100% 89%)` · dark `hsl(219 46% 21%)` |
13
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
14
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
15
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
16
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
17
+ | `--vk-input` | colour | `background-input` | `hsl(0 0% 100% / 0)` |
18
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
19
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
20
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
21
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
22
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
23
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
24
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
25
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
26
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
27
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,48 @@
1
+ # The Input's tokens
2
+
3
+ Every name the Input's, the InputGroup's and the segments' stylesheet (`input.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
8
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
9
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
10
+ | `--vk-border-input-hovered` | colour | `border-input-hovered` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
11
+ | `--vk-border-input-strong` | colour | `border-input-strong` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
12
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
13
+ | `--vk-border-width` | size | `border-width` | `1px` |
14
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
15
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
16
+ | `--vk-danger-subtlest` | colour | `background-danger-subtlest` | `hsl(6 100% 98%)` · dark `hsl(6 13% 10%)` |
17
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
18
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
19
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
20
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
21
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
22
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
23
+ | `--vk-font-mono` | size | `font-mono` | `"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace` |
24
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
25
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
26
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
27
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
28
+ | `--vk-input` | colour | `background-input` | `hsl(0 0% 100% / 0)` |
29
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
30
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
31
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
32
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
33
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
34
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
35
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
36
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
37
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
38
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
39
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
40
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
41
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
42
+ | `--vk-shadow-field` | shadow | `shadow-field` | `0 1px 1px 0 rgb(16 17 26 / 0.08)` · dark `0 1px 1px 0 rgb(255 255 255 / 0.08)` |
43
+ | `--vk-shadow-field-focus` | shadow | `shadow-field-focus` | `0 0 10px 0 hsl(219 90% 65.5% / 0.3)` · dark `0 0 10px 0 hsl(219 66% 45% / 0.42)` |
44
+ | `--vk-shadow-field-focus-danger` | shadow | `shadow-field-focus-danger` | `0 0 10px 0 hsl(3 87% 68% / 0.3)` · dark `0 0 10px 0 hsl(1 55% 46.5% / 0.42)` |
45
+ | `--vk-shadow-field-hover` | shadow | `shadow-field-hover` | `0 1px 1px 0 rgb(16 17 26 / 0.16)` · dark `0 1px 1px 0 rgb(255 255 255 / 0.12)` |
46
+ | `--vk-shadow-key-pressed` | shadow | `shadow-key-pressed` | `inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.12)` · dark `inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.18)` |
47
+ | `--vk-spacing` | size | `spacing` | `4px` |
48
+ | `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
@@ -0,0 +1,17 @@
1
+ # The Kbd's tokens
2
+
3
+ Every name the Kbd's stylesheet (`kbd.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
8
+ | `--vk-raised` | colour | `surface-raised` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
9
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
11
+ | `--vk-border-width` | size | `border-width` | `1px` |
12
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
13
+ | `--vk-font-sans` | size | `font-sans` | `"DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif` |
14
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
15
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
16
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
17
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,17 @@
1
+ # The number field's tokens
2
+
3
+ Every name `number-field.css` reads (beside the Input's `input.css`, whose field it is), each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-width` | size | `border-width` | `1px` |
8
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
9
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
10
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
11
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
12
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
13
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
14
+ | `--vk-overlay-pressed` | colour | `surface-overlay-pressed` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
15
+ | `--vk-overlay-selected` | colour | `surface-overlay-selected` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
16
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
17
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,61 @@
1
+ # The Option's tokens
2
+
3
+ Every name the Option's stylesheet (`option.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
9
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
11
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
12
+ | `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
13
+ | `--vk-label-amber-edge` | colour | `label-amber-edge` | `hsl(20 68% 77%)` · dark `hsl(20 54% 24%)` |
14
+ | `--vk-label-amber-fill` | colour | `label-amber-fill` | `hsl(19 72% 92.5%)` · dark `hsl(20 42% 18.5%)` |
15
+ | `--vk-label-amber-soft` | colour | `label-amber-soft` | `hsl(19 74% 97.5%)` · dark `hsl(19 13% 10%)` |
16
+ | `--vk-label-amber-strong` | colour | `label-amber-strong` | `hsl(23 85% 29%)` · dark `hsl(20 90% 76.5%)` |
17
+ | `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
18
+ | `--vk-label-blue-edge` | colour | `label-blue-edge` | `hsl(218 97% 82%)` · dark `hsl(219 55% 29%)` |
19
+ | `--vk-label-blue-fill` | colour | `label-blue-fill` | `hsl(218 100% 94%)` · dark `hsl(219 46% 21%)` |
20
+ | `--vk-label-blue-soft` | colour | `label-blue-soft` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
21
+ | `--vk-label-blue-strong` | colour | `label-blue-strong` | `hsl(219 70% 38%)` · dark `hsl(218 100% 81%)` |
22
+ | `--vk-label-green` | colour | `label-green` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
23
+ | `--vk-label-green-edge` | colour | `label-green-edge` | `hsl(145 41% 71.5%)` · dark `hsl(148 37% 21%)` |
24
+ | `--vk-label-green-fill` | colour | `label-green-fill` | `hsl(143 41% 91%)` · dark `hsl(146 27% 16.5%)` |
25
+ | `--vk-label-green-soft` | colour | `label-green-soft` | `hsl(142 41% 97%)` · dark `hsl(143 7% 9.5%)` |
26
+ | `--vk-label-green-strong` | colour | `label-green-strong` | `hsl(156 87% 21%)` · dark `hsl(146 52% 73.5%)` |
27
+ | `--vk-label-pink` | colour | `label-pink` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
28
+ | `--vk-label-pink-edge` | colour | `label-pink-edge` | `hsl(343 88% 82.5%)` · dark `hsl(339 42% 28%)` |
29
+ | `--vk-label-pink-fill` | colour | `label-pink-fill` | `hsl(345 100% 94.5%)` · dark `hsl(341 34% 20.5%)` |
30
+ | `--vk-label-pink-soft` | colour | `label-pink-soft` | `hsl(345 100% 98%)` · dark `hsl(344 11% 10%)` |
31
+ | `--vk-label-pink-strong` | colour | `label-pink-strong` | `hsl(336 59% 37.5%)` · dark `hsl(342 100% 83.5%)` |
32
+ | `--vk-label-purple` | colour | `label-purple` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
33
+ | `--vk-label-purple-edge` | colour | `label-purple-edge` | `hsl(251 100% 86.5%)` · dark `hsl(256 41% 32.5%)` |
34
+ | `--vk-label-purple-fill` | colour | `label-purple-fill` | `hsl(249 100% 95.5%)` · dark `hsl(254 34% 23.5%)` |
35
+ | `--vk-label-purple-soft` | colour | `label-purple-soft` | `hsl(248 100% 98.5%)` · dark `hsl(249 11% 10.5%)` |
36
+ | `--vk-label-purple-strong` | colour | `label-purple-strong` | `hsl(259 53% 44.5%)` · dark `hsl(251 100% 86%)` |
37
+ | `--vk-label-red` | colour | `label-red` | `hsl(0 81% 58%)` |
38
+ | `--vk-label-red-edge` | colour | `label-red-edge` | `hsl(5 99% 82%)` · dark `hsl(4 45% 28%)` |
39
+ | `--vk-label-red-fill` | colour | `label-red-fill` | `hsl(6 100% 94%)` · dark `hsl(5 37% 20.5%)` |
40
+ | `--vk-label-red-soft` | colour | `label-red-soft` | `hsl(6 100% 98%)` · dark `hsl(6 13% 10%)` |
41
+ | `--vk-label-red-strong` | colour | `label-red-strong` | `hsl(0 59% 39%)` · dark `hsl(6 100% 83%)` |
42
+ | `--vk-label-teal` | colour | `label-teal` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
43
+ | `--vk-label-teal-edge` | colour | `label-teal-edge` | `hsl(196 52% 74.5%)` · dark `hsl(195 42% 22.5%)` |
44
+ | `--vk-label-teal-fill` | colour | `label-teal-fill` | `hsl(196 52% 91.5%)` · dark `hsl(196 32% 17.5%)` |
45
+ | `--vk-label-teal-soft` | colour | `label-teal-soft` | `hsl(196 52% 97%)` · dark `hsl(196 8% 9.5%)` |
46
+ | `--vk-label-teal-strong` | colour | `label-teal-strong` | `hsl(193 82% 26%)` · dark `hsl(196 67% 75.5%)` |
47
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
48
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
49
+ | `--vk-pressed` | colour | `surface-pressed` | `hsl(0 0% 94.5%)` · dark `hsl(225 7% 11%)` |
50
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
51
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
52
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
53
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
54
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
55
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
56
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
57
+ | `--vk-spacing` | size | `spacing` | `4px` |
58
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
59
+ | `--vk-duration-instant` | motion | `duration-instant` | `60ms` |
60
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
61
+ | `--vk-press-scale` | motion | `press-scale` | `0.98` |
@@ -0,0 +1,20 @@
1
+ # The phone header bar's tokens
2
+
3
+ Every name the phone header bar's stylesheet (`phone-header.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-header` | colour | `surface-header` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
8
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
9
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
+ | `--vk-blur-xs` | size | `blur-xs` | `4px` |
11
+ | `--vk-blur-sm` | size | `blur-sm` | `8px` |
12
+ | `--vk-blur-md` | size | `blur-md` | `12px` |
13
+ | `--vk-spacing` | size | `spacing` | `4px` |
14
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
15
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
16
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
17
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
18
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
19
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
20
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
@@ -0,0 +1,26 @@
1
+ # The Popover's tokens
2
+
3
+ Every name the Popover's stylesheet (`popover.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
9
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
10
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
11
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
12
+ | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` · dark `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
13
+ | `--vk-shadow-md` | shadow | `shadow-md` | `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` · dark `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` |
14
+ | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` · dark `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
15
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
16
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
17
+ | `--vk-spacing` | size | `spacing` | `4px` |
18
+ | `--vk-border-width` | size | `border-width` | `1px` |
19
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
20
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
21
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
22
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
23
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
24
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
25
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
26
+ | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
@@ -0,0 +1,16 @@
1
+ # The Scrollbar's tokens
2
+
3
+ Every name the Scrollbar's stylesheet (`scrollbar.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
8
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
9
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
10
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
11
+ | `--vk-spacing` | size | `spacing` | `4px` |
12
+ | `--vk-scrollbar-size` | size | `scrollbar-size` | `6px` |
13
+ | `--vk-scrollbar-inset` | size | `scrollbar-inset` | `2px` |
14
+ | `--vk-scrollbar-thumb` | colour | `scrollbar-thumb` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
15
+ | `--vk-scrollbar-thumb-hovered` | colour | `scrollbar-thumb-hovered` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
16
+ | `--vk-scrollbar-hold` | motion | `scrollbar-hold` | `1000ms` |
@@ -0,0 +1,41 @@
1
+ # The Sheet's tokens
2
+
3
+ Every name the bottom Sheet's stylesheet (`sheet.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-backdrop-sheet` | colour | `backdrop-sheet` | `hsl(214 30% 10% / 0.3)` · dark `hsl(0 0% 0% / 0.45)` |
8
+ | `--vk-backdrop-sheet-light` | colour | `backdrop-sheet-light` | `hsl(214 30% 10% / 0.15)` · dark `hsl(0 0% 0% / 0.22)` |
9
+ | `--vk-backdrop-stacked` | colour | `backdrop-stacked` | `hsl(214 30% 10% / 0.2)` · dark `hsl(0 0% 0% / 0.3)` |
10
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
11
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
12
+ | `--vk-sheet-handle` | colour | `sheet-handle` | `hsl(210 1% 72%)` · dark `hsl(210 2% 26.5%)` |
13
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
14
+ | `--vk-shadow-2xl` | shadow | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` · dark `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
15
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
16
+ | `--vk-spacing` | size | `spacing` | `4px` |
17
+ | `--vk-spring-exit` | size | `spring-exit` | `120px` |
18
+ | `--vk-spring-past` | size | `spring-past` | `12px` |
19
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
20
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
21
+ | `--vk-radius-3xl` | size | `radius-3xl` | `26.67px` |
22
+ | `--vk-radius-4xl` | size | `radius-4xl` | `33.33px` |
23
+ | `--vk-radius-5xl` | size | `radius-5xl` | `40px` |
24
+ | `--vk-layer-drawer` | size | `layer-drawer` | `40` |
25
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
26
+ | `--vk-border-width` | size | `border-width` | `1px` |
27
+ | `--vk-spring-smooth` | motion | `spring-smooth` | `500ms 1` |
28
+ | `--vk-ease-spring-smooth` | motion | `ease-spring-smooth` | `linear(0, 0.0191, 0.0667, 0.1313, 0.2048, 0.2816, 0.3577, 0.4308, 0.4991, 0.562, 0.6189, 0.67, 0.7154, 0.7554, 0.7905, 0.821, 0.8475, 0.8704, 0.89, 0.9069, 0.9213, 0.9336, 0.9441, 0.9529, 0.9605, 0.9668, 0.9722, 0.9767, 0.9805, 0.9837, 0.9864, 0.9887, 0.9905, 0.9921, 0.9934, 0.9945, 0.9955, 0.9962, 0.9969, 0.9974, 0.9978, 0.9982, 0.9985, 0.9988, 0.999, 0.9992, 0.9993, 0.9994, 1)` |
29
+ | `--vk-duration-spring-smooth` | motion | `duration-spring-smooth` | `800ms` |
30
+ | `--vk-spring-quick` | motion | `spring-quick` | `380ms 1` |
31
+ | `--vk-ease-spring-quick` | motion | `ease-spring-quick` | `linear(0, 0.0309, 0.1037, 0.1968, 0.2964, 0.394, 0.4851, 0.5671, 0.6393, 0.7016, 0.7547, 0.7994, 0.8367, 0.8677, 0.8931, 0.914, 0.9309, 0.9447, 0.9558, 0.9648, 0.972, 0.9778, 0.9824, 0.986, 0.989, 0.9913, 0.9931, 0.9946, 0.9957, 0.9967, 0.9974, 0.9979, 0.9984, 0.9987, 0.999, 0.9992, 0.9994, 1)` |
32
+ | `--vk-duration-spring-quick` | motion | `duration-spring-quick` | `608ms` |
33
+ | `--vk-spring-lively` | motion | `spring-lively` | `450ms 0.8` |
34
+ | `--vk-ease-spring-lively` | motion | `ease-spring-lively` | `linear(0, 0.0239, 0.0843, 0.1672, 0.2617, 0.3601, 0.4568, 0.5478, 0.6309, 0.7048, 0.7689, 0.8236, 0.8692, 0.9065, 0.9364, 0.9599, 0.9779, 0.9913, 1.0009, 1.0075, 1.0117, 1.0141, 1.0151, 1.0151, 1.0144, 1.0133, 1.0119, 1.0105, 1.009, 1.0075, 1.0062, 1.005, 1.004, 1.0031, 1.0023, 1.0017, 1.0012, 1.0008, 1)` |
35
+ | `--vk-duration-spring-lively` | motion | `duration-spring-lively` | `633ms` |
36
+ | `--vk-sheet-press-scale` | motion | `sheet-press-scale` | `1.005` |
37
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
38
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
39
+ | `--vk-push-scale` | motion | `push-scale` | `0.94` |
40
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
41
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
@@ -0,0 +1,19 @@
1
+ # The Spinner's tokens
2
+
3
+ Every name the Spinner's and the loading bar's stylesheet (`spinner.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
8
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
9
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
10
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
11
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
12
+ | `--vk-ease-in-out` | motion | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` |
13
+ | `--vk-loading-dim` | motion | `loading-dim` | `0.55` |
14
+ | `--vk-progress-slide` | motion | `progress-slide` | `1400ms` |
15
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
16
+ | `--vk-spacing` | size | `spacing` | `4px` |
17
+ | `--vk-spinner-breath` | motion | `spinner-breath` | `1400ms` |
18
+ | `--vk-spinner-turn` | motion | `spinner-turn` | `2000ms` |
19
+ | `--vk-spinner-turn-reduced` | motion | `spinner-turn-reduced` | `3000ms` |