stillwind 0.1.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +19 -19
  2. package/css/builtin-utilities/tw-layout.css +2 -2
  3. package/css/logical/divide.css +67 -0
  4. package/css/logical/overflow.css +57 -0
  5. package/css/logical/overscroll.css +40 -0
  6. package/css/logical/resize.css +19 -0
  7. package/css/logical/snap.css +20 -0
  8. package/docs/at-rules/apply.md +1 -1
  9. package/docs/at-rules/custom-variant.md +3 -3
  10. package/docs/at-rules/plugin.md +2 -3
  11. package/docs/at-rules/slot.md +1 -1
  12. package/docs/at-rules/stillwind-css-template.md +2 -2
  13. package/docs/at-rules/stillwind-property.md +1 -1
  14. package/docs/at-rules/stillwind-registry.md +1 -1
  15. package/docs/at-rules/stillwind-require-properties.md +1 -1
  16. package/docs/at-rules/stillwind-undef-arbitrary-property.md +1 -1
  17. package/docs/at-rules/stillwind-undef-utility.md +8 -1
  18. package/docs/at-rules/stillwind-undef-variant.md +1 -1
  19. package/docs/at-rules/theme.md +5 -5
  20. package/docs/at-rules/utility.md +6 -5
  21. package/docs/at-rules/variant.md +1 -1
  22. package/docs/cli.md +375 -0
  23. package/docs/concepts/stylesheets.md +89 -0
  24. package/docs/configuration.md +44 -6
  25. package/docs/editors.md +110 -0
  26. package/docs/errors/SW10002.md +1 -1
  27. package/docs/formatters.md +87 -0
  28. package/docs/guides/lint-adoption.md +3 -12
  29. package/docs/guides/migrating-from-css.md +2 -0
  30. package/docs/guides/runtime-conditions.md +187 -0
  31. package/docs/guides/style.md +6 -5
  32. package/docs/guides/tailwind-compatibility.md +22 -1
  33. package/docs/guides/web-components.md +29 -0
  34. package/docs/index.md +6 -4
  35. package/docs/integrations.md +3 -0
  36. package/docs/lints/{prefer-explicit-nesting-selector.md → implicit-nesting-selector.md} +3 -3
  37. package/docs/lints/index.md +44 -43
  38. package/docs/lints/invalid-runtime-condition.md +2 -1
  39. package/docs/lints/invalid-utility.md +1 -1
  40. package/docs/lints/prefer-canonical-utilities.md +21 -4
  41. package/docs/lints/prefer-logical-properties.md +18 -0
  42. package/docs/lints/runtime-condition-requires-css-if.md +2 -1
  43. package/docs/lints/unknown-utility.md +3 -2
  44. package/docs/lints/unknown-variant.md +1 -1
  45. package/docs/lints/unmatched-host-selector.md +44 -0
  46. package/docs/macros/css.md +3 -3
  47. package/docs/plugins/iconify.md +270 -0
  48. package/docs/plugins/index.md +26 -0
  49. package/docs/utilities-and-variants.md +75 -0
  50. package/docs/why.md +1 -1
  51. package/package.json +11 -6
  52. package/skills/migrate-to-stillwind/SKILL.md +3 -1
  53. package/skills/stillwind/SKILL.md +34 -19
  54. package/docs/utilities.md +0 -35
package/README.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # Stillwind
2
2
 
3
- Stillwind compiles Tailwind CSS v4 utilities into component props and static CSS.
4
- It uses theme rules and compiler checks to keep styling code in order, even when
5
- AI agents write much of it. See the [documentation](https://stillwind.dev/docs)
6
- and try it in the [Playground](https://play.stillwind.dev/).
3
+ [Stillwind](https://stillwind.dev/) compiles Tailwind CSS v4 utilities into component props and static CSS.
4
+ It uses theme rules and compiler checks to keep styling code in order, even when AI agents write much of it.
5
+ See the [documentation](https://stillwind.dev/docs) and try it in the [Playground](https://play.stillwind.dev/).
7
6
 
8
- `stillwind` is the main Stillwind package. It provides CSS defaults, configuration
9
- helpers, and style APIs for Alpine, Astro, Lit, Preact, Qwik, React, Solid, Svelte,
10
- vanilla JavaScript, and Vue.
7
+ `stillwind` is the main Stillwind package. It provides CSS defaults, configuration helpers, and style APIs for
8
+ Alpine, Astro, Lit, Preact, Qwik, React, Solid, Svelte, Vue, and vanilla JavaScript.
11
9
 
12
10
  ## Install
13
11
 
@@ -52,18 +50,18 @@ JSX transform. The integration reads the project configuration and delivers its
52
50
 
53
51
  Import `style` from the entrypoint for your framework:
54
52
 
55
- | Framework | Import | Applying props |
56
- | --------- | ------------------- | ---------------------------- |
57
- | Alpine | `stillwind/alpine` | `x-sw="props"` |
58
- | Astro | `stillwind/astro` | `{...props}` |
59
- | Lit | `stillwind/lit` | `${applyStyle(props)}` |
60
- | Preact | `stillwind/preact` | `{...props}` |
61
- | Qwik | `stillwind/qwik` | `{...props}` |
62
- | React | `stillwind/react` | `{...props}` |
63
- | Solid | `stillwind/solid` | `{...props}` |
64
- | Svelte | `stillwind/svelte` | `{...props}` |
65
- | Vanilla | `stillwind/vanilla` | `applyStyle(element, props)` |
66
- | Vue | `stillwind/vue` | `v-bind="props"` |
53
+ | Framework | Import | Applying props |
54
+ | ---------- | ------------------- | ---------------------------- |
55
+ | Alpine | `stillwind/alpine` | `x-sw="props"` |
56
+ | Astro | `stillwind/astro` | `{...props}` |
57
+ | Lit | `stillwind/lit` | `${applyStyle(props)}` |
58
+ | Preact | `stillwind/preact` | `{...props}` |
59
+ | Qwik | `stillwind/qwik` | `{...props}` |
60
+ | React | `stillwind/react` | `{...props}` |
61
+ | Solid | `stillwind/solid` | `{...props}` |
62
+ | Svelte | `stillwind/svelte` | `{...props}` |
63
+ | Vue | `stillwind/vue` | `v-bind="props"` |
64
+ | Vanilla JS | `stillwind/vanilla` | `applyStyle(element, props)` |
67
65
 
68
66
  Gatsby uses `stillwind/react`. Fresh 2 with Vite uses `stillwind/preact`.
69
67
 
@@ -155,6 +153,8 @@ The default stylesheet imports the theme, preflight, utility slot, builtins, and
155
153
  templates. Custom CSS entries receive only the definitions they import. Individual
156
154
  stylesheets are available as `stillwind/theme.css`, `stillwind/preflight.css`,
157
155
  `stillwind/utilities.css`, `stillwind/builtins.css`, and `stillwind/templates.css`.
156
+ Import a file from `stillwind/logical/`, such as `stillwind/logical/overflow.css`,
157
+ after them to make the axis utilities of that property write logical properties.
158
158
 
159
159
  Use `stillwind/config` for project settings and lint presets. `stillwind/css`
160
160
  provides helpers for explicit stylesheet placement, and `stillwind/module-css`
@@ -48,7 +48,7 @@
48
48
 
49
49
  /* MARK: Screen reader visibility */
50
50
 
51
- @stillwind-utility sr-only {
51
+ @stillwind-utility sr-only (implementation) {
52
52
  position: absolute;
53
53
  width: 1px;
54
54
  height: 1px;
@@ -60,7 +60,7 @@
60
60
  border-width: 0;
61
61
  }
62
62
 
63
- @stillwind-utility not-sr-only {
63
+ @stillwind-utility not-sr-only (implementation) {
64
64
  position: static;
65
65
  width: auto;
66
66
  height: auto;
@@ -0,0 +1,67 @@
1
+ /*
2
+ Makes `divide-y-*` write logical properties, as `divide-x-*` writes `border-inline-*`. `stillwind`
3
+ keeps the physical properties for Tailwind CSS compatibility, so a project opts in by importing
4
+ this file.
5
+
6
+ Import it after `stillwind` or `stillwind/builtins.css`, because an undefinition removes only
7
+ definitions that register before it. Each replacement keeps the name of the removed definition,
8
+ and therefore its cascade position before `divide-dashed` and the other style utilities. The
9
+ `divide-y-*` pattern also removes `divide-y-reverse` and `divide-y-[initial]`, so this file
10
+ defines them again.
11
+ */
12
+
13
+ @stillwind-undef-utility divide-y;
14
+ @stillwind-undef-utility divide-y-*;
15
+
16
+ @stillwind-utility divide-y (tw-sort: divide-y-width) {
17
+ :where(& > :not(:last-child)) {
18
+ --tw-divide-y-reverse: 0;
19
+ border-block-style: var(--tw-border-style);
20
+ border-block-start-width: calc(1px * var(--tw-divide-y-reverse));
21
+ border-block-end-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
22
+ }
23
+ }
24
+
25
+ @stillwind-utility divide-y-[initial] (tw-sort: divide-y-width) {
26
+ :where(& > :not(:last-child)) {
27
+ --tw-divide-y-reverse: 0;
28
+ border-block-style: var(--tw-border-style);
29
+ border-block-start-width: calc(initial * var(--tw-divide-y-reverse));
30
+ border-block-end-width: calc(initial * calc(1 - var(--tw-divide-y-reverse)));
31
+ }
32
+ }
33
+
34
+ @stillwind-utility divide-y-reverse {
35
+ :where(& > :not(:last-child)) {
36
+ --tw-divide-y-reverse: 1;
37
+ }
38
+ }
39
+
40
+ @stillwind-utility divide-y-* (tw-sort: divide-y-width) {
41
+ :where(& > :not(:last-child)) {
42
+ border-block-end-style: var(--tw-border-style);
43
+ border-block-end-width: --value([line-width]);
44
+ }
45
+ }
46
+
47
+ @stillwind-utility divide-y-* (tw-sort: divide-y-width) {
48
+ :where(& > :not(:last-child)) {
49
+ --tw-divide-y-reverse: 0;
50
+ border-block-style: var(--tw-border-style);
51
+ border-block-start-width: calc(
52
+ --value(--divide-width-*, --border-width-*) * var(--tw-divide-y-reverse)
53
+ );
54
+ border-block-end-width: calc(
55
+ --value(--divide-width-*, --border-width-*) * calc(1 - var(--tw-divide-y-reverse))
56
+ );
57
+ }
58
+ }
59
+
60
+ @stillwind-utility divide-y-* (tw-sort: divide-y-width) {
61
+ :where(& > :not(:last-child)) {
62
+ --tw-divide-y-reverse: 0;
63
+ border-block-style: var(--tw-border-style);
64
+ border-block-start-width: calc(--value(integer) * 1px * var(--tw-divide-y-reverse));
65
+ border-block-end-width: calc(--value(integer) * 1px * calc(1 - var(--tw-divide-y-reverse)));
66
+ }
67
+ }
@@ -0,0 +1,57 @@
1
+ /*
2
+ Makes `overflow-x-*` and `overflow-y-*` write logical properties, as `px-*` and `py-*` write
3
+ `padding-inline` and `padding-block`. `stillwind` keeps the physical properties for Tailwind
4
+ CSS compatibility, so a project opts in by importing this file.
5
+
6
+ Import it after `stillwind` or `stillwind/builtins.css`, because an undefinition removes only
7
+ definitions that register before it. Each replacement keeps the name of the removed definition,
8
+ and therefore its cascade position after `overflow`, so an axis utility still overrides the
9
+ shorthand that `overflow-*`, `truncate`, and `sr-only` write. Arbitrary properties stay as
10
+ written.
11
+ */
12
+
13
+ @stillwind-undef-utility overflow-x-*;
14
+ @stillwind-undef-utility overflow-y-*;
15
+
16
+ @stillwind-arbitrary-property overflow-inline;
17
+ @stillwind-arbitrary-property overflow-block;
18
+
19
+ @stillwind-utility overflow-x-auto (tw-sort: overflow-x) {
20
+ overflow-inline: auto;
21
+ }
22
+
23
+ @stillwind-utility overflow-x-clip (tw-sort: overflow-x) {
24
+ overflow-inline: clip;
25
+ }
26
+
27
+ @stillwind-utility overflow-x-hidden (tw-sort: overflow-x) {
28
+ overflow-inline: hidden;
29
+ }
30
+
31
+ @stillwind-utility overflow-x-scroll (tw-sort: overflow-x) {
32
+ overflow-inline: scroll;
33
+ }
34
+
35
+ @stillwind-utility overflow-x-visible (tw-sort: overflow-x) {
36
+ overflow-inline: visible;
37
+ }
38
+
39
+ @stillwind-utility overflow-y-auto (tw-sort: overflow-y) {
40
+ overflow-block: auto;
41
+ }
42
+
43
+ @stillwind-utility overflow-y-clip (tw-sort: overflow-y) {
44
+ overflow-block: clip;
45
+ }
46
+
47
+ @stillwind-utility overflow-y-hidden (tw-sort: overflow-y) {
48
+ overflow-block: hidden;
49
+ }
50
+
51
+ @stillwind-utility overflow-y-scroll (tw-sort: overflow-y) {
52
+ overflow-block: scroll;
53
+ }
54
+
55
+ @stillwind-utility overflow-y-visible (tw-sort: overflow-y) {
56
+ overflow-block: visible;
57
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ Makes `overscroll-x-*` and `overscroll-y-*` write logical properties, as `px-*` and `py-*` write
3
+ `padding-inline` and `padding-block`. `stillwind` keeps the physical properties for Tailwind
4
+ CSS compatibility, so a project opts in by importing this file.
5
+
6
+ Import it after `stillwind` or `stillwind/builtins.css`, because an undefinition removes only
7
+ definitions that register before it. Each replacement keeps the name of the removed definition,
8
+ and therefore its cascade position after `overscroll-*`, so an axis utility still overrides the
9
+ shorthand. Arbitrary properties stay as written.
10
+ */
11
+
12
+ @stillwind-undef-utility overscroll-x-*;
13
+ @stillwind-undef-utility overscroll-y-*;
14
+
15
+ @stillwind-arbitrary-property overscroll-behavior-inline;
16
+ @stillwind-arbitrary-property overscroll-behavior-block;
17
+
18
+ @stillwind-utility overscroll-x-auto (tw-sort: overscroll-behavior-x) {
19
+ overscroll-behavior-inline: auto;
20
+ }
21
+
22
+ @stillwind-utility overscroll-x-contain (tw-sort: overscroll-behavior-x) {
23
+ overscroll-behavior-inline: contain;
24
+ }
25
+
26
+ @stillwind-utility overscroll-x-none (tw-sort: overscroll-behavior-x) {
27
+ overscroll-behavior-inline: none;
28
+ }
29
+
30
+ @stillwind-utility overscroll-y-auto (tw-sort: overscroll-behavior-y) {
31
+ overscroll-behavior-block: auto;
32
+ }
33
+
34
+ @stillwind-utility overscroll-y-contain (tw-sort: overscroll-behavior-y) {
35
+ overscroll-behavior-block: contain;
36
+ }
37
+
38
+ @stillwind-utility overscroll-y-none (tw-sort: overscroll-behavior-y) {
39
+ overscroll-behavior-block: none;
40
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ Makes `resize-x` and `resize-y` select the logical axes of `resize`. `stillwind` keeps the
3
+ physical axes for Tailwind CSS compatibility, so a project opts in by importing this file.
4
+
5
+ Import it after `stillwind` or `stillwind/builtins.css`, because an undefinition removes only
6
+ definitions that register before it. Each replacement keeps the name of the removed definition,
7
+ and therefore its cascade position.
8
+ */
9
+
10
+ @stillwind-undef-utility resize-x;
11
+ @stillwind-undef-utility resize-y;
12
+
13
+ @stillwind-utility resize-x {
14
+ resize: inline;
15
+ }
16
+
17
+ @stillwind-utility resize-y {
18
+ resize: block;
19
+ }
@@ -0,0 +1,20 @@
1
+ /*
2
+ Makes `snap-x` and `snap-y` select the logical axes of `scroll-snap-type`. `stillwind` keeps the
3
+ physical axes for Tailwind CSS compatibility, so a project opts in by importing this file.
4
+
5
+ Import it after `stillwind` or `stillwind/builtins.css`, because an undefinition removes only
6
+ definitions that register before it. Each replacement keeps the name of the removed definition,
7
+ and therefore its cascade position. `snap-mandatory` and `snap-proximity` keep working through
8
+ `--tw-scroll-snap-strictness`.
9
+ */
10
+
11
+ @stillwind-undef-utility snap-x;
12
+ @stillwind-undef-utility snap-y;
13
+
14
+ @stillwind-utility snap-x {
15
+ scroll-snap-type: inline var(--tw-scroll-snap-strictness);
16
+ }
17
+
18
+ @stillwind-utility snap-y {
19
+ scroll-snap-type: block var(--tw-scroll-snap-strictness);
20
+ }
@@ -27,7 +27,7 @@ inside a style rule or a utility definition. Whitespace separates the utilities.
27
27
  ### Generated stylesheet without preflight
28
28
 
29
29
  ```css
30
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
30
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
31
31
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
32
32
  @layer properties, theme, base, components, utilities;
33
33
 
@@ -53,7 +53,7 @@ export const link = {className:"sw_r7v8w"};
53
53
  ### Generated stylesheet without preflight
54
54
 
55
55
  ```css
56
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
56
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
57
57
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
58
58
  @layer properties, theme, base, components, utilities;
59
59
 
@@ -83,7 +83,7 @@ around `@slot`.
83
83
  selector without `&` selects descendants:
84
84
  `@custom-variant expanded ([aria-expanded="true"])` means
85
85
  `& [aria-expanded="true"]`.
86
- [prefer-explicit-nesting-selector](../lints/prefer-explicit-nesting-selector.md)
86
+ [implicit-nesting-selector](../lints/implicit-nesting-selector.md)
87
87
  reports such a selector, and its fix writes the `&` without changing the
88
88
  meaning.
89
89
 
@@ -109,7 +109,7 @@ export const css = style.css("shell:block shell:p-4 [button]:rounded-md");
109
109
  ### Compiled code
110
110
 
111
111
  ```ts
112
- export const css = "/*! stillwind v0.0.0 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n:where(:root, :host){--spacing:0.25rem;--radius-md:0.375rem;}:host{display:block;}:host{padding:calc(var(--spacing) * 4);}button{border-radius:var(--radius-md);}";
112
+ export const css = "/*! stillwind v0.4.1 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n:where(:root, :host){--spacing:0.25rem;--radius-md:0.375rem;}:host{display:block;}:host{padding:calc(var(--spacing) * 4);}button{border-radius:var(--radius-md);}";
113
113
  ```
114
114
 
115
115
  In `style.css()`, the first such variant selects the element that the utility
@@ -22,9 +22,8 @@ replaces the statement. Write it at the top level of the stylesheet.
22
22
  @plugin "@stillwind/plugin-iconify";
23
23
  ```
24
24
 
25
- [`@stillwind/plugin-iconify`](https://github.com/SegaraRai/stillwind/blob/main/plugins/iconify/README.md)
26
- adds icon utilities such as `icon-mdi--close`. Only the icons that your modules
27
- use reach the stylesheet.
25
+ [`@stillwind/plugin-iconify`](../plugins/iconify.md) adds icon utilities such as
26
+ `icon-mdi--close`. Only the icons that your modules use reach the stylesheet.
28
27
 
29
28
  ## Finding the plugin
30
29
 
@@ -42,7 +42,7 @@ export const link = {className:"sw_4x5c3"};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
 
@@ -47,7 +47,7 @@ export const css = style.css("p-4 text-blue-600", {
47
47
  ### Compiled code
48
48
 
49
49
  ```ts
50
- export const css = "/*! stillwind v0.0.0 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer component{:host{--color-blue-600:oklch(54.6% 0.245 262.881);--spacing:0.25rem;}:host{padding:calc(var(--spacing) * 4);}:host{color:var(--color-blue-600);}}";
50
+ export const css = "/*! stillwind v0.4.1 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer component{:host{--color-blue-600:oklch(54.6% 0.245 262.881);--spacing:0.25rem;}:host{padding:calc(var(--spacing) * 4);}:host{color:var(--color-blue-600);}}";
51
51
  ```
52
52
 
53
53
  The string contains the template's own CSS, and each slot receives the output of
@@ -82,7 +82,7 @@ export const css = style.css("p-4 text-blue-600", {
82
82
  ### Compiled code
83
83
 
84
84
  ```ts
85
- export const css = "/*! stillwind v0.0.0 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n:host{padding:calc(var(--spacing) * 4);}:host{color:var(--color-blue-600);}";
85
+ export const css = "/*! stillwind v0.4.1 | MIT License | https://stillwind.dev */\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n:host{padding:calc(var(--spacing) * 4);}:host{color:var(--color-blue-600);}";
86
86
  ```
87
87
 
88
88
  ## The default template
@@ -51,7 +51,7 @@ export const icon = {className:"sw_7ic77"};
51
51
  ### Generated stylesheet without preflight
52
52
 
53
53
  ```css
54
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
54
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
55
55
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
56
56
  @layer properties, theme, base, components, utilities;
57
57
 
@@ -62,7 +62,7 @@ export const panel = {className:"sw_2wahw"};
62
62
  ### Generated stylesheet without preflight
63
63
 
64
64
  ```css
65
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
65
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
66
66
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
67
67
  @layer properties, theme, base, components, utilities;
68
68
 
@@ -54,7 +54,7 @@ export const icon = {className:"sw_7ic77"};
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
57
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
58
58
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
@@ -45,7 +45,7 @@ export const accepted = {className:"sw_obysi"};
45
45
  ### Generated stylesheet without preflight
46
46
 
47
47
  ```css
48
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
48
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
49
49
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
50
50
  @layer properties, theme, base, components, utilities;
51
51
 
@@ -48,7 +48,7 @@ export const replaced = {className:"sw_vofby"};
48
48
  ### Generated stylesheet without preflight
49
49
 
50
50
  ```css
51
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
51
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
52
52
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
53
53
  @layer properties, theme, base, components, utilities;
54
54
 
@@ -80,6 +80,13 @@ source order. An undefinition removes only definitions that register before it:
80
80
  - It does not remove a `@utility` that comes after it, so you can remove a
81
81
  built-in utility and define your own utility with the same name.
82
82
 
83
+ A replacement with the same name keeps the cascade position of the removed
84
+ definition, so it wins against the same utilities as before. A definition with
85
+ another name takes the position where you write it. A definition without `*`
86
+ does not take the position of a removed `prefix-*` definition.
87
+ The [logical stylesheets](../concepts/stylesheets.md#logical-axis-utilities) replace
88
+ utilities in this way.
89
+
83
90
  Outside a block, the statement changes the `default`, `keyframe`, and
84
91
  `view-transition` registries.
85
92
 
@@ -42,7 +42,7 @@ export const toolbar = {};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
  ```
@@ -44,7 +44,7 @@ export const card = {className:"sw_j7rat"};
44
44
  ### Generated stylesheet without preflight
45
45
 
46
46
  ```css
47
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
47
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
48
48
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
49
49
  @layer properties, theme, base, components, utilities;
50
50
 
@@ -110,7 +110,7 @@ export const label = {className:"sw_4zrwj"};
110
110
  ### Generated stylesheet without preflight
111
111
 
112
112
  ```css
113
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
113
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
114
114
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
115
115
  @layer properties, theme, base, components, utilities;
116
116
 
@@ -163,7 +163,7 @@ export const title = {className:"sw_mjcfr"};
163
163
  ### Generated stylesheet without preflight
164
164
 
165
165
  ```css
166
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
166
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
167
167
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
168
168
  @layer properties, theme, base, components, utilities;
169
169
 
@@ -216,7 +216,7 @@ export const done = {className:"sw_j94hj"};
216
216
  ### Generated stylesheet without preflight
217
217
 
218
218
  ```css
219
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
219
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
220
220
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
221
221
  @layer properties, theme, base, components, utilities;
222
222
 
@@ -269,7 +269,7 @@ export const page = {className:"sw_rjnyv"};
269
269
  ### Generated stylesheet without preflight
270
270
 
271
271
  ```css
272
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
272
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
273
273
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
274
274
  @layer properties, theme, base, components, utilities;
275
275
 
@@ -50,7 +50,7 @@ export const list = {className:"sw_70m3s"};
50
50
  ### Generated stylesheet without preflight
51
51
 
52
52
  ```css
53
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
53
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
54
54
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
55
55
  @layer properties, theme, base, components, utilities;
56
56
 
@@ -115,7 +115,7 @@ export const code = {className:"sw_9jkuo"};
115
115
  ### Generated stylesheet without preflight
116
116
 
117
117
  ```css
118
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
118
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
119
119
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
120
120
  @layer properties, theme, base, components, utilities;
121
121
 
@@ -171,7 +171,7 @@ export const page = {className:"sw_5yksj"};
171
171
  ### Generated stylesheet without preflight
172
172
 
173
173
  ```css
174
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
174
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
175
175
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
176
176
  @layer properties, theme, base, components, utilities;
177
177
 
@@ -263,7 +263,7 @@ export const icon = {className:"sw_smxmp"};
263
263
  ### Generated stylesheet without preflight
264
264
 
265
265
  ```css
266
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
266
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
267
267
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
268
268
  @layer properties, theme, base, components, utilities;
269
269
 
@@ -276,7 +276,8 @@ export const icon = {className:"sw_smxmp"};
276
276
  ```
277
277
 
278
278
  Declarations that read the candidate through `--value()` or `--modifier()` are
279
- still checked.
279
+ still checked. The built-in `sr-only` and `not-sr-only` utilities also use this
280
+ descriptor.
280
281
 
281
282
  ## Conditions
282
283
 
@@ -37,7 +37,7 @@ a style rule.
37
37
  ### Generated stylesheet without preflight
38
38
 
39
39
  ```css
40
- /*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
40
+ /*! stillwind v0.4.1 | MIT License | https://stillwind.dev */
41
41
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
42
42
  @layer properties, theme, base, components, utilities;
43
43