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: "See what Stillwind generates at build time, what JavaScript remain
5
5
 
6
6
  # How styles compile
7
7
 
8
- Stillwind compiles [`style()`](../guides/style.md) calls when your bundler builds the application.
8
+ Stillwind compiles [`style()`](https://stillwind.dev/docs/guides/style) calls when your bundler builds the application.
9
9
  This page shows what the compiler generates, what JavaScript remains at
10
10
  runtime, and how the CSS reaches the page.
11
11
 
@@ -24,27 +24,27 @@ export const props = style("rounded-md p-4 text-blue-600 hover:text-blue-800 md:
24
24
  ### Compiled code
25
25
 
26
26
  ```ts
27
- export const props = {className:"sw_hk649"};
27
+ export const props = {className:"sw_krbb8"};
28
28
  ```
29
29
 
30
30
  ### Generated CSS
31
31
 
32
32
 
33
33
  ```css
34
- .sw_hk649 {
34
+ .sw_krbb8 {
35
35
  padding: calc(var(--spacing) * 4);
36
36
  color: var(--color-blue-600);
37
37
  border-radius: var(--radius-md);
38
38
  }
39
39
 
40
40
  @media (hover: hover) {
41
- .sw_hk649:hover {
41
+ .sw_krbb8:hover {
42
42
  color: var(--color-blue-800);
43
43
  }
44
44
  }
45
45
 
46
46
  @media (width >= 48rem) {
47
- .sw_hk649 {
47
+ .sw_krbb8 {
48
48
  padding: calc(var(--spacing) * 6);
49
49
  }
50
50
  }
@@ -71,22 +71,22 @@ export const props = style("p-4", active && "bg-blue-500", { "--progress": progr
71
71
  ### Compiled code
72
72
 
73
73
  ```ts
74
- import { stillwindClsx, stillwindCssValue } from "stillwind/runtime/class-name-object";
74
+ import { stillwindClsx, stillwindCssValue } from "stillwind/runtime";
75
75
 
76
76
  declare const active: boolean;
77
77
  declare const progress: number;
78
- export const props = {className:stillwindClsx("sw_zwy1n",(active) && ("sw_h7hj9")),style:{"--progress":stillwindCssValue(progress)}};
78
+ export const props = {className:stillwindClsx("sw_gmm8m",(active) && ("sw_661jk")),style:{"--progress":stillwindCssValue(progress)}};
79
79
  ```
80
80
 
81
81
  ### Generated CSS
82
82
 
83
83
 
84
84
  ```css
85
- .sw_zwy1n {
85
+ .sw_gmm8m {
86
86
  padding: calc(var(--spacing) * 4);
87
87
  }
88
88
 
89
- .sw_h7hj9 {
89
+ .sw_661jk {
90
90
  background-color: var(--color-blue-500);
91
91
  }
92
92
  ```
@@ -102,13 +102,13 @@ chooses class names and sets property values.
102
102
  | Static utilities and variants | A class name |
103
103
  | A condition, such as `active && "..."` | A helper that joins class names |
104
104
  | A runtime custom property | An inline `style` value |
105
- | [`style.cva()`](../macros/cva.md) | A factory that selects compiled class names |
106
- | [`style.media()`](../macros/media.md) | A string with the media query |
107
- | [`style.css()`](../macros/css.md) | A CSS string that you place yourself |
105
+ | [`style.cva()`](https://stillwind.dev/docs/macros/cva) | A factory that selects compiled class names |
106
+ | [`style.media()`](https://stillwind.dev/docs/macros/media) | A string with the media query |
107
+ | [`style.css()`](https://stillwind.dev/docs/macros/css) | A CSS string that you place yourself |
108
108
 
109
109
  Development builds import checked versions of the helpers from
110
- `stillwind/runtime/class-name-object-development`. These versions report invalid values
111
- while you develop. Production builds use the unchecked helpers.
110
+ `stillwind/runtime/development`. These versions report invalid values while you
111
+ develop. Production builds import the unchecked helpers from `stillwind/runtime`.
112
112
 
113
113
  ## The generated stylesheet
114
114
 
@@ -118,7 +118,7 @@ compiles. Utilities that no compiled call uses produce no CSS.
118
118
  Stillwind fixes the precedence of its generated rules at build time. Class-name
119
119
  order and module-loading order do not change it. Production optimizations can
120
120
  combine or move rules without changing the cascade. See
121
- [CSS ordering](css-ordering.md) for base styles, conditions, and variants.
121
+ [CSS ordering](https://stillwind.dev/docs/concepts/css-ordering) for base styles, conditions, and variants.
122
122
 
123
123
  ## Delivering CSS to the page
124
124
 
@@ -126,7 +126,7 @@ The build integration adds the generated CSS to your application. For Vite and
126
126
  the frameworks built on it, the build writes one stylesheet by default.
127
127
  The Astro integration also adds the styles to server-rendered pages and islands.
128
128
  SvelteKit needs a server hook to add them to server-rendered pages in development.
129
- See [Framework integrations](../integrations.md) for the setup of each framework.
129
+ See [Framework integrations](https://stillwind.dev/docs/integrations) for the setup of each framework.
130
130
 
131
131
  `style.css()` returns its CSS as a string instead of adding it to this stylesheet.
132
- To add the styles of a module to a shadow root, see [Web Components](../guides/web-components.md).
132
+ To add the styles of a module to a shadow root, see [Web Components](https://stillwind.dev/docs/guides/web-components).
@@ -23,7 +23,7 @@ of the default stylesheet or add an optional file.
23
23
  | `stillwind/preflight.css` | The reset of default element styles |
24
24
  | `stillwind/utilities.css` | The slot where compiled utility rules go |
25
25
  | `stillwind/builtins.css` | Built-in utilities and variants |
26
- | `stillwind/templates.css` | Output templates of [`style.css()`](../macros/css.md) |
26
+ | `stillwind/templates.css` | Output templates of [`style.css()`](https://stillwind.dev/docs/macros/css) |
27
27
  | `stillwind/logical/*.css` | Optional: logical properties for built-in axis utilities |
28
28
 
29
29
  ## Import the files separately
@@ -42,7 +42,7 @@ of the default stylesheet or add an optional file.
42
42
 
43
43
  Write the `@layer` statement and keep the `layer()` assignments when you remove a
44
44
  line. They decide how these files compete with the rest of your CSS. For example,
45
- [Migrating from CSS](../guides/migrating-from-css.md) leaves out `preflight.css`
45
+ [Migrating from CSS](https://stillwind.dev/docs/guides/migrating-from-css) leaves out `preflight.css`
46
46
  until the old styles are gone.
47
47
 
48
48
  ## Reset only part of the page
@@ -72,7 +72,7 @@ Import only plain CSS in this way, such as `preflight.css`. Keep `stillwind`,
72
72
  `theme.css`, `utilities.css`, `builtins.css`, and other files with Stillwind
73
73
  definitions or `@layer` statements at the top level of the stylesheet. The
74
74
  compiler leaves out a nested import of such a file and reports it with
75
- [invalid-css-import](../lints/invalid-css-import.md).
75
+ [invalid-css-import](https://stillwind.dev/docs/lints/invalid-css-import).
76
76
 
77
77
  ## Optional stylesheets
78
78
 
@@ -108,7 +108,7 @@ changes only its own utilities. Import the files that you need:
108
108
  In a horizontal writing mode, the result is the same. In a vertical writing mode,
109
109
  the utilities change axes, so `overflow-x-auto` scrolls vertically.
110
110
 
111
- [prefer-logical-properties](../lints/prefer-logical-properties.md) does not report
111
+ [prefer-logical-properties](https://stillwind.dev/docs/lints/prefer-logical-properties) does not report
112
112
  the `overflow`, `overscroll`, and `divide` utilities after you import their files.
113
113
  It still reports arbitrary properties such as `[overflow-x:auto]`, because these
114
114
  files do not change them. Their logical forms, such as `[overflow-inline:auto]`,
@@ -78,10 +78,10 @@ settings. Stillwind calls it once and uses the result.
78
78
 
79
79
  ### Required
80
80
 
81
- | Field | Value |
82
- | ------- | ---------------------------------------------------------------------------------- |
83
- | `css` | Path to the stylesheet that defines the theme, utilities, and variants |
84
- | `files` | Globs for the files that the CLI and the editor check; the build does not use them |
81
+ | Field | Value |
82
+ | ------- | -------------------------------------------------------------------------------------------- |
83
+ | `css` | Path to the stylesheet that defines the theme, utilities, and variants |
84
+ | `files` | Globs for the files that the CLI and the editor check, and that Vite builds type-check first |
85
85
 
86
86
  ### Scope
87
87
 
@@ -108,10 +108,10 @@ Paths in `css`, `files`, `exclude`, and `tsconfig` are relative to `root`.
108
108
  | `target` | Minimum browser versions, such as `["chrome111", "safari17"]`; removes fallbacks they do not need |
109
109
  | `utilityOrder` | `"authored"` orders utilities as your stylesheet defines them; `"tailwind"` orders them as Tailwind does |
110
110
  | `important` | `true` makes every utility `!important`; a selector nests utilities under that selector |
111
- | `tailwind` | A Tailwind configuration object; see [Migrating from Tailwind CSS](guides/migrating-from-tailwind.md#move-configuration) |
112
- | `plugins` | Plugin objects for the [`@plugin`](at-rules/plugin.md) rules of your stylesheet |
111
+ | `tailwind` | A Tailwind configuration object; see [Migrating from Tailwind CSS](https://stillwind.dev/docs/guides/migrating-from-tailwind#move-configuration) |
112
+ | `plugins` | Plugin objects for the [`@plugin`](https://stillwind.dev/docs/at-rules/plugin) rules of your stylesheet |
113
113
  | `rootFontSize` | Pixels per `rem`, used by lint fixes and editor previews; defaults to 16 |
114
- | `useCssIf` | `true` lets [runtime conditions](guides/runtime-conditions.md) use the native CSS `if()` function; defaults to `false` |
114
+ | `useCssIf` | `true` lets [runtime conditions](https://stillwind.dev/docs/guides/runtime-conditions) use the native CSS `if()` function; defaults to `false` |
115
115
 
116
116
  ### Generated names
117
117
 
@@ -129,7 +129,7 @@ Paths in `css`, `files`, `exclude`, and `tsconfig` are relative to `root`.
129
129
 
130
130
  | Field | Value |
131
131
  | --------- | --------------------------------------------------------------------------------------------------------------------- |
132
- | `preview` | Which comments [CSS previews](editors.md#settings) show: `themeValues`, `pixelEquivalents`, and `colorEquivalents` |
132
+ | `preview` | Which comments [CSS previews](https://stillwind.dev/docs/editors#settings) show: `themeValues`, `pixelEquivalents`, and `colorEquivalents` |
133
133
 
134
134
  The [shared configuration API](https://github.com/SegaraRai/stillwind/blob/main/packages/config/src/compiler.ts)
135
135
  describes the remaining fields for custom integrations, such as `sources`,
@@ -138,7 +138,7 @@ describes the remaining fields for custom integrations, such as `sources`,
138
138
  ## Lint
139
139
 
140
140
  The `lint` field of a project selects the rules that the CLI and the editor
141
- report. [Checks in the editor and CI](guides/lint-adoption.md) explains
141
+ report. [Checks in the editor and CI](https://stillwind.dev/docs/guides/lint-adoption) explains
142
142
  where the rules run.
143
143
 
144
144
  ### Presets and severities
@@ -163,13 +163,13 @@ export default defineConfig({
163
163
  });
164
164
  ```
165
165
 
166
- | Preset | Contents |
167
- | ------------- | ---------------------------------------------------------------------- |
168
- | `recommended` | Invalid input, conflicting styles, and other likely mistakes |
169
- | `strict` | Every `recommended` rule as an error, and unused suppression comments |
170
- | `stylistic` | Preferred spellings and utility sorting; combine it with `recommended` |
166
+ | Preset | Contents |
167
+ | ------------- | -------------------------------------------------------------------------------------------------------------- |
168
+ | `recommended` | Invalid input, conflicting styles, and other likely mistakes |
169
+ | `strict` | Every `recommended` rule as an error, and unused suppression comments |
170
+ | `stylistic` | Preferred spellings, utility sorting, and conflict checks in every writing mode; combine it with `recommended` |
171
171
 
172
- The [lint rule reference](lints/index.md) shows the severity of each rule in
172
+ The [lint rule reference](https://stillwind.dev/docs/lints) shows the severity of each rule in
173
173
  `recommended`. Each rule page shows its severity in every preset.
174
174
 
175
175
  Each rule has one of three severities:
@@ -194,7 +194,7 @@ arrays replace earlier arrays. A severity alone, such as `"deny"`, keeps the
194
194
  rule's options from the presets.
195
195
 
196
196
  An unknown rule name is a configuration error. Turning off rules does not turn
197
- off [compiler errors](errors/index.md).
197
+ off [compiler errors](https://stillwind.dev/docs/errors).
198
198
 
199
199
  ### Rule options
200
200
 
@@ -222,24 +222,24 @@ const rules = {
222
222
  };
223
223
  ```
224
224
 
225
- | Rule | Options |
226
- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
227
- | `conflicting-utilities` | `allowShorthandOverrides`: allows the supported overrides between shorthand and longhand utilities; defaults to `false` |
228
- | `invalid-marker-use` | `ignoredClasses`: marker class names that the rule ignores |
229
- | `no-arbitrary-spacing` | `properties`: properties to check in addition to margin, padding, and gap |
230
- | `no-restricted-utilities` | `utilities`: utility patterns, each with an optional message |
231
- | `no-restricted-declarations` | `rules`: patterns for properties and values; every matching entry applies |
232
- | `no-restricted-length-units` | `rules`: property patterns and the units to `disallow`; the last matching entry applies |
233
- | `no-restricted-theme-tokens` | `tokens`: patterns for theme custom properties; required when the rule is on |
234
- | `prefer-canonical-utilities` | `pxToRem` and `collapse` default to `true`; `logicalToPhysical` defaults to `false`; `preserveSpecificity` defaults to `true`. See the [rule options](lints/prefer-canonical-utilities.md#options). |
235
- | `prefer-variant-directive` | `pxToRem`: treats `px` and `rem` in media queries as equal at 16px per `rem`; defaults to `false` |
225
+ | Rule | Options |
226
+ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
227
+ | `conflicting-utilities` | `allowShorthandOverrides`: allows the supported overrides between shorthand and longhand utilities; defaults to `false`. `writingModes`: writing modes in which physical and logical utilities are compared; defaults to `["horizontal-tb"]` |
228
+ | `invalid-marker-use` | `ignoredClasses`: marker class names that the rule ignores |
229
+ | `no-arbitrary-spacing` | `properties`: properties to check in addition to margin, padding, and gap |
230
+ | `no-restricted-utilities` | `utilities`: utility patterns, each with an optional message |
231
+ | `no-restricted-declarations` | `rules`: patterns for properties and values; every matching entry applies |
232
+ | `no-restricted-length-units` | `rules`: property patterns and the units to `disallow`; the last matching entry applies |
233
+ | `no-restricted-theme-tokens` | `tokens`: patterns for theme custom properties; required when the rule is on |
234
+ | `prefer-canonical-utilities` | `pxToRem` and `collapse` default to `true`; `logicalToPhysical` defaults to `false`; `preserveSpecificity` defaults to `true`. See the [rule options](https://stillwind.dev/docs/lints/prefer-canonical-utilities#options). |
235
+ | `prefer-variant-directive` | `pxToRem`: treats `px` and `rem` in media queries as equal at 16px per `rem`; defaults to `false` |
236
236
 
237
237
  Patterns accept `*` for any text and `?` for one character. Utility and theme
238
238
  token patterns are case-sensitive. Property and value patterns are not.
239
239
 
240
240
  ### Definitions of packages and plugins
241
241
 
242
- [incompatible-property-value](lints/incompatible-property-value.md) checks
242
+ [incompatible-property-value](https://stillwind.dev/docs/lints/incompatible-property-value) checks
243
243
  the declarations that utility definitions write. By default, it checks only your
244
244
  own definitions: your stylesheet, the stylesheets that it imports by a relative
245
245
  or absolute path, and the plugin files that it loads by path. Two project-level
@@ -285,26 +285,26 @@ export const badge = style("bg-[#123456]");
285
285
  In stylesheets, write the same text in `/* ... */` comments.
286
286
 
287
287
  A comment hides the finding only. A misspelled utility still produces no CSS.
288
- [invalid-lint-suppression](lints/invalid-lint-suppression.md) reports a
288
+ [invalid-lint-suppression](https://stillwind.dev/docs/lints/invalid-lint-suppression) reports a
289
289
  malformed comment, and
290
- [unused-lint-suppression](lints/unused-lint-suppression.md) reports a
290
+ [unused-lint-suppression](https://stillwind.dev/docs/lints/unused-lint-suppression) reports a
291
291
  comment that suppresses nothing.
292
292
 
293
293
  ## Sorting
294
294
 
295
295
  The `sort` field controls where `stillwind fmt`, the editor, and the
296
- [Prettier plugin](formatters.md#prettier) sort utilities:
296
+ [Prettier plugin](https://stillwind.dev/docs/formatters#prettier) sort utilities:
297
297
 
298
298
  | Option | Sorts | Default |
299
299
  | ----------------- | ----------------------------------------------------------- | ------- |
300
300
  | `stringLiterals` | Utilities inside each string | `true` |
301
301
  | `arrays` | Arguments, array items, and object entries by kind | `true` |
302
- | `applyUtilities` | Utilities inside each [`@apply`](at-rules/apply.md) rule | `true` |
302
+ | `applyUtilities` | Utilities inside each [`@apply`](https://stillwind.dev/docs/at-rules/apply) rule | `true` |
303
303
  | `applyStatements` | Adjacent `@apply` rules | `false` |
304
- | `variantBlocks` | Adjacent [`@variant`](at-rules/variant.md) blocks | `false` |
304
+ | `variantBlocks` | Adjacent [`@variant`](https://stillwind.dev/docs/at-rules/variant) blocks | `false` |
305
305
 
306
306
  `sort: false` disables sorting, including `stillwind fmt` and the
307
- [prefer-sorted-utilities](lints/prefer-sorted-utilities.md) rule. Turning off
307
+ [prefer-sorted-utilities](https://stillwind.dev/docs/lints/prefer-sorted-utilities) rule. Turning off
308
308
  only that rule keeps `stillwind fmt` working.
309
309
 
310
310
  The CLI checks the files that `files` selects. File patterns on the command line
package/docs/editors.md CHANGED
@@ -8,7 +8,8 @@ description: "Install the Stillwind extension, sort and fix on save, and connect
8
8
  The Stillwind language server shows diagnostics, generated CSS, and completion
9
9
  from the active design system while you edit. It reads the same
10
10
  `stillwind.config.ts` as the CLI and the build, and it checks unsaved files too.
11
- Create that file with [Getting started](index.md) first.
11
+ Create that file with [Getting started](https://stillwind.dev/docs) first. The code of each diagnostic
12
+ links to the page on this website that explains the rule or error.
12
13
 
13
14
  ## VS Code
14
15
 
@@ -22,9 +23,9 @@ configuration as JavaScript.
22
23
 
23
24
  ### Features
24
25
 
25
- - Hover over utilities, [`style()`](guides/style.md) calls, or bound variables to see the generated CSS.
26
+ - Hover over utilities, [`style()`](https://stillwind.dev/docs/guides/style) calls, or bound variables to see the generated CSS.
26
27
  - Complete utilities, variants, and theme values.
27
- - Complete quoted [`@plugin`](at-rules/plugin.md) paths, and follow links to their modules.
28
+ - Complete quoted [`@plugin`](https://stillwind.dev/docs/at-rules/plugin) paths, and follow links to their modules.
28
29
  - See colors, and open color pickers in utilities and theme references.
29
30
  - Apply compiler Quick Fixes.
30
31
  - Run **Stillwind: Sort Utilities**.
@@ -36,7 +37,7 @@ not report these at-rules as unknown.
36
37
 
37
38
  Desktop VS Code runs the `@stillwind/cli` version that the workspace installs, so
38
39
  editor diagnostics match the compiler of that version. Install
39
- [the CLI](cli.md) in the project to get this match.
40
+ [the CLI](https://stillwind.dev/docs/cli) in the project to get this match.
40
41
 
41
42
  The extension uses its bundled language server when the workspace has no CLI, or
42
43
  when the CLI fails to start. The **Stillwind** output channel shows which server
@@ -47,7 +48,7 @@ is running.
47
48
  | Setting | Value |
48
49
  | ----------------------------------------- | ---------------------------------------------------------------------------------------------- |
49
50
  | `stillwind.configFile` | A configuration path relative to the workspace root; empty searches for `stillwind.config.*` |
50
- | `stillwind.completion.registryDirectives` | `true` suggests [registry directives](at-rules/registry-directives.md) in utility libraries |
51
+ | `stillwind.completion.registryDirectives` | `true` suggests [registry directives](https://stillwind.dev/docs/at-rules/registry-directives) in utility libraries |
51
52
 
52
53
  Run **Stillwind: Restart Language Server** to reload configuration and dependencies.
53
54
 
@@ -66,7 +67,7 @@ off an option.
66
67
 
67
68
  ### Sort and fix on save
68
69
 
69
- Use a [document formatter](formatters.md) for layout and whitespace, and add
70
+ Use a [document formatter](https://stillwind.dev/docs/formatters) for layout and whitespace, and add
70
71
  Stillwind's Code Actions:
71
72
 
72
73
  ```json
@@ -84,7 +85,7 @@ comments. `source.sort.stillwind` sorts whatever the lint severity is.
84
85
 
85
86
  `lint: false` in the project disables lint rules and fixes. `sort: false` also
86
87
  disables explicit sorting commands. The
87
- [`sort` field](configuration.md#sorting) selects what the editor sorts.
88
+ [`sort` field](https://stillwind.dev/docs/configuration#sorting) selects what the editor sorts.
88
89
 
89
90
  ### Web VS Code
90
91
 
@@ -100,7 +101,7 @@ cross-origin isolation. These limits apply:
100
101
  ## Other editors
101
102
 
102
103
  An editor with a Language Server Protocol client can start the language server from
103
- the CLI. Install [the CLI](cli.md) in the project, and run this command in the
104
+ the CLI. Install [the CLI](https://stillwind.dev/docs/cli) in the project, and run this command in the
104
105
  workspace:
105
106
 
106
107
  ```sh
@@ -66,4 +66,4 @@ export default defineConfig({
66
66
  - Give the rules that need a list, such as `no-restricted-theme-tokens`, at least
67
67
  one entry.
68
68
 
69
- Each [lint rule page](../lints/index.md) describes its options.
69
+ Each [lint rule page](https://stillwind.dev/docs/lints) describes its options.
@@ -31,4 +31,4 @@ export const props = style("p-4");
31
31
  right language, such as TypeScript with JSX for a `.tsx` file.
32
32
 
33
33
  Errors in code that a Vue, Svelte, or Astro converter generated are reported as
34
- [SW31004](SW31004.md) instead.
34
+ [SW31004](https://stillwind.dev/docs/errors/SW31004) instead.
@@ -33,4 +33,4 @@ Fix the syntax at the location in the message, as in the example, where the
33
33
  `<button>` element was not closed.
34
34
 
35
35
  If the component is valid but its converted script is not, the error is
36
- [SW31004](SW31004.md) instead.
36
+ [SW31004](https://stillwind.dev/docs/errors/SW31004) instead.
@@ -6,7 +6,7 @@ description: "A ref method, ref condition, or animation call is stored or passed
6
6
  # SW10004: Unconsumed macro use
7
7
 
8
8
  Some calls have no value of their own. The compiler turns them into CSS at the
9
- place where [`style()`](../macros/style.md) uses them. This error occurs when such a call is stored in
9
+ place where [`style()`](https://stillwind.dev/docs/macros/style) uses them. This error occurs when such a call is stored in
10
10
  a variable or passed to another function instead.
11
11
 
12
12
  ## Reported
@@ -31,10 +31,11 @@ Write the call directly where `style()` uses it:
31
31
 
32
32
  | Call | Where to write it |
33
33
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
34
- | [`card.asContainer()`](../macros/ref/as-container.md), [`card.asAnchor()`](../macros/ref/as-anchor.md), [`card.positionAnchor()`](../macros/ref/position-anchor.md), [`style.anchorScope()`](../macros/anchor-scope.md) | An argument of `style()` |
35
- | An animation such as [`fade("duration-300")`](../macros/keyframes.md#apply-the-animation), and [`transition.for(key)`](../macros/view-transition.md) | An argument of `style()` |
36
- | [`card()`, `card("hover")`](../macros/ref/condition.md), [`.in()`](../macros/ref/in.md), and [`card.at()`](../macros/ref/at.md) | A computed key, or a utility template |
34
+ | [`card.asContainer()`](https://stillwind.dev/docs/macros/ref/as-container), [`card.asAnchor()`](https://stillwind.dev/docs/macros/ref/as-anchor), [`card.positionAnchor()`](https://stillwind.dev/docs/macros/ref/position-anchor), [`style.anchorScope()`](https://stillwind.dev/docs/macros/anchor-scope) | An argument of `style()` |
35
+ | An animation such as [`fade("duration-300")`](https://stillwind.dev/docs/macros/keyframes#apply-the-animation), and [`transition.for(key)`](https://stillwind.dev/docs/macros/view-transition) | An argument of `style()` |
36
+ | [`card()`, `card("hover")`](https://stillwind.dev/docs/macros/ref/condition), [`.in()`](https://stillwind.dev/docs/macros/ref/in), and [`card.at()`](https://stillwind.dev/docs/macros/ref/at) | A computed key, or a utility template |
37
37
 
38
38
  You can still store and pass the definitions themselves, such as the result of
39
- [`style.ref()`](../macros/ref/index.md) or [`style.keyframes()`](../macros/keyframes.md),
40
- and the result of `style()`.
39
+ [`style.ref()`](https://stillwind.dev/docs/macros/ref) or [`style.keyframes()`](https://stillwind.dev/docs/macros/keyframes),
40
+ and the result of `style()`. To reuse a ref condition, store it with
41
+ [`style.when()`](https://stillwind.dev/docs/macros/when).
@@ -5,7 +5,7 @@ description: "The style function is used as a value instead of being called."
5
5
 
6
6
  # SW10005: Untransformed macro reference
7
7
 
8
- This error occurs when the code uses [`style`](../macros/style.md) or another
8
+ This error occurs when the code uses [`style`](https://stillwind.dev/docs/macros/style) or another
9
9
  macro as a value, such as by storing it in a variable or passing it to a function.
10
10
  The compiler replaces macro calls at build time and removes the import, so the
11
11
  function does not exist at runtime.
@@ -33,5 +33,5 @@ const second = style(base);
33
33
  - If only one style extends the other, keep that dependency and remove the one
34
34
  in the opposite direction.
35
35
 
36
- A cycle between whole modules is reported as [SW11002](SW11002.md)
36
+ A cycle between whole modules is reported as [SW11002](https://stillwind.dev/docs/errors/SW11002)
37
37
  instead.
@@ -17,4 +17,4 @@ continue without it.
17
17
  the same build together.
18
18
 
19
19
  A base whose type does not show its source is reported by
20
- [unverified-style-base](../lints/unverified-style-base.md).
20
+ [unverified-style-base](https://stillwind.dev/docs/lints/unverified-style-base).
@@ -18,8 +18,8 @@ current = style.ref("panel");
18
18
  style({ [current("hover")]: "underline" });
19
19
  ```
20
20
 
21
- > SW12001: incompatible declaration identities: TS2322: Type 'StyleRef<string>' is not assignable to type 'StyleRef<"stillwind-identity/v1:eyJraW5kIjoicmVmIiwibW9kdWxlSWQiOiJSZWZlcmVuY2UudHN4Iiwic3RhcnQiOjQ2LCJlbmQiOjUzLCJiaW5kaW5nTmFtZSI6ImN1cnJlbnQifQ">'.
22
- > Type 'string' is not assignable to type '"stillwind-identity/v1:eyJraW5kIjoicmVmIiwibW9kdWxlSWQiOiJSZWZlcmVuY2UudHN4Iiwic3RhcnQiOjQ2LCJlbmQiOjUzLCJiaW5kaW5nTmFtZSI6ImN1cnJlbnQifQ"'. Preserve declaration candidates with an explicit union or a generic parameter.
21
+ > SW12001: incompatible declaration identities: TS2322: Type 'StyleRef<string>' is not assignable to type 'StyleRef<"stillwind-identity/v2:eyJraW5kIjoicmVmIiwibW9kdWxlSWQiOiJSZWZlcmVuY2UudHN4IiwicGF0aCI6W10sIm9yZGluYWwiOjAsImJpbmRpbmdOYW1lIjoiY3VycmVudCJ9">'.
22
+ > Type 'string' is not assignable to type '"stillwind-identity/v2:eyJraW5kIjoicmVmIiwibW9kdWxlSWQiOiJSZWZlcmVuY2UudHN4IiwicGF0aCI6W10sIm9yZGluYWwiOjAsImJpbmRpbmdOYW1lIjoiY3VycmVudCJ9"'. Preserve declaration candidates with an explicit union or a generic parameter.
23
23
  >
24
24
  > Source format: Jsx
25
25
 
@@ -39,4 +39,4 @@ style({ [current("hover")]: "underline" });
39
39
  - Make the source modules of the definitions reachable through imports.
40
40
 
41
41
  If the integration did not provide type information at all, the error is
42
- [SW30001](SW30001.md) instead.
42
+ [SW30001](https://stillwind.dev/docs/errors/SW30001) instead.
@@ -32,4 +32,4 @@ Fix the syntax that the message points to. In the example, the declaration needs
32
32
  a colon after `color`.
33
33
 
34
34
  A syntax error that the compiler finds while it collects custom properties is
35
- reported as [SW14006](SW14006.md) instead.
35
+ reported as [SW14006](https://stillwind.dev/docs/errors/SW14006) instead.
@@ -14,5 +14,5 @@ byte offset.
14
14
  Check the delimiters around that position and any strings or comments inside the
15
15
  block. If the stylesheet is valid, report the source and the Stillwind version.
16
16
 
17
- An unclosed block normally produces [SW13002](SW13002.md). Other CSS
18
- syntax errors can produce [SW13001](SW13001.md).
17
+ An unclosed block normally produces [SW13002](https://stillwind.dev/docs/errors/SW13002). Other CSS
18
+ syntax errors can produce [SW13001](https://stillwind.dev/docs/errors/SW13001).
@@ -41,4 +41,4 @@ style("p-4");
41
41
  - Or write `@stillwind-slot utilities;` where the utilities should go.
42
42
  - If you do not need a custom selection, import `stillwind` instead.
43
43
 
44
- Other slots that a feature needs are reported as [SW14002](SW14002.md).
44
+ Other slots that a feature needs are reported as [SW14002](https://stillwind.dev/docs/errors/SW14002).
@@ -6,7 +6,7 @@ description: "An @stillwind-require-properties directive in your stylesheet has
6
6
  # SW14003: Malformed property requirement
7
7
 
8
8
  This error occurs when an
9
- [`@stillwind-require-properties`](../at-rules/stillwind-require-properties.md)
9
+ [`@stillwind-require-properties`](https://stillwind.dev/docs/at-rules/stillwind-require-properties)
10
10
  directive in your stylesheet has invalid syntax, such as an incomplete custom
11
11
  property name. The directive lists the registered custom properties that a
12
12
  utility needs.
@@ -20,7 +20,7 @@ utility needs.
20
20
  }
21
21
  ```
22
22
 
23
- > SW14003: invalid Stillwind property requirement at byte 9660
23
+ > SW14003: invalid Stillwind property requirement at byte 9659
24
24
 
25
25
  ## Fixed
26
26
 
@@ -36,5 +36,5 @@ utility needs.
36
36
  Write each name in full, including the leading `--`, as in the example.
37
37
 
38
38
  A valid name that no registration provides is reported as
39
- [SW14005](SW14005.md). An invalid directive inside a utility from a
40
- plugin is reported as [SW14004](SW14004.md).
39
+ [SW14005](https://stillwind.dev/docs/errors/SW14005). An invalid directive inside a utility from a
40
+ plugin is reported as [SW14004](https://stillwind.dev/docs/errors/SW14004).
@@ -6,7 +6,7 @@ description: "A utility that you use has an @stillwind-require-properties direct
6
6
  # SW14004: Malformed utility property requirement
7
7
 
8
8
  This error occurs when you use a utility whose definition contains an invalid
9
- [`@stillwind-require-properties`](../at-rules/stillwind-require-properties.md)
9
+ [`@stillwind-require-properties`](https://stillwind.dev/docs/at-rules/stillwind-require-properties)
10
10
  directive. The message names the utility and the position in its definition.
11
11
  The definition can be in your stylesheet or in a plugin.
12
12
 
@@ -45,4 +45,4 @@ style("spin-x");
45
45
  - If the definition comes from a plugin, report the utility and the plugin
46
46
  version to the plugin's maintainer. Turning off a lint rule does not help.
47
47
 
48
- [SW14003](SW14003.md) covers the same mistake in an ordinary CSS rule.
48
+ [SW14003](https://stillwind.dev/docs/errors/SW14003) covers the same mistake in an ordinary CSS rule.
@@ -6,7 +6,7 @@ description: "A utility requires a custom property that no @stillwind-property r
6
6
  # SW14005: Required property is unregistered
7
7
 
8
8
  This error occurs when a utility requires a custom property, but no
9
- [`@stillwind-property`](../at-rules/stillwind-property.md) in the loaded
9
+ [`@stillwind-property`](https://stillwind.dev/docs/at-rules/stillwind-property) in the loaded
10
10
  stylesheets registers it. The registration provides the initial value and
11
11
  other support CSS. Assigning the property in a rule does not register it.
12
12
 
@@ -16,4 +16,4 @@ it. If the authored CSS is valid, report a small reproduction and the Stillwind
16
16
  and plugin versions.
17
17
 
18
18
  Syntax errors found while the stylesheet loads usually produce
19
- [SW13001](SW13001.md) or [SW13002](SW13002.md) instead.
19
+ [SW13001](https://stillwind.dev/docs/errors/SW13001) or [SW13002](https://stillwind.dev/docs/errors/SW13002) instead.
@@ -16,7 +16,7 @@ such as no token name.
16
16
  }
17
17
  ```
18
18
 
19
- > SW14007: invalid --theme() reference at value byte 9667: invalid --theme() property `` at byte 0
19
+ > SW14007: invalid --theme() reference at value byte 9666: invalid --theme() property `` at byte 0
20
20
 
21
21
  ## Fixed
22
22
 
@@ -32,4 +32,4 @@ Write the full name of a theme token, with an optional fallback after a comma,
32
32
  such as `--theme(--color-brand, blue)`.
33
33
 
34
34
  A valid reference to a token that the theme does not define is reported by
35
- [invalid-theme-reference](../lints/invalid-theme-reference.md) instead.
35
+ [invalid-theme-reference](https://stillwind.dev/docs/lints/invalid-theme-reference) instead.
@@ -5,7 +5,7 @@ description: "A utility applies itself directly or through another utility."
5
5
 
6
6
  # SW14008: Circular utility application
7
7
 
8
- This error occurs when an [`@apply`](../at-rules/apply.md) dependency returns
8
+ This error occurs when an [`@apply`](https://stillwind.dev/docs/at-rules/apply) dependency returns
9
9
  to a utility that is already being expanded. The cycle can pass through
10
10
  several utilities.
11
11
 
@@ -18,4 +18,4 @@ names the kind of value.
18
18
  their results with the same revision of the source.
19
19
 
20
20
  Type information that exists but does not match the source is reported as
21
- [SW30002](SW30002.md).
21
+ [SW30002](https://stillwind.dev/docs/errors/SW30002).
@@ -17,4 +17,4 @@ end of the text that it refers to. The message describes the problem.
17
17
  to the compiler.
18
18
 
19
19
  A valid map that cannot point to one original range is reported as
20
- [SW31002](SW31002.md).
20
+ [SW31002](https://stillwind.dev/docs/errors/SW31002).
@@ -17,4 +17,4 @@ explanation from the parser.
17
17
  for the parser.
18
18
 
19
19
  A syntax error in the component itself is reported as
20
- [SW10002](SW10002.md) instead.
20
+ [SW10002](https://stillwind.dev/docs/errors/SW10002) instead.
@@ -17,4 +17,4 @@ character of several bytes. The message shows the offset and the operation.
17
17
  and discard stored offsets after edits.
18
18
 
19
19
  Errors from the APIs that convert positions are reported as
20
- [SW31008](SW31008.md) instead.
20
+ [SW31008](https://stillwind.dev/docs/errors/SW31008) instead.
@@ -12,6 +12,6 @@ nowhere to go.
12
12
  ## How to fix
13
13
 
14
14
  - Check that the build tool runs the Stillwind integration on this file. See
15
- [Framework integrations](../integrations.md).
15
+ [Framework integrations](https://stillwind.dev/docs/integrations).
16
16
  - In your own integration, create the virtual module before you render the
17
17
  replacement imports.
@@ -12,6 +12,6 @@ This error occurs when the CSS that the compiler generates for a style cannot be
12
12
  [Open an issue](https://github.com/SegaraRai/stillwind/issues) with the error
13
13
  message and:
14
14
 
15
- - The [`style()`](../macros/style.md) call or utility that causes the error
15
+ - The [`style()`](https://stillwind.dev/docs/macros/style) call or utility that causes the error
16
16
  - Your stylesheet, or the parts that the utility uses
17
17
  - The version of the Stillwind packages