stillwind 0.7.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 (232) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/css/builtin-variants/sw-conditional.css +10 -1
  3. package/css/builtin-variants/tw-relationship.css +4 -4
  4. package/css/builtins.css +1 -1
  5. package/dist/{class-object-D7ZGJOf_.d.ts → class-object-BaK8uudd.d.ts} +2 -2
  6. package/dist/class-object-DNcjzcfH.js +6 -0
  7. package/dist/{class-object-D24FFYqO.js.map → class-object-DNcjzcfH.js.map} +1 -1
  8. package/dist/{class-string-CQHnc9GN.d.ts → class-string-C5YFtXQn.d.ts} +2 -2
  9. package/dist/class-string-KnYInbiw.js +6 -0
  10. package/dist/{class-string-Db8-oI4q.js.map → class-string-KnYInbiw.js.map} +1 -1
  11. package/dist/{cva-BwX07CFw.js → formats-Ctf2WFc-.js} +87 -2
  12. package/dist/formats-Ctf2WFc-.js.map +1 -0
  13. package/dist/formats-aeLCNAXl.d.ts +73 -0
  14. package/dist/frameworks/alpine.d.ts +3 -3
  15. package/dist/frameworks/alpine.js +1 -1
  16. package/dist/frameworks/alpine.js.map +1 -1
  17. package/dist/frameworks/astro.d.ts +3 -3
  18. package/dist/frameworks/astro.js +1 -1
  19. package/dist/frameworks/lit.d.ts +3 -3
  20. package/dist/frameworks/lit.js +1 -1
  21. package/dist/frameworks/lit.js.map +1 -1
  22. package/dist/frameworks/preact.d.ts +3 -3
  23. package/dist/frameworks/preact.js +1 -1
  24. package/dist/frameworks/qwik.d.ts +3 -3
  25. package/dist/frameworks/qwik.js +1 -1
  26. package/dist/frameworks/react.d.ts +2 -2
  27. package/dist/frameworks/react.js +1 -1
  28. package/dist/frameworks/solid.d.ts +3 -3
  29. package/dist/frameworks/solid.js +1 -1
  30. package/dist/frameworks/svelte.d.ts +3 -3
  31. package/dist/frameworks/svelte.js +1 -1
  32. package/dist/frameworks/vanilla.d.ts +3 -3
  33. package/dist/frameworks/vanilla.js +1 -1
  34. package/dist/frameworks/vue.d.ts +3 -3
  35. package/dist/frameworks/vue.js +1 -1
  36. package/dist/{index-RwVFpxhE.d.ts → index-DBpgaaD7.d.ts} +54 -5
  37. package/dist/macro/index.d.ts +2 -2
  38. package/dist/macro/index.js +1 -1
  39. package/dist/runtime/development.d.ts +47 -0
  40. package/dist/{development-J-JCSIm0.js → runtime/development.js} +41 -5
  41. package/dist/runtime/development.js.map +1 -0
  42. package/dist/runtime/index.d.ts +2 -0
  43. package/dist/runtime/index.js +1 -0
  44. package/dist/{style-fTQbsVWZ.js → style-BE8vuLiO.js} +4 -1
  45. package/dist/style-BE8vuLiO.js.map +1 -0
  46. package/docs/at-rules/apply.md +5 -5
  47. package/docs/at-rules/custom-variant.md +12 -12
  48. package/docs/at-rules/index.md +19 -19
  49. package/docs/at-rules/plugin.md +7 -7
  50. package/docs/at-rules/registry-directives.md +9 -9
  51. package/docs/at-rules/slot.md +6 -6
  52. package/docs/at-rules/stillwind-css-template.md +7 -7
  53. package/docs/at-rules/stillwind-property.md +10 -10
  54. package/docs/at-rules/stillwind-registry.md +18 -18
  55. package/docs/at-rules/stillwind-require-properties.md +9 -9
  56. package/docs/at-rules/stillwind-slot.md +6 -6
  57. package/docs/at-rules/stillwind-undef-arbitrary-property.md +9 -9
  58. package/docs/at-rules/stillwind-undef-utility.md +10 -10
  59. package/docs/at-rules/stillwind-undef-variant.md +6 -6
  60. package/docs/at-rules/theme.md +23 -23
  61. package/docs/at-rules/utility.md +30 -30
  62. package/docs/at-rules/variant.md +6 -6
  63. package/docs/cli.md +11 -8
  64. package/docs/concepts/css-ordering.md +19 -19
  65. package/docs/concepts/how-styles-compile.md +17 -17
  66. package/docs/concepts/stylesheets.md +4 -4
  67. package/docs/configuration.md +34 -34
  68. package/docs/editors.md +9 -8
  69. package/docs/errors/SW01003.md +1 -1
  70. package/docs/errors/SW10001.md +1 -1
  71. package/docs/errors/SW10002.md +1 -1
  72. package/docs/errors/SW10004.md +7 -6
  73. package/docs/errors/SW10005.md +1 -1
  74. package/docs/errors/SW11001.md +1 -1
  75. package/docs/errors/SW11003.md +1 -1
  76. package/docs/errors/SW12001.md +2 -2
  77. package/docs/errors/SW12002.md +1 -1
  78. package/docs/errors/SW13001.md +1 -1
  79. package/docs/errors/SW13003.md +2 -2
  80. package/docs/errors/SW14001.md +1 -1
  81. package/docs/errors/SW14003.md +4 -4
  82. package/docs/errors/SW14004.md +2 -2
  83. package/docs/errors/SW14005.md +1 -1
  84. package/docs/errors/SW14006.md +1 -1
  85. package/docs/errors/SW14007.md +2 -2
  86. package/docs/errors/SW14008.md +1 -1
  87. package/docs/errors/SW30001.md +1 -1
  88. package/docs/errors/SW31001.md +1 -1
  89. package/docs/errors/SW31004.md +1 -1
  90. package/docs/errors/SW33005.md +1 -1
  91. package/docs/errors/SW34002.md +1 -1
  92. package/docs/errors/SW90001.md +1 -1
  93. package/docs/errors/SW90005.md +1 -1
  94. package/docs/errors/SW90006.md +1 -1
  95. package/docs/errors/index.md +72 -72
  96. package/docs/formatters.md +5 -5
  97. package/docs/guides/animations.md +7 -8
  98. package/docs/guides/design-systems.md +7 -7
  99. package/docs/guides/element-relationships.md +15 -19
  100. package/docs/guides/lint-adoption.md +5 -5
  101. package/docs/guides/migrating-from-css.md +11 -11
  102. package/docs/guides/migrating-from-tailwind.md +16 -16
  103. package/docs/guides/recommended-practices.md +18 -18
  104. package/docs/guides/responsive-styles.md +7 -7
  105. package/docs/guides/reusable-styles.md +10 -5
  106. package/docs/guides/runtime-conditions.md +6 -6
  107. package/docs/guides/style.md +42 -10
  108. package/docs/guides/tailwind-compatibility.md +23 -22
  109. package/docs/guides/view-transitions.md +9 -11
  110. package/docs/guides/web-components.md +4 -4
  111. package/docs/index.md +14 -12
  112. package/docs/integrations.md +3 -3
  113. package/docs/lints/ambiguous-style-base-order.md +4 -2
  114. package/docs/lints/bypassed-undefinition.md +3 -3
  115. package/docs/lints/clamped-value.md +1 -1
  116. package/docs/lints/conflicting-provider-properties.md +2 -2
  117. package/docs/lints/conflicting-utilities.md +45 -3
  118. package/docs/lints/document-scoped-selector.md +1 -1
  119. package/docs/lints/duplicate-definition.md +3 -3
  120. package/docs/lints/duplicate-utility.md +2 -2
  121. package/docs/lints/duplicate-view-transition-name.md +3 -3
  122. package/docs/lints/ignored-definition-condition.md +2 -2
  123. package/docs/lints/ignored-tailwind-feature.md +3 -3
  124. package/docs/lints/implicit-nesting-selector.md +2 -2
  125. package/docs/lints/incompatible-property-value.md +3 -3
  126. package/docs/lints/incompatible-theme-value.md +1 -1
  127. package/docs/lints/index.md +74 -73
  128. package/docs/lints/ineffective-anchor-scope.md +2 -2
  129. package/docs/lints/interfering-imported-style-base.md +22 -4
  130. package/docs/lints/invalid-animation-option.md +3 -3
  131. package/docs/lints/invalid-css-directive.md +3 -3
  132. package/docs/lints/invalid-css-import.md +2 -2
  133. package/docs/lints/invalid-css-input.md +4 -4
  134. package/docs/lints/invalid-cva-config.md +2 -2
  135. package/docs/lints/invalid-cva-input.md +4 -4
  136. package/docs/lints/invalid-keyframes-definition.md +2 -2
  137. package/docs/lints/invalid-keyframes-use.md +2 -2
  138. package/docs/lints/invalid-keyframes-variant.md +4 -4
  139. package/docs/lints/invalid-lint-suppression.md +3 -3
  140. package/docs/lints/invalid-marker-use.md +2 -2
  141. package/docs/lints/invalid-media-query.md +4 -4
  142. package/docs/lints/invalid-ref-input.md +4 -4
  143. package/docs/lints/invalid-rule-group-input.md +2 -2
  144. package/docs/lints/invalid-runtime-condition.md +3 -3
  145. package/docs/lints/invalid-stored-variant.md +52 -0
  146. package/docs/lints/invalid-style-composition.md +2 -2
  147. package/docs/lints/invalid-style-input.md +2 -2
  148. package/docs/lints/invalid-theme-reference.md +3 -3
  149. package/docs/lints/invalid-utility.md +3 -3
  150. package/docs/lints/invalid-variant.md +2 -2
  151. package/docs/lints/invalid-view-transition-definition.md +2 -2
  152. package/docs/lints/invalid-view-transition-use.md +2 -2
  153. package/docs/lints/invalid-view-transition-variant.md +3 -3
  154. package/docs/lints/mismatched-framework-import.md +3 -3
  155. package/docs/lints/missing-document-target.md +2 -2
  156. package/docs/lints/missing-ref-attachment.md +4 -4
  157. package/docs/lints/missing-view-transition-name.md +3 -3
  158. package/docs/lints/mutating-macro-argument.md +2 -2
  159. package/docs/lints/no-arbitrary-breakpoints.md +2 -2
  160. package/docs/lints/no-arbitrary-colors.md +2 -2
  161. package/docs/lints/no-arbitrary-spacing.md +1 -1
  162. package/docs/lints/no-class-property.md +3 -3
  163. package/docs/lints/no-important.md +2 -2
  164. package/docs/lints/no-restricted-declarations.md +1 -1
  165. package/docs/lints/no-restricted-length-units.md +1 -1
  166. package/docs/lints/no-restricted-theme-tokens.md +1 -1
  167. package/docs/lints/no-restricted-utilities.md +2 -2
  168. package/docs/lints/prefer-canonical-utilities.md +2 -2
  169. package/docs/lints/prefer-direct-styling.md +3 -3
  170. package/docs/lints/prefer-logical-properties.md +3 -3
  171. package/docs/lints/prefer-sorted-utilities.md +2 -2
  172. package/docs/lints/prefer-typed-relationships.md +3 -3
  173. package/docs/lints/prefer-typed-variables.md +1 -1
  174. package/docs/lints/prefer-variant-directive.md +3 -3
  175. package/docs/lints/redundant-variant.md +2 -2
  176. package/docs/lints/repeated-nesting-selector.md +2 -2
  177. package/docs/lints/runtime-condition-requires-css-if.md +3 -3
  178. package/docs/lints/split-view-transition-class.md +3 -3
  179. package/docs/lints/suspending-macro-argument.md +2 -2
  180. package/docs/lints/unknown-utility.md +4 -4
  181. package/docs/lints/unknown-variant.md +2 -2
  182. package/docs/lints/unmatched-host-selector.md +2 -2
  183. package/docs/lints/unsatisfiable-variants.md +1 -1
  184. package/docs/lints/unused-lint-suppression.md +1 -1
  185. package/docs/lints/unverified-style-base.md +2 -2
  186. package/docs/macros/anchor-scope.md +13 -13
  187. package/docs/macros/css.md +7 -7
  188. package/docs/macros/cva.md +17 -16
  189. package/docs/macros/index.md +10 -9
  190. package/docs/macros/keyframes.md +9 -9
  191. package/docs/macros/media.md +2 -2
  192. package/docs/macros/ref/as-anchor.md +11 -11
  193. package/docs/macros/ref/as-container.md +8 -8
  194. package/docs/macros/ref/at.md +10 -10
  195. package/docs/macros/ref/condition.md +9 -8
  196. package/docs/macros/ref/in.md +11 -11
  197. package/docs/macros/ref/index.md +17 -16
  198. package/docs/macros/ref/position-anchor.md +9 -9
  199. package/docs/macros/style.md +53 -27
  200. package/docs/macros/view-transition.md +17 -17
  201. package/docs/macros/when.md +129 -0
  202. package/docs/plugins/iconify.md +5 -5
  203. package/docs/plugins/index.md +4 -4
  204. package/docs/utilities-and-variants.md +6 -6
  205. package/docs/why.md +13 -15
  206. package/package.json +14 -28
  207. package/dist/class-object-D24FFYqO.js +0 -6
  208. package/dist/class-string-Db8-oI4q.js +0 -6
  209. package/dist/cva-BwX07CFw.js.map +0 -1
  210. package/dist/cva-DSpDNBYi.d.ts +0 -9
  211. package/dist/development-DttPQc71.d.ts +0 -27
  212. package/dist/development-J-JCSIm0.js.map +0 -1
  213. package/dist/runtime/class-name-object-development.d.ts +0 -10
  214. package/dist/runtime/class-name-object-development.js +0 -18
  215. package/dist/runtime/class-name-object-development.js.map +0 -1
  216. package/dist/runtime/class-name-object.d.ts +0 -16
  217. package/dist/runtime/class-name-object.js +0 -31
  218. package/dist/runtime/class-name-object.js.map +0 -1
  219. package/dist/runtime/class-object-development.d.ts +0 -10
  220. package/dist/runtime/class-object-development.js +0 -18
  221. package/dist/runtime/class-object-development.js.map +0 -1
  222. package/dist/runtime/class-object.d.ts +0 -16
  223. package/dist/runtime/class-object.js +0 -31
  224. package/dist/runtime/class-object.js.map +0 -1
  225. package/dist/runtime/class-string-development.d.ts +0 -10
  226. package/dist/runtime/class-string-development.js +0 -18
  227. package/dist/runtime/class-string-development.js.map +0 -1
  228. package/dist/runtime/class-string.d.ts +0 -16
  229. package/dist/runtime/class-string.js +0 -31
  230. package/dist/runtime/class-string.js.map +0 -1
  231. package/dist/shared-B9IQXU6P.d.ts +0 -32
  232. package/dist/style-fTQbsVWZ.js.map +0 -1
@@ -5,7 +5,7 @@ description: "The compiler chose a Stillwind import to replace, but did not plan
5
5
 
6
6
  # SW90005: Macro anchor removal edit missing
7
7
 
8
- This error occurs when the compiler chooses the `stillwind` import where it adds runtime imports, but does not plan the edit that replaces it. If the integration provided no usable import at all, the error is [SW34001](SW34001.md) instead.
8
+ This error occurs when the compiler chooses the `stillwind` import where it adds runtime imports, but does not plan the edit that replaces it. If the integration provided no usable import at all, the error is [SW34001](https://stillwind.dev/docs/errors/SW34001) instead.
9
9
 
10
10
  ## How to report
11
11
 
@@ -7,7 +7,7 @@ description: "The compiler generated a code edit with an invalid link to the ori
7
7
 
8
8
  This error occurs when an edit that the compiler generates links to the
9
9
  original expression incorrectly. The message names the
10
- [`style()`](../macros/style.md) call.
10
+ [`style()`](https://stillwind.dev/docs/macros/style) call.
11
11
 
12
12
  ## How to report
13
13
 
@@ -14,51 +14,51 @@ The first digits of a code tell you what to do next:
14
14
  | Codes | What to do |
15
15
  | ----------------- | ------------------------------------------------------------------------- |
16
16
  | SW01xxx – SW03xxx | Fix `stillwind.config.ts` or the integration options |
17
- | SW10xxx – SW15xxx | Fix your components, [`style()`](../macros/style.md) calls, or stylesheet |
17
+ | SW10xxx – SW15xxx | Fix your components, [`style()`](https://stillwind.dev/docs/macros/style) calls, or stylesheet |
18
18
  | SW30xxx – SW34xxx | Check your integration, or report a bug |
19
19
  | SW90xxx | Report a bug |
20
20
 
21
21
  ## Fix the configuration
22
22
 
23
- - [SW01001](SW01001.md): Invalid property prefix
24
- - [SW01002](SW01002.md): Invalid hash length
25
- - [SW01003](SW01003.md): Invalid lint configuration
26
- - [SW02001](SW02001.md): Framework constraint conflict
27
- - [SW02002](SW02002.md): Unresolved root stylesheet
28
- - [SW03001](SW03001.md): Generated identifier collision
29
- - [SW03002](SW03002.md): Identifier generator failed
30
- - [SW03003](SW03003.md): Theme variable collision
23
+ - [SW01001](https://stillwind.dev/docs/errors/SW01001): Invalid property prefix
24
+ - [SW01002](https://stillwind.dev/docs/errors/SW01002): Invalid hash length
25
+ - [SW01003](https://stillwind.dev/docs/errors/SW01003): Invalid lint configuration
26
+ - [SW02001](https://stillwind.dev/docs/errors/SW02001): Framework constraint conflict
27
+ - [SW02002](https://stillwind.dev/docs/errors/SW02002): Unresolved root stylesheet
28
+ - [SW03001](https://stillwind.dev/docs/errors/SW03001): Generated identifier collision
29
+ - [SW03002](https://stillwind.dev/docs/errors/SW03002): Identifier generator failed
30
+ - [SW03003](https://stillwind.dev/docs/errors/SW03003): Theme variable collision
31
31
 
32
32
  ## Fix your components and style() calls
33
33
 
34
- - [SW10001](SW10001.md): JavaScript parse error
35
- - [SW10002](SW10002.md): Invalid component syntax
36
- - [SW10003](SW10003.md): Invalid Unicode string
37
- - [SW10004](SW10004.md): Unconsumed macro use
38
- - [SW10005](SW10005.md): Untransformed macro reference
39
- - [SW11001](SW11001.md): Style composition cycle
40
- - [SW11002](SW11002.md): CSS module ordering cycle
41
- - [SW11003](SW11003.md): Unavailable style base
42
- - [SW12001](SW12001.md): Incompatible declaration assignment
43
- - [SW12002](SW12002.md): Declaration identities unavailable
34
+ - [SW10001](https://stillwind.dev/docs/errors/SW10001): JavaScript parse error
35
+ - [SW10002](https://stillwind.dev/docs/errors/SW10002): Invalid component syntax
36
+ - [SW10003](https://stillwind.dev/docs/errors/SW10003): Invalid Unicode string
37
+ - [SW10004](https://stillwind.dev/docs/errors/SW10004): Unconsumed macro use
38
+ - [SW10005](https://stillwind.dev/docs/errors/SW10005): Untransformed macro reference
39
+ - [SW11001](https://stillwind.dev/docs/errors/SW11001): Style composition cycle
40
+ - [SW11002](https://stillwind.dev/docs/errors/SW11002): CSS module ordering cycle
41
+ - [SW11003](https://stillwind.dev/docs/errors/SW11003): Unavailable style base
42
+ - [SW12001](https://stillwind.dev/docs/errors/SW12001): Incompatible declaration assignment
43
+ - [SW12002](https://stillwind.dev/docs/errors/SW12002): Declaration identities unavailable
44
44
 
45
45
  ## Fix your stylesheet
46
46
 
47
- - [SW13001](SW13001.md): Authored CSS parse error
48
- - [SW13002](SW13002.md): Unterminated CSS block
49
- - [SW13003](SW13003.md): Invalid CSS block
50
- - [SW13004](SW13004.md): CSS nesting limit exceeded
51
- - [SW14001](SW14001.md): Missing utilities slot
52
- - [SW14002](SW14002.md): Missing support slot
53
- - [SW14003](SW14003.md): Malformed property requirement
54
- - [SW14004](SW14004.md): Malformed utility property requirement
55
- - [SW14005](SW14005.md): Required property is unregistered
56
- - [SW14006](SW14006.md): Property-usage parse failure
57
- - [SW14007](SW14007.md): Malformed theme reference
58
- - [SW14008](SW14008.md): Circular utility application
59
- - [SW15001](SW15001.md): CSS offset exceeds source coordinates
60
- - [SW15002](SW15002.md): Rendered source is too large
61
- - [SW15003](SW15003.md): Source size or offset is too large
47
+ - [SW13001](https://stillwind.dev/docs/errors/SW13001): Authored CSS parse error
48
+ - [SW13002](https://stillwind.dev/docs/errors/SW13002): Unterminated CSS block
49
+ - [SW13003](https://stillwind.dev/docs/errors/SW13003): Invalid CSS block
50
+ - [SW13004](https://stillwind.dev/docs/errors/SW13004): CSS nesting limit exceeded
51
+ - [SW14001](https://stillwind.dev/docs/errors/SW14001): Missing utilities slot
52
+ - [SW14002](https://stillwind.dev/docs/errors/SW14002): Missing support slot
53
+ - [SW14003](https://stillwind.dev/docs/errors/SW14003): Malformed property requirement
54
+ - [SW14004](https://stillwind.dev/docs/errors/SW14004): Malformed utility property requirement
55
+ - [SW14005](https://stillwind.dev/docs/errors/SW14005): Required property is unregistered
56
+ - [SW14006](https://stillwind.dev/docs/errors/SW14006): Property-usage parse failure
57
+ - [SW14007](https://stillwind.dev/docs/errors/SW14007): Malformed theme reference
58
+ - [SW14008](https://stillwind.dev/docs/errors/SW14008): Circular utility application
59
+ - [SW15001](https://stillwind.dev/docs/errors/SW15001): CSS offset exceeds source coordinates
60
+ - [SW15002](https://stillwind.dev/docs/errors/SW15002): Rendered source is too large
61
+ - [SW15003](https://stillwind.dev/docs/errors/SW15003): Source size or offset is too large
62
62
 
63
63
  ## Check your integration
64
64
 
@@ -69,45 +69,45 @@ integration, the error page explains which input to fix.
69
69
 
70
70
  ### Type information
71
71
 
72
- - [SW30001](SW30001.md): TypeScript checker facts required
73
- - [SW30002](SW30002.md): Invalid or stale TypeScript facts
74
- - [SW30003](SW30003.md): Incompatible symbolic fact kinds
75
- - [SW30004](SW30004.md): Checker expression unavailable
72
+ - [SW30001](https://stillwind.dev/docs/errors/SW30001): TypeScript checker facts required
73
+ - [SW30002](https://stillwind.dev/docs/errors/SW30002): Invalid or stale TypeScript facts
74
+ - [SW30003](https://stillwind.dev/docs/errors/SW30003): Incompatible symbolic fact kinds
75
+ - [SW30004](https://stillwind.dev/docs/errors/SW30004): Checker expression unavailable
76
76
 
77
77
  ### Vue, Svelte, and Astro components
78
78
 
79
- - [SW31001](SW31001.md): Invalid projection map
80
- - [SW31002](SW31002.md): Ambiguous or missing original range
81
- - [SW31003](SW31003.md): Projection content mismatch
82
- - [SW31004](SW31004.md): Invalid converter output syntax
83
- - [SW31005](SW31005.md): Component projection preparation failed
84
- - [SW31006](SW31006.md): Invalid UTF-16 offset
85
- - [SW31007](SW31007.md): Invalid UTF-16 position
86
- - [SW31008](SW31008.md): Invalid UTF-8 offset
87
- - [SW31009](SW31009.md): Unmapped macro binding read
88
- - [SW31010](SW31010.md): Edit outside an editable projection region
89
- - [SW31011](SW31011.md): Attribute quote mismatch
79
+ - [SW31001](https://stillwind.dev/docs/errors/SW31001): Invalid projection map
80
+ - [SW31002](https://stillwind.dev/docs/errors/SW31002): Ambiguous or missing original range
81
+ - [SW31003](https://stillwind.dev/docs/errors/SW31003): Projection content mismatch
82
+ - [SW31004](https://stillwind.dev/docs/errors/SW31004): Invalid converter output syntax
83
+ - [SW31005](https://stillwind.dev/docs/errors/SW31005): Component projection preparation failed
84
+ - [SW31006](https://stillwind.dev/docs/errors/SW31006): Invalid UTF-16 offset
85
+ - [SW31007](https://stillwind.dev/docs/errors/SW31007): Invalid UTF-16 position
86
+ - [SW31008](https://stillwind.dev/docs/errors/SW31008): Invalid UTF-8 offset
87
+ - [SW31009](https://stillwind.dev/docs/errors/SW31009): Unmapped macro binding read
88
+ - [SW31010](https://stillwind.dev/docs/errors/SW31010): Edit outside an editable projection region
89
+ - [SW31011](https://stillwind.dev/docs/errors/SW31011): Attribute quote mismatch
90
90
 
91
91
  ### Stylesheet loading and source files
92
92
 
93
- - [SW32001](SW32001.md): CSS imports need host resolution
94
- - [SW32002](SW32002.md): Invalid initial CSS batch
95
- - [SW32003](SW32003.md): Unknown or duplicate CSS request
96
- - [SW32004](SW32004.md): Conflicting CSS source
97
- - [SW32005](SW32005.md): CSS loader already completed
98
- - [SW32006](SW32006.md): CSS request IDs exhausted
99
- - [SW32007](SW32007.md): CSS source IDs exhausted
100
- - [SW33001](SW33001.md): Original map on an internal source
101
- - [SW33002](SW33002.md): Invalid source byte range
102
- - [SW33003](SW33003.md): Span belongs to another file
103
- - [SW33004](SW33004.md): Invalid source span
104
- - [SW33005](SW33005.md): Invalid source byte offset
93
+ - [SW32001](https://stillwind.dev/docs/errors/SW32001): CSS imports need host resolution
94
+ - [SW32002](https://stillwind.dev/docs/errors/SW32002): Invalid initial CSS batch
95
+ - [SW32003](https://stillwind.dev/docs/errors/SW32003): Unknown or duplicate CSS request
96
+ - [SW32004](https://stillwind.dev/docs/errors/SW32004): Conflicting CSS source
97
+ - [SW32005](https://stillwind.dev/docs/errors/SW32005): CSS loader already completed
98
+ - [SW32006](https://stillwind.dev/docs/errors/SW32006): CSS request IDs exhausted
99
+ - [SW32007](https://stillwind.dev/docs/errors/SW32007): CSS source IDs exhausted
100
+ - [SW33001](https://stillwind.dev/docs/errors/SW33001): Original map on an internal source
101
+ - [SW33002](https://stillwind.dev/docs/errors/SW33002): Invalid source byte range
102
+ - [SW33003](https://stillwind.dev/docs/errors/SW33003): Span belongs to another file
103
+ - [SW33004](https://stillwind.dev/docs/errors/SW33004): Invalid source span
104
+ - [SW33005](https://stillwind.dev/docs/errors/SW33005): Invalid source byte offset
105
105
 
106
106
  ### Code transformation
107
107
 
108
- - [SW34001](SW34001.md): Missing macro import anchor
109
- - [SW34002](SW34002.md): Missing module CSS target
110
- - [SW34003](SW34003.md): Transform requested after failed compilation
108
+ - [SW34001](https://stillwind.dev/docs/errors/SW34001): Missing macro import anchor
109
+ - [SW34002](https://stillwind.dev/docs/errors/SW34002): Missing module CSS target
110
+ - [SW34003](https://stillwind.dev/docs/errors/SW34003): Transform requested after failed compilation
111
111
 
112
112
  ## Report a bug
113
113
 
@@ -115,11 +115,11 @@ These errors mean that the compiler produced an inconsistent result. Please
115
115
  [open an issue](https://github.com/SegaraRai/stillwind/issues) with the error
116
116
  message and, if possible, the source that causes it.
117
117
 
118
- - [SW90001](SW90001.md): Invalid generated CSS block
119
- - [SW90002](SW90002.md): Missing retained rule
120
- - [SW90003](SW90003.md): Inconsistent internal CSS graph
121
- - [SW90004](SW90004.md): Inconsistent macro import metadata
122
- - [SW90005](SW90005.md): Macro anchor removal edit missing
123
- - [SW90006](SW90006.md): Invalid transform expression mapping
124
- - [SW90007](SW90007.md): Overlapping source replacements
125
- - [SW90008](SW90008.md): Invalid compiler-produced source coordinates
118
+ - [SW90001](https://stillwind.dev/docs/errors/SW90001): Invalid generated CSS block
119
+ - [SW90002](https://stillwind.dev/docs/errors/SW90002): Missing retained rule
120
+ - [SW90003](https://stillwind.dev/docs/errors/SW90003): Inconsistent internal CSS graph
121
+ - [SW90004](https://stillwind.dev/docs/errors/SW90004): Inconsistent macro import metadata
122
+ - [SW90005](https://stillwind.dev/docs/errors/SW90005): Macro anchor removal edit missing
123
+ - [SW90006](https://stillwind.dev/docs/errors/SW90006): Invalid transform expression mapping
124
+ - [SW90007](https://stillwind.dev/docs/errors/SW90007): Overlapping source replacements
125
+ - [SW90008](https://stillwind.dev/docs/errors/SW90008): Invalid compiler-produced source coordinates
@@ -12,14 +12,14 @@ How you combine them depends on the formatter:
12
12
  | ------------------ | ---------------------------------------------------------------------- |
13
13
  | Prettier | [The Prettier plugin](#prettier) sorts during formatting |
14
14
  | Oxfmt or another | [Run `stillwind fmt` first](#other-formatters), then run the formatter |
15
- | Any, in the editor | [Code Actions](editors.md#sort-and-fix-on-save) sort on save |
15
+ | Any, in the editor | [Code Actions](https://stillwind.dev/docs/editors#sort-and-fix-on-save) sort on save |
16
16
 
17
- All of them read the [`sort` field](configuration.md#sorting) of
17
+ All of them read the [`sort` field](https://stillwind.dev/docs/configuration#sorting) of
18
18
  `stillwind.config.ts` and use the same order. Sorting runs whatever the severity of
19
- [prefer-sorted-utilities](lints/prefer-sorted-utilities.md) is. To stop all
19
+ [prefer-sorted-utilities](https://stillwind.dev/docs/lints/prefer-sorted-utilities) is. To stop all
20
20
  sorting, set `sort: false`.
21
21
 
22
- Create `stillwind.config.ts` with [Getting started](index.md) first.
22
+ Create `stillwind.config.ts` with [Getting started](https://stillwind.dev/docs) first.
23
23
 
24
24
  ## Prettier
25
25
 
@@ -84,4 +84,4 @@ vp exec stillwind fmt --check
84
84
  vp exec oxfmt --check
85
85
  ```
86
86
 
87
- See [the CLI reference](cli.md#stillwind-fmt) for the options of `fmt`.
87
+ See [the CLI reference](https://stillwind.dev/docs/cli#stillwind-fmt) for the options of `fmt`.
@@ -16,12 +16,11 @@ stays next to the code that uses it.
16
16
  ```tsx
17
17
  import { style } from "stillwind/react";
18
18
 
19
- const enter = style.keyframes({
20
- from: "opacity-0 translate-y-2",
21
- to: "opacity-100 translate-y-0",
22
- });
23
-
24
19
  export function Notice() {
20
+ const enter = style.keyframes({
21
+ from: "opacity-0 translate-y-2",
22
+ to: "opacity-100 translate-y-0",
23
+ });
25
24
  return (
26
25
  <aside {...style({ "motion-safe:": enter("duration-300 ease-out both") })}>
27
26
  Your changes are saved.
@@ -30,7 +29,7 @@ export function Notice() {
30
29
  }
31
30
  ```
32
31
 
33
- [`style.keyframes()`](../macros/keyframes.md) defines the frames with utilities.
32
+ [`style.keyframes()`](https://stillwind.dev/docs/macros/keyframes) defines the frames with utilities.
34
33
  `enter(...)` applies the animation, and its utilities set the animation's options.
35
34
  For example, `duration-300` sets `animation-duration`.
36
35
 
@@ -68,8 +67,8 @@ here. Container queries are not supported.
68
67
 
69
68
  Export the keyframes from their module, and import them in other components.
70
69
  Write the call that applies them, such as `enter("duration-300")`, directly in
71
- [`style()`](style.md). You cannot store that call in a variable and
70
+ [`style()`](https://stillwind.dev/docs/guides/style). You cannot store that call in a variable and
72
71
  use it later.
73
72
 
74
- The [`style.keyframes()` reference](../macros/keyframes.md) shows the generated
73
+ The [`style.keyframes()` reference](https://stillwind.dev/docs/macros/keyframes) shows the generated
75
74
  JavaScript and CSS.
@@ -62,8 +62,8 @@ export function Panel() {
62
62
  When a theme changes, you edit the stylesheet. The components stay the same.
63
63
 
64
64
  To use a breakpoint in JavaScript, pass its name to
65
- [`style.media()`](../macros/media.md). See
66
- [Responsive styles](responsive-styles.md).
65
+ [`style.media()`](https://stillwind.dev/docs/macros/media). See
66
+ [Responsive styles](https://stillwind.dev/docs/guides/responsive-styles).
67
67
 
68
68
  ## Report values outside the theme
69
69
 
@@ -92,12 +92,12 @@ export default defineConfig({
92
92
 
93
93
  | Rule | Reports | Example |
94
94
  | ---------------------------------------------------------------- | --------------------------------- | -------------- |
95
- | [no-arbitrary-colors](../lints/no-arbitrary-colors.md) | Colors written as values | `bg-[#123456]` |
96
- | [no-arbitrary-spacing](../lints/no-arbitrary-spacing.md) | Margin, padding, and gap values | `p-[13px]` |
97
- | [no-arbitrary-breakpoints](../lints/no-arbitrary-breakpoints.md) | Viewport widths written as values | `min-[713px]:` |
95
+ | [no-arbitrary-colors](https://stillwind.dev/docs/lints/no-arbitrary-colors) | Colors written as values | `bg-[#123456]` |
96
+ | [no-arbitrary-spacing](https://stillwind.dev/docs/lints/no-arbitrary-spacing) | Margin, padding, and gap values | `p-[13px]` |
97
+ | [no-arbitrary-breakpoints](https://stillwind.dev/docs/lints/no-arbitrary-breakpoints) | Viewport widths written as values | `min-[713px]:` |
98
98
 
99
99
  No preset enables these rules, so add them yourself. To enforce them, run the
100
- CLI in CI, as described in [Checks in the editor and CI](lint-adoption.md).
100
+ CLI in CI, as described in [Checks in the editor and CI](https://stillwind.dev/docs/guides/lint-adoption).
101
101
 
102
102
  ## Reserve the default palette
103
103
 
@@ -117,4 +117,4 @@ The rule reports utilities that use a matching token, such as `bg-blue-500`.
117
117
  Your role tokens can still use palette colors in their definitions.
118
118
 
119
119
  For more restrictions, such as banned utilities or length units, see
120
- [Configuration](../configuration.md#rule-options).
120
+ [Configuration](https://stillwind.dev/docs/configuration#rule-options).
@@ -12,7 +12,7 @@ Tailwind connects the two elements by name, such as `group/card` and
12
12
  they match. Nested groups or containers may also need names to target the right
13
13
  ancestor. You must avoid name collisions when nesting components.
14
14
 
15
- In Stillwind, you create the name as a variable with [`style.ref()`](../macros/ref/index.md).
15
+ In Stillwind, you create the name as a variable with [`style.ref()`](https://stillwind.dev/docs/macros/ref).
16
16
  A misspelled ref is an undefined variable, so TypeScript reports it.
17
17
 
18
18
  ## React to a parent's state
@@ -22,9 +22,8 @@ Create a ref, attach it to the parent, and use it in the child's style:
22
22
  ```tsx
23
23
  import { style } from "stillwind/react";
24
24
 
25
- const card = style.ref("card");
26
-
27
25
  export function Card() {
26
+ const card = style.ref("card");
28
27
  return (
29
28
  <article {...style(card, "rounded-lg p-4")}>
30
29
  <h2 {...style({ [card("hover")]: "text-blue-600" })}>Project</h2>
@@ -43,16 +42,15 @@ components can use the label `"card"` without affecting each other.
43
42
 
44
43
  ## React to a sibling's state
45
44
 
46
- Without [`.in()`](../macros/ref/in.md), the ref must be on an ancestor of the styled
45
+ Without [`.in()`](https://stillwind.dev/docs/macros/ref/in), the ref must be on an ancestor of the styled
47
46
  element. To use a sibling, add `.in()` with a ref on an element that contains both:
48
47
 
49
48
  ```tsx
50
49
  import { style } from "stillwind/react";
51
50
 
52
- const card = style.ref("card");
53
- const trigger = style.ref("trigger");
54
-
55
51
  export function Card() {
52
+ const card = style.ref("card");
53
+ const trigger = style.ref("trigger");
56
54
  return (
57
55
  <section {...style(card, "p-4")}>
58
56
  <button {...style(trigger, "rounded-md px-4 py-2")}>Details</button>
@@ -69,15 +67,14 @@ export function Card() {
69
67
 
70
68
  ## React to a container's size
71
69
 
72
- Make the element a container with [`asContainer()`](../macros/ref/as-container.md),
73
- and query it with [`at()`](../macros/ref/at.md):
70
+ Make the element a container with [`asContainer()`](https://stillwind.dev/docs/macros/ref/as-container),
71
+ and query it with [`at()`](https://stillwind.dev/docs/macros/ref/at):
74
72
 
75
73
  ```tsx
76
74
  import { style } from "stillwind/react";
77
75
 
78
- const card = style.ref("card");
79
-
80
76
  export function Card() {
77
+ const card = style.ref("card");
81
78
  return (
82
79
  <section {...style(card, card.asContainer("inline-size"), "p-4")}>
83
80
  <p {...style({ [card.at("width >= 40rem")]: "text-lg" })}>
@@ -88,22 +85,21 @@ export function Card() {
88
85
  }
89
86
  ```
90
87
 
91
- Pass `card` and `card.asContainer()` in the same [`style()`](style.md)
88
+ Pass `card` and `card.asContainer()` in the same [`style()`](https://stillwind.dev/docs/guides/style)
92
89
  call. The container applies only to an element that has the ref, and the CLI warns
93
90
  when the ref is missing.
94
91
 
95
92
  ## Position an element at an anchor
96
93
 
97
- Make an element an anchor with [`asAnchor()`](../macros/ref/as-anchor.md), and
94
+ Make an element an anchor with [`asAnchor()`](https://stillwind.dev/docs/macros/ref/as-anchor), and
98
95
  position another element against it with
99
- [`positionAnchor()`](../macros/ref/position-anchor.md):
96
+ [`positionAnchor()`](https://stillwind.dev/docs/macros/ref/position-anchor):
100
97
 
101
98
  ```tsx
102
99
  import { style } from "stillwind/react";
103
100
 
104
- const trigger = style.ref("trigger");
105
-
106
101
  export function AnchoredHint() {
102
+ const trigger = style.ref("trigger");
107
103
  return (
108
104
  <section {...style(style.anchorScope([trigger]))}>
109
105
  <button {...style(trigger, trigger.asAnchor())}>Open hint</button>
@@ -117,7 +113,7 @@ export function AnchoredHint() {
117
113
  }
118
114
  ```
119
115
 
120
- [`style.anchorScope([trigger])`](/docs/macros/anchor-scope) limits the anchor
116
+ [`style.anchorScope([trigger])`](https://stillwind.dev/docs/macros/anchor-scope) limits the anchor
121
117
  name to the `<section>`, so each rendered `AnchoredHint` positions against its
122
118
  own button. Stillwind generates CSS anchor positioning only. Check that the
123
119
  browsers you support implement it.
@@ -131,8 +127,8 @@ call. You cannot store it in a variable and use it later.
131
127
  ## Report group and peer variants
132
128
 
133
129
  The `stylistic` preset includes
134
- [prefer-typed-relationships](../lints/prefer-typed-relationships.md). The rule
130
+ [prefer-typed-relationships](https://stillwind.dev/docs/lints/prefer-typed-relationships). The rule
135
131
  reports `group-*` and `peer-*` variants so that you can replace them with refs.
136
132
 
137
- The [`style.ref()` reference](../macros/ref/index.md) lists every method and its
133
+ The [`style.ref()` reference](https://stillwind.dev/docs/macros/ref) lists every method and its
138
134
  accepted inputs.
@@ -13,8 +13,8 @@ The CLI, CI, the editor, and AI agents all use the same rules from
13
13
  ## What the build checks
14
14
 
15
15
  The build stops on compiler errors, such as a JavaScript syntax error or a
16
- [`style()`](style.md) call that cannot compile. See
17
- [Compiler errors](../errors/index.md).
16
+ [`style()`](https://stillwind.dev/docs/guides/style) call that cannot compile. See
17
+ [Compiler errors](https://stillwind.dev/docs/errors).
18
18
 
19
19
  The build does not run lint rules. A misspelled utility such as `bg-acent`
20
20
  produces no CSS, and the page still renders without that style. Run the CLI or
@@ -76,8 +76,8 @@ Each rule has a severity. `warn` reports a warning, `deny` reports an error,
76
76
  and `off` disables the rule and its fixes. To adopt a new rule, set it to `warn`
77
77
  first, fix the existing code, and then change it to `deny`.
78
78
 
79
- [Configuration](../configuration.md#lint) describes rule options, and the
80
- [lint rule reference](../lints/index.md) lists every rule.
79
+ [Configuration](https://stillwind.dev/docs/configuration#lint) describes rule options, and the
80
+ [lint rule reference](https://stillwind.dev/docs/lints) lists every rule.
81
81
 
82
82
  ## Run the checks in CI
83
83
 
@@ -101,7 +101,7 @@ agent or a script reads the results.
101
101
  ## Check while you edit
102
102
 
103
103
  The VS Code extension shows findings as you type, including in unsaved files. It also offers the
104
- automatic fixes as Quick Fixes, and it can fix and sort on save. See [Editors](../editors.md) for
104
+ automatic fixes as Quick Fixes, and it can fix and sort on save. See [Editors](https://stillwind.dev/docs/editors) for
105
105
  the setup.
106
106
 
107
107
  ## Allow an exception
@@ -13,7 +13,7 @@ each step, because the translation can change how elements look.
13
13
  ## Set up Stillwind next to the existing CSS
14
14
 
15
15
  Install Stillwind and register the build integration as described in
16
- [Getting started](../index.md). Your existing stylesheets keep working while you
16
+ [Getting started](https://stillwind.dev/docs). Your existing stylesheets keep working while you
17
17
  migrate.
18
18
 
19
19
  `@import "stillwind"` includes the preflight reset, which changes the default
@@ -29,7 +29,7 @@ the reset until the old styles are gone:
29
29
  @import "stillwind/templates.css";
30
30
  ```
31
31
 
32
- [Stylesheets](../concepts/stylesheets.md) describes each of these files.
32
+ [Stylesheets](https://stillwind.dev/docs/concepts/stylesheets) describes each of these files.
33
33
 
34
34
  Stillwind's CSS is in cascade layers. A declaration outside a layer wins over a
35
35
  declaration in a layer, whatever their specificity. While an old rule matches an
@@ -40,7 +40,7 @@ you move its declarations.
40
40
 
41
41
  Collect the colors, spacing, font sizes, radii, and breakpoints that the old
42
42
  CSS repeats, such as Sass variables or custom properties in `:root`. Define them
43
- as [`@theme`](../at-rules/theme.md) tokens by role:
43
+ as [`@theme`](https://stillwind.dev/docs/at-rules/theme) tokens by role:
44
44
 
45
45
  ```css
46
46
  @theme {
@@ -52,12 +52,12 @@ as [`@theme`](../at-rules/theme.md) tokens by role:
52
52
 
53
53
  Each token adds utilities, such as `bg-surface` and `tablet:`. Merge values that
54
54
  mean the same thing. Keep values separate when they are equal by chance.
55
- [Design systems](design-systems.md) describes how to name tokens.
55
+ [Design systems](https://stillwind.dev/docs/guides/design-systems) describes how to name tokens.
56
56
 
57
57
  ## Move rules into style()
58
58
 
59
59
  Translate the declarations of each rule into utilities, and apply them with
60
- [`style()`](style.md) on the element:
60
+ [`style()`](https://stillwind.dev/docs/guides/style) on the element:
61
61
 
62
62
  ```css title="Button.module.css"
63
63
  .button {
@@ -97,7 +97,7 @@ Translate selectors into variants:
97
97
  | `:hover`, `:focus-visible`, `:checked` | `hover:`, `focus-visible:`, `checked:` |
98
98
  | `@media (min-width: 768px)` | A breakpoint variant, such as `md:` |
99
99
  | `[aria-expanded="true"]`, `[data-x]` | `aria-expanded:`, `data-[x]:` |
100
- | `.parent:hover .child` | A ref, see [Element relationships](element-relationships.md) |
100
+ | `.parent:hover .child` | A ref, see [Element relationships](https://stillwind.dev/docs/guides/element-relationships) |
101
101
  | A toggled modifier class | An attribute and its variant |
102
102
  | A value set from JavaScript | A custom property in `style()` |
103
103
 
@@ -110,22 +110,22 @@ utility instead.
110
110
  - Keep resets and base element styles until you enable the preflight reset.
111
111
  Then remove the rules that it replaces.
112
112
  - Move [`@keyframes`](https://developer.mozilla.org/docs/Web/CSS/Reference/At-rules/@keyframes)
113
- next to the component that uses them with [`style.keyframes()`](../macros/keyframes.md).
113
+ next to the component that uses them with [`style.keyframes()`](https://stillwind.dev/docs/macros/keyframes).
114
114
  - Move styles for HTML that you do not control, such as rendered Markdown, into
115
- a custom utility. See [Recommended practices](recommended-practices.md#avoid-separate-css).
115
+ a custom utility. See [Recommended practices](https://stillwind.dev/docs/guides/recommended-practices#avoid-separate-css).
116
116
 
117
117
  ## Replace CSS-in-JS
118
118
 
119
119
  Move static styles from `styled()` components or `css` props into `style()`
120
120
  calls. Express props that change styles with attributes and variants, as in
121
- [Reusable styles](reusable-styles.md). For a continuous value, set a
121
+ [Reusable styles](https://stillwind.dev/docs/guides/reusable-styles). For a continuous value, set a
122
122
  custom property in `style()`.
123
123
 
124
124
  ## Check the migrated code
125
125
 
126
- Run the [CLI checks](lint-adoption.md) over the migrated files, and
126
+ Run the [CLI checks](https://stillwind.dev/docs/guides/lint-adoption) over the migrated files, and
127
127
  compare the pages with the old version in the browser. To compare them
128
128
  precisely, use the method in
129
- [Compare computed styles](migrating-from-tailwind.md#compare-computed-styles),
129
+ [Compare computed styles](https://stillwind.dev/docs/guides/migrating-from-tailwind#compare-computed-styles),
130
130
  which works the same way for a migration from CSS. After you remove the last
131
131
  old stylesheet, switch to `@import "stillwind"` and check the pages again.
@@ -7,8 +7,8 @@ description: "Move a Tailwind CSS v4 project to Stillwind, from the stylesheet a
7
7
 
8
8
  You want to move an existing Tailwind CSS v4 project to Stillwind. Your utilities,
9
9
  variants, theme, and plugins keep working. What changes is where you write them:
10
- in [`style()`](style.md) calls instead of `className` strings.
11
- [Tailwind CSS compatibility](tailwind-compatibility.md) lists the tested
10
+ in [`style()`](https://stillwind.dev/docs/guides/style) calls instead of `className` strings.
11
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility) lists the tested
12
12
  plugins and the differences.
13
13
 
14
14
  Tailwind scans your files for anything that looks like a class name. Stillwind
@@ -28,14 +28,14 @@ In your stylesheet, replace `@import "tailwindcss"` with `@import "stillwind"`:
28
28
  }
29
29
  ```
30
30
 
31
- Keep your [`@theme`](../at-rules/theme.md), [`@utility`](../at-rules/utility.md),
32
- [`@custom-variant`](../at-rules/custom-variant.md), [`@variant`](../at-rules/variant.md),
33
- [`@apply`](../at-rules/apply.md), and [`@plugin`](../at-rules/plugin.md) rules.
31
+ Keep your [`@theme`](https://stillwind.dev/docs/at-rules/theme), [`@utility`](https://stillwind.dev/docs/at-rules/utility),
32
+ [`@custom-variant`](https://stillwind.dev/docs/at-rules/custom-variant), [`@variant`](https://stillwind.dev/docs/at-rules/variant),
33
+ [`@apply`](https://stillwind.dev/docs/at-rules/apply), and [`@plugin`](https://stillwind.dev/docs/at-rules/plugin) rules.
34
34
 
35
35
  Replace the Tailwind build plugin, such as `@tailwindcss/vite`, with the
36
36
  Stillwind integration. Then create `stillwind.config.ts`, as described in
37
- [Getting started](../index.md#configure-the-project), and set up your framework, as
38
- described in [Framework integrations](../integrations.md).
37
+ [Getting started](https://stillwind.dev/docs#configure-the-project), and set up your framework, as
38
+ described in [Framework integrations](https://stillwind.dev/docs/integrations).
39
39
 
40
40
  With Tailwind, your code or framework configuration imports the stylesheet, for
41
41
  example with `import "./app.css"` or in Starlight's `customCss`. With Vite and the
@@ -65,7 +65,7 @@ write a one-off codemod for your repository that converts them in one pass.
65
65
 
66
66
  ## Replace class helpers
67
67
 
68
- [`style()`](../macros/style.md) and [`style.cva()`](../macros/cva.md) replace
68
+ [`style()`](https://stillwind.dev/docs/macros/style) and [`style.cva()`](https://stillwind.dev/docs/macros/cva) replace
69
69
  the libraries that Tailwind projects use to build class strings:
70
70
 
71
71
  | Library | Stillwind |
@@ -99,8 +99,8 @@ as `"hover:"`. Rewrite each entry as `loading && "opacity-60"`.
99
99
  Remove `twMerge()` calls. Store the base style and pass it to another `style()`
100
100
  call. The compiler emits the new utilities after the base's CSS. They override
101
101
  competing declarations when the other cascade criteria, such as specificity
102
- and importance, are equal. See [Override a style](style.md#override-a-style)
103
- and [CSS ordering](../concepts/css-ordering.md).
102
+ and importance, are equal. See [Override a style](https://stillwind.dev/docs/guides/style#override-a-style)
103
+ and [CSS ordering](https://stillwind.dev/docs/concepts/css-ordering).
104
104
 
105
105
  ### cva
106
106
 
@@ -130,11 +130,11 @@ export function Button({ tone }: VariantProps<typeof button>) {
130
130
  `variants`, `defaultVariants`, and `compoundVariants` work as in
131
131
  class-variance-authority. Write each option value as a plain utility string,
132
132
  without `&&` or a ternary. The props that the factory returns cannot be passed
133
- to `style()` as a base. The [`style.cva()` reference](../macros/cva.md) lists
133
+ to `style()` as a base. The [`style.cva()` reference](https://stillwind.dev/docs/macros/cva) lists
134
134
  the other differences.
135
135
 
136
136
  For new components, consider state variants and `data-*` attributes instead of
137
- options. See [Reusable styles](reusable-styles.md).
137
+ options. See [Reusable styles](https://stillwind.dev/docs/guides/reusable-styles).
138
138
 
139
139
  ## Move configuration
140
140
 
@@ -171,17 +171,17 @@ in your own code.
171
171
 
172
172
  Stillwind ignores `@config`, `@source`, `@reference`, and import options in the
173
173
  stylesheet, and the CLI reports them with
174
- [ignored-tailwind-feature](../lints/ignored-tailwind-feature.md). Remove them after
174
+ [ignored-tailwind-feature](https://stillwind.dev/docs/lints/ignored-tailwind-feature). Remove them after
175
175
  you move their settings. The same rule reports a v3 path in `theme()`, such as
176
176
  `theme(colors.red.500)`. Use `--theme(--color-red-500)` instead.
177
177
 
178
178
  Keep your `@plugin` rules and the `@import` rules of CSS packages.
179
- [Tailwind CSS compatibility](tailwind-compatibility.md#plugins-and-css-packages)
179
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility#plugins-and-css-packages)
180
180
  lists the packages that the test suite covers.
181
181
 
182
182
  ## Check the migrated code
183
183
 
184
- Run the [CLI checks](lint-adoption.md) over the migrated files. They
184
+ Run the [CLI checks](https://stillwind.dev/docs/guides/lint-adoption) over the migrated files. They
185
185
  report utilities that Stillwind cannot resolve and Tailwind features that it
186
186
  ignores. Then test the production build, and compare your pages with the old
187
187
  version as described in the next section.
@@ -194,7 +194,7 @@ it. A diff of the generated CSS or HTML does not help either, because Stillwind
194
194
  renames the classes and reorders the rules. Instead, compare the computed styles
195
195
  of the migrated components in a build from before the migration and a build from
196
196
  after it. The test suite checks plugins in the same way, as
197
- [Tailwind CSS compatibility](tailwind-compatibility.md#how-stillwind-checks-compatibility)
197
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility#how-stillwind-checks-compatibility)
198
198
  describes.
199
199
 
200
200
  1. Build the project before and after the migration, and serve both builds.