@esuiss/tailwind 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,4 +7,4 @@ The type scale, shadows, Tailwind CSS variants, animations, utilities, and base
7
7
  @import "@esuiss/tailwind";
8
8
  ```
9
9
 
10
- Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. The type scale (`text-3xs` to `text-3xl`) comes from this package; to change a size, redefine it in your own `@theme` block, for example `--text-base: 1rem;`. The `shadow-md` and `shadow-lg` values come from this package as well and can be overridden the same way. Requires Tailwind CSS 4.2 or later.
10
+ Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. The type scale (`text-3xs` to `text-3xl`) comes from this package; to change a size, redefine it in your own `@theme` block, for example `--text-base: 1rem;`. The `shadow-md` and `shadow-lg` values come from this package as well and can be overridden the same way. Components draw their keyboard focus outline with the `focus-ring` utility; adjust it per element with the `--focus-ring-width`, `--focus-ring-offset` and `--focus-ring-color` variables. Requires Tailwind CSS 4.2 or later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esuiss/tailwind",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Tailwind CSS variants, animations, utilities, and base styles for esuiss-ui components.",
5
5
  "keywords": [
6
6
  "tailwindcss",
package/tailwind.css CHANGED
@@ -113,6 +113,12 @@
113
113
  }
114
114
  }
115
115
 
116
+ @utility focus-ring {
117
+ outline: var(--focus-ring-width, 2px) solid
118
+ var(--focus-ring-color, var(--color-ring));
119
+ outline-offset: var(--focus-ring-offset, 1px);
120
+ }
121
+
116
122
  @utility no-scrollbar {
117
123
  -ms-overflow-style: none;
118
124
  scrollbar-width: none;