stillwind 0.11.0 → 0.13.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 (120) hide show
  1. package/AGENTS_TEMPLATE.md +3 -2
  2. package/CHANGELOG.md +80 -0
  3. package/README.md +3 -3
  4. package/css/builtin-utilities/tw-borders.css +59 -59
  5. package/css/builtin-utilities/tw-effects.css +53 -53
  6. package/css/builtin-utilities/tw-typography.css +13 -13
  7. package/dist/class-object-C87DR3v2.js +6 -0
  8. package/dist/class-object-C87DR3v2.js.map +1 -0
  9. package/dist/class-object-CR0QHoF9.d.ts +10 -0
  10. package/dist/{class-string-C5YFtXQn.d.ts → class-string-BlClX8JK.d.ts} +2 -2
  11. package/dist/class-string-CiNTVHYm.js +6 -0
  12. package/dist/{class-string-KnYInbiw.js.map → class-string-CiNTVHYm.js.map} +1 -1
  13. package/dist/{formats-Ctf2WFc-.js → formats-DP9B9SG6.js} +228 -113
  14. package/dist/formats-DP9B9SG6.js.map +1 -0
  15. package/dist/{formats-aeLCNAXl.d.ts → formats-NBNjMP5R.d.ts} +34 -12
  16. package/dist/frameworks/alpine.d.ts +5 -3
  17. package/dist/frameworks/alpine.js +3 -1
  18. package/dist/frameworks/alpine.js.map +1 -1
  19. package/dist/frameworks/astro.d.ts +3 -3
  20. package/dist/frameworks/astro.js +1 -1
  21. package/dist/frameworks/lit.d.ts +5 -3
  22. package/dist/frameworks/lit.js +3 -1
  23. package/dist/frameworks/lit.js.map +1 -1
  24. package/dist/frameworks/preact.d.ts +3 -3
  25. package/dist/frameworks/preact.js +1 -1
  26. package/dist/frameworks/qwik.d.ts +3 -3
  27. package/dist/frameworks/qwik.js +1 -1
  28. package/dist/frameworks/react.d.ts +2 -2
  29. package/dist/frameworks/react.js +1 -1
  30. package/dist/frameworks/solid.d.ts +3 -3
  31. package/dist/frameworks/solid.js +1 -1
  32. package/dist/frameworks/svelte.d.ts +3 -3
  33. package/dist/frameworks/svelte.js +1 -1
  34. package/dist/frameworks/vanilla.d.ts +5 -3
  35. package/dist/frameworks/vanilla.js +6 -1
  36. package/dist/frameworks/vanilla.js.map +1 -0
  37. package/dist/frameworks/vue.d.ts +3 -3
  38. package/dist/frameworks/vue.js +1 -1
  39. package/dist/{index-DBpgaaD7.d.ts → index-DpaDcczW.d.ts} +157 -57
  40. package/dist/macro/index.d.ts +2 -2
  41. package/dist/macro/index.js +1 -1
  42. package/dist/runtime/development.d.ts +16 -8
  43. package/dist/runtime/development.js +57 -21
  44. package/dist/runtime/development.js.map +1 -1
  45. package/dist/runtime/index.d.ts +2 -2
  46. package/dist/runtime/index.js +1 -1
  47. package/dist/style-dMBm8aX_.js +50 -0
  48. package/dist/style-dMBm8aX_.js.map +1 -0
  49. package/docs/agents.md +1 -0
  50. package/docs/at-rules/apply.md +1 -1
  51. package/docs/at-rules/custom-variant.md +1 -1
  52. package/docs/at-rules/slot.md +1 -1
  53. package/docs/at-rules/stillwind-property.md +1 -1
  54. package/docs/at-rules/stillwind-registry.md +7 -7
  55. package/docs/at-rules/stillwind-require-properties.md +1 -1
  56. package/docs/at-rules/stillwind-undef-arbitrary-property.md +1 -1
  57. package/docs/at-rules/stillwind-undef-utility.md +1 -1
  58. package/docs/at-rules/stillwind-undef-variant.md +1 -1
  59. package/docs/at-rules/theme.md +5 -5
  60. package/docs/at-rules/utility.md +43 -4
  61. package/docs/at-rules/variant.md +1 -1
  62. package/docs/cli.md +146 -51
  63. package/docs/concepts/css-ordering.md +46 -7
  64. package/docs/concepts/how-styles-compile.md +8 -8
  65. package/docs/configuration.md +63 -4
  66. package/docs/errors/SW01001.md +1 -1
  67. package/docs/errors/SW03001.md +1 -1
  68. package/docs/errors/SW10004.md +1 -1
  69. package/docs/errors/SW10005.md +1 -1
  70. package/docs/errors/SW10006.md +34 -0
  71. package/docs/errors/SW11001.md +1 -1
  72. package/docs/errors/SW12001.md +1 -1
  73. package/docs/errors/SW12002.md +1 -1
  74. package/docs/errors/SW13002.md +1 -1
  75. package/docs/errors/SW14001.md +1 -1
  76. package/docs/errors/SW14002.md +1 -1
  77. package/docs/errors/SW14003.md +1 -1
  78. package/docs/errors/SW14004.md +1 -1
  79. package/docs/errors/SW14007.md +1 -1
  80. package/docs/errors/SW32003.md +1 -1
  81. package/docs/errors/SW32005.md +1 -1
  82. package/docs/errors/index.md +1 -0
  83. package/docs/formatters.md +34 -2
  84. package/docs/guides/lint-adoption.md +2 -0
  85. package/docs/guides/migrating-from-tailwind.md +60 -9
  86. package/docs/guides/recommended-practices.md +18 -0
  87. package/docs/guides/reusable-styles.md +2 -2
  88. package/docs/guides/tailwind-compatibility.md +8 -0
  89. package/docs/index.md +4 -5
  90. package/docs/integrations.md +314 -79
  91. package/docs/lints/conflicting-utilities.md +9 -0
  92. package/docs/lints/cyclic-style-order.md +61 -0
  93. package/docs/lints/index.md +26 -10
  94. package/docs/lints/{invalid-cva-config.md → invalid-recipe-config.md} +8 -8
  95. package/docs/lints/{invalid-cva-input.md → invalid-recipe-input.md} +9 -9
  96. package/docs/lints/invalid-rule-group-input.md +1 -1
  97. package/docs/lints/missing-view-transition-name.md +1 -1
  98. package/docs/lints/multiple-style-forwards.md +59 -0
  99. package/docs/lints/partial-utility-override.md +77 -0
  100. package/docs/lints/prefer-direct-styling.md +1 -1
  101. package/docs/lints/suspending-macro-argument.md +1 -1
  102. package/docs/lints/utility-class-selector.md +72 -0
  103. package/docs/llms.txt +238 -0
  104. package/docs/macros/index.md +1 -1
  105. package/docs/macros/recipe.md +246 -0
  106. package/docs/macros/style.md +72 -0
  107. package/docs/macros/when.md +1 -1
  108. package/docs/plugins/iconify.md +2 -0
  109. package/docs/utilities-and-variants.md +2 -0
  110. package/package.json +6 -6
  111. package/skills/setup-stillwind/SKILL.md +1 -2
  112. package/skills/stillwind/SKILL.md +19 -12
  113. package/dist/class-object-BaK8uudd.d.ts +0 -9
  114. package/dist/class-object-DNcjzcfH.js +0 -6
  115. package/dist/class-object-DNcjzcfH.js.map +0 -1
  116. package/dist/class-string-KnYInbiw.js +0 -6
  117. package/dist/formats-Ctf2WFc-.js.map +0 -1
  118. package/dist/style-BE8vuLiO.js +0 -44
  119. package/dist/style-BE8vuLiO.js.map +0 -1
  120. package/docs/macros/cva.md +0 -155
@@ -1,11 +1,11 @@
1
1
  ---
2
- title: "invalid-cva-config"
3
- description: "Reports an unknown or malformed field in a style.cva() configuration."
2
+ title: "invalid-recipe-config"
3
+ description: "Reports an unknown or malformed field in a style.recipe() configuration."
4
4
  ---
5
5
 
6
- # invalid-cva-config
6
+ # invalid-recipe-config
7
7
 
8
- This rule reports a `style.cva()` configuration that the compiler cannot read,
8
+ This rule reports a `style.recipe()` configuration that the compiler cannot read,
9
9
  such as an unknown field, a default for an option that does not exist, or a
10
10
  configuration that is not written in the call. The factory ignores the invalid
11
11
  part.
@@ -13,7 +13,7 @@ part.
13
13
  ## Reported
14
14
 
15
15
  ```tsx
16
- style.cva("p-4", {
16
+ style.recipe("p-4", {
17
17
  variant: {
18
18
  size: {
19
19
  small: "p-2",
@@ -22,14 +22,14 @@ style.cva("p-4", {
22
22
  });
23
23
  ```
24
24
 
25
- > invalid-cva-config: invalid style.cva() configuration: unknown configuration property
25
+ > invalid-recipe-config: invalid style.recipe() configuration: unknown configuration property
26
26
  >
27
27
  > Example:2:12
28
28
 
29
29
  ## Fixed
30
30
 
31
31
  ```tsx
32
- style.cva("p-4", {
32
+ style.recipe("p-4", {
33
33
  variants: {
34
34
  size: {
35
35
  small: "p-2",
@@ -45,7 +45,7 @@ style.cva("p-4", {
45
45
  - In `defaultVariants` and `compoundVariants`, use only options and values that
46
46
  `variants` declares.
47
47
 
48
- See [`style.cva()`](https://stillwind.dev/docs/macros/cva#configuration).
48
+ See [`style.recipe()`](https://stillwind.dev/docs/macros/recipe#configuration).
49
49
 
50
50
  ## Rule settings
51
51
 
@@ -1,30 +1,30 @@
1
1
  ---
2
- title: "invalid-cva-input"
3
- description: "Reports && or a ternary inside a style.cva() value."
2
+ title: "invalid-recipe-input"
3
+ description: "Reports && or a ternary inside a style.recipe() value."
4
4
  ---
5
5
 
6
- # invalid-cva-input
6
+ # invalid-recipe-input
7
7
 
8
8
  This rule reports a runtime condition, such as `&&` or a ternary, inside the base
9
- or an option value of [`style.cva()`](https://stillwind.dev/docs/macros/cva). The compiler generates
9
+ or an option value of [`style.recipe()`](https://stillwind.dev/docs/macros/recipe). The compiler generates
10
10
  every value when it creates the factory, so the condition cannot choose a style.
11
11
 
12
12
  ## Reported
13
13
 
14
14
  ```tsx
15
15
  declare const active: boolean;
16
- style.cva(active && "bg-blue-500");
16
+ style.recipe(active && "bg-blue-500");
17
17
  ```
18
18
 
19
- > invalid-cva-input: style.cva() values require static utilities, arrays, CSS variants, or custom properties. Utility inputs cannot use && or ternary expressions
19
+ > invalid-recipe-input: style.recipe() values require static utilities, arrays, CSS variants, or custom properties; utility inputs cannot use `&&` or ternary expressions
20
20
  >
21
- > Example:2:11
21
+ > Example:2:14
22
22
 
23
23
  ## Fixed
24
24
 
25
25
  ```tsx
26
26
  declare const active: boolean;
27
- const button = style.cva("", {
27
+ const button = style.recipe("", {
28
28
  variants: {
29
29
  active: {
30
30
  true: "bg-blue-500",
@@ -42,7 +42,7 @@ button({ active });
42
42
  - Stored [`style()`](https://stillwind.dev/docs/macros/style) results, refs, animations, and `class`
43
43
  fields are not accepted either. Use them in `style()` instead.
44
44
 
45
- See [`style.cva()`](https://stillwind.dev/docs/macros/cva#style-values).
45
+ See [`style.recipe()`](https://stillwind.dev/docs/macros/recipe#style-values).
46
46
 
47
47
  ## Rule settings
48
48
 
@@ -26,7 +26,7 @@ style({
26
26
  });
27
27
  ```
28
28
 
29
- > invalid-rule-group-input: style() rule groups cannot contain external class value
29
+ > invalid-rule-group-input: style() rule groups cannot contain external class values
30
30
  >
31
31
  > Example:3:12
32
32
 
@@ -18,7 +18,7 @@ const transition = style.viewTransition({ old: "duration-150" });
18
18
  style(transition);
19
19
  ```
20
20
 
21
- > missing-view-transition-name: a view transition class without a name does not participate; add .for(key) or declare view-transition-name
21
+ > missing-view-transition-name: a view transition class without a name does not participate; add `.for(key)` or declare `view-transition-name`
22
22
  >
23
23
  > Example:2:1
24
24
 
@@ -0,0 +1,59 @@
1
+ ---
2
+ title: "multiple-style-forwards"
3
+ description: "Reports a style() call with more than one style.forward() argument."
4
+ ---
5
+
6
+ # multiple-style-forwards
7
+
8
+ This rule reports a `style()` call that has more than one
9
+ [`style.forward()`](https://stillwind.dev/docs/macros/style#forward-props-to-a-components-element)
10
+ argument. The call is valid, but the forwarded values combine in two different
11
+ ways:
12
+
13
+ - Inline styles and custom properties apply in argument order. A later value
14
+ replaces an earlier value with the same name.
15
+ - Classes are joined in the class attribute. As with several base styles, the
16
+ CSS order of the files that generated them decides which class wins. The
17
+ argument order does not decide it.
18
+
19
+ ## Reported
20
+
21
+ ```tsx
22
+ import { style } from "stillwind/react";
23
+
24
+ export const Panel = ({ outer, inner }: PanelProps) => (
25
+ <div {...style("p-4", style.forward(outer), style.forward(inner))} />
26
+ );
27
+ ```
28
+
29
+ > multiple-style-forwards: this call has more than one style.forward() argument; CSS order, not argument order, decides which forwarded class wins
30
+ >
31
+ > Example:4:47
32
+
33
+ ## Fixed
34
+
35
+ ```tsx
36
+ import { style } from "stillwind/react";
37
+
38
+ export const Panel = ({ outer, inner }: PanelProps) => (
39
+ <div {...style("p-4", style.forward(outer))}>
40
+ <div {...style(style.forward(inner))} />
41
+ </div>
42
+ );
43
+ ```
44
+
45
+ ## How to fix
46
+
47
+ - Forward each set of props to its own element.
48
+ - When one element must receive both sets, make sure that their classes do not
49
+ set the same properties, and suppress the finding.
50
+
51
+ ## Rule settings
52
+
53
+ | Preset | Severity |
54
+ | --- | --- |
55
+ | `recommended` | warn |
56
+ | `strict` | deny |
57
+ | `stylistic` | off |
58
+
59
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -0,0 +1,77 @@
1
+ ---
2
+ title: "partial-utility-override"
3
+ description: "Reports a utility that overrides another utility of the same family but leaves some of its properties in place, such as the line height of text-sm."
4
+ ---
5
+
6
+ # partial-utility-override
7
+
8
+ This rule reports a utility that overrides an earlier utility of the same family,
9
+ when the earlier utility also sets a property that the later utility does not set.
10
+ That property keeps the value of the earlier utility.
11
+
12
+ For example, `text-sm` sets `font-size` and `line-height`, and `text-[0.8rem]`
13
+ sets only `font-size`. When `text-[0.8rem]` overrides `text-sm`, the font size
14
+ changes, but the line height of `text-sm` remains. tailwind-merge removes the
15
+ whole `text-sm` in this case, so code written for `cn()` can look different after
16
+ migration.
17
+
18
+ The rule checks these overrides:
19
+
20
+ - A utility of the call overrides a utility of a base, as in
21
+ `style(base, "text-[0.8rem]")`.
22
+ - A utility under a JavaScript condition overrides a utility that is written
23
+ before it under fewer conditions, as in
24
+ `style("text-sm", compact && "text-[0.8rem]")`.
25
+ - A variant option or a compound value of
26
+ [`style.recipe()`](https://stillwind.dev/docs/macros/recipe) overrides a utility of the base value of
27
+ the same slot.
28
+
29
+ The rule compares only utilities of the same family, such as `text-*`, under the
30
+ same CSS variants. `px-4` with `pl-2` is not reported, because the other side of
31
+ the padding is meant to remain.
32
+
33
+ ## Reported
34
+
35
+ ```tsx
36
+ import { style } from "stillwind/react";
37
+
38
+ const label = style("text-sm font-medium");
39
+ export const compact = style(label, "text-[0.8rem]");
40
+ ```
41
+
42
+ > partial-utility-override: `text-[0.8rem]` overrides `text-sm`, but `text-sm` also sets `line-height`, which `text-[0.8rem]` does not set
43
+ >
44
+ > Example:4:38
45
+ >
46
+ > Example:3:22: overridden utility
47
+
48
+ ## Fixed
49
+
50
+ ```tsx
51
+ import { style } from "stillwind/react";
52
+
53
+ const label = style("text-sm font-medium");
54
+ export const compact = style(label, "text-[0.8rem]/5");
55
+ ```
56
+
57
+ ## How to fix
58
+
59
+ - Set the remaining properties in the same layer, such as the line height in
60
+ `text-[0.8rem]/5`.
61
+ - Or use a utility that sets the same properties, such as `text-xs` in place of
62
+ `text-[0.8rem]`.
63
+ - If the remaining value is what you want, keep the code and turn the rule off
64
+ for that line.
65
+
66
+ [conflicting-utilities](https://stillwind.dev/docs/lints/conflicting-utilities) reports utilities that
67
+ compete in one layer, where the code does not show which one wins.
68
+
69
+ ## Rule settings
70
+
71
+ | Preset | Severity |
72
+ | --- | --- |
73
+ | `recommended` | warn |
74
+ | `strict` | deny |
75
+ | `stylistic` | off |
76
+
77
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -16,7 +16,7 @@ preset enables this rule.
16
16
  const toolbar = style("flex gap-2 [&_button]:p-4");
17
17
  ```
18
18
 
19
- > prefer-direct-styling: variant selector `& button` styles another element. Attach these styles directly to that element
19
+ > prefer-direct-styling: variant selector `& button` styles another element; attach these styles directly to that element
20
20
  >
21
21
  > Example:1:35
22
22
 
@@ -17,7 +17,7 @@ async function props() {
17
17
  }
18
18
  ```
19
19
 
20
- > suspending-macro-argument: evaluate await, yield, and dynamic imports outside macro arguments, then pass their values
20
+ > suspending-macro-argument: evaluate `await`, `yield`, and dynamic imports outside macro arguments, then pass their values
21
21
  >
22
22
  > Example:2:25
23
23
 
@@ -0,0 +1,72 @@
1
+ ---
2
+ title: "utility-class-selector"
3
+ description: "Reports a selector that tests the class attribute for a utility name, such as [class*='size-']."
4
+ ---
5
+
6
+ # utility-class-selector
7
+
8
+ This rule reports a selector variant that tests the `class` attribute for a utility
9
+ name, such as `[class*='size-']` or `.border-b`. Stillwind writes generated class
10
+ names, not utility names, to the `class` attribute. Such a test therefore does not see
11
+ the utilities of an element that `style()` styles.
12
+
13
+ Component libraries such as shadcn/ui use this test to apply a default size to an icon
14
+ unless the icon sets its own size. In Stillwind, `:not([class*='size-'])` always
15
+ matches, so the default replaces the size that the icon sets.
16
+
17
+ ## Reported
18
+
19
+ ```tsx
20
+ function Button(props: ButtonProps) {
21
+ return (
22
+ <button
23
+ {...style(
24
+ "inline-flex items-center gap-2 [&_svg:not([class*='size-'])]:size-4",
25
+ style.forward(props),
26
+ )}
27
+ />
28
+ );
29
+ }
30
+ ```
31
+
32
+ > utility-class-selector: `[class*='size-']` tests the class attribute for a utility name, but Stillwind writes generated class names, so it does not see the utilities of an element
33
+ >
34
+ > Example:5:41
35
+
36
+ ## Fixed
37
+
38
+ ```tsx
39
+ function Button(props: ButtonProps) {
40
+ return (
41
+ <button
42
+ {...style("inline-flex items-center gap-2 [:where(&_svg)]:size-4", style.forward(props))}
43
+ />
44
+ );
45
+ }
46
+ ```
47
+
48
+ `:where()` gives the rule zero specificity. A class on the icon that sets the same
49
+ property, such as the class of `style("size-6")`, then wins over the default.
50
+
51
+ ## How to fix
52
+
53
+ - For a variant such as `[&_svg:not([class*='size-'])]:size-4`, whose utility has the
54
+ root that the test names, use `[:where(&_svg)]:size-4`. The automatic fix makes
55
+ this change.
56
+ - Without `&`, include the `*:` or `**:` variant before it in `:where()`, because the
57
+ class of `*:` keeps the specificity of one class. The automatic fix changes
58
+ `*:[svg:not([class*=size-])]:size-8` to `[:where(&>svg)]:size-8`, `**:` to `&_svg`,
59
+ and `[svg:not([class*=size-])]:size-7` without `*:` to `[:where(&:is(svg))]:size-7`.
60
+ - For other tests, such as `[.border-b]:pb-6`, pass the state in another way. For
61
+ example, add a prop, or set the property on the element where the caller adds the
62
+ utility.
63
+
64
+ ## Rule settings
65
+
66
+ | Preset | Severity |
67
+ | --- | --- |
68
+ | `recommended` | warn |
69
+ | `strict` | deny |
70
+ | `stylistic` | off |
71
+
72
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
package/docs/llms.txt ADDED
@@ -0,0 +1,238 @@
1
+ # Stillwind documentation
2
+
3
+ Index of the Markdown pages bundled in `docs/`. Paths are relative to this file.
4
+
5
+ ## Pages
6
+
7
+ - [Getting started](index.md): Add Stillwind to a Vite and React application, style a component, and check your styles.
8
+ - [Coding agents](agents.md): Let a coding agent set up Stillwind or migrate a project, using the documentation and skills in the stillwind package.
9
+ - [CLI](cli.md): Commands, options, file selection, exit codes, and output formats of the Stillwind CLI.
10
+ - [Configuration](configuration.md): Set up projects in stillwind.config.ts, choose lint rules, and look up every project field.
11
+ - [Editors](editors.md): Install the Stillwind extension, sort and fix on save, and connect other editors to the language server.
12
+ - [Formatters](formatters.md): Sort utilities together with Prettier, Oxfmt, or another document formatter.
13
+ - [Framework integrations](integrations.md): Import style() for your framework, and add Stillwind to your build tool.
14
+ - [Built-in utilities and variants](utilities-and-variants.md): Look up the CSS of a utility or variant, or find the canonical utility for CSS declarations.
15
+ - [Why Stillwind](why.md): Keep Tailwind-style code consistent as AI agents write more of it.
16
+
17
+ ## at-rules
18
+
19
+ - [At-rule reference](at-rules/index.md): Find the at-rules that define tokens, utilities, and variants in your stylesheet, and read their syntax and output.
20
+ - [@apply](at-rules/apply.md): Insert the declarations of utilities, including their variants, into a rule of your stylesheet.
21
+ - [@custom-variant](at-rules/custom-variant.md): Define a variant with a selector, or with a block that marks the styled content with @slot.
22
+ - [@plugin](at-rules/plugin.md): Load a Stillwind plugin or a Tailwind CSS v4 JavaScript plugin, with optional options.
23
+ - [Registry directives](at-rules/registry-directives.md): Read the at-rules that define Stillwind's built-in utilities, variants, and theme metadata.
24
+ - [@slot](at-rules/slot.md): Mark where a variant definition inserts the styled content.
25
+ - [@stillwind-css-template](at-rules/stillwind-css-template.md): Define where style.css() places its utilities, theme values, and other supporting CSS.
26
+ - [@stillwind-property](at-rules/stillwind-property.md): Register a custom property that the stylesheet declares with @property only when generated CSS needs it.
27
+ - [@stillwind-registry](at-rules/stillwind-registry.md): Define or remove utilities only for style(), keyframes, animation options, or view transitions.
28
+ - [@stillwind-require-properties](at-rules/stillwind-require-properties.md): Make a utility emit the registrations of custom properties that it needs.
29
+ - [@stillwind-slot](at-rules/stillwind-slot.md): Place generated utilities, theme values, keyframes, and property registrations in your stylesheet.
30
+ - [@stillwind-undef-arbitrary-property](at-rules/stillwind-undef-arbitrary-property.md): Reject arbitrary-property utilities such as [color:red] for the properties that match a pattern.
31
+ - [@stillwind-undef-utility](at-rules/stillwind-undef-utility.md): Remove built-in or plugin utility definitions that match a name or a prefix.
32
+ - [@stillwind-undef-variant](at-rules/stillwind-undef-variant.md): Remove built-in or plugin variant definitions that match a name or a prefix.
33
+ - [@theme](at-rules/theme.md): Define design tokens that add utilities, and shared values such as images.
34
+ - [@utility](at-rules/utility.md): Define a utility, or add declarations to a built-in utility with the same name.
35
+ - [@variant](at-rules/variant.md): Apply variants, such as hover or dark, to a block of declarations in a rule or custom utility of your stylesheet.
36
+
37
+ ## concepts
38
+
39
+ - [CSS ordering](concepts/css-ordering.md): See how Stillwind orders CSS from different files, calls, conditions, variants, and utilities, and how the browser decides which value wins.
40
+ - [How styles compile](concepts/how-styles-compile.md): See what Stillwind generates at build time, what JavaScript remains at runtime, and how CSS reaches the page.
41
+ - [Stylesheets](concepts/stylesheets.md): See which CSS files the stillwind package provides, how to import them separately, and which optional files change built-in utilities.
42
+
43
+ ## errors
44
+
45
+ - [Compiler error reference](errors/index.md): Find a compiler error by its code, and see whether to fix the source, fix the configuration, or report a bug.
46
+ - [SW01001: Invalid property prefix](errors/SW01001.md): The prefix, tailwindPrefix, or themePrefix setting does not start with -- and end with -.
47
+ - [SW01002: Invalid hash length](errors/SW01002.md): The hashLength setting is outside the supported range.
48
+ - [SW01003: Invalid lint configuration](errors/SW01003.md): A lint rule has an option value that the compiler cannot use.
49
+ - [SW02001: Framework constraint conflict](errors/SW02001.md): The prepared source selects a framework that differs from the component format.
50
+ - [SW02002: Unresolved root stylesheet](errors/SW02002.md): The stylesheet that the css setting selects cannot be found.
51
+ - [SW03001: Generated identifier collision](errors/SW03001.md): Two different styles would receive the same generated name.
52
+ - [SW03002: Identifier generator failed](errors/SW03002.md): A custom naming function threw an error or returned an invalid name.
53
+ - [SW03003: Theme variable collision](errors/SW03003.md): A theme variable takes the name of a custom property that Stillwind uses internally after themePrefix applies.
54
+ - [SW10001: JavaScript parse error](errors/SW10001.md): The JavaScript or TypeScript of a file has a syntax error.
55
+ - [SW10002: Invalid component syntax](errors/SW10002.md): A Vue, Svelte, or Astro component has a syntax error.
56
+ - [SW10003: Invalid Unicode string](errors/SW10003.md): A string used to generate CSS or resolve a module contains a lone Unicode surrogate.
57
+ - [SW10004: Unconsumed macro use](errors/SW10004.md): A ref method, ref condition, or animation call is stored or passed somewhere other than directly in style().
58
+ - [SW10005: Untransformed macro reference](errors/SW10005.md): The style function is used as a value instead of being called.
59
+ - [SW10006: Unavailable style.forward()](errors/SW10006.md): style.forward() is used through an entrypoint that does not provide it.
60
+ - [SW11001: Style composition cycle](errors/SW11001.md): Two styles use each other as a base.
61
+ - [SW11002: CSS module ordering cycle](errors/SW11002.md): Two modules each build styles on a base from the other module.
62
+ - [SW11003: Unavailable style base](errors/SW11003.md): The compiled CSS of a base style is missing from the build.
63
+ - [SW12001: Incompatible declaration assignment](errors/SW12001.md): A variable that holds one ref or animation is assigned a different one.
64
+ - [SW12002: Declaration identities unavailable](errors/SW12002.md): The compiler cannot tell which refs or animations a value can hold.
65
+ - [SW13001: Authored CSS parse error](errors/SW13001.md): Your stylesheet has a CSS syntax error.
66
+ - [SW13002: Unterminated CSS block](errors/SW13002.md): A CSS block in your stylesheet is not closed.
67
+ - [SW13003: Invalid CSS block](errors/SW13003.md): The compiler cannot read a balanced CSS block.
68
+ - [SW13004: CSS nesting limit exceeded](errors/SW13004.md): CSS rules or functions in your stylesheet are nested too deeply.
69
+ - [SW14001: Missing utilities slot](errors/SW14001.md): Your stylesheet does not place the generated utility CSS anywhere.
70
+ - [SW14002: Missing support slot](errors/SW14002.md): Your stylesheet has no place for CSS that a feature needs, such as keyframes.
71
+ - [SW14003: Malformed property requirement](errors/SW14003.md): An @stillwind-require-properties directive in your stylesheet has invalid syntax.
72
+ - [SW14004: Malformed utility property requirement](errors/SW14004.md): A utility that you use has an @stillwind-require-properties directive with invalid syntax.
73
+ - [SW14005: Required property is unregistered](errors/SW14005.md): A utility requires a custom property that no @stillwind-property registers.
74
+ - [SW14006: Property-usage parse failure](errors/SW14006.md): The compiler cannot parse CSS while collecting custom-property usage.
75
+ - [SW14007: Malformed theme reference](errors/SW14007.md): A --theme() call in your stylesheet has invalid syntax.
76
+ - [SW14008: Circular utility application](errors/SW14008.md): A utility applies itself directly or through another utility.
77
+ - [SW15001: CSS offset exceeds source coordinates](errors/SW15001.md): A stylesheet is too large for the compiler's source positions.
78
+ - [SW15002: Rendered source is too large](errors/SW15002.md): A compiled module is too large for the compiler's source positions.
79
+ - [SW15003: Source size or offset is too large](errors/SW15003.md): A source file or a position in it is too large for the compiler's source positions.
80
+ - [SW30001: TypeScript checker facts required](errors/SW30001.md): The compiler needs type information for a value, but the integration did not provide it.
81
+ - [SW30002: Invalid or stale TypeScript facts](errors/SW30002.md): The type information from the integration does not match the source or the compiler version.
82
+ - [SW30003: Incompatible symbolic fact kinds](errors/SW30003.md): The type information describes a value as the wrong kind, such as a keyframes definition as a ref.
83
+ - [SW30004: Checker expression unavailable](errors/SW30004.md): The integration cannot find the code that TypeScript needs to check for an expression.
84
+ - [SW31001: Invalid projection map](errors/SW31001.md): The mapping between a component and its converted script is malformed.
85
+ - [SW31002: Ambiguous or missing original range](errors/SW31002.md): A Stillwind expression in a converted script maps to no place, or several places, in the component.
86
+ - [SW31003: Projection content mismatch](errors/SW31003.md): The converted script and the component contain different text at a mapped location.
87
+ - [SW31004: Invalid converter output syntax](errors/SW31004.md): The script that a converter generated from a valid component has a syntax error.
88
+ - [SW31005: Component projection preparation failed](errors/SW31005.md): The converter for a Vue, Svelte, or Astro component failed before compilation.
89
+ - [SW31006: Invalid UTF-16 offset](errors/SW31006.md): A requested UTF-16 offset is outside the source or inside a character.
90
+ - [SW31007: Invalid UTF-16 position](errors/SW31007.md): A requested line and column do not exist in the source.
91
+ - [SW31008: Invalid UTF-8 offset](errors/SW31008.md): A requested byte offset is outside the source or inside a multibyte character.
92
+ - [SW31009: Unmapped macro binding read](errors/SW31009.md): A use of style in a converted component has no mapping to the original component.
93
+ - [SW31010: Edit outside an editable projection region](errors/SW31010.md): The compiler must edit a part of a component that the converter marks as not editable.
94
+ - [SW31011: Attribute quote mismatch](errors/SW31011.md): The converter recorded the wrong quote character for an attribute that the compiler edits.
95
+ - [SW32001: CSS imports need host resolution](errors/SW32001.md): A stylesheet with @import was loaded through an API that cannot resolve imports.
96
+ - [SW32002: Invalid initial CSS batch](errors/SW32002.md): The first answer to the stylesheet loader does not contain exactly one stylesheet.
97
+ - [SW32003: Unknown or duplicate CSS request](errors/SW32003.md): An answer to the stylesheet loader names a request that is not pending.
98
+ - [SW32004: Conflicting CSS source](errors/SW32004.md): One stylesheet name received two different contents during one load.
99
+ - [SW32005: CSS loader already completed](errors/SW32005.md): An answer reached the stylesheet loader after it finished loading.
100
+ - [SW32006: CSS request IDs exhausted](errors/SW32006.md): The stylesheet loader ran out of request IDs during one load.
101
+ - [SW32007: CSS source IDs exhausted](errors/SW32007.md): The stylesheet loader ran out of IDs for different stylesheet files.
102
+ - [SW33001: Original map on an internal source](errors/SW33001.md): An internal generated buffer was registered with a map to an original document.
103
+ - [SW33002: Invalid source byte range](errors/SW33002.md): A requested byte range ends before it starts, or is otherwise unusable.
104
+ - [SW33003: Span belongs to another file](errors/SW33003.md): A source range from one file was applied to another file.
105
+ - [SW33004: Invalid source span](errors/SW33004.md): A source range lies outside its file or splits a multibyte character.
106
+ - [SW33005: Invalid source byte offset](errors/SW33005.md): A requested byte offset lies outside its file or splits a multibyte character.
107
+ - [SW34001: Missing macro import anchor](errors/SW34001.md): The compiler cannot find the Stillwind import where it must add runtime imports.
108
+ - [SW34002: Missing module CSS target](errors/SW34002.md): A file imports stillwind/module-css, but the integration provides no module for it.
109
+ - [SW34003: Transform requested after failed compilation](errors/SW34003.md): The integration asked for code edits from a compilation that failed.
110
+ - [SW90001: Invalid generated CSS block](errors/SW90001.md): The compiler generated CSS that is not made of complete rules.
111
+ - [SW90002: Missing retained rule](errors/SW90002.md): The compiler refers to a CSS rule that its own results do not contain.
112
+ - [SW90003: Inconsistent internal CSS graph](errors/SW90003.md): The compiler's record of your stylesheet imports does not match the loaded stylesheets.
113
+ - [SW90004: Inconsistent macro import metadata](errors/SW90004.md): The compiler recorded the Stillwind import at the wrong place.
114
+ - [SW90005: Macro anchor removal edit missing](errors/SW90005.md): The compiler chose a Stillwind import to replace, but did not plan its replacement.
115
+ - [SW90006: Invalid transform expression mapping](errors/SW90006.md): The compiler generated a code edit with an invalid link to the original expression.
116
+ - [SW90007: Overlapping source replacements](errors/SW90007.md): The compiler planned two code edits that overlap.
117
+ - [SW90008: Invalid compiler-produced source coordinates](errors/SW90008.md): The compiler produced a source position that is not valid.
118
+
119
+ ## guides
120
+
121
+ - [Animations](guides/animations.md): Define keyframes in the component that uses them, and respect reduced-motion preferences.
122
+ - [Design systems](guides/design-systems.md): Define colors, spacing, radii, breakpoints, and text sizes once, and report values that bypass them.
123
+ - [Element relationships](guides/element-relationships.md): Style an element from another element's state, size, or position through refs that TypeScript checks.
124
+ - [Checks in the editor and CI](guides/lint-adoption.md): Catch misspelled utilities, conflicts, and project policy violations with the CLI, CI, and the editor.
125
+ - [Migrating from CSS](guides/migrating-from-css.md): Move styles from plain CSS, CSS Modules, preprocessors, or CSS-in-JS into style() calls and theme tokens.
126
+ - [Migrating from Tailwind CSS](guides/migrating-from-tailwind.md): Move a Tailwind CSS v4 project to Stillwind, from the stylesheet and build to components and configuration.
127
+ - [Recommended practices](guides/recommended-practices.md): Keep styles next to their elements, reuse them through components, and avoid the mistakes that produce no CSS.
128
+ - [Responsive styles](guides/responsive-styles.md): Name breakpoints once, and use them in utilities, authored CSS, and JavaScript.
129
+ - [Reusable styles](guides/reusable-styles.md): Share a base style, and express states and options with variants instead of toggled classes.
130
+ - [Runtime conditions](guides/runtime-conditions.md): Change utilities and values with a custom property, without changing the classes of an element.
131
+ - [The basics of style()](guides/style.md): Apply utilities, variants, conditions, overrides, and runtime values to an element.
132
+ - [Tailwind CSS compatibility](guides/tailwind-compatibility.md): Check which Tailwind CSS v4 features, plugins, and CSS packages work in Stillwind, and what Stillwind does differently by design.
133
+ - [View transitions](guides/view-transitions.md): Style view transition snapshots in the component, and give each item a stable name.
134
+ - [Web Components](guides/web-components.md): Add the compiled styles of a component module to its shadow root.
135
+
136
+ ## lints
137
+
138
+ - [Lint rule reference](lints/index.md): Find a lint rule by the kind of mistake or policy that it reports.
139
+ - [ambiguous-style-base-order](lints/ambiguous-style-base-order.md): Reports two independent base styles in one call that set the same property.
140
+ - [bypassed-undefinition](lints/bypassed-undefinition.md): Reports a top-level utility definition that also applies where the built-in definitions remove it.
141
+ - [clamped-value](lints/clamped-value.md): Reports a value outside the range that the browser uses, such as opacity above 1.
142
+ - [conflicting-provider-properties](lints/conflicting-provider-properties.md): Reports a container or anchor property that a ref method and a utility both set.
143
+ - [conflicting-utilities](lints/conflicting-utilities.md): Reports utilities that set the same CSS property under the same conditions, such as p-2 p-4.
144
+ - [cyclic-style-order](lints/cyclic-style-order.md): Reports files that import values from each other, so their CSS order cannot follow both.
145
+ - [document-scoped-selector](lints/document-scoped-selector.md): Reports a selector variant that styles the whole document instead of the element.
146
+ - [duplicate-definition](lints/duplicate-definition.md): Reports a utility or variant definition that replaces an earlier one with the same name.
147
+ - [duplicate-utility](lints/duplicate-utility.md): Reports the same utility written twice under the same conditions.
148
+ - [duplicate-view-transition-name](lints/duplicate-view-transition-name.md): Reports two .for() calls in one style() call.
149
+ - [ignored-definition-condition](lints/ignored-definition-condition.md): Reports a media rule around a utility definition, which the compiler ignores.
150
+ - [ignored-tailwind-feature](lints/ignored-tailwind-feature.md): Reports Tailwind CSS features that Stillwind ignores in the stylesheet, such as @config and @source.
151
+ - [implicit-nesting-selector](lints/implicit-nesting-selector.md): Reports a custom variant selector without &, which matches descendants.
152
+ - [incompatible-property-value](lints/incompatible-property-value.md): Reports a utility value that the browser rejects for its CSS property.
153
+ - [incompatible-theme-value](lints/incompatible-theme-value.md): Reports a theme token with a value of the wrong type for its namespace, such as a length for a color.
154
+ - [ineffective-anchor-scope](lints/ineffective-anchor-scope.md): Reports an empty or repeated ref list in an anchor scope.
155
+ - [interfering-imported-style-base](lints/interfering-imported-style-base.md): Reports an imported base style that sets the same property as another style in the call.
156
+ - [invalid-animation-option](lints/invalid-animation-option.md): Reports a utility in the options of an animation that is not an animation option, such as p-4.
157
+ - [invalid-css-directive](lints/invalid-css-directive.md): Reports a malformed or unsupported Stillwind directive in your stylesheet.
158
+ - [invalid-css-import](lints/invalid-css-import.md): Reports a stylesheet import that cannot be resolved.
159
+ - [invalid-css-input](lints/invalid-css-input.md): Reports a style.css() argument that is not a utility known at build time.
160
+ - [invalid-keyframes-definition](lints/invalid-keyframes-definition.md): Reports a style.keyframes() frame key that is not a keyframe position, such as middle.
161
+ - [invalid-keyframes-use](lints/invalid-keyframes-use.md): Reports an animation applied with an argument that is not a string of options.
162
+ - [invalid-keyframes-variant](lints/invalid-keyframes-variant.md): Reports a state or container variant around a style.keyframes() definition.
163
+ - [invalid-lint-suppression](lints/invalid-lint-suppression.md): Reports a malformed suppression comment or an unknown rule name in one.
164
+ - [invalid-marker-use](lints/invalid-marker-use.md): Reports a marker class such as group with a variant or the important modifier.
165
+ - [invalid-media-query](lints/invalid-media-query.md): Reports a condition in style.media() that is not a media query, such as hover.
166
+ - [invalid-recipe-config](lints/invalid-recipe-config.md): Reports an unknown or malformed field in a style.recipe() configuration.
167
+ - [invalid-recipe-input](lints/invalid-recipe-input.md): Reports && or a ternary inside a style.recipe() value.
168
+ - [invalid-ref-input](lints/invalid-ref-input.md): Reports a style.ref() label or ref method argument that is not a literal.
169
+ - [invalid-rule-group-input](lints/invalid-rule-group-input.md): Reports a class field, custom property, or ref inside an object with variant keys.
170
+ - [invalid-runtime-condition](lints/invalid-runtime-condition.md): Reports a runtime CSS condition that the compiler cannot compile in its position.
171
+ - [invalid-stored-variant](lints/invalid-stored-variant.md): Reports a style.when() argument that is not a sequence of variants, or a use that can refer to several stored variants.
172
+ - [invalid-style-composition](lints/invalid-style-composition.md): Reports inline styles or custom properties in a base style, which do not carry over.
173
+ - [invalid-style-input](lints/invalid-style-input.md): Reports a style() argument that the compiler cannot compile, such as a number.
174
+ - [invalid-theme-reference](lints/invalid-theme-reference.md): Reports a --theme() reference to a token that is not defined.
175
+ - [invalid-utility](lints/invalid-utility.md): Reports a known utility written in a form that it does not accept.
176
+ - [invalid-variant](lints/invalid-variant.md): Reports a known variant with a value that it does not accept, such as min-[foo].
177
+ - [invalid-view-transition-definition](lints/invalid-view-transition-definition.md): Reports an unknown field in a style.viewTransition() definition.
178
+ - [invalid-view-transition-use](lints/invalid-view-transition-use.md): Reports extra or invalid arguments to .for() of a view transition.
179
+ - [invalid-view-transition-variant](lints/invalid-view-transition-variant.md): Reports a state or container variant in a style.viewTransition() definition.
180
+ - [mismatched-framework-import](lints/mismatched-framework-import.md): Reports an import of style() from the entrypoint of another framework.
181
+ - [missing-document-target](lints/missing-document-target.md): Reports a style.css() utility without a selector to apply to.
182
+ - [missing-ref-attachment](lints/missing-ref-attachment.md): Reports asContainer() or asAnchor() in a call that does not attach the ref.
183
+ - [missing-view-transition-name](lints/missing-view-transition-name.md): Reports a view transition applied without .for().
184
+ - [multiple-style-forwards](lints/multiple-style-forwards.md): Reports a style() call with more than one style.forward() argument.
185
+ - [mutating-macro-argument](lints/mutating-macro-argument.md): Reports a state update inside an argument of style() or another macro.
186
+ - [no-arbitrary-breakpoints](lints/no-arbitrary-breakpoints.md): Reports viewport widths written as arbitrary values, such as min-[713px]:.
187
+ - [no-arbitrary-colors](lints/no-arbitrary-colors.md): Reports colors written as arbitrary values, such as bg-[#123456].
188
+ - [no-arbitrary-spacing](lints/no-arbitrary-spacing.md): Reports margin, padding, and gap written as arbitrary values, such as p-[13px].
189
+ - [no-class-property](lints/no-class-property.md): Reports the class field, which adds classes without generated CSS.
190
+ - [no-important](lints/no-important.md): Reports utilities with the important modifier, such as p-4!.
191
+ - [no-restricted-declarations](lints/no-restricted-declarations.md): Reports utilities that produce CSS declarations that your project forbids.
192
+ - [no-restricted-length-units](lints/no-restricted-length-units.md): Reports length units that your project forbids for some properties, such as px for width.
193
+ - [no-restricted-theme-tokens](lints/no-restricted-theme-tokens.md): Reports utilities that use theme tokens that your project reserves, such as the default palette.
194
+ - [no-restricted-utilities](lints/no-restricted-utilities.md): Reports utilities that your project forbids, by name.
195
+ - [partial-utility-override](lints/partial-utility-override.md): Reports a utility that overrides another utility of the same family but leaves some of its properties in place, such as the line height of text-sm.
196
+ - [prefer-canonical-utilities](lints/prefer-canonical-utilities.md): Suggests standard utility spellings and combines equivalent utilities.
197
+ - [prefer-direct-styling](lints/prefer-direct-styling.md): Reports a selector variant that styles another element, such as [&_button]:.
198
+ - [prefer-logical-properties](lints/prefer-logical-properties.md): Reports a physical property that has a logical form, such as ml-4 for ms-4.
199
+ - [prefer-sorted-utilities](lints/prefer-sorted-utilities.md): Reports utilities that are not in sorted order.
200
+ - [prefer-typed-relationships](lints/prefer-typed-relationships.md): Reports group-* and peer-* variants that a ref can replace.
201
+ - [prefer-typed-variables](lints/prefer-typed-variables.md): Reports a custom property without a type in a utility that accepts several types.
202
+ - [prefer-variant-directive](lints/prefer-variant-directive.md): Reports a condition in your stylesheet that a named variant can replace.
203
+ - [redundant-variant](lints/redundant-variant.md): Reports a variant that adds no condition, such as hover:hover:.
204
+ - [repeated-nesting-selector](lints/repeated-nesting-selector.md): Reports a selector that repeats & to relate two elements, such as [&+&].
205
+ - [runtime-condition-requires-css-if](lints/runtime-condition-requires-css-if.md): Reports a runtime CSS condition that needs the useCssIf setting.
206
+ - [split-view-transition-class](lints/split-view-transition-class.md): Reports view transitions split across separate style() calls.
207
+ - [suspending-macro-argument](lints/suspending-macro-argument.md): Reports await, yield, or import() inside an argument of style() or another macro.
208
+ - [unknown-utility](lints/unknown-utility.md): Reports a utility or theme value that your stylesheet does not define.
209
+ - [unknown-variant](lints/unknown-variant.md): Reports a variant that your stylesheet does not define.
210
+ - [unmatched-host-selector](lints/unmatched-host-selector.md): Reports a variant that tests a shadow host through the elements around it.
211
+ - [unsatisfiable-variants](lints/unsatisfiable-variants.md): Reports variants that can never match together, such as portrait:landscape:.
212
+ - [unused-lint-suppression](lints/unused-lint-suppression.md): Reports a suppression comment that suppresses no finding.
213
+ - [unverified-style-base](lints/unverified-style-base.md): Reports a base style whose source the CLI cannot find from its type.
214
+ - [utility-class-selector](lints/utility-class-selector.md): Reports a selector that tests the class attribute for a utility name, such as [class*='size-'].
215
+
216
+ ## macros
217
+
218
+ - [Macro reference](macros/index.md): Find the Stillwind API for a task, and read its accepted inputs and generated code.
219
+ - [style.ref() and ref methods](macros/ref/index.md): Name an element with a ref, and style other elements from its state, size, or anchor position.
220
+ - [style.anchorScope()](macros/anchor-scope.md): Limit where an anchor name is visible, so that each component instance uses its own anchor.
221
+ - [style.css()](macros/css.md): Compile utilities into a CSS string that you place yourself, such as in a shadow root.
222
+ - [style.keyframes()](macros/keyframes.md): Define keyframes in a component, and apply them with animation options in style().
223
+ - [style.media()](macros/media.md): Turn named breakpoints and other media variants into a media query string for JavaScript.
224
+ - [style.recipe()](macros/recipe.md): Create a factory that selects compiled styles by option, with the configuration of class-variance-authority.
225
+ - [ref.asAnchor()](macros/ref/as-anchor.md): Make the element that has a ref a named anchor for CSS anchor positioning.
226
+ - [ref.asContainer()](macros/ref/as-container.md): Make the element that has a ref a named container for ref.at() queries.
227
+ - [ref.at()](macros/ref/at.md): Style an element with a container query on the element that has a ref.
228
+ - [ref() conditions](macros/ref/condition.md): Style an element while an ancestor with a ref exists or matches variants such as hover.
229
+ - [ref().in()](macros/ref/in.md): Style an element from the state of a sibling, inside an ancestor that has another ref.
230
+ - [ref.positionAnchor()](macros/ref/position-anchor.md): Position the styled element against the anchor that a ref names.
231
+ - [style()](macros/style.md): Compile utilities, conditions, custom properties, and base styles into props for an element.
232
+ - [style.viewTransition()](macros/view-transition.md): Define view transition snapshot styles, and give each element a transition name with .for().
233
+ - [style.when()](macros/when.md): Store a variant sequence or alternatives, such as a ref condition, and use them in several style() calls.
234
+
235
+ ## plugins
236
+
237
+ - [Official plugins](plugins/index.md): Add utilities to your stylesheet with the plugins that the Stillwind project maintains.
238
+ - [Iconify icons](plugins/iconify.md): Use Iconify icons as utilities, and include only the icons that you use in your CSS.
@@ -19,7 +19,7 @@ and it shows the generated JavaScript and CSS for its examples.
19
19
  | [`style.when()`](https://stillwind.dev/docs/macros/when) | Reuse a variant sequence, such as a ref condition | [Element relationships](https://stillwind.dev/docs/guides/element-relationships) |
20
20
  | [`style.media()`](https://stillwind.dev/docs/macros/media) | Use a named breakpoint as a media query in JavaScript | [Responsive styles](https://stillwind.dev/docs/guides/responsive-styles) |
21
21
  | [`style.css()`](https://stillwind.dev/docs/macros/css) | Compile utilities into a CSS string for a shadow root | [Web Components](https://stillwind.dev/docs/guides/web-components) |
22
- | [`style.cva()`](https://stillwind.dev/docs/macros/cva) | Migrate components that use `cva` | [Migrating from Tailwind CSS](https://stillwind.dev/docs/guides/migrating-from-tailwind) |
22
+ | [`style.recipe()`](https://stillwind.dev/docs/macros/recipe) | Migrate components that use `cva` | [Migrating from Tailwind CSS](https://stillwind.dev/docs/guides/migrating-from-tailwind) |
23
23
 
24
24
  Import the macros from the entrypoint of your framework, such as
25
25
  `stillwind/react`. The examples on these pages use React.