stillwind 0.8.0 → 0.9.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 (173) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/css/builtin-variants/tw-relationship.css +4 -4
  3. package/css/builtins.css +1 -1
  4. package/dist/frameworks/alpine.d.ts +1 -1
  5. package/dist/frameworks/astro.d.ts +1 -1
  6. package/dist/frameworks/lit.d.ts +1 -1
  7. package/dist/frameworks/preact.d.ts +1 -1
  8. package/dist/frameworks/qwik.d.ts +1 -1
  9. package/dist/frameworks/solid.d.ts +1 -1
  10. package/dist/frameworks/svelte.d.ts +1 -1
  11. package/dist/frameworks/vanilla.d.ts +1 -1
  12. package/dist/frameworks/vue.d.ts +1 -1
  13. package/docs/at-rules/apply.md +5 -5
  14. package/docs/at-rules/custom-variant.md +12 -12
  15. package/docs/at-rules/index.md +19 -19
  16. package/docs/at-rules/plugin.md +7 -7
  17. package/docs/at-rules/registry-directives.md +9 -9
  18. package/docs/at-rules/slot.md +6 -6
  19. package/docs/at-rules/stillwind-css-template.md +7 -7
  20. package/docs/at-rules/stillwind-property.md +10 -10
  21. package/docs/at-rules/stillwind-registry.md +18 -18
  22. package/docs/at-rules/stillwind-require-properties.md +9 -9
  23. package/docs/at-rules/stillwind-slot.md +6 -6
  24. package/docs/at-rules/stillwind-undef-arbitrary-property.md +9 -9
  25. package/docs/at-rules/stillwind-undef-utility.md +10 -10
  26. package/docs/at-rules/stillwind-undef-variant.md +6 -6
  27. package/docs/at-rules/theme.md +23 -23
  28. package/docs/at-rules/utility.md +30 -30
  29. package/docs/at-rules/variant.md +6 -6
  30. package/docs/cli.md +7 -7
  31. package/docs/concepts/css-ordering.md +17 -17
  32. package/docs/concepts/how-styles-compile.md +14 -14
  33. package/docs/concepts/stylesheets.md +4 -4
  34. package/docs/configuration.md +19 -19
  35. package/docs/editors.md +8 -8
  36. package/docs/errors/SW01003.md +1 -1
  37. package/docs/errors/SW10001.md +1 -1
  38. package/docs/errors/SW10002.md +1 -1
  39. package/docs/errors/SW10004.md +6 -6
  40. package/docs/errors/SW10005.md +1 -1
  41. package/docs/errors/SW11001.md +1 -1
  42. package/docs/errors/SW11003.md +1 -1
  43. package/docs/errors/SW12001.md +2 -2
  44. package/docs/errors/SW12002.md +1 -1
  45. package/docs/errors/SW13001.md +1 -1
  46. package/docs/errors/SW13003.md +2 -2
  47. package/docs/errors/SW14001.md +1 -1
  48. package/docs/errors/SW14003.md +4 -4
  49. package/docs/errors/SW14004.md +2 -2
  50. package/docs/errors/SW14005.md +1 -1
  51. package/docs/errors/SW14006.md +1 -1
  52. package/docs/errors/SW14007.md +2 -2
  53. package/docs/errors/SW14008.md +1 -1
  54. package/docs/errors/SW30001.md +1 -1
  55. package/docs/errors/SW31001.md +1 -1
  56. package/docs/errors/SW31004.md +1 -1
  57. package/docs/errors/SW33005.md +1 -1
  58. package/docs/errors/SW34002.md +1 -1
  59. package/docs/errors/SW90001.md +1 -1
  60. package/docs/errors/SW90005.md +1 -1
  61. package/docs/errors/SW90006.md +1 -1
  62. package/docs/errors/index.md +72 -72
  63. package/docs/formatters.md +5 -5
  64. package/docs/guides/animations.md +7 -8
  65. package/docs/guides/design-systems.md +7 -7
  66. package/docs/guides/element-relationships.md +15 -19
  67. package/docs/guides/lint-adoption.md +5 -5
  68. package/docs/guides/migrating-from-css.md +11 -11
  69. package/docs/guides/migrating-from-tailwind.md +16 -16
  70. package/docs/guides/recommended-practices.md +18 -18
  71. package/docs/guides/responsive-styles.md +7 -7
  72. package/docs/guides/reusable-styles.md +5 -5
  73. package/docs/guides/runtime-conditions.md +6 -6
  74. package/docs/guides/style.md +15 -15
  75. package/docs/guides/tailwind-compatibility.md +21 -21
  76. package/docs/guides/view-transitions.md +9 -11
  77. package/docs/guides/web-components.md +4 -4
  78. package/docs/index.md +14 -12
  79. package/docs/integrations.md +3 -3
  80. package/docs/lints/ambiguous-style-base-order.md +2 -2
  81. package/docs/lints/bypassed-undefinition.md +3 -3
  82. package/docs/lints/clamped-value.md +1 -1
  83. package/docs/lints/conflicting-provider-properties.md +2 -2
  84. package/docs/lints/conflicting-utilities.md +2 -2
  85. package/docs/lints/document-scoped-selector.md +1 -1
  86. package/docs/lints/duplicate-definition.md +3 -3
  87. package/docs/lints/duplicate-utility.md +2 -2
  88. package/docs/lints/duplicate-view-transition-name.md +3 -3
  89. package/docs/lints/ignored-definition-condition.md +2 -2
  90. package/docs/lints/ignored-tailwind-feature.md +3 -3
  91. package/docs/lints/implicit-nesting-selector.md +2 -2
  92. package/docs/lints/incompatible-property-value.md +3 -3
  93. package/docs/lints/incompatible-theme-value.md +1 -1
  94. package/docs/lints/index.md +74 -74
  95. package/docs/lints/ineffective-anchor-scope.md +2 -2
  96. package/docs/lints/interfering-imported-style-base.md +1 -1
  97. package/docs/lints/invalid-animation-option.md +3 -3
  98. package/docs/lints/invalid-css-directive.md +3 -3
  99. package/docs/lints/invalid-css-import.md +2 -2
  100. package/docs/lints/invalid-css-input.md +4 -4
  101. package/docs/lints/invalid-cva-config.md +2 -2
  102. package/docs/lints/invalid-cva-input.md +4 -4
  103. package/docs/lints/invalid-keyframes-definition.md +2 -2
  104. package/docs/lints/invalid-keyframes-use.md +2 -2
  105. package/docs/lints/invalid-keyframes-variant.md +4 -4
  106. package/docs/lints/invalid-lint-suppression.md +3 -3
  107. package/docs/lints/invalid-marker-use.md +2 -2
  108. package/docs/lints/invalid-media-query.md +4 -4
  109. package/docs/lints/invalid-ref-input.md +4 -4
  110. package/docs/lints/invalid-rule-group-input.md +2 -2
  111. package/docs/lints/invalid-runtime-condition.md +3 -3
  112. package/docs/lints/invalid-stored-variant.md +3 -3
  113. package/docs/lints/invalid-style-composition.md +2 -2
  114. package/docs/lints/invalid-style-input.md +2 -2
  115. package/docs/lints/invalid-theme-reference.md +3 -3
  116. package/docs/lints/invalid-utility.md +3 -3
  117. package/docs/lints/invalid-variant.md +2 -2
  118. package/docs/lints/invalid-view-transition-definition.md +2 -2
  119. package/docs/lints/invalid-view-transition-use.md +2 -2
  120. package/docs/lints/invalid-view-transition-variant.md +3 -3
  121. package/docs/lints/mismatched-framework-import.md +3 -3
  122. package/docs/lints/missing-document-target.md +2 -2
  123. package/docs/lints/missing-ref-attachment.md +4 -4
  124. package/docs/lints/missing-view-transition-name.md +3 -3
  125. package/docs/lints/mutating-macro-argument.md +2 -2
  126. package/docs/lints/no-arbitrary-breakpoints.md +2 -2
  127. package/docs/lints/no-arbitrary-colors.md +2 -2
  128. package/docs/lints/no-arbitrary-spacing.md +1 -1
  129. package/docs/lints/no-class-property.md +3 -3
  130. package/docs/lints/no-important.md +2 -2
  131. package/docs/lints/no-restricted-declarations.md +1 -1
  132. package/docs/lints/no-restricted-length-units.md +1 -1
  133. package/docs/lints/no-restricted-theme-tokens.md +1 -1
  134. package/docs/lints/no-restricted-utilities.md +2 -2
  135. package/docs/lints/prefer-canonical-utilities.md +2 -2
  136. package/docs/lints/prefer-direct-styling.md +3 -3
  137. package/docs/lints/prefer-logical-properties.md +3 -3
  138. package/docs/lints/prefer-sorted-utilities.md +2 -2
  139. package/docs/lints/prefer-typed-relationships.md +3 -3
  140. package/docs/lints/prefer-typed-variables.md +1 -1
  141. package/docs/lints/prefer-variant-directive.md +3 -3
  142. package/docs/lints/redundant-variant.md +2 -2
  143. package/docs/lints/repeated-nesting-selector.md +2 -2
  144. package/docs/lints/runtime-condition-requires-css-if.md +3 -3
  145. package/docs/lints/split-view-transition-class.md +3 -3
  146. package/docs/lints/suspending-macro-argument.md +2 -2
  147. package/docs/lints/unknown-utility.md +4 -4
  148. package/docs/lints/unknown-variant.md +2 -2
  149. package/docs/lints/unmatched-host-selector.md +2 -2
  150. package/docs/lints/unsatisfiable-variants.md +1 -1
  151. package/docs/lints/unused-lint-suppression.md +1 -1
  152. package/docs/lints/unverified-style-base.md +2 -2
  153. package/docs/macros/anchor-scope.md +13 -13
  154. package/docs/macros/css.md +7 -7
  155. package/docs/macros/cva.md +13 -13
  156. package/docs/macros/index.md +10 -10
  157. package/docs/macros/keyframes.md +9 -9
  158. package/docs/macros/media.md +2 -2
  159. package/docs/macros/ref/as-anchor.md +11 -11
  160. package/docs/macros/ref/as-container.md +8 -8
  161. package/docs/macros/ref/at.md +10 -10
  162. package/docs/macros/ref/condition.md +8 -8
  163. package/docs/macros/ref/in.md +11 -11
  164. package/docs/macros/ref/index.md +16 -16
  165. package/docs/macros/ref/position-anchor.md +9 -9
  166. package/docs/macros/style.md +24 -24
  167. package/docs/macros/view-transition.md +16 -16
  168. package/docs/macros/when.md +13 -13
  169. package/docs/plugins/iconify.md +5 -5
  170. package/docs/plugins/index.md +4 -4
  171. package/docs/utilities-and-variants.md +6 -6
  172. package/docs/why.md +13 -15
  173. package/package.json +8 -6
@@ -5,7 +5,7 @@ description: "Reports a top-level utility definition that also applies where the
5
5
 
6
6
  # bypassed-undefinition
7
7
 
8
- This rule reports a top-level [`@utility`](../at-rules/utility.md) that also applies
8
+ This rule reports a top-level [`@utility`](https://stillwind.dev/docs/at-rules/utility) that also applies
9
9
  where Stillwind removes the utility on purpose. Inside animation options, for example,
10
10
  `duration-*` sets `animation-duration`, and the built-in definitions remove the
11
11
  `transition-duration` meaning there. A top-level `duration-slow` would bring that
@@ -36,7 +36,7 @@ meaning back.
36
36
  ## How to fix
37
37
 
38
38
  Define the utility inside `@stillwind-registry default`, as in the example. Then
39
- it applies in ordinary [`style()`](../macros/style.md) calls, and animation options
39
+ it applies in ordinary [`style()`](https://stillwind.dev/docs/macros/style) calls, and animation options
40
40
  keep their own meaning of `duration-*`.
41
41
 
42
42
  ## Rule settings
@@ -47,4 +47,4 @@ keep their own meaning of `duration-*`.
47
47
  | `strict` | deny |
48
48
  | `stylistic` | off |
49
49
 
50
- [Configure lint](../configuration.md#lint) to change the severity or options.
50
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -41,4 +41,4 @@ custom property receives at runtime.
41
41
  | `strict` | deny |
42
42
  | `stylistic` | off |
43
43
 
44
- [Configure lint](../configuration.md#lint) to change the severity or options.
44
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -6,7 +6,7 @@ description: "Reports a container or anchor property that a ref method and a uti
6
6
  # conflicting-provider-properties
7
7
 
8
8
  This rule reports a container or anchor property that a ref method, such as
9
- [`asContainer()`](../macros/ref/as-container.md), and another utility both set
9
+ [`asContainer()`](https://stillwind.dev/docs/macros/ref/as-container), and another utility both set
10
10
  on the same element. For example, `asContainer("size")` sets
11
11
  `container-type: size`, and `@container` sets it to `inline-size`. Only one
12
12
  value takes effect, and the code does not show which.
@@ -45,4 +45,4 @@ style(card, card.asContainer("size"));
45
45
  | `strict` | deny |
46
46
  | `stylistic` | off |
47
47
 
48
- [Configure lint](../configuration.md#lint) to change the severity or options.
48
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -33,7 +33,7 @@ style("p-4");
33
33
  - If the values belong to different states or widths, add a variant to one of
34
34
  them, such as `p-2 md:p-4`.
35
35
  - If one utility overrides a shared style, pass the shared style as a base. See
36
- [Override a style](../guides/style.md#override-a-style).
36
+ [Override a style](https://stillwind.dev/docs/guides/style#override-a-style).
37
37
  - If a physical utility such as `ml-4` meets a logical utility such as `mx-auto`,
38
38
  use logical utilities for both or physical utilities for both. The writing mode
39
39
  decides how physical and logical properties overlap.
@@ -94,4 +94,4 @@ even when the list is empty.
94
94
  | `allowShorthandOverrides` | `false` |
95
95
  | `writingModes` | `["horizontal-tb"]` |
96
96
 
97
- [Configure lint](../configuration.md#lint) to change the severity or options.
97
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -42,4 +42,4 @@ style("[:root]:text-red-500");
42
42
  | `strict` | deny |
43
43
  | `stylistic` | off |
44
44
 
45
- [Configure lint](../configuration.md#lint) to change the severity or options.
45
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -5,8 +5,8 @@ description: "Reports a utility or variant definition that replaces an earlier o
5
5
 
6
6
  # duplicate-definition
7
7
 
8
- This rule reports a [`@utility`](../at-rules/utility.md) or
9
- [`@custom-variant`](../at-rules/custom-variant.md) definition that replaces an
8
+ This rule reports a [`@utility`](https://stillwind.dev/docs/at-rules/utility) or
9
+ [`@custom-variant`](https://stillwind.dev/docs/at-rules/custom-variant) definition that replaces an
10
10
  earlier definition with the same name. The definitions do not combine, so the
11
11
  earlier one is lost. In the example, `hocus` matches focus only, not hover.
12
12
 
@@ -42,4 +42,4 @@ earlier one is lost. In the example, `hocus` matches focus only, not hover.
42
42
  | `strict` | deny |
43
43
  | `stylistic` | off |
44
44
 
45
- [Configure lint](../configuration.md#lint) to change the severity or options.
45
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -31,7 +31,7 @@ style("p-4");
31
31
  Remove one of them. The automatic fix removes the repeated utility.
32
32
 
33
33
  Two different utilities that set the same property are reported by
34
- [conflicting-utilities](conflicting-utilities.md) instead.
34
+ [conflicting-utilities](https://stillwind.dev/docs/lints/conflicting-utilities) instead.
35
35
 
36
36
  ## Rule settings
37
37
 
@@ -41,4 +41,4 @@ Two different utilities that set the same property are reported by
41
41
  | `strict` | deny |
42
42
  | `stylistic` | off |
43
43
 
44
- [Configure lint](../configuration.md#lint) to change the severity or options.
44
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -5,8 +5,8 @@ description: "Reports two .for() calls in one style() call."
5
5
 
6
6
  # duplicate-view-transition-name
7
7
 
8
- This rule reports a [`style()`](../macros/style.md) call with more than one
9
- [`.for()`](../macros/view-transition.md). An element has one
8
+ This rule reports a [`style()`](https://stillwind.dev/docs/macros/style) call with more than one
9
+ [`.for()`](https://stillwind.dev/docs/macros/view-transition). An element has one
10
10
  [`view-transition-name`](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/view-transition-name),
11
11
  so only one of the names takes effect.
12
12
 
@@ -44,4 +44,4 @@ style(transition.for("a"));
44
44
  | `strict` | deny |
45
45
  | `stylistic` | off |
46
46
 
47
- [Configure lint](../configuration.md#lint) to change the severity or options.
47
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -5,7 +5,7 @@ description: "Reports a media rule around a utility definition, which the compil
5
5
 
6
6
  # ignored-definition-condition
7
7
 
8
- This rule reports a [`@utility`](../at-rules/utility.md) definition inside a
8
+ This rule reports a [`@utility`](https://stillwind.dev/docs/at-rules/utility) definition inside a
9
9
  condition such as `@media`. The compiler registers utilities when it reads the
10
10
  stylesheet, not in the browser, so it ignores the condition. The utility then
11
11
  applies at every width.
@@ -49,4 +49,4 @@ applies at every width.
49
49
  | `strict` | deny |
50
50
  | `stylistic` | off |
51
51
 
52
- [Configure lint](../configuration.md#lint) to change the severity or options.
52
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -8,7 +8,7 @@ description: "Reports Tailwind CSS features that Stillwind ignores in the styles
8
8
  This rule reports a Tailwind CSS feature in your stylesheet that Stillwind
9
9
  ignores, such as `@config`, `@source`, or an option on `@import`. The line has
10
10
  no effect, because Stillwind reads its settings from `stillwind.config.ts` and
11
- generates utilities only from [`style()`](../macros/style.md) calls.
11
+ generates utilities only from [`style()`](https://stillwind.dev/docs/macros/style) calls.
12
12
 
13
13
  ## Reported
14
14
 
@@ -48,7 +48,7 @@ export default defineConfig({
48
48
  - Replace a v3 path in `theme()`, such as `theme(colors.red.500)`, with a theme
49
49
  variable: `--theme(--color-red-500)`. Without this change, browsers reject the
50
50
  declaration.
51
- - [Migrating from Tailwind CSS](../guides/migrating-from-tailwind.md#move-configuration)
51
+ - [Migrating from Tailwind CSS](https://stillwind.dev/docs/guides/migrating-from-tailwind#move-configuration)
52
52
  lists every replacement.
53
53
 
54
54
  ## Rule settings
@@ -59,4 +59,4 @@ export default defineConfig({
59
59
  | `strict` | deny |
60
60
  | `stylistic` | off |
61
61
 
62
- [Configure lint](../configuration.md#lint) to change the severity or options.
62
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -5,7 +5,7 @@ description: "Reports a custom variant selector without &, which matches descend
5
5
 
6
6
  # implicit-nesting-selector
7
7
 
8
- This rule reports a [`@custom-variant`](../at-rules/custom-variant.md) selector
8
+ This rule reports a [`@custom-variant`](https://stillwind.dev/docs/at-rules/custom-variant) selector
9
9
  without `&`. Without `&`, the selector matches descendants of the element, not
10
10
  the element itself. In the example, `hocus:` would match hovered elements inside
11
11
  the element.
@@ -40,4 +40,4 @@ the element.
40
40
  | `strict` | deny |
41
41
  | `stylistic` | off |
42
42
 
43
- [Configure lint](../configuration.md#lint) to change the severity or options.
43
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -21,10 +21,10 @@ For a utility that your own stylesheet defines, the rule also checks the other
21
21
  declarations that the utility writes, such as a bare value in `fg-5` from
22
22
  `@utility fg-* { color: --value(integer); }`. It skips values that contain
23
23
  `var()`, values that come from theme tokens, and custom properties.
24
- [incompatible-theme-value](incompatible-theme-value.md) checks theme
24
+ [incompatible-theme-value](https://stillwind.dev/docs/lints/incompatible-theme-value) checks theme
25
25
  tokens where you define them. By default, the rule does not check the
26
26
  definitions of packages and plugins, because you cannot change them. The
27
- [`checkLibraries` and `checkPlugins`](../configuration.md#definitions-of-packages-and-plugins)
27
+ [`checkLibraries` and `checkPlugins`](https://stillwind.dev/docs/configuration#definitions-of-packages-and-plugins)
28
28
  fields of `lint` select packages and plugins to check.
29
29
 
30
30
  ## Reported
@@ -57,4 +57,4 @@ style("w-1/2");
57
57
  | `strict` | deny |
58
58
  | `stylistic` | off |
59
59
 
60
- [Configure lint](../configuration.md#lint) to change the severity or options.
60
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -43,4 +43,4 @@ namespace. For example, tokens in `--color-*` must be colors, so a length makes
43
43
  | `strict` | deny |
44
44
  | `stylistic` | off |
45
45
 
46
- [Configure lint](../configuration.md#lint) to change the severity or options.
46
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -6,8 +6,8 @@ description: "Find a lint rule by the kind of mistake or policy that it reports.
6
6
  # Lint rule reference
7
7
 
8
8
  Lint rules report mistakes and project policies in your styles. The CLI and the
9
- editor run them. [Checks in the editor and CI](../guides/lint-adoption.md)
10
- explains where the rules run, and [Configuration](../configuration.md#lint)
9
+ editor run them. [Checks in the editor and CI](https://stillwind.dev/docs/guides/lint-adoption)
10
+ explains where the rules run, and [Configuration](https://stillwind.dev/docs/configuration#lint)
11
11
  covers presets, severities, and suppression comments.
12
12
 
13
13
  The **Default** column shows the severity in the `recommended` preset, which a
@@ -20,11 +20,11 @@ A utility or variant that these rules report produces no CSS.
20
20
 
21
21
  | Rule | Reports | Default |
22
22
  | ---------------------------------------------------- | ------------------------------------------------------------- | ------- |
23
- | [invalid-marker-use](invalid-marker-use.md) | A marker class such as `group` with a variant or `!` | warn |
24
- | [invalid-utility](invalid-utility.md) | A known utility written in a form that it does not accept | deny |
25
- | [invalid-variant](invalid-variant.md) | A known variant with an invalid value, such as `min-[foo]:` | deny |
26
- | [unknown-utility](unknown-utility.md) | A utility or theme value that your stylesheet does not define | deny |
27
- | [unknown-variant](unknown-variant.md) | A variant that your stylesheet does not define | deny |
23
+ | [invalid-marker-use](https://stillwind.dev/docs/lints/invalid-marker-use) | A marker class such as `group` with a variant or `!` | warn |
24
+ | [invalid-utility](https://stillwind.dev/docs/lints/invalid-utility) | A known utility written in a form that it does not accept | deny |
25
+ | [invalid-variant](https://stillwind.dev/docs/lints/invalid-variant) | A known variant with an invalid value, such as `min-[foo]:` | deny |
26
+ | [unknown-utility](https://stillwind.dev/docs/lints/unknown-utility) | A utility or theme value that your stylesheet does not define | deny |
27
+ | [unknown-variant](https://stillwind.dev/docs/lints/unknown-variant) | A variant that your stylesheet does not define | deny |
28
28
 
29
29
  ## Invalid arguments to Stillwind APIs
30
30
 
@@ -33,74 +33,74 @@ report never matches.
33
33
 
34
34
  | Rule | Reports | Default |
35
35
  | ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- | ------- |
36
- | [invalid-animation-option](invalid-animation-option.md) | A utility that is not an animation option, such as `p-4` | deny |
37
- | [invalid-css-input](invalid-css-input.md) | A [`style.css()`](../macros/css.md) argument that is not a static utility | deny |
38
- | [invalid-cva-config](invalid-cva-config.md) | An unknown or malformed field in a [`style.cva()`](../macros/cva.md) configuration | deny |
39
- | [invalid-cva-input](invalid-cva-input.md) | `&&` or a ternary inside a `style.cva()` value | deny |
40
- | [invalid-keyframes-definition](invalid-keyframes-definition.md) | A frame key that is not a keyframe position, such as `middle` | deny |
41
- | [invalid-keyframes-use](invalid-keyframes-use.md) | An animation applied with an argument that is not an options string | deny |
42
- | [invalid-keyframes-variant](invalid-keyframes-variant.md) | A selector or container variant around a keyframes definition | deny |
43
- | [invalid-media-query](invalid-media-query.md) | A condition in [`style.media()`](../macros/media.md) that is not a media query, such as `hover` | deny |
44
- | [invalid-ref-input](invalid-ref-input.md) | A [`style.ref()`](../macros/ref/index.md) label or ref method argument that is not a literal | deny |
45
- | [invalid-rule-group-input](invalid-rule-group-input.md) | A `class` field or ref inside a variant key of [`style()`](../macros/style.md) | deny |
46
- | [invalid-runtime-condition](invalid-runtime-condition.md) | A runtime CSS condition that Stillwind cannot compile | deny |
47
- | [invalid-stored-variant](invalid-stored-variant.md) | A [`style.when()`](../macros/when.md) argument that is not a sequence of variants | deny |
48
- | [invalid-style-composition](invalid-style-composition.md) | Inline styles or custom properties in a base style, which do not carry over | deny |
49
- | [invalid-style-input](invalid-style-input.md) | A [`style()`](../macros/style.md) argument that it cannot compile, such as a number | deny |
50
- | [invalid-view-transition-definition](invalid-view-transition-definition.md) | An unknown field in a [`style.viewTransition()`](../macros/view-transition.md) definition | deny |
51
- | [invalid-view-transition-use](invalid-view-transition-use.md) | Extra or invalid arguments to [`.for()`](../macros/view-transition.md) | deny |
52
- | [invalid-view-transition-variant](invalid-view-transition-variant.md) | A state or container variant in a view transition definition | deny |
53
- | [missing-document-target](missing-document-target.md) | A [`style.css()`](../macros/css.md) utility without a selector | deny |
54
- | [runtime-condition-requires-css-if](runtime-condition-requires-css-if.md) | A runtime CSS condition that needs `useCssIf` | deny |
36
+ | [invalid-animation-option](https://stillwind.dev/docs/lints/invalid-animation-option) | A utility that is not an animation option, such as `p-4` | deny |
37
+ | [invalid-css-input](https://stillwind.dev/docs/lints/invalid-css-input) | A [`style.css()`](https://stillwind.dev/docs/macros/css) argument that is not a static utility | deny |
38
+ | [invalid-cva-config](https://stillwind.dev/docs/lints/invalid-cva-config) | An unknown or malformed field in a [`style.cva()`](https://stillwind.dev/docs/macros/cva) configuration | deny |
39
+ | [invalid-cva-input](https://stillwind.dev/docs/lints/invalid-cva-input) | `&&` or a ternary inside a `style.cva()` value | deny |
40
+ | [invalid-keyframes-definition](https://stillwind.dev/docs/lints/invalid-keyframes-definition) | A frame key that is not a keyframe position, such as `middle` | deny |
41
+ | [invalid-keyframes-use](https://stillwind.dev/docs/lints/invalid-keyframes-use) | An animation applied with an argument that is not an options string | deny |
42
+ | [invalid-keyframes-variant](https://stillwind.dev/docs/lints/invalid-keyframes-variant) | A selector or container variant around a keyframes definition | deny |
43
+ | [invalid-media-query](https://stillwind.dev/docs/lints/invalid-media-query) | A condition in [`style.media()`](https://stillwind.dev/docs/macros/media) that is not a media query, such as `hover` | deny |
44
+ | [invalid-ref-input](https://stillwind.dev/docs/lints/invalid-ref-input) | A [`style.ref()`](https://stillwind.dev/docs/macros/ref) label or ref method argument that is not a literal | deny |
45
+ | [invalid-rule-group-input](https://stillwind.dev/docs/lints/invalid-rule-group-input) | A `class` field or ref inside a variant key of [`style()`](https://stillwind.dev/docs/macros/style) | deny |
46
+ | [invalid-runtime-condition](https://stillwind.dev/docs/lints/invalid-runtime-condition) | A runtime CSS condition that Stillwind cannot compile | deny |
47
+ | [invalid-stored-variant](https://stillwind.dev/docs/lints/invalid-stored-variant) | A [`style.when()`](https://stillwind.dev/docs/macros/when) argument that is not a sequence of variants | deny |
48
+ | [invalid-style-composition](https://stillwind.dev/docs/lints/invalid-style-composition) | Inline styles or custom properties in a base style, which do not carry over | deny |
49
+ | [invalid-style-input](https://stillwind.dev/docs/lints/invalid-style-input) | A [`style()`](https://stillwind.dev/docs/macros/style) argument that it cannot compile, such as a number | deny |
50
+ | [invalid-view-transition-definition](https://stillwind.dev/docs/lints/invalid-view-transition-definition) | An unknown field in a [`style.viewTransition()`](https://stillwind.dev/docs/macros/view-transition) definition | deny |
51
+ | [invalid-view-transition-use](https://stillwind.dev/docs/lints/invalid-view-transition-use) | Extra or invalid arguments to [`.for()`](https://stillwind.dev/docs/macros/view-transition) | deny |
52
+ | [invalid-view-transition-variant](https://stillwind.dev/docs/lints/invalid-view-transition-variant) | A state or container variant in a view transition definition | deny |
53
+ | [missing-document-target](https://stillwind.dev/docs/lints/missing-document-target) | A [`style.css()`](https://stillwind.dev/docs/macros/css) utility without a selector | deny |
54
+ | [runtime-condition-requires-css-if](https://stillwind.dev/docs/lints/runtime-condition-requires-css-if) | A runtime CSS condition that needs `useCssIf` | deny |
55
55
 
56
56
  ## Arguments and imports
57
57
 
58
58
  | Rule | Reports | Default |
59
59
  | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------- |
60
- | [mismatched-framework-import](mismatched-framework-import.md) | An import from the entrypoint of another framework | warn |
61
- | [mutating-macro-argument](mutating-macro-argument.md) | A state update inside a [`style()`](../macros/style.md) argument | deny |
62
- | [suspending-macro-argument](suspending-macro-argument.md) | `await`, `yield`, or `import()` inside a [`style()`](../macros/style.md) argument | deny |
60
+ | [mismatched-framework-import](https://stillwind.dev/docs/lints/mismatched-framework-import) | An import from the entrypoint of another framework | warn |
61
+ | [mutating-macro-argument](https://stillwind.dev/docs/lints/mutating-macro-argument) | A state update inside a [`style()`](https://stillwind.dev/docs/macros/style) argument | deny |
62
+ | [suspending-macro-argument](https://stillwind.dev/docs/lints/suspending-macro-argument) | `await`, `yield`, or `import()` inside a [`style()`](https://stillwind.dev/docs/macros/style) argument | deny |
63
63
 
64
64
  ## Conflicting or duplicated styles
65
65
 
66
66
  | Rule | Reports | Default |
67
67
  | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | ------- |
68
- | [ambiguous-style-base-order](ambiguous-style-base-order.md) | Two base styles in one call that set the same property | warn |
69
- | [conflicting-provider-properties](conflicting-provider-properties.md) | A container or anchor property that a ref method and a utility both set | warn |
70
- | [conflicting-utilities](conflicting-utilities.md) | Utilities that set the same property, such as `p-2 p-4` | warn |
71
- | [duplicate-utility](duplicate-utility.md) | The same utility twice under the same conditions | warn |
72
- | [interfering-imported-style-base](interfering-imported-style-base.md) | An imported base style that sets the same property as another style | warn |
73
- | [unverified-style-base](unverified-style-base.md) | A base style whose origin the CLI cannot determine from its type | warn |
68
+ | [ambiguous-style-base-order](https://stillwind.dev/docs/lints/ambiguous-style-base-order) | Two base styles in one call that set the same property | warn |
69
+ | [conflicting-provider-properties](https://stillwind.dev/docs/lints/conflicting-provider-properties) | A container or anchor property that a ref method and a utility both set | warn |
70
+ | [conflicting-utilities](https://stillwind.dev/docs/lints/conflicting-utilities) | Utilities that set the same property, such as `p-2 p-4` | warn |
71
+ | [duplicate-utility](https://stillwind.dev/docs/lints/duplicate-utility) | The same utility twice under the same conditions | warn |
72
+ | [interfering-imported-style-base](https://stillwind.dev/docs/lints/interfering-imported-style-base) | An imported base style that sets the same property as another style | warn |
73
+ | [unverified-style-base](https://stillwind.dev/docs/lints/unverified-style-base) | A base style whose origin the CLI cannot determine from its type | warn |
74
74
 
75
75
  ## Styles that do not apply as written
76
76
 
77
77
  | Rule | Reports | Default |
78
78
  | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------- |
79
- | [clamped-value](clamped-value.md) | A value outside the range that the browser uses, such as opacity above 1 | warn |
80
- | [document-scoped-selector](document-scoped-selector.md) | A selector that styles the whole document instead of the element | deny |
81
- | [duplicate-view-transition-name](duplicate-view-transition-name.md) | Two [`.for()`](../macros/view-transition.md) calls in one [`style()`](../macros/style.md) call | warn |
82
- | [incompatible-property-value](incompatible-property-value.md) | A value that the browser rejects for the property | deny |
83
- | [ineffective-anchor-scope](ineffective-anchor-scope.md) | An empty or repeated ref list in an anchor scope | warn |
84
- | [missing-ref-attachment](missing-ref-attachment.md) | [`asContainer()`](../macros/ref/as-container.md) or [`asAnchor()`](../macros/ref/as-anchor.md) in a call that does not attach the ref | warn |
85
- | [missing-view-transition-name](missing-view-transition-name.md) | A view transition applied without [`.for()`](../macros/view-transition.md) | warn |
86
- | [repeated-nesting-selector](repeated-nesting-selector.md) | A selector that repeats `&` to relate two elements | warn |
87
- | [split-view-transition-class](split-view-transition-class.md) | View transitions split across separate [`style()`](../macros/style.md) calls | warn |
88
- | [unmatched-host-selector](unmatched-host-selector.md) | A variant that tests a shadow host through the elements around it | warn |
89
- | [unsatisfiable-variants](unsatisfiable-variants.md) | Variants that can never match together, such as `portrait:landscape:` | warn |
79
+ | [clamped-value](https://stillwind.dev/docs/lints/clamped-value) | A value outside the range that the browser uses, such as opacity above 1 | warn |
80
+ | [document-scoped-selector](https://stillwind.dev/docs/lints/document-scoped-selector) | A selector that styles the whole document instead of the element | deny |
81
+ | [duplicate-view-transition-name](https://stillwind.dev/docs/lints/duplicate-view-transition-name) | Two [`.for()`](https://stillwind.dev/docs/macros/view-transition) calls in one [`style()`](https://stillwind.dev/docs/macros/style) call | warn |
82
+ | [incompatible-property-value](https://stillwind.dev/docs/lints/incompatible-property-value) | A value that the browser rejects for the property | deny |
83
+ | [ineffective-anchor-scope](https://stillwind.dev/docs/lints/ineffective-anchor-scope) | An empty or repeated ref list in an anchor scope | warn |
84
+ | [missing-ref-attachment](https://stillwind.dev/docs/lints/missing-ref-attachment) | [`asContainer()`](https://stillwind.dev/docs/macros/ref/as-container) or [`asAnchor()`](https://stillwind.dev/docs/macros/ref/as-anchor) in a call that does not attach the ref | warn |
85
+ | [missing-view-transition-name](https://stillwind.dev/docs/lints/missing-view-transition-name) | A view transition applied without [`.for()`](https://stillwind.dev/docs/macros/view-transition) | warn |
86
+ | [repeated-nesting-selector](https://stillwind.dev/docs/lints/repeated-nesting-selector) | A selector that repeats `&` to relate two elements | warn |
87
+ | [split-view-transition-class](https://stillwind.dev/docs/lints/split-view-transition-class) | View transitions split across separate [`style()`](https://stillwind.dev/docs/macros/style) calls | warn |
88
+ | [unmatched-host-selector](https://stillwind.dev/docs/lints/unmatched-host-selector) | A variant that tests a shadow host through the elements around it | warn |
89
+ | [unsatisfiable-variants](https://stillwind.dev/docs/lints/unsatisfiable-variants) | Variants that can never match together, such as `portrait:landscape:` | warn |
90
90
 
91
91
  ## Stylesheet definitions
92
92
 
93
93
  | Rule | Reports | Default |
94
94
  | ------------------------------------------------------------------------ | ---------------------------------------------------------------- | ------- |
95
- | [bypassed-undefinition](bypassed-undefinition.md) | A definition that bypasses an undefinition in another context | warn |
96
- | [duplicate-definition](duplicate-definition.md) | A utility or variant definition that replaces an earlier one | warn |
97
- | [ignored-definition-condition](ignored-definition-condition.md) | A media rule around a definition, which the compiler ignores | deny |
98
- | [ignored-tailwind-feature](ignored-tailwind-feature.md) | Tailwind-only directives such as `@config`, which have no effect | warn |
99
- | [implicit-nesting-selector](implicit-nesting-selector.md) | A custom variant selector without `&`, which selects descendants | warn |
100
- | [incompatible-theme-value](incompatible-theme-value.md) | A theme value of the wrong type, such as a length for a color | deny |
101
- | [invalid-css-directive](invalid-css-directive.md) | A malformed or unsupported Stillwind directive | deny |
102
- | [invalid-css-import](invalid-css-import.md) | A stylesheet import that cannot be resolved | deny |
103
- | [invalid-theme-reference](invalid-theme-reference.md) | A reference to a theme token that is not defined | deny |
95
+ | [bypassed-undefinition](https://stillwind.dev/docs/lints/bypassed-undefinition) | A definition that bypasses an undefinition in another context | warn |
96
+ | [duplicate-definition](https://stillwind.dev/docs/lints/duplicate-definition) | A utility or variant definition that replaces an earlier one | warn |
97
+ | [ignored-definition-condition](https://stillwind.dev/docs/lints/ignored-definition-condition) | A media rule around a definition, which the compiler ignores | deny |
98
+ | [ignored-tailwind-feature](https://stillwind.dev/docs/lints/ignored-tailwind-feature) | Tailwind-only directives such as `@config`, which have no effect | warn |
99
+ | [implicit-nesting-selector](https://stillwind.dev/docs/lints/implicit-nesting-selector) | A custom variant selector without `&`, which selects descendants | warn |
100
+ | [incompatible-theme-value](https://stillwind.dev/docs/lints/incompatible-theme-value) | A theme value of the wrong type, such as a length for a color | deny |
101
+ | [invalid-css-directive](https://stillwind.dev/docs/lints/invalid-css-directive) | A malformed or unsupported Stillwind directive | deny |
102
+ | [invalid-css-import](https://stillwind.dev/docs/lints/invalid-css-import) | A stylesheet import that cannot be resolved | deny |
103
+ | [invalid-theme-reference](https://stillwind.dev/docs/lints/invalid-theme-reference) | A reference to a theme token that is not defined | deny |
104
104
 
105
105
  ## Project policies
106
106
 
@@ -108,15 +108,15 @@ These rules enforce choices of your project. No preset enables them.
108
108
 
109
109
  | Rule | Reports | Default |
110
110
  | -------------------------------------------------------------------- | ------------------------------------------------------------- | ------- |
111
- | [no-arbitrary-breakpoints](no-arbitrary-breakpoints.md) | Viewport widths written as values, such as `min-[713px]:` | off |
112
- | [no-arbitrary-colors](no-arbitrary-colors.md) | Colors written as values, such as `bg-[#123456]` | off |
113
- | [no-arbitrary-spacing](no-arbitrary-spacing.md) | Spacing written as values, such as `p-[13px]` | off |
114
- | [no-class-property](no-class-property.md) | The `class` field, which adds classes without generated CSS | off |
115
- | [no-important](no-important.md) | The `!` modifier | off |
116
- | [no-restricted-declarations](no-restricted-declarations.md) | Utilities that produce the CSS declarations that you list | off |
117
- | [no-restricted-length-units](no-restricted-length-units.md) | Length units that you forbid for the properties that you list | off |
118
- | [no-restricted-theme-tokens](no-restricted-theme-tokens.md) | Utilities that use the theme tokens that you list | off |
119
- | [no-restricted-utilities](no-restricted-utilities.md) | The utilities that you list | off |
111
+ | [no-arbitrary-breakpoints](https://stillwind.dev/docs/lints/no-arbitrary-breakpoints) | Viewport widths written as values, such as `min-[713px]:` | off |
112
+ | [no-arbitrary-colors](https://stillwind.dev/docs/lints/no-arbitrary-colors) | Colors written as values, such as `bg-[#123456]` | off |
113
+ | [no-arbitrary-spacing](https://stillwind.dev/docs/lints/no-arbitrary-spacing) | Spacing written as values, such as `p-[13px]` | off |
114
+ | [no-class-property](https://stillwind.dev/docs/lints/no-class-property) | The `class` field, which adds classes without generated CSS | off |
115
+ | [no-important](https://stillwind.dev/docs/lints/no-important) | The `!` modifier | off |
116
+ | [no-restricted-declarations](https://stillwind.dev/docs/lints/no-restricted-declarations) | Utilities that produce the CSS declarations that you list | off |
117
+ | [no-restricted-length-units](https://stillwind.dev/docs/lints/no-restricted-length-units) | Length units that you forbid for the properties that you list | off |
118
+ | [no-restricted-theme-tokens](https://stillwind.dev/docs/lints/no-restricted-theme-tokens) | Utilities that use the theme tokens that you list | off |
119
+ | [no-restricted-utilities](https://stillwind.dev/docs/lints/no-restricted-utilities) | The utilities that you list | off |
120
120
 
121
121
  ## Preferred spelling
122
122
 
@@ -125,18 +125,18 @@ preset enables the rules that are off by default.
125
125
 
126
126
  | Rule | Reports | Default |
127
127
  | -------------------------------------------------------------------- | ------------------------------------------------------------------------ | ------- |
128
- | [prefer-canonical-utilities](prefer-canonical-utilities.md) | A utility with a shorter equivalent, such as `px-[16px]` for `px-4` | warn |
129
- | [prefer-direct-styling](prefer-direct-styling.md) | A selector that styles another element, such as `[&_button]:` | off |
130
- | [prefer-logical-properties](prefer-logical-properties.md) | A physical property with a logical form, such as `ml-4` | off |
131
- | [prefer-sorted-utilities](prefer-sorted-utilities.md) | Utilities that are not in sorted order | off |
132
- | [prefer-typed-relationships](prefer-typed-relationships.md) | `group-*` and `peer-*` variants that a ref can replace | off |
133
- | [prefer-typed-variables](prefer-typed-variables.md) | A custom property without a type in a utility that accepts several types | off |
134
- | [prefer-variant-directive](prefer-variant-directive.md) | A media rule in your CSS that a named variant can replace | off |
135
- | [redundant-variant](redundant-variant.md) | A variant that adds no condition, such as `hover:hover:` | warn |
128
+ | [prefer-canonical-utilities](https://stillwind.dev/docs/lints/prefer-canonical-utilities) | A utility with a shorter equivalent, such as `px-[16px]` for `px-4` | warn |
129
+ | [prefer-direct-styling](https://stillwind.dev/docs/lints/prefer-direct-styling) | A selector that styles another element, such as `[&_button]:` | off |
130
+ | [prefer-logical-properties](https://stillwind.dev/docs/lints/prefer-logical-properties) | A physical property with a logical form, such as `ml-4` | off |
131
+ | [prefer-sorted-utilities](https://stillwind.dev/docs/lints/prefer-sorted-utilities) | Utilities that are not in sorted order | off |
132
+ | [prefer-typed-relationships](https://stillwind.dev/docs/lints/prefer-typed-relationships) | `group-*` and `peer-*` variants that a ref can replace | off |
133
+ | [prefer-typed-variables](https://stillwind.dev/docs/lints/prefer-typed-variables) | A custom property without a type in a utility that accepts several types | off |
134
+ | [prefer-variant-directive](https://stillwind.dev/docs/lints/prefer-variant-directive) | A media rule in your CSS that a named variant can replace | off |
135
+ | [redundant-variant](https://stillwind.dev/docs/lints/redundant-variant) | A variant that adds no condition, such as `hover:hover:` | warn |
136
136
 
137
137
  ## Suppression comments
138
138
 
139
139
  | Rule | Reports | Default |
140
140
  | ---------------------------------------------------------------- | ------------------------------------------- | ------- |
141
- | [invalid-lint-suppression](invalid-lint-suppression.md) | A malformed comment or an unknown rule name | warn |
142
- | [unused-lint-suppression](unused-lint-suppression.md) | A comment that suppresses no finding | off |
141
+ | [invalid-lint-suppression](https://stillwind.dev/docs/lints/invalid-lint-suppression) | A malformed comment or an unknown rule name | warn |
142
+ | [unused-lint-suppression](https://stillwind.dev/docs/lints/unused-lint-suppression) | A comment that suppresses no finding | off |
@@ -35,7 +35,7 @@ Write the scope that you mean:
35
35
  - Use `"all"` to limit every anchor name.
36
36
  - Use `"none"` to set `anchor-scope: none`.
37
37
 
38
- See [`style.anchorScope()`](../macros/anchor-scope.md#inputs).
38
+ See [`style.anchorScope()`](https://stillwind.dev/docs/macros/anchor-scope#inputs).
39
39
 
40
40
  ## Rule settings
41
41
 
@@ -45,4 +45,4 @@ See [`style.anchorScope()`](../macros/anchor-scope.md#inputs).
45
45
  | `strict` | deny |
46
46
  | `stylistic` | off |
47
47
 
48
- [Configure lint](../configuration.md#lint) to change the severity or options.
48
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -70,6 +70,6 @@ Reordering the arguments does not fix it. `style("p-4", first)` and
70
70
  | `strict` | deny |
71
71
  | `stylistic` | off |
72
72
 
73
- [Configure lint](../configuration.md#lint) to change the severity or options.
73
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
74
74
 
75
75
  The CLI and the editor report this rule only when they analyze the whole project.
@@ -31,10 +31,10 @@ style("p-4", fade(""));
31
31
  ## How to fix
32
32
 
33
33
  - Move the utility out of the animation options and into the
34
- [`style()`](../macros/style.md) call, as in the example.
34
+ [`style()`](https://stillwind.dev/docs/macros/style) call, as in the example.
35
35
  - Keep only animation options, such as `duration-300` or `both`, in the options.
36
36
 
37
- See [`style.keyframes()`](../macros/keyframes.md#apply-the-animation).
37
+ See [`style.keyframes()`](https://stillwind.dev/docs/macros/keyframes#apply-the-animation).
38
38
 
39
39
  ## Rule settings
40
40
 
@@ -44,4 +44,4 @@ See [`style.keyframes()`](../macros/keyframes.md#apply-the-animation).
44
44
  | `strict` | deny |
45
45
  | `stylistic` | off |
46
46
 
47
- [Configure lint](../configuration.md#lint) to change the severity or options.
47
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -6,12 +6,12 @@ description: "Reports a malformed or unsupported Stillwind directive in your sty
6
6
  # invalid-css-directive
7
7
 
8
8
  This rule reports a Stillwind directive in your stylesheet that the compiler
9
- cannot read, such as [`@stillwind-slot`](../at-rules/stillwind-slot.md) with
9
+ cannot read, such as [`@stillwind-slot`](https://stillwind.dev/docs/at-rules/stillwind-slot) with
10
10
  an unknown slot name. The compiler skips the directive.
11
11
 
12
12
  The rule also reports a statement that works only at the top level of a stylesheet
13
13
  when you write it inside a style rule: a definition such as
14
- [`@utility`](../at-rules/utility.md) or `@theme`, a Tailwind configuration statement
14
+ [`@utility`](https://stillwind.dev/docs/at-rules/utility) or `@theme`, a Tailwind configuration statement
15
15
  such as `@plugin`, or a `@layer` statement that lists layer names. The compiler
16
16
  ignores the whole statement. `@variant`, `@apply`, `@stillwind-slot`, and
17
17
  `@stillwind-require-properties` still work inside a style rule.
@@ -48,4 +48,4 @@ ignores the whole statement. `@variant`, `@apply`, `@stillwind-slot`, and
48
48
  | `strict` | deny |
49
49
  | `stylistic` | off |
50
50
 
51
- [Configure lint](../configuration.md#lint) to change the severity or options.
51
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -13,7 +13,7 @@ The rule also reports an `@import` inside a style rule when the imported file, o
13
13
  file that it imports, contains a statement that works only at the top level, such
14
14
  as `@theme`, `@utility`, `@stillwind-slot`, or a `@layer` statement. The compiler
15
15
  leaves out the whole import. See
16
- [Reset only part of the page](../concepts/stylesheets.md#reset-only-part-of-the-page).
16
+ [Reset only part of the page](https://stillwind.dev/docs/concepts/stylesheets#reset-only-part-of-the-page).
17
17
 
18
18
  ## Reported
19
19
 
@@ -48,4 +48,4 @@ leaves out the whole import. See
48
48
  | `strict` | deny |
49
49
  | `stylistic` | off |
50
50
 
51
- [Configure lint](../configuration.md#lint) to change the severity or options.
51
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -5,9 +5,9 @@ description: "Reports a style.css() argument that is not a utility known at buil
5
5
 
6
6
  # invalid-css-input
7
7
 
8
- This rule reports an argument of [`style.css()`](../macros/css.md) that the
8
+ This rule reports an argument of [`style.css()`](https://stillwind.dev/docs/macros/css) that the
9
9
  compiler cannot turn into CSS at build time, such as a number, a runtime
10
- condition, a ref, or a stored [`style()`](../macros/style.md) result. The
10
+ condition, a ref, or a stored [`style()`](https://stillwind.dev/docs/macros/style) result. The
11
11
  argument adds nothing to the string.
12
12
 
13
13
  ## Reported
@@ -33,7 +33,7 @@ style.css("w-[42px]", { selector: ":host" });
33
33
  - For a value that changes at runtime, set a custom property on the element with
34
34
  JavaScript, and read it in a utility such as `w-(--width)`.
35
35
 
36
- [`style.css()`](../macros/css.md#inputs) lists the accepted inputs.
36
+ [`style.css()`](https://stillwind.dev/docs/macros/css#inputs) lists the accepted inputs.
37
37
 
38
38
  ## Rule settings
39
39
 
@@ -43,4 +43,4 @@ style.css("w-[42px]", { selector: ":host" });
43
43
  | `strict` | deny |
44
44
  | `stylistic` | off |
45
45
 
46
- [Configure lint](../configuration.md#lint) to change the severity or options.
46
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -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()`](../macros/cva.md#configuration).
48
+ See [`style.cva()`](https://stillwind.dev/docs/macros/cva#configuration).
49
49
 
50
50
  ## Rule settings
51
51
 
@@ -55,4 +55,4 @@ See [`style.cva()`](../macros/cva.md#configuration).
55
55
  | `strict` | deny |
56
56
  | `stylistic` | off |
57
57
 
58
- [Configure lint](../configuration.md#lint) to change the severity or options.
58
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -6,7 +6,7 @@ description: "Reports && or a ternary inside a style.cva() value."
6
6
  # invalid-cva-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()`](../macros/cva.md). The compiler generates
9
+ or an option value of [`style.cva()`](https://stillwind.dev/docs/macros/cva). The compiler generates
10
10
  every value when it creates the factory, so the condition cannot choose a style.
11
11
 
12
12
  ## Reported
@@ -39,10 +39,10 @@ button({ active });
39
39
 
40
40
  - Turn the condition into an option, and pass the current value when you call the
41
41
  factory, as in the example.
42
- - Stored [`style()`](../macros/style.md) results, refs, animations, and `class`
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()`](../macros/cva.md#style-values).
45
+ See [`style.cva()`](https://stillwind.dev/docs/macros/cva#style-values).
46
46
 
47
47
  ## Rule settings
48
48
 
@@ -52,4 +52,4 @@ See [`style.cva()`](../macros/cva.md#style-values).
52
52
  | `strict` | deny |
53
53
  | `stylistic` | off |
54
54
 
55
- [Configure lint](../configuration.md#lint) to change the severity or options.
55
+ [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.