luxen-ui 0.25.0 → 0.26.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 (249) hide show
  1. package/README.md +1 -0
  2. package/bin/cli.mjs +16 -1
  3. package/cdn/custom-elements.json +402 -276
  4. package/cdn/elements/alert-dialog/alert-dialog.d.ts +3 -2
  5. package/cdn/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
  6. package/cdn/elements/alert-dialog/alert-dialog.js.map +1 -1
  7. package/cdn/elements/avatar/avatar.js +1 -1
  8. package/cdn/elements/avatar/avatar.js.map +1 -1
  9. package/cdn/elements/carousel/carousel.js +1 -1
  10. package/cdn/elements/carousel/carousel.js.map +1 -1
  11. package/cdn/elements/combobox/combobox.d.ts.map +1 -1
  12. package/cdn/elements/combobox/combobox.js +2 -1
  13. package/cdn/elements/combobox/combobox.js.map +1 -1
  14. package/cdn/elements/dialog/dialog.d.ts +2 -1
  15. package/cdn/elements/dialog/dialog.d.ts.map +1 -1
  16. package/cdn/elements/dialog/dialog.js.map +1 -1
  17. package/cdn/elements/dialog/dialog.styles.js +1 -1
  18. package/cdn/elements/dialog/dialog.styles.js.map +1 -1
  19. package/cdn/elements/drawer/drawer.d.ts +7 -7
  20. package/cdn/elements/drawer/drawer.js +1 -1
  21. package/cdn/elements/drawer/drawer.js.map +1 -1
  22. package/cdn/elements/dropdown-item/dropdown-item.js +1 -1
  23. package/cdn/elements/dropdown-item/dropdown-item.js.map +1 -1
  24. package/cdn/elements/input-otp/input-otp.d.ts +2 -2
  25. package/cdn/elements/input-otp/input-otp.js.map +1 -1
  26. package/cdn/elements/prose-editor/prose-editor.js +1 -1
  27. package/cdn/elements/prose-editor/prose-editor.js.map +1 -1
  28. package/cdn/elements/rating/rating.js +1 -1
  29. package/cdn/elements/rating/rating.js.map +1 -1
  30. package/cdn/elements/select/select.d.ts.map +1 -1
  31. package/cdn/elements/select/select.js +2 -1
  32. package/cdn/elements/select/select.js.map +1 -1
  33. package/cdn/elements/slider/slider.js +1 -1
  34. package/cdn/elements/slider/slider.js.map +1 -1
  35. package/cdn/elements/stories-viewer/stories-viewer.js +1 -1
  36. package/cdn/elements/stories-viewer/stories-viewer.js.map +1 -1
  37. package/cdn/elements/table/table.meta.d.ts +55 -0
  38. package/cdn/elements/table/table.meta.d.ts.map +1 -0
  39. package/cdn/elements/table/table.meta.js +0 -0
  40. package/cdn/elements/tag/tag.js +1 -1
  41. package/cdn/elements/tag/tag.js.map +1 -1
  42. package/cdn/elements/tree/tree.js +1 -1
  43. package/cdn/elements/tree/tree.js.map +1 -1
  44. package/cdn/elements/tree-item/tree-item.js +1 -1
  45. package/cdn/elements/tree-item/tree-item.js.map +1 -1
  46. package/cdn/shared/controllers/listbox-nav.d.ts +7 -0
  47. package/cdn/shared/controllers/listbox-nav.d.ts.map +1 -1
  48. package/cdn/shared/controllers/listbox-nav.js +1 -1
  49. package/cdn/shared/controllers/listbox-nav.js.map +1 -1
  50. package/cdn/shared/styles/button-core.styles.js +1 -1
  51. package/cdn/shared/styles/button-core.styles.js.map +1 -1
  52. package/cdn/shared/styles/checkbox-appearance.styles.js +1 -1
  53. package/cdn/shared/styles/checkbox-appearance.styles.js.map +1 -1
  54. package/cdn/shared/styles/picker-core.styles.js +1 -1
  55. package/cdn/shared/styles/picker-core.styles.js.map +1 -1
  56. package/cdn/standalone.css +284 -67
  57. package/cdn/standalone.js +38 -28
  58. package/cdn/standalone.js.map +1 -1
  59. package/cdn/styles/base.css +11 -0
  60. package/cdn/styles/elements/breadcrumb.css +2 -2
  61. package/cdn/styles/elements/button.css +2 -2
  62. package/cdn/styles/elements/checkbox.css +2 -2
  63. package/cdn/styles/elements/close-button/circle.css +2 -2
  64. package/cdn/styles/elements/close-button/ring.css +2 -2
  65. package/cdn/styles/elements/close-button/square.css +2 -2
  66. package/cdn/styles/elements/disclosure.css +1 -1
  67. package/cdn/styles/elements/input-otp.css +19 -3
  68. package/cdn/styles/elements/input-stepper/default.css +1 -1
  69. package/cdn/styles/elements/input-stepper/pill.css +1 -1
  70. package/cdn/styles/elements/input-stepper/rounded.css +1 -1
  71. package/cdn/styles/elements/input.css +11 -11
  72. package/cdn/styles/elements/prose-editor.css +6 -6
  73. package/cdn/styles/elements/radio-group.css +2 -2
  74. package/cdn/styles/elements/radio.css +2 -2
  75. package/cdn/styles/elements/segmented-control.css +1 -1
  76. package/cdn/styles/elements/select.css +5 -5
  77. package/cdn/styles/elements/story.css +2 -2
  78. package/cdn/styles/elements/switch.css +2 -2
  79. package/cdn/styles/elements/table.css +186 -0
  80. package/cdn/styles/elements/tabs/enclosed.css +3 -3
  81. package/cdn/styles/elements/tabs/line.css +3 -3
  82. package/cdn/styles/elements/textarea.css +5 -5
  83. package/cdn/styles/preset.css +19 -6
  84. package/cdn/styles/tokens/aliases.css +5 -3
  85. package/cdn/styles/tokens/forms.css +3 -3
  86. package/cdn/styles/tokens.css +8 -6
  87. package/dist/css/base.css +11 -0
  88. package/dist/css/elements/breadcrumb.css +2 -2
  89. package/dist/css/elements/button.css +2 -2
  90. package/dist/css/elements/checkbox.css +2 -2
  91. package/dist/css/elements/close-button/circle.css +2 -2
  92. package/dist/css/elements/close-button/ring.css +2 -2
  93. package/dist/css/elements/close-button/square.css +2 -2
  94. package/dist/css/elements/disclosure.css +1 -1
  95. package/dist/css/elements/input-otp.css +19 -3
  96. package/dist/css/elements/input-stepper/default.css +1 -1
  97. package/dist/css/elements/input-stepper/pill.css +1 -1
  98. package/dist/css/elements/input-stepper/rounded.css +1 -1
  99. package/dist/css/elements/input.css +11 -11
  100. package/dist/css/elements/prose-editor.css +6 -6
  101. package/dist/css/elements/radio-group.css +2 -2
  102. package/dist/css/elements/radio.css +2 -2
  103. package/dist/css/elements/segmented-control.css +1 -1
  104. package/dist/css/elements/select.css +5 -5
  105. package/dist/css/elements/story.css +2 -2
  106. package/dist/css/elements/switch.css +2 -2
  107. package/dist/css/elements/table.css +186 -0
  108. package/dist/css/elements/tabs/enclosed.css +3 -3
  109. package/dist/css/elements/tabs/line.css +3 -3
  110. package/dist/css/elements/textarea.css +5 -5
  111. package/dist/css/preset.css +19 -6
  112. package/dist/css/tokens/aliases.css +5 -3
  113. package/dist/css/tokens/forms.css +3 -3
  114. package/dist/css/tokens.css +8 -6
  115. package/dist/custom-elements.json +402 -276
  116. package/dist/elements/alert-dialog/alert-dialog.d.ts +3 -2
  117. package/dist/elements/alert-dialog/alert-dialog.d.ts.map +1 -1
  118. package/dist/elements/alert-dialog/alert-dialog.js +3 -2
  119. package/dist/elements/avatar/avatar.css +2 -2
  120. package/dist/elements/carousel/carousel.css +18 -0
  121. package/dist/elements/combobox/combobox.css +9 -0
  122. package/dist/elements/combobox/combobox.d.ts.map +1 -1
  123. package/dist/elements/combobox/combobox.js +1 -0
  124. package/dist/elements/dialog/dialog.css +12 -0
  125. package/dist/elements/dialog/dialog.d.ts +2 -1
  126. package/dist/elements/dialog/dialog.d.ts.map +1 -1
  127. package/dist/elements/dialog/dialog.js +2 -1
  128. package/dist/elements/drawer/drawer.css +11 -1
  129. package/dist/elements/drawer/drawer.d.ts +7 -7
  130. package/dist/elements/drawer/drawer.js +7 -7
  131. package/dist/elements/dropdown-item/dropdown-item.css +1 -1
  132. package/dist/elements/input-otp/input-otp.d.ts +2 -2
  133. package/dist/elements/input-otp/input-otp.js +2 -2
  134. package/dist/elements/prose-editor/prose-editor.css +5 -3
  135. package/dist/elements/rating/rating.css +9 -10
  136. package/dist/elements/select/select.css +10 -5
  137. package/dist/elements/select/select.d.ts.map +1 -1
  138. package/dist/elements/select/select.js +1 -0
  139. package/dist/elements/slider/slider.css +5 -1
  140. package/dist/elements/stories-viewer/stories-viewer.css +10 -2
  141. package/dist/elements/table/table.meta.d.ts +55 -0
  142. package/dist/elements/table/table.meta.d.ts.map +1 -0
  143. package/dist/elements/table/table.meta.js +65 -0
  144. package/dist/elements/tag/tag.css +3 -3
  145. package/dist/elements/tree/tree.css +3 -3
  146. package/dist/elements/tree-item/tree-item.css +5 -3
  147. package/dist/metadata/alert-dialog.json +90 -85
  148. package/dist/metadata/alert.json +22 -22
  149. package/dist/metadata/avatar.json +26 -26
  150. package/dist/metadata/badge.json +13 -13
  151. package/dist/metadata/breadcrumb.json +9 -9
  152. package/dist/metadata/button.json +40 -40
  153. package/dist/metadata/carousel.json +133 -133
  154. package/dist/metadata/checkbox.json +13 -13
  155. package/dist/metadata/close-button.json +15 -15
  156. package/dist/metadata/color-scheme-icon.json +13 -13
  157. package/dist/metadata/combobox.json +77 -94
  158. package/dist/metadata/dialog.json +49 -44
  159. package/dist/metadata/disclosure.json +17 -17
  160. package/dist/metadata/divider.json +12 -12
  161. package/dist/metadata/drawer.json +61 -61
  162. package/dist/metadata/dropdown-item.json +50 -50
  163. package/dist/metadata/dropdown.json +32 -32
  164. package/dist/metadata/form-field.json +15 -15
  165. package/dist/metadata/icon.json +8 -8
  166. package/dist/metadata/index.json +1761 -1765
  167. package/dist/metadata/input-group.json +5 -5
  168. package/dist/metadata/input-otp.json +17 -17
  169. package/dist/metadata/input-stepper.json +24 -24
  170. package/dist/metadata/input.json +31 -31
  171. package/dist/metadata/popover.json +49 -49
  172. package/dist/metadata/progress.json +15 -15
  173. package/dist/metadata/prose-editor.json +110 -116
  174. package/dist/metadata/radio.json +15 -15
  175. package/dist/metadata/rating.json +25 -47
  176. package/dist/metadata/segmented-control.json +24 -46
  177. package/dist/metadata/select.json +81 -98
  178. package/dist/metadata/skeleton.json +12 -12
  179. package/dist/metadata/slider.json +60 -78
  180. package/dist/metadata/spinner.json +5 -5
  181. package/dist/metadata/sticky-bar.json +13 -13
  182. package/dist/metadata/stories-viewer.json +105 -105
  183. package/dist/metadata/stories.json +17 -17
  184. package/dist/metadata/story.json +41 -41
  185. package/dist/metadata/switch.json +9 -9
  186. package/dist/metadata/table.json +88 -0
  187. package/dist/metadata/tabs.json +26 -26
  188. package/dist/metadata/tag.json +50 -50
  189. package/dist/metadata/textarea.json +28 -28
  190. package/dist/metadata/toast.json +16 -16
  191. package/dist/metadata/tooltip.json +49 -49
  192. package/dist/metadata/tree-item.json +73 -73
  193. package/dist/metadata/tree.json +39 -39
  194. package/dist/shared/controllers/listbox-nav.d.ts +7 -0
  195. package/dist/shared/controllers/listbox-nav.d.ts.map +1 -1
  196. package/dist/shared/controllers/listbox-nav.js +12 -0
  197. package/dist/shared/styles/button-core.css +2 -2
  198. package/dist/shared/styles/checkbox-appearance.css +2 -2
  199. package/dist/shared/styles/picker-core.css +13 -10
  200. package/dist/templates/elements/alert-dialog.md +19 -18
  201. package/dist/templates/elements/alert.md +4 -4
  202. package/dist/templates/elements/avatar.md +9 -9
  203. package/dist/templates/elements/badge.md +4 -4
  204. package/dist/templates/elements/breadcrumb.md +4 -4
  205. package/dist/templates/elements/button.md +8 -8
  206. package/dist/templates/elements/carousel.md +32 -32
  207. package/dist/templates/elements/checkbox.md +4 -4
  208. package/dist/templates/elements/close-button.md +2 -2
  209. package/dist/templates/elements/color-scheme-icon.md +13 -13
  210. package/dist/templates/elements/combobox.md +19 -19
  211. package/dist/templates/elements/dialog.md +11 -10
  212. package/dist/templates/elements/disclosure.md +3 -3
  213. package/dist/templates/elements/divider.md +2 -2
  214. package/dist/templates/elements/drawer.md +15 -15
  215. package/dist/templates/elements/dropdown.md +15 -15
  216. package/dist/templates/elements/form-field.md +3 -3
  217. package/dist/templates/elements/icon.md +1 -1
  218. package/dist/templates/elements/input-otp.md +5 -5
  219. package/dist/templates/elements/input-stepper.md +4 -4
  220. package/dist/templates/elements/input.md +15 -8
  221. package/dist/templates/elements/popover.md +8 -8
  222. package/dist/templates/elements/progress.md +3 -3
  223. package/dist/templates/elements/prose-editor.md +38 -39
  224. package/dist/templates/elements/radio.md +6 -6
  225. package/dist/templates/elements/rating.md +5 -13
  226. package/dist/templates/elements/segmented-control.md +4 -4
  227. package/dist/templates/elements/select.md +23 -23
  228. package/dist/templates/elements/skeleton.md +2 -2
  229. package/dist/templates/elements/slider.md +13 -13
  230. package/dist/templates/elements/spinner.md +1 -1
  231. package/dist/templates/elements/sticky-bar.md +2 -2
  232. package/dist/templates/elements/stories-viewer.md +29 -29
  233. package/dist/templates/elements/stories.md +4 -4
  234. package/dist/templates/elements/story.md +11 -11
  235. package/dist/templates/elements/switch.md +5 -5
  236. package/dist/templates/elements/table.md +210 -0
  237. package/dist/templates/elements/tabs.md +4 -4
  238. package/dist/templates/elements/tag.md +14 -14
  239. package/dist/templates/elements/textarea.md +8 -8
  240. package/dist/templates/elements/toast.md +4 -4
  241. package/dist/templates/elements/tooltip.md +9 -9
  242. package/dist/templates/elements/tree-item.md +18 -18
  243. package/dist/templates/elements/tree.md +13 -13
  244. package/dist/templates/foundations/focus.md +303 -0
  245. package/elements.json +9 -0
  246. package/package.json +1 -1
  247. package/postcss-plugin-prefix.js +2 -2
  248. package/templates/SKILL.md.tpl +1 -0
  249. package/templates/choosing-elements.md.tpl +1 -0
@@ -699,6 +699,17 @@ In dark mode, mixes the base color with black (default 15% black).
699
699
  l-tooltip:not(:defined) {
700
700
  display: none;
701
701
  }
702
+
703
+ /* Plain links, buttons and summaries — the ones no Luxen class styles — take
704
+ the same focus ring as the elements, instead of the browser default,
705
+ whose contrast is not guaranteed on a themed page. Zero specificity, in
706
+ the base layer: every element rule and any consumer rule wins over it.
707
+ Tags only, no `[tabindex]`: a document rule beats a shadow `:host` rule,
708
+ so it would ring custom-element hosts that draw their own ring inside. */
709
+ :where(a:any-link, button, summary):focus-visible {
710
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
711
+ outline-offset: var(--l-focus-ring-offset);
712
+ }
702
713
  }
703
714
  /* Design tokens — primitives (palette + scales) and semantic aliases. */
704
715
  /* Luxen design tokens — primitives (core 5 color families + spacing + radius
@@ -930,10 +941,12 @@ In dark mode, mixes the base color with black (default 15% black).
930
941
  --l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
931
942
  /* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
932
943
  --l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
933
- /* Focus ring color for :focus-visible outlines on interactive elements like buttons, inputs, and links. Its thickness is --l-focus-ring-width. Text fields take this color on their focused border and halo, with a thickness of their own (--l-form-control-focus-border-width). */
934
- --l-focus-ring: #d9461f;
935
- /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (so an `overflow: hidden` ancestor cannot clip them) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
944
+ /* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
945
+ --l-focus-ring-color: #d9461f;
946
+ /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
936
947
  --l-focus-ring-width: 2px;
948
+ /* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
949
+ --l-focus-ring-offset: 2px;
937
950
  /* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
938
951
  --l-size-control-xs: 1.75rem;
939
952
  /* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
@@ -967,9 +980,9 @@ In dark mode, mixes the base color with black (default 15% black).
967
980
  --l-form-control-border-color: var(--l-color-border);
968
981
  /* Border width of text fields and of the checkbox and radio box. */
969
982
  --l-form-control-border-width: 1px;
970
- /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `0` (the default) draws no stroke: the resting border alone takes the focus color. Set it wider than --l-form-control-border-width for a thicker focus, e.g. `2px`. */
971
- --l-form-control-focus-border-width: 0px;
972
- /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
983
+ /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
984
+ --l-form-control-focus-border-width: 2px;
985
+ /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
973
986
  --l-form-control-focus-halo-width: 3px;
974
987
  /* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
975
988
  --l-form-control-border-radius: var(--l-radius-md);
@@ -92,10 +92,12 @@
92
92
  --l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
93
93
  /* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
94
94
  --l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
95
- /* Focus ring color for :focus-visible outlines on interactive elements like buttons, inputs, and links. Its thickness is --l-focus-ring-width. Text fields take this color on their focused border and halo, with a thickness of their own (--l-form-control-focus-border-width). */
96
- --l-focus-ring: #d9461f;
97
- /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (so an `overflow: hidden` ancestor cannot clip them) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
95
+ /* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
96
+ --l-focus-ring-color: #d9461f;
97
+ /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
98
98
  --l-focus-ring-width: 2px;
99
+ /* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
100
+ --l-focus-ring-offset: 2px;
99
101
  /* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
100
102
  --l-size-control-xs: 1.75rem;
101
103
  /* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
@@ -22,9 +22,9 @@
22
22
  --l-form-control-border-color: var(--l-color-border);
23
23
  /* Border width of text fields and of the checkbox and radio box. */
24
24
  --l-form-control-border-width: 1px;
25
- /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `0` (the default) draws no stroke: the resting border alone takes the focus color. Set it wider than --l-form-control-border-width for a thicker focus, e.g. `2px`. */
26
- --l-form-control-focus-border-width: 0px;
27
- /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
25
+ /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
26
+ --l-form-control-focus-border-width: 2px;
27
+ /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
28
28
  --l-form-control-focus-halo-width: 3px;
29
29
  /* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
30
30
  --l-form-control-border-radius: var(--l-radius-md);
@@ -225,10 +225,12 @@
225
225
  --l-shadow-md: 0 4px 6px -1px light-dark(rgb(0 0 0 / 8%), rgb(0 0 0 / 40%)), 0 2px 4px -2px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 34%));
226
226
  /* Large elevation for prominent detached surfaces that float free of any edge — inset drawers, floating panels, large menus. The shadow color uses light-dark() so it deepens in dark mode. */
227
227
  --l-shadow-lg: 0 10px 15px -3px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 50%)), 0 4px 6px -4px light-dark(rgb(0 0 0 / 10%), rgb(0 0 0 / 44%));
228
- /* Focus ring color for :focus-visible outlines on interactive elements like buttons, inputs, and links. Its thickness is --l-focus-ring-width. Text fields take this color on their focused border and halo, with a thickness of their own (--l-form-control-focus-border-width). */
229
- --l-focus-ring: #d9461f;
230
- /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Rings set inside their element (so an `overflow: hidden` ancestor cannot clip them) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
228
+ /* Color of the focus indicator, shown on :focus-visible: the ring around buttons, checkbox, radio, switch, tabs, tags, menu and tree items, links, and the border and halo of a focused text field. Keep at least 3:1 against every surface it lands on (WCAG 1.4.11) — the default gives 4.3:1 on white and 4.1:1 on the dark surface. Re-theme it on an ancestor to scope it, e.g. a lighter color over a photo. */
229
+ --l-focus-ring-color: #d9461f;
230
+ /* Thickness of the :focus-visible ring drawn around interactive elements — buttons, checkbox, radio, switch, slider thumb, rating, tabs, tags, menu and tree items, toolbar and adornment buttons, close buttons, avatars, breadcrumb links. Keep it at 2px or more (WCAG 2.4.13). Rings set inside their element (items laid edge to edge — menu items, tabs, segmented control — where an outer ring would overlap a neighbor or the panel edge) grow inward with it. Text fields show focus on their border instead: see --l-form-control-focus-border-width, which a consumer can point at this token for one focus thickness everywhere. */
231
231
  --l-focus-ring-width: 2px;
232
+ /* Gap between an element and its :focus-visible ring, so the ring reads apart from the element's own border or fill. Rings set inside their element (menu items, tabs, segmented control, disclosure summary — items laid edge to edge, where an outer ring would overlap a neighbor or the panel edge) ignore it and sit flush inside the edge instead. */
233
+ --l-focus-ring-offset: 2px;
232
234
  /* Standard interactive control height (28px) for extra-small elements like compact buttons, tags, and inline controls. */
233
235
  --l-size-control-xs: 1.75rem;
234
236
  /* Standard interactive control height (32px) for small elements like secondary buttons, small selects, and tight-layout controls. */
@@ -262,9 +264,9 @@
262
264
  --l-form-control-border-color: var(--l-color-border);
263
265
  /* Border width of text fields and of the checkbox and radio box. */
264
266
  --l-form-control-border-width: 1px;
265
- /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select, l-combobox, l-prose-editor), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. `0` (the default) draws no stroke: the resting border alone takes the focus color. Set it wider than --l-form-control-border-width for a thicker focus, e.g. `2px`. */
266
- --l-form-control-focus-border-width: 0px;
267
- /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring re-themed on an ancestor recolors the halo too. */
267
+ /* Width of the stroke drawn on a focused text field (input, textarea, native select, input group, l-select and its search box, l-combobox, l-prose-editor, the active l-input-otp cell), in the focus-ring color (the invalid color on an invalid field). Drawn inward from the outer edge, over the border: the control keeps its size and its text does not move. The default `2px` covers the 1px border and 1px more inside, so a focused field reads as clearly as a ring around a button. A value at or below --l-form-control-border-width adds nothing visible: the resting border alone takes the focus color. */
268
+ --l-form-control-focus-border-width: 2px;
269
+ /* Width of the soft halo around a focused text field — a ring of the focus-ring color (the invalid color on an invalid field) at 22% opacity, outside the border. Set to `0` for a crisp stroke with no halo, typically together with --l-form-control-focus-border-width. The color is mixed at the control, so a --l-focus-ring-color re-themed on an ancestor recolors the halo too. */
268
270
  --l-form-control-focus-halo-width: 3px;
269
271
  /* Corner radius of text fields (input, textarea, select, input group). Toggles keep their own shape. */
270
272
  --l-form-control-border-radius: var(--l-radius-md);
package/dist/css/base.css CHANGED
@@ -688,4 +688,15 @@ In dark mode, mixes the base color with black (default 15% black).
688
688
  l-tooltip:not(:defined) {
689
689
  display: none;
690
690
  }
691
+
692
+ /* Plain links, buttons and summaries — the ones no Luxen class styles — take
693
+ the same focus ring as the elements, instead of the browser default,
694
+ whose contrast is not guaranteed on a themed page. Zero specificity, in
695
+ the base layer: every element rule and any consumer rule wins over it.
696
+ Tags only, no `[tabindex]`: a document rule beats a shadow `:host` rule,
697
+ so it would ring custom-element hosts that draw their own ring inside. */
698
+ :where(a:any-link, button, summary):focus-visible {
699
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
700
+ outline-offset: var(--l-focus-ring-offset);
701
+ }
691
702
  }
@@ -94,8 +94,8 @@
94
94
  border-radius: var(--l-radius-sm);
95
95
 
96
96
  &:focus-visible {
97
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
98
- outline-offset: 2px;
97
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
98
+ outline-offset: var(--l-focus-ring-offset);
99
99
  }
100
100
  }
101
101
 
@@ -100,8 +100,8 @@
100
100
  }
101
101
 
102
102
  &:focus-visible {
103
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
104
- outline-offset: 2px;
103
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
104
+ outline-offset: var(--l-focus-ring-offset);
105
105
  }
106
106
  }
107
107
 
@@ -78,8 +78,8 @@
78
78
  }
79
79
 
80
80
  &:focus-visible {
81
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
82
- outline-offset: 2px;
81
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
82
+ outline-offset: var(--l-focus-ring-offset);
83
83
  }
84
84
 
85
85
  /* High contrast: the checked fill is forced to Canvas, hiding the accent and
@@ -19,8 +19,8 @@
19
19
  cursor: pointer;
20
20
 
21
21
  &:focus-visible {
22
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
23
- outline-offset: 2px;
22
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
23
+ outline-offset: var(--l-focus-ring-offset);
24
24
  }
25
25
 
26
26
  /*
@@ -19,8 +19,8 @@
19
19
  cursor: pointer;
20
20
 
21
21
  &:focus-visible {
22
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
23
- outline-offset: 2px;
22
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
23
+ outline-offset: var(--l-focus-ring-offset);
24
24
  }
25
25
 
26
26
  /*
@@ -19,8 +19,8 @@
19
19
  cursor: pointer;
20
20
 
21
21
  &:focus-visible {
22
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
23
- outline-offset: 2px;
22
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
23
+ outline-offset: var(--l-focus-ring-offset);
24
24
  }
25
25
 
26
26
  /*
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  &:focus-visible {
43
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
43
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
44
44
  outline-offset: calc(var(--l-focus-ring-width) * -1);
45
45
  }
46
46
  }
@@ -46,8 +46,11 @@
46
46
  --cell-border-color: var(--l-form-control-border-color);
47
47
  /* Same corners as the other text fields, so a themed form rounds its cells too. */
48
48
  --cell-border-radius: var(--l-form-control-border-radius);
49
- --cell-focus-color: var(--l-focus-ring);
50
- --cell-focus-ring: 0 0 0 1px var(--cell-focus-color);
49
+ --cell-focus-color: var(--l-focus-ring-color);
50
+ /* The active cell looks focused like any text field: the focus tokens'
51
+ halo by default. */
52
+ --cell-focus-ring: 0 0 0 var(--l-form-control-focus-halo-width)
53
+ color-mix(in oklab, var(--cell-focus-color) 22%, transparent);
51
54
  --_cell-font:
52
55
  ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
53
56
  monospace;
@@ -101,9 +104,22 @@
101
104
  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
102
105
  */
103
106
 
107
+ /* The real focus is on the hidden input; the active cell shows it with the
108
+ text-field recipe: ring-colored border, the inward stroke of
109
+ --l-form-control-focus-border-width (0 by default) and the halo. */
104
110
  :scope:focus-within .l-input-otp-cell[data-active] {
105
111
  border-color: var(--cell-focus-color);
112
+ outline: var(--l-form-control-focus-border-width) solid var(--cell-focus-color);
113
+ outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
106
114
  box-shadow: var(--cell-focus-ring);
115
+
116
+ /* Forced colors: the system palette overrides border-color and drops the
117
+ halo. A transparent outline is forced to a visible system color: it is
118
+ the indicator there. */
119
+ @media (forced-colors: active) {
120
+ outline: var(--l-focus-ring-width) solid transparent;
121
+ outline-offset: var(--l-focus-ring-offset);
122
+ }
107
123
  }
108
124
 
109
125
  /*
@@ -236,7 +252,7 @@
236
252
  /* Swap the UA focus ring for the Luxen outline ring. Inset (like input-stepper)
237
253
  so the filled field's ring is never clipped by a tight container. */
238
254
  :scope:not(:defined) > input:focus-visible {
239
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
255
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
240
256
  outline-offset: calc(var(--l-focus-ring-width) * -1);
241
257
  }
242
258
  }
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  button:focus-visible {
118
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
118
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
119
119
  outline-offset: calc(var(--l-focus-ring-width) * -1);
120
120
  z-index: 1;
121
121
  }
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  button:focus-visible {
118
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
118
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
119
119
  outline-offset: calc(var(--l-focus-ring-width) * -1);
120
120
  z-index: 1;
121
121
  }
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  button:focus-visible {
118
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
118
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
119
119
  outline-offset: calc(var(--l-focus-ring-width) * -1);
120
120
  z-index: 1;
121
121
  }
@@ -92,8 +92,8 @@
92
92
  native select, input group, l-select / l-combobox, l-prose-editor) reuse
93
93
  this recipe. */
94
94
  &:focus-visible {
95
- border-color: var(--l-focus-ring);
96
- outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
95
+ border-color: var(--l-focus-ring-color);
96
+ outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
97
97
  outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
98
98
 
99
99
  /* Forced colors: the system palette overrides border-color, so the
@@ -101,8 +101,8 @@
101
101
  transparent outline is forced to a visible system color: it is the
102
102
  indicator there. */
103
103
  @media (forced-colors: active) {
104
- outline: 2px solid transparent;
105
- outline-offset: 2px;
104
+ outline: var(--l-focus-ring-width) solid transparent;
105
+ outline-offset: var(--l-focus-ring-offset);
106
106
  }
107
107
  }
108
108
 
@@ -149,7 +149,7 @@
149
149
  (--l-form-control-focus-halo-width: 0) paints nothing. */
150
150
  :is(.l-input, :where(l-form-field:not([unstyled])) > input):focus-visible {
151
151
  box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
152
- color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
152
+ color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
153
153
  }
154
154
 
155
155
  :is(.l-input, :where(l-form-field:not([unstyled])) > input):is(
@@ -435,7 +435,7 @@
435
435
  }
436
436
 
437
437
  &:focus-visible {
438
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
438
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
439
439
  outline-offset: calc(var(--l-focus-ring-width) * -1);
440
440
  z-index: 1;
441
441
  }
@@ -475,15 +475,15 @@
475
475
  `:has(> input:focus-visible)`, not `:focus-within` — a focused adornment
476
476
  button shows its own ring, not the group's. */
477
477
  &:has(> input:focus-visible) {
478
- border-color: var(--l-focus-ring);
479
- outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
478
+ border-color: var(--l-focus-ring-color);
479
+ outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
480
480
  outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
481
481
  box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
482
- color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
482
+ color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
483
483
 
484
484
  @media (forced-colors: active) {
485
- outline: 2px solid transparent;
486
- outline-offset: 2px;
485
+ outline: var(--l-focus-ring-width) solid transparent;
486
+ outline-offset: var(--l-focus-ring-offset);
487
487
  }
488
488
  }
489
489
 
@@ -39,7 +39,7 @@
39
39
  color instead of the ring. */
40
40
  l-prose-editor:has(.ProseMirror:focus-visible)::part(toolbar),
41
41
  l-prose-editor:has(.ProseMirror:focus-visible)::part(editor) {
42
- border-color: var(--border-color-focus, var(--l-focus-ring));
42
+ border-color: var(--border-color-focus, var(--l-focus-ring-color));
43
43
  }
44
44
 
45
45
  /* Soft focus halo — same recipe as input.css / textarea.css, so a prose
@@ -62,17 +62,17 @@
62
62
  only indicator left, so it must survive that same clipping. */
63
63
  l-prose-editor:has(.ProseMirror:focus-visible)::part(wrapper) {
64
64
  outline: var(--l-form-control-focus-border-width) solid
65
- var(--border-color-focus, var(--l-focus-ring));
65
+ var(--border-color-focus, var(--l-focus-ring-color));
66
66
  outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
67
67
  box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
68
- color-mix(in oklab, var(--border-color-focus, var(--l-focus-ring)) 22%, transparent);
68
+ color-mix(in oklab, var(--border-color-focus, var(--l-focus-ring-color)) 22%, transparent);
69
69
  }
70
70
 
71
71
  /* Not nested: `&` cannot stand for a selector ending in ::part(). */
72
72
  @media (forced-colors: active) {
73
73
  l-prose-editor:has(.ProseMirror:focus-visible)::part(wrapper) {
74
- outline: 2px solid transparent;
75
- outline-offset: -2px;
74
+ outline: var(--l-focus-ring-width) solid transparent;
75
+ outline-offset: calc(var(--l-focus-ring-width) * -1);
76
76
  }
77
77
  }
78
78
 
@@ -185,6 +185,6 @@
185
185
  }
186
186
 
187
187
  l-prose-editor .ProseMirror hr.ProseMirror-selectednode {
188
- border-top-color: var(--l-focus-ring);
188
+ border-top-color: var(--l-focus-ring-color);
189
189
  }
190
190
  }
@@ -133,8 +133,8 @@
133
133
  the input inside it. */
134
134
  & > .l-button:has(:focus-visible) {
135
135
  z-index: 2;
136
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
137
- outline-offset: 2px;
136
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
137
+ outline-offset: var(--l-focus-ring-offset);
138
138
  }
139
139
 
140
140
  /* A `<label>` is never `:disabled` either, so the button's own
@@ -61,8 +61,8 @@
61
61
  }
62
62
 
63
63
  &:focus-visible {
64
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
65
- outline-offset: 2px;
64
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
65
+ outline-offset: var(--l-focus-ring-offset);
66
66
  }
67
67
 
68
68
  /* Invalid: only after interaction (`:user-invalid`), or forced via
@@ -127,7 +127,7 @@
127
127
  }
128
128
 
129
129
  &:focus-visible {
130
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
130
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
131
131
  outline-offset: calc(var(--l-focus-ring-width) * -1);
132
132
  border-radius: var(--l-radius-sm);
133
133
  }
@@ -251,18 +251,18 @@
251
251
  default: nothing drawn), and box-shadow carries the halo alone (0 wide
252
252
  paints nothing). */
253
253
  &:focus-visible {
254
- border-color: var(--l-focus-ring);
255
- outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring);
254
+ border-color: var(--l-focus-ring-color);
255
+ outline: var(--l-form-control-focus-border-width) solid var(--l-focus-ring-color);
256
256
  outline-offset: calc(var(--l-form-control-focus-border-width) * -1);
257
257
  box-shadow: 0 0 0 var(--l-form-control-focus-halo-width)
258
- color-mix(in oklab, var(--l-focus-ring) 22%, transparent);
258
+ color-mix(in oklab, var(--l-focus-ring-color) 22%, transparent);
259
259
 
260
260
  /* Forced colors: the system palette overrides border-color and drops the
261
261
  halo. A transparent outline is forced to a visible system color: it is
262
262
  the indicator there. */
263
263
  @media (forced-colors: active) {
264
- outline: 2px solid transparent;
265
- outline-offset: 2px;
264
+ outline: var(--l-focus-ring-width) solid transparent;
265
+ outline-offset: var(--l-focus-ring-offset);
266
266
  }
267
267
  }
268
268
 
@@ -85,8 +85,8 @@
85
85
 
86
86
  /* Focus ring hugs the thumbnail shape (circle, portrait, etc.) — label stays outside the ring. */
87
87
  .l-story-trigger:focus-visible .l-story-thumb {
88
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
89
- outline-offset: 3px;
88
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
89
+ outline-offset: var(--l-focus-ring-offset);
90
90
  }
91
91
 
92
92
  .l-story-trigger:hover .l-story-thumb {
@@ -135,8 +135,8 @@
135
135
  }
136
136
 
137
137
  &:focus-visible {
138
- outline: var(--l-focus-ring-width) solid var(--l-focus-ring);
139
- outline-offset: 2px;
138
+ outline: var(--l-focus-ring-width) solid var(--l-focus-ring-color);
139
+ outline-offset: var(--l-focus-ring-offset);
140
140
  }
141
141
 
142
142
  /* Invalid: after interaction (`:user-invalid`) or forced via `aria-invalid`