stillwind 0.8.0 → 0.10.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 (175) hide show
  1. package/CHANGELOG.md +212 -0
  2. package/css/builtin-variants/tw-relationship.css +4 -4
  3. package/css/builtins.css +1 -1
  4. package/dist/frameworks/alpine.d.ts +1 -1
  5. package/dist/frameworks/astro.d.ts +1 -1
  6. package/dist/frameworks/lit.d.ts +1 -1
  7. package/dist/frameworks/preact.d.ts +1 -1
  8. package/dist/frameworks/qwik.d.ts +1 -1
  9. package/dist/frameworks/solid.d.ts +1 -1
  10. package/dist/frameworks/svelte.d.ts +1 -1
  11. package/dist/frameworks/vanilla.d.ts +1 -1
  12. package/dist/frameworks/vue.d.ts +1 -1
  13. package/docs/at-rules/apply.md +5 -5
  14. package/docs/at-rules/custom-variant.md +12 -12
  15. package/docs/at-rules/index.md +19 -19
  16. package/docs/at-rules/plugin.md +13 -7
  17. package/docs/at-rules/registry-directives.md +9 -9
  18. package/docs/at-rules/slot.md +6 -6
  19. package/docs/at-rules/stillwind-css-template.md +7 -7
  20. package/docs/at-rules/stillwind-property.md +10 -10
  21. package/docs/at-rules/stillwind-registry.md +18 -18
  22. package/docs/at-rules/stillwind-require-properties.md +9 -9
  23. package/docs/at-rules/stillwind-slot.md +6 -6
  24. package/docs/at-rules/stillwind-undef-arbitrary-property.md +9 -9
  25. package/docs/at-rules/stillwind-undef-utility.md +10 -10
  26. package/docs/at-rules/stillwind-undef-variant.md +6 -6
  27. package/docs/at-rules/theme.md +23 -23
  28. package/docs/at-rules/utility.md +30 -30
  29. package/docs/at-rules/variant.md +6 -6
  30. package/docs/cli.md +7 -7
  31. package/docs/concepts/css-ordering.md +17 -17
  32. package/docs/concepts/how-styles-compile.md +14 -14
  33. package/docs/concepts/stylesheets.md +4 -4
  34. package/docs/configuration.md +29 -29
  35. package/docs/editors.md +8 -8
  36. package/docs/errors/SW01003.md +1 -1
  37. package/docs/errors/SW10001.md +1 -1
  38. package/docs/errors/SW10002.md +1 -1
  39. package/docs/errors/SW10004.md +6 -6
  40. package/docs/errors/SW10005.md +1 -1
  41. package/docs/errors/SW11001.md +1 -1
  42. package/docs/errors/SW11003.md +1 -1
  43. package/docs/errors/SW12001.md +2 -2
  44. package/docs/errors/SW12002.md +1 -1
  45. package/docs/errors/SW13001.md +1 -1
  46. package/docs/errors/SW13003.md +2 -2
  47. package/docs/errors/SW14001.md +1 -1
  48. package/docs/errors/SW14003.md +4 -4
  49. package/docs/errors/SW14004.md +2 -2
  50. package/docs/errors/SW14005.md +1 -1
  51. package/docs/errors/SW14006.md +1 -1
  52. package/docs/errors/SW14007.md +2 -2
  53. package/docs/errors/SW14008.md +1 -1
  54. package/docs/errors/SW30001.md +1 -1
  55. package/docs/errors/SW31001.md +1 -1
  56. package/docs/errors/SW31004.md +1 -1
  57. package/docs/errors/SW33005.md +1 -1
  58. package/docs/errors/SW34002.md +1 -1
  59. package/docs/errors/SW90001.md +1 -1
  60. package/docs/errors/SW90005.md +1 -1
  61. package/docs/errors/SW90006.md +1 -1
  62. package/docs/errors/index.md +72 -72
  63. package/docs/formatters.md +5 -5
  64. package/docs/guides/animations.md +7 -8
  65. package/docs/guides/design-systems.md +7 -7
  66. package/docs/guides/element-relationships.md +15 -19
  67. package/docs/guides/lint-adoption.md +5 -5
  68. package/docs/guides/migrating-from-css.md +11 -11
  69. package/docs/guides/migrating-from-tailwind.md +21 -16
  70. package/docs/guides/recommended-practices.md +18 -18
  71. package/docs/guides/responsive-styles.md +7 -7
  72. package/docs/guides/reusable-styles.md +5 -5
  73. package/docs/guides/runtime-conditions.md +6 -6
  74. package/docs/guides/style.md +15 -15
  75. package/docs/guides/tailwind-compatibility.md +27 -21
  76. package/docs/guides/view-transitions.md +9 -11
  77. package/docs/guides/web-components.md +4 -4
  78. package/docs/index.md +14 -12
  79. package/docs/integrations.md +3 -3
  80. package/docs/lints/ambiguous-style-base-order.md +2 -2
  81. package/docs/lints/bypassed-undefinition.md +3 -3
  82. package/docs/lints/clamped-value.md +1 -1
  83. package/docs/lints/conflicting-provider-properties.md +2 -2
  84. package/docs/lints/conflicting-utilities.md +67 -2
  85. package/docs/lints/document-scoped-selector.md +1 -1
  86. package/docs/lints/duplicate-definition.md +3 -3
  87. package/docs/lints/duplicate-utility.md +2 -2
  88. package/docs/lints/duplicate-view-transition-name.md +3 -3
  89. package/docs/lints/ignored-definition-condition.md +2 -2
  90. package/docs/lints/ignored-tailwind-feature.md +3 -3
  91. package/docs/lints/implicit-nesting-selector.md +2 -2
  92. package/docs/lints/incompatible-property-value.md +3 -3
  93. package/docs/lints/incompatible-theme-value.md +1 -1
  94. package/docs/lints/index.md +74 -74
  95. package/docs/lints/ineffective-anchor-scope.md +2 -2
  96. package/docs/lints/interfering-imported-style-base.md +1 -1
  97. package/docs/lints/invalid-animation-option.md +3 -3
  98. package/docs/lints/invalid-css-directive.md +3 -3
  99. package/docs/lints/invalid-css-import.md +2 -2
  100. package/docs/lints/invalid-css-input.md +4 -4
  101. package/docs/lints/invalid-cva-config.md +2 -2
  102. package/docs/lints/invalid-cva-input.md +4 -4
  103. package/docs/lints/invalid-keyframes-definition.md +2 -2
  104. package/docs/lints/invalid-keyframes-use.md +2 -2
  105. package/docs/lints/invalid-keyframes-variant.md +4 -4
  106. package/docs/lints/invalid-lint-suppression.md +3 -3
  107. package/docs/lints/invalid-marker-use.md +2 -2
  108. package/docs/lints/invalid-media-query.md +4 -4
  109. package/docs/lints/invalid-ref-input.md +4 -4
  110. package/docs/lints/invalid-rule-group-input.md +2 -2
  111. package/docs/lints/invalid-runtime-condition.md +3 -3
  112. package/docs/lints/invalid-stored-variant.md +3 -3
  113. package/docs/lints/invalid-style-composition.md +2 -2
  114. package/docs/lints/invalid-style-input.md +2 -2
  115. package/docs/lints/invalid-theme-reference.md +3 -3
  116. package/docs/lints/invalid-utility.md +3 -3
  117. package/docs/lints/invalid-variant.md +2 -2
  118. package/docs/lints/invalid-view-transition-definition.md +2 -2
  119. package/docs/lints/invalid-view-transition-use.md +2 -2
  120. package/docs/lints/invalid-view-transition-variant.md +3 -3
  121. package/docs/lints/mismatched-framework-import.md +3 -3
  122. package/docs/lints/missing-document-target.md +2 -2
  123. package/docs/lints/missing-ref-attachment.md +4 -4
  124. package/docs/lints/missing-view-transition-name.md +3 -3
  125. package/docs/lints/mutating-macro-argument.md +2 -2
  126. package/docs/lints/no-arbitrary-breakpoints.md +2 -2
  127. package/docs/lints/no-arbitrary-colors.md +2 -2
  128. package/docs/lints/no-arbitrary-spacing.md +1 -1
  129. package/docs/lints/no-class-property.md +3 -3
  130. package/docs/lints/no-important.md +2 -2
  131. package/docs/lints/no-restricted-declarations.md +1 -1
  132. package/docs/lints/no-restricted-length-units.md +1 -1
  133. package/docs/lints/no-restricted-theme-tokens.md +1 -1
  134. package/docs/lints/no-restricted-utilities.md +2 -2
  135. package/docs/lints/prefer-canonical-utilities.md +2 -2
  136. package/docs/lints/prefer-direct-styling.md +3 -3
  137. package/docs/lints/prefer-logical-properties.md +22 -5
  138. package/docs/lints/prefer-sorted-utilities.md +2 -2
  139. package/docs/lints/prefer-typed-relationships.md +3 -3
  140. package/docs/lints/prefer-typed-variables.md +1 -1
  141. package/docs/lints/prefer-variant-directive.md +3 -3
  142. package/docs/lints/redundant-variant.md +2 -2
  143. package/docs/lints/repeated-nesting-selector.md +2 -2
  144. package/docs/lints/runtime-condition-requires-css-if.md +3 -3
  145. package/docs/lints/split-view-transition-class.md +3 -3
  146. package/docs/lints/suspending-macro-argument.md +2 -2
  147. package/docs/lints/unknown-utility.md +4 -4
  148. package/docs/lints/unknown-variant.md +2 -2
  149. package/docs/lints/unmatched-host-selector.md +2 -2
  150. package/docs/lints/unsatisfiable-variants.md +1 -1
  151. package/docs/lints/unused-lint-suppression.md +1 -1
  152. package/docs/lints/unverified-style-base.md +2 -2
  153. package/docs/macros/anchor-scope.md +13 -13
  154. package/docs/macros/css.md +7 -7
  155. package/docs/macros/cva.md +13 -13
  156. package/docs/macros/index.md +10 -10
  157. package/docs/macros/keyframes.md +9 -9
  158. package/docs/macros/media.md +2 -2
  159. package/docs/macros/ref/as-anchor.md +11 -11
  160. package/docs/macros/ref/as-container.md +8 -8
  161. package/docs/macros/ref/at.md +10 -10
  162. package/docs/macros/ref/condition.md +8 -8
  163. package/docs/macros/ref/in.md +11 -11
  164. package/docs/macros/ref/index.md +16 -16
  165. package/docs/macros/ref/position-anchor.md +9 -9
  166. package/docs/macros/style.md +24 -24
  167. package/docs/macros/view-transition.md +16 -16
  168. package/docs/macros/when.md +13 -13
  169. package/docs/plugins/iconify.md +5 -5
  170. package/docs/plugins/index.md +4 -4
  171. package/docs/utilities-and-variants.md +6 -6
  172. package/docs/why.md +13 -15
  173. package/package.json +8 -6
  174. package/skills/migrate-to-stillwind/SKILL.md +36 -2
  175. package/skills/stillwind/SKILL.md +4 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,212 @@
1
+ # stillwind
2
+
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add the `ignoredUtilities` option to the `conflicting-utilities` lint rule. List utility name globs, such as `["btn"]`, and the rule stops reporting pairs that include a matching utility. Other pairs are still reported, so a component library base class such as daisyUI `btn` can be combined with `btn-outline` while `btn-outline btn-ghost` is still reported. Variants and the `!` modifier are ignored when the rule matches a name.
8
+
9
+ ### Patch Changes
10
+
11
+ - `conflicting-utilities` notes now name logical corner utilities, such as `rounded-ss-lg` for `rounded-tl-lg`, when a physical corner utility overlaps a logical one.
12
+
13
+ - `prefer-logical-properties` no longer reports a rule that sets every physical property of a group to one value, such as `size-6`, which sets `width` and `height` to the same value. The result does not depend on the writing mode, as for `p-4`. A utility that sets `width` and `height` in different rules is still reported.
14
+
15
+ - Design-system queries and editor previews now show utilities whose CSS has an empty declaration after a nested `@scope` block, such as daisyUI `join`. Before this fix, `stillwind utilities join` and a `*` utility listing for a daisyUI project failed with `CSS parse failed: Unexpected end of input`.
16
+
17
+ - Updated dependencies:
18
+ - @stillwind/config@0.10.0
19
+ - @stillwind/native@0.10.0
20
+ - @stillwind/projection@0.10.0
21
+
22
+ ## 0.9.0
23
+
24
+ ### Minor Changes
25
+
26
+ - Astro components are now converted to TSX for analysis with `@astrojs/astro2tsx`, the converter that the Astro language server uses, instead of `@astrojs/compiler`. For Astro support, install `@astrojs/astro2tsx` `^0.1.4`. Stillwind no longer uses `@astrojs/compiler`.
27
+
28
+ Analysis now finds frontmatter in the same places as the Astro 7 build. A `---` fence that follows template text, such as an HTML comment, is template text and does not start frontmatter.
29
+
30
+ - Type facts now come from [tsrs](https://github.com/oxc-project/tsrs), a Rust port of the TypeScript 7.1 beta checker, instead of TypeScript 7.0. Edits that need type information finish faster. Stillwind no longer installs `typescript` 7.
31
+
32
+ ### Patch Changes
33
+
34
+ - Update Tailwind CSS compatibility to 4.3.5, preserve empty variable fallbacks, and improve group and peer selectors and Safari property fallbacks.
35
+
36
+ - Documentation examples now declare component-specific refs, keyframes, and view transitions inside the component that uses them.
37
+
38
+ - Each published npm package and the VS Code extension now include `CHANGELOG.md`, so you can read the release notes of the installed version in `node_modules` or on the extension page.
39
+
40
+ - Updated dependencies:
41
+ - @stillwind/config@0.9.0
42
+ - @stillwind/native@0.9.0
43
+ - @stillwind/projection@0.9.0
44
+
45
+ ## 0.8.0
46
+
47
+ ### Minor Changes
48
+
49
+ - `conflicting-utilities` findings now explain the overlap. When the utilities are a shorthand and a longhand that it covers, such as `m-0 mb-4`, a note names the `allowShorthandOverrides` option. When a physical and a logical property overlap only in some writing modes, such as `px-2 pt-2`, a note names their logical group.
50
+
51
+ - When a physical utility conflicts with a logical utility, the `conflicting-utilities` finding shows how to use logical properties for both: it names a logical utility from your design system that writes the same value, such as `ms-4` for `ml-4` in `mx-auto ml-4`. When `writingModes` includes a vertical writing mode, as in the `stylistic` preset, it also names `pbs-2` for `pt-2` in `px-2 pt-2`. The suggestion uses the sides of horizontal left-to-right writing modes, appears only when `writingModes` includes `horizontal-tb`, and does not recommend logical properties over physical ones.
52
+
53
+ - Compiled code now imports its helpers from `stillwind/runtime`, or from `stillwind/runtime/development` in development builds. A module that uses several frameworks' macros imports each shared helper once. The `stillwind/runtime/class-object`, `stillwind/runtime/class-string`, `stillwind/runtime/class-name-object`, and matching `-development` entrypoints are removed. Recompile code that was compiled with an earlier version, because it imports these removed entrypoints.
54
+
55
+ - Add `style.when(variants)`, which stores a variant sequence such as `card("hover").in(list)`, `card.at("width >= 40rem")`, or `"hover:md"` in a variable. Use the variable as a computed key in `style()`, as a variant segment in a utility template, or in another `style.when()`, so several elements can share a ref condition without repeating it. Stored variants can be exported and imported. The new `invalid-stored-variant` lint rule reports an argument that is not a variant sequence and a use that can refer to several stored variants.
56
+
57
+ - Add the `or(...)` variant, which applies a utility when any of its comma-separated variant sequences matches. `or(hover,md:focus):p-4` means `hover:p-4 md:focus:p-4`, so each sequence keeps its own CSS order and lint findings. It works in utility strings, object keys of `style()` and `style.css()`, ref conditions such as `card("or(hover,focus-within)")`, and view-transition definitions. Design systems can declare the same behavior under another name with `@stillwind-variant name\(*\) (value: [variant-list]) { @stillwind-intrinsic builtin-or-variant; }`. `style.when()` now accepts several arguments and stores them as alternatives, which can include ref conditions and container queries, such as `style.when("hover", card("focus-within"))`.
58
+
59
+ - Export `StyleResultOf` from each framework entrypoint, such as `stillwind/react`. TypeScript can now emit declaration files for modules that export a `style()` result, for example with `declaration: true` or the `dts` option of `vp pack`. Before, this failed with TS2883 because the type of the result could not be named from a public entrypoint.
60
+
61
+ - `conflicting-utilities` has a `writingModes` option that lists the writing modes in which a physical utility and a logical utility are compared: `horizontal-tb`, `vertical-rl`, and `vertical-lr`. The default is `["horizontal-tb"]`, so `px-2 pt-2` is no longer reported, because the two utilities set different sides in horizontal text. `mx-auto ml-4` is still reported. The `stylistic` preset lists all three writing modes. Add `vertical-rl` or `vertical-lr` if your pages use vertical text.
62
+
63
+ ### Patch Changes
64
+
65
+ - `conflicting-utilities` no longer reports a font size utility together with a `leading-*` utility, such as `text-sm leading-relaxed`. The font size utility reads the line height that the `leading-*` utility sets, so the result does not depend on their order.
66
+
67
+ - `ambiguous-style-base-order` and `interfering-imported-style-base` findings now include a note that reordering the `style()` arguments does not change which declaration wins. Fix these findings by building the overriding style on the other style or by removing the property from one of them.
68
+
69
+ - `conflicting-utilities` no longer reports a side utility together with a style utility that sets its style, such as `border-t border-dashed` or `divide-y divide-dashed`. The result of these pairs does not depend on their order.
70
+
71
+ - Updated dependencies:
72
+ - @stillwind/config@0.8.0
73
+ - @stillwind/native@0.8.0
74
+ - @stillwind/projection@0.8.0
75
+
76
+ ## 0.7.0
77
+
78
+ ### Minor Changes
79
+
80
+ - `style.css()` now returns a minified stylesheet without the Stillwind and Tailwind license comments, so the strings in your bundle are smaller. The string still applies the same styles.
81
+
82
+ ### Patch Changes
83
+
84
+ - Rules that a Tailwind CSS JavaScript plugin nests inside `@scope` within a selector, such as `@scope (&)`, now stay inside the `@scope` block, as the same rules in a CSS `@utility` do. Previously, each nested selector moved into the `@scope` prelude, so a selector that used `:scope` matched the document root instead of the scoping root and the rule never applied. For example, daisyUI's `join` lost the radius of its outer corners.
85
+
86
+ A plugin that passes `addUtilities()` or `addComponents()` an `@scope` rule outside any selector, such as `{ "@scope (.theme)": { ".item": { … } } }`, now fails with an error. Previously, Stillwind generated CSS that styled other elements than Tailwind CSS does, without a diagnostic.
87
+
88
+ - Astro components whose frontmatter ends with a `//` line comment now pass `stillwind lint` and the build. Previously, such components failed with SW31005 ("Astro frontmatter coordinates do not match source"), so a trailing comment such as `// TODO` or a tool directive could fail the whole site build.
89
+
90
+ - The npm package page now shows that each package includes TypeScript declarations. Packages without a root JavaScript entry declare an empty root module, so TypeScript setups that ignore `exports` report a missing export instead of resolving unrelated types.
91
+
92
+ - Updated dependencies:
93
+ - @stillwind/config@0.7.0
94
+ - @stillwind/native@0.7.0
95
+ - @stillwind/projection@0.7.0
96
+
97
+ ## 0.6.0
98
+
99
+ ### Minor Changes
100
+
101
+ - An `@import` inside a style rule, or inside a `@layer`, `@supports`, `@media`, or other conditional group, now inlines the imported stylesheet in place, as Tailwind CSS v4 does. For example, `.widget { @import "stillwind/preflight.css"; }` applies the reset only to the descendants of `.widget`. Previously, the compiled CSS kept the raw `@import`, and browsers ignored it. Only plain CSS can be imported inside a style rule: when the imported file or its imports contain a definition, `@stillwind-slot`, or a `@layer` statement, such as `stillwind` itself, the import is left out. `invalid-css-import` reports that import and an unresolved nested import at their source locations.
102
+
103
+ A definition such as `@utility` or `@theme`, a Tailwind statement such as `@plugin`, or a `@layer` statement written inside a style rule is now ignored and reported by `invalid-css-directive`. Previously, a nested `@utility` was registered while a nested `@theme` was not, the raw at-rules stayed in the compiled CSS, and a nested `@layer` statement failed the build with a parse error.
104
+
105
+ ### Patch Changes
106
+
107
+ - The migration guides now describe how to check a migration: compare the computed styles of the migrated components in the old and new builds with a browser console function. The `migrate-to-stillwind` skill now asks agents to run this comparison for each theme and breakpoint and to report each difference.
108
+
109
+ - A `@variant` block in the body of a `@utility` now applies its variants, as it does in a style rule. Directly in the body, the variants apply to the element that uses the utility. Inside a nested rule, they apply to that rule's selector. Previously, the compiled CSS kept the raw `@variant` rule, and browsers ignored those styles. `prefer-variant-directive` now also reports conditions in `@utility` bodies that a variant can replace.
110
+
111
+ - The packages now have npm keywords, so the npm search, the Astro integrations library, and other directories that read `keywords` can find them by the frameworks, build tools, and editors that they support. Each package description now states what the package does and which tools it supports.
112
+
113
+ - Updated dependencies:
114
+ - @stillwind/config@0.6.0
115
+ - @stillwind/native@0.6.0
116
+ - @stillwind/projection@0.6.0
117
+
118
+ ## 0.5.0
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies:
123
+ - @stillwind/config@0.5.0
124
+ - @stillwind/native@0.5.0
125
+ - @stillwind/projection@0.5.0
126
+
127
+ ## 0.4.1
128
+
129
+ ### Patch Changes
130
+
131
+ - This release publishes the changes listed for 0.4.0. Version 0.4.0 was not published to npm or the VS Code extension marketplaces.
132
+
133
+ - Updated dependencies:
134
+ - @stillwind/config@0.4.1
135
+ - @stillwind/native@0.4.1
136
+ - @stillwind/projection@0.4.1
137
+
138
+ ## 0.4.0
139
+
140
+ ### Patch Changes
141
+
142
+ - Arbitrary properties that use `--if()`, such as `[color:--if(--on,red,blue)]`, no longer report `incompatible-property-value` when the property accepts both branches. The rule still reports a branch that the property rejects.
143
+
144
+ - `if()` variants now work in `style.css()`. The returned string no longer contains an internal at-rule that kept browsers from applying the conditional rule.
145
+
146
+ - Variants that test a shadow host now match. `host:hover:`, `hover:` with `selector: ":host"`, and `@apply hover:flex` inside `:host` generate `:host()` forms that browsers accept. The new `unmatched-host-selector` rule reports variants such as `host:in-[.page]:`, which read elements outside the shadow tree and cannot match.
147
+
148
+ - Arbitrary properties whose name is not a CSS property name, such as `[&:focus]`, `[:focus]`, and `[1:2]`, now report `invalid-utility` and emit no CSS. Add a utility after a variant, as in `[&:focus]:flex`, to style with a selector.
149
+
150
+ - The license comment at the start of generated CSS now shows the installed Stillwind version.
151
+
152
+ - The bundled `docs/utilities.md` page is now `docs/utilities-and-variants.md`, and the website page moved to `/docs/utilities-and-variants`. The lookup on the website page now also finds variants by name or by part of their CSS, such as `:hover` or `media hover`.
153
+
154
+ - Updated dependencies:
155
+ - @stillwind/config@0.4.0
156
+ - @stillwind/native@0.4.0
157
+ - @stillwind/projection@0.4.0
158
+
159
+ ## 0.3.0
160
+
161
+ ### Minor Changes
162
+
163
+ - The `recommended` preset now reports `unknown-utility` and `unknown-variant` as errors, so `stillwind lint` fails on a misspelled utility or variant. Set a rule to `warn` in `lint.rules` to keep the previous severity.
164
+
165
+ `prefer-explicit-nesting-selector` is now `implicit-nesting-selector`, and its category changes from `style` to `hazard`. Update the rule name in `lint.rules` and in `swlint-*` comments.
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies:
170
+ - @stillwind/config@0.3.0
171
+ - @stillwind/native@0.3.0
172
+ - @stillwind/projection@0.3.0
173
+
174
+ ## 0.2.0
175
+
176
+ ### Minor Changes
177
+
178
+ - The editor now finds the nearest `stillwind.config.*` from each opened file, so a monorepo works without a configuration file at its root.
179
+
180
+ - Reference configuration files, directories, and globs from `projects`, so each package in a monorepo can keep its own `stillwind.config.ts`.
181
+
182
+ - Import a file from `stillwind/logical/` after `stillwind` to make built-in axis utilities follow the writing direction, as `px-*` and `py-*` do. `overflow.css`, `overscroll.css`, `divide.css`, `snap.css`, and `resize.css` cover `overflow-x-*`, `overflow-y-*`, `overscroll-x-*`, `overscroll-y-*`, `divide-y-*`, `snap-x`, `snap-y`, `resize-x`, and `resize-y`. `prefer-logical-properties` no longer reports the `overflow`, `overscroll`, and `divide` utilities that these files change.
183
+
184
+ ### Patch Changes
185
+
186
+ - `prefer-canonical-utilities` no longer replaces one theme token with another that only has the same value, such as `w-96` with `w-sm`. Fixed values now prefer spacing multiples, such as `w-112` for `w-[448px]`, and stay as written when several unrelated named tokens match.
187
+
188
+ - `prefer-logical-properties` no longer reports a shorthand that gives both axes the same value, such as `overflow-hidden` or `truncate`, and it no longer reports `sr-only` or `not-sr-only`, whose declarations you cannot change. `no-restricted-length-units` also skips `sr-only` by default.
189
+
190
+ - The Linux native bindings now load on glibc 2.17 and later. They previously failed to load on systems older than glibc 2.35, such as Debian 11 and Red Hat Enterprise Linux 9.
191
+
192
+ - `prefer-logical-properties` now reports physical declarations that it previously missed: shorthands for some sides with any value, such as `[border-top:var(--border)]` and `[border-left-radius:1px]`, and shorthands with different values for each side, such as `[padding:var(--a)_1rem]` and `[size:10px_20px]`.
193
+
194
+ - The editor now shows a configuration error on the configuration file instead of on every open document.
195
+
196
+ - `prefer-canonical-utilities` no longer rewrites an arbitrary value that starts and ends with separate function calls, such as `grid-cols-[var(--sidebar)_minmax(0,1fr)]`, into broken classes. `stillwind lint --fix` now keeps these values as written.
197
+
198
+ - Updated dependencies:
199
+ - @stillwind/config@0.2.0
200
+ - @stillwind/native@0.2.0
201
+ - @stillwind/projection@0.2.0
202
+
203
+ ## 0.1.0
204
+
205
+ ### Patch Changes
206
+
207
+ - Release the first version of Stillwind.
208
+
209
+ - Updated dependencies:
210
+ - @stillwind/config@0.1.0
211
+ - @stillwind/native@0.1.0
212
+ - @stillwind/projection@0.1.0
@@ -17,25 +17,25 @@
17
17
  }
18
18
 
19
19
  @stillwind-variant group-* (value: [variant]) {
20
- &:is(:where(.group):--value() *) {
20
+ :is(:where(.group):--value() &) {
21
21
  @slot;
22
22
  }
23
23
  }
24
24
 
25
25
  @stillwind-variant group-* (value: [variant], modifier: [class-identifier]) {
26
- &:is(:where(:--modifier(".group\/{modifier}")):--value() *) {
26
+ :is(:where(:--modifier(".group\/{modifier}")):--value() &) {
27
27
  @slot;
28
28
  }
29
29
  }
30
30
 
31
31
  @stillwind-variant peer-* (value: [variant]) {
32
- &:is(:where(.peer):--value() ~ *) {
32
+ :is(:where(.peer):--value() ~ &) {
33
33
  @slot;
34
34
  }
35
35
  }
36
36
 
37
37
  @stillwind-variant peer-* (value: [variant], modifier: [class-identifier]) {
38
- &:is(:where(:--modifier(".peer\/{modifier}")):--value() ~ *) {
38
+ :is(:where(:--modifier(".peer\/{modifier}")):--value() ~ &) {
39
39
  @slot;
40
40
  }
41
41
  }
package/css/builtins.css CHANGED
@@ -90,7 +90,7 @@ reach descendants. Keep this declaration slot inside the selector rule.
90
90
  */
91
91
 
92
92
  @layer properties {
93
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
93
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or
94
94
  ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
95
95
  *,
96
96
  ::before,
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  type Alpine = {
4
4
  directive(name: string, handler: (element: HTMLElement, directive: {
5
5
  expression: string;
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  import { nothing } from "lit";
4
4
  import { AsyncDirective } from "lit/async-directive.js";
5
5
  import { ElementPart, PartInfo } from "lit/directive.js";
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  type StyleElement = Element & ElementCSSInlineStyle;
4
4
  /**
5
5
  * Applies compiled props to an HTML, SVG, or other element with inline CSS support.
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
1
  import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -27,8 +27,8 @@ inside a style rule or a utility definition. Whitespace separates the utilities.
27
27
  ### Generated stylesheet without preflight
28
28
 
29
29
  ```css
30
- /*! stillwind v0.8.0 | MIT License | https://stillwind.dev */
31
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
30
+ /*! stillwind v0.10.0 | MIT License | https://stillwind.dev */
31
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
32
32
  @layer properties, theme, base, components, utilities;
33
33
 
34
34
  @layer theme {
@@ -40,7 +40,7 @@ inside a style rule or a utility definition. Whitespace separates the utilities.
40
40
  }
41
41
 
42
42
  @layer properties {
43
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
43
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
44
44
  *, :before, :after, ::backdrop {
45
45
  --tw-outline-style: solid;
46
46
  }
@@ -76,7 +76,7 @@ rule takes the place of the generated class. Utilities without variants come
76
76
  first in utility order. Utilities with variants follow in variant order.
77
77
 
78
78
  The stylesheet declares the theme values and registered properties that the
79
- applied utilities need, as it does for [`style()`](../macros/style.md).
79
+ applied utilities need, as it does for [`style()`](https://stillwind.dev/docs/macros/style).
80
80
 
81
81
  ## Rules
82
82
 
@@ -90,4 +90,4 @@ applied utilities need, as it does for [`style()`](../macros/style.md).
90
90
  element a `group` for `group-hover:`.
91
91
 
92
92
  To apply a condition to your own declarations, use
93
- [`@variant`](variant.md) instead.
93
+ [`@variant`](https://stillwind.dev/docs/at-rules/variant) instead.
@@ -21,7 +21,7 @@ stylesheet.
21
21
  ## Example
22
22
 
23
23
  The short form takes a selector in parentheses. The block form wraps the
24
- content with any rules, and [`@slot`](slot.md) marks where the
24
+ content with any rules, and [`@slot`](https://stillwind.dev/docs/at-rules/slot) marks where the
25
25
  content goes.
26
26
 
27
27
  ### Stylesheet
@@ -48,14 +48,14 @@ export const link = style("theme-dark:text-white hocus:underline");
48
48
  ### Compiled code
49
49
 
50
50
  ```ts
51
- export const link = {className:"sw_r7v8w"};
51
+ export const link = {className:"sw_77cu9"};
52
52
  ```
53
53
 
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.8.0 | MIT License | https://stillwind.dev */
58
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
57
+ /*! stillwind v0.10.0 | MIT License | https://stillwind.dev */
58
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
61
61
  @layer theme {
@@ -65,11 +65,11 @@ export const link = {className:"sw_r7v8w"};
65
65
  }
66
66
 
67
67
  @layer utilities {
68
- .sw_r7v8w:where([data-theme="dark"], [data-theme="dark"] *) {
68
+ .sw_77cu9:where([data-theme="dark"], [data-theme="dark"] *) {
69
69
  color: var(--color-white);
70
70
  }
71
71
 
72
- .sw_r7v8w:hover, .sw_r7v8w:focus-visible {
72
+ .sw_77cu9:hover, .sw_77cu9:focus-visible {
73
73
  text-decoration-line: underline;
74
74
  }
75
75
  }
@@ -84,7 +84,7 @@ around `@slot`.
84
84
  selector without `&` selects descendants:
85
85
  `@custom-variant expanded ([aria-expanded="true"])` means
86
86
  `& [aria-expanded="true"]`.
87
- [implicit-nesting-selector](../lints/implicit-nesting-selector.md)
87
+ [implicit-nesting-selector](https://stillwind.dev/docs/lints/implicit-nesting-selector)
88
88
  reports such a selector, and its fix writes the `&` without changing the
89
89
  meaning.
90
90
 
@@ -110,18 +110,18 @@ export const css = style.css("shell:block shell:p-4 [button]:rounded-md");
110
110
  ### Compiled code
111
111
 
112
112
  ```ts
113
- export const css = ":where(:root,:host){--spacing:.25rem;--radius-md:.375rem}:host{padding:calc(var(--spacing) * 4);display:block}button{border-radius:var(--radius-md)}";
113
+ export const css = ":where(:root,:host){--spacing:.25rem;--radius-md:.375rem}:host{padding:calc(var(--spacing)*4);display:block}button{border-radius:var(--radius-md)}";
114
114
  ```
115
115
 
116
- In [`style.css()`](../macros/css.md), the first such variant selects the
117
- element that the utility styles. In [`style()`](../macros/style.md), the rule
116
+ In [`style.css()`](https://stillwind.dev/docs/macros/css), the first such variant selects the
117
+ element that the utility styles. In [`style()`](https://stillwind.dev/docs/macros/style), the rule
118
118
  stays document-wide, and
119
- [document-scoped-selector](../lints/document-scoped-selector.md) reports it.
119
+ [document-scoped-selector](https://stillwind.dev/docs/lints/document-scoped-selector) reports it.
120
120
 
121
121
  ## Definitions with the same name
122
122
 
123
123
  A later variant definition with the same name replaces the earlier one.
124
- [duplicate-definition](../lints/duplicate-definition.md) reports it. To match
124
+ [duplicate-definition](https://stillwind.dev/docs/lints/duplicate-definition) reports it. To match
125
125
  several selectors, list them in one definition.
126
126
 
127
127
  The order of variant definitions decides the output order of rules with
@@ -5,7 +5,7 @@ description: "Find the at-rules that define tokens, utilities, and variants in y
5
5
 
6
6
  # At-rule reference
7
7
 
8
- Your stylesheet defines the design system that [`style()`](../macros/style.md)
8
+ Your stylesheet defines the design system that [`style()`](https://stillwind.dev/docs/macros/style)
9
9
  uses. Besides ordinary CSS, it can contain at-rules that define tokens,
10
10
  utilities, and variants, and at-rules that control where the generated CSS goes.
11
11
  Some of them come from Tailwind CSS v4, and Stillwind evaluates them with its
@@ -19,27 +19,27 @@ generated stylesheet on these pages leaves out the preflight reset.
19
19
 
20
20
  | At-rule | Use it to | Origin |
21
21
  | ------------------------------------------------------------------------------ | ------------------------------------------------------------- | --------- |
22
- | [`@theme`](theme.md) | Define design tokens and shared values | Tailwind |
23
- | [`@utility`](utility.md) | Define a utility or add declarations to an existing one | Tailwind |
24
- | [`@custom-variant`](custom-variant.md) | Define a variant | Tailwind |
25
- | [`@slot`](slot.md) | Mark where a variant definition inserts the styled content | Tailwind |
26
- | [`@plugin`](plugin.md) | Load a Stillwind or Tailwind CSS v4 plugin | Tailwind |
27
- | [`@stillwind-property`](stillwind-property.md) | Register a custom property that utilities need | Stillwind |
28
- | [`@stillwind-require-properties`](stillwind-require-properties.md) | Declare the registered custom properties that a utility needs | Stillwind |
22
+ | [`@theme`](https://stillwind.dev/docs/at-rules/theme) | Define design tokens and shared values | Tailwind |
23
+ | [`@utility`](https://stillwind.dev/docs/at-rules/utility) | Define a utility or add declarations to an existing one | Tailwind |
24
+ | [`@custom-variant`](https://stillwind.dev/docs/at-rules/custom-variant) | Define a variant | Tailwind |
25
+ | [`@slot`](https://stillwind.dev/docs/at-rules/slot) | Mark where a variant definition inserts the styled content | Tailwind |
26
+ | [`@plugin`](https://stillwind.dev/docs/at-rules/plugin) | Load a Stillwind or Tailwind CSS v4 plugin | Tailwind |
27
+ | [`@stillwind-property`](https://stillwind.dev/docs/at-rules/stillwind-property) | Register a custom property that utilities need | Stillwind |
28
+ | [`@stillwind-require-properties`](https://stillwind.dev/docs/at-rules/stillwind-require-properties) | Declare the registered custom properties that a utility needs | Stillwind |
29
29
 
30
30
  ## Use utilities in your own rules
31
31
 
32
32
  | At-rule | Use it to | Origin |
33
33
  | ------------------------------------ | ----------------------------------------------------- | -------- |
34
- | [`@apply`](apply.md) | Insert the declarations of utilities into a rule | Tailwind |
35
- | [`@variant`](variant.md) | Apply variants, such as `hover` or `dark`, to a block | Tailwind |
34
+ | [`@apply`](https://stillwind.dev/docs/at-rules/apply) | Insert the declarations of utilities into a rule | Tailwind |
35
+ | [`@variant`](https://stillwind.dev/docs/at-rules/variant) | Apply variants, such as `hover` or `dark`, to a block | Tailwind |
36
36
 
37
37
  ## Place the generated CSS
38
38
 
39
39
  | At-rule | Use it to | Origin |
40
40
  | ------------------------------------------------------------------ | ------------------------------------------------------ | --------- |
41
- | [`@stillwind-slot`](stillwind-slot.md) | Place generated utilities, theme values, and other CSS | Stillwind |
42
- | [`@stillwind-css-template`](stillwind-css-template.md) | Define the output of [`style.css()`](../macros/css.md) | Stillwind |
41
+ | [`@stillwind-slot`](https://stillwind.dev/docs/at-rules/stillwind-slot) | Place generated utilities, theme values, and other CSS | Stillwind |
42
+ | [`@stillwind-css-template`](https://stillwind.dev/docs/at-rules/stillwind-css-template) | Define the output of [`style.css()`](https://stillwind.dev/docs/macros/css) | Stillwind |
43
43
 
44
44
  `@import "stillwind"` already places every slot. Use these at-rules when you
45
45
  write your own entry stylesheet or change the output of `style.css()`.
@@ -48,15 +48,15 @@ write your own entry stylesheet or change the output of `style.css()`.
48
48
 
49
49
  | At-rule | Use it to | Origin |
50
50
  | ------------------------------------------------------------------------------------------ | -------------------------------------------------------- | --------- |
51
- | [`@stillwind-undef-utility`](stillwind-undef-utility.md) | Remove built-in or plugin utilities | Stillwind |
52
- | [`@stillwind-undef-variant`](stillwind-undef-variant.md) | Remove built-in or plugin variants | Stillwind |
53
- | [`@stillwind-undef-arbitrary-property`](stillwind-undef-arbitrary-property.md) | Reject arbitrary properties such as `[color:red]` | Stillwind |
54
- | [`@stillwind-registry`](stillwind-registry.md) | Change definitions only in keyframes or view transitions | Stillwind |
51
+ | [`@stillwind-undef-utility`](https://stillwind.dev/docs/at-rules/stillwind-undef-utility) | Remove built-in or plugin utilities | Stillwind |
52
+ | [`@stillwind-undef-variant`](https://stillwind.dev/docs/at-rules/stillwind-undef-variant) | Remove built-in or plugin variants | Stillwind |
53
+ | [`@stillwind-undef-arbitrary-property`](https://stillwind.dev/docs/at-rules/stillwind-undef-arbitrary-property) | Reject arbitrary properties such as `[color:red]` | Stillwind |
54
+ | [`@stillwind-registry`](https://stillwind.dev/docs/at-rules/stillwind-registry) | Change definitions only in keyframes or view transitions | Stillwind |
55
55
 
56
56
  ## Write a utility library
57
57
 
58
58
  Stillwind's built-in utilities and variants use
59
- [registry directives](registry-directives.md), such as
59
+ [registry directives](https://stillwind.dev/docs/at-rules/registry-directives), such as
60
60
  `@stillwind-utility` and `@stillwind-theme-namespace`. Read them when you write
61
61
  a utility library or read the built-in definitions. Application stylesheets
62
62
  normally do not need them.
@@ -66,10 +66,10 @@ normally do not need them.
66
66
  Stillwind reads its settings from `stillwind.config.ts` and generates utilities
67
67
  only from `style()` calls. It ignores `@config`, `@source`, `@reference`, the
68
68
  `important`, `source`, and `prefix` modifiers of `@import`, and the `prefix()`
69
- option of `@theme`. [ignored-tailwind-feature](../lints/ignored-tailwind-feature.md)
69
+ option of `@theme`. [ignored-tailwind-feature](https://stillwind.dev/docs/lints/ignored-tailwind-feature)
70
70
  reports them.
71
71
 
72
72
  When the loader cannot use a Stillwind at-rule, it skips the statement and
73
73
  compiles the rest of the stylesheet.
74
- [invalid-css-directive](../lints/invalid-css-directive.md) reports the skipped
74
+ [invalid-css-directive](https://stillwind.dev/docs/lints/invalid-css-directive) reports the skipped
75
75
  statement.
@@ -22,7 +22,7 @@ replaces the statement. Write it at the top level of the stylesheet.
22
22
  @plugin "@stillwind/plugin-iconify";
23
23
  ```
24
24
 
25
- [`@stillwind/plugin-iconify`](../plugins/iconify.md) adds icon utilities such as
25
+ [`@stillwind/plugin-iconify`](https://stillwind.dev/docs/plugins/iconify) adds icon utilities such as
26
26
  `icon-mdi--close`. Only the icons that your modules use reach the stylesheet.
27
27
 
28
28
  ## Finding the plugin
@@ -30,7 +30,7 @@ replaces the statement. Write it at the top level of the stylesheet.
30
30
  The host looks up `name` in the `plugins` field of the project in
31
31
  `stillwind.config.ts` first. Otherwise, it imports the package or the local file
32
32
  from the stylesheet and uses its default export. See
33
- [Configuration](../configuration.md).
33
+ [Configuration](https://stillwind.dev/docs/configuration).
34
34
 
35
35
  ## Options
36
36
 
@@ -52,16 +52,22 @@ numeric text become those values. A quoted string loses its quotes, other text s
52
52
  a string, and a comma-separated list becomes an array.
53
53
 
54
54
  Definitions from a plugin register before the definitions of your stylesheet,
55
- wherever the `@plugin` statement stands. A [`@utility`](utility.md) in your
55
+ wherever the `@plugin` statement stands. A [`@utility`](https://stillwind.dev/docs/at-rules/utility) in your
56
56
  stylesheet therefore adds to a plugin utility with the same name, and
57
- [`@stillwind-undef-utility`](stillwind-undef-utility.md) can remove
57
+ [`@stillwind-undef-utility`](https://stillwind.dev/docs/at-rules/stillwind-undef-utility) can remove
58
58
  plugin utilities.
59
59
 
60
60
  A plugin can select elements by fixed class names, such as `not-prose`.
61
- [`style()`](../macros/style.md) keeps these class names, as
62
- [Tailwind CSS compatibility](../guides/tailwind-compatibility.md#class-names-that-a-plugins-selectors-use)
61
+ [`style()`](https://stillwind.dev/docs/macros/style) keeps these class names, as
62
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility#class-names-that-a-plugins-selectors-use)
63
63
  describes. That page also lists the tested plugins.
64
64
 
65
+ A plugin can define a base class that you combine with modifier classes, such
66
+ as `btn btn-outline` in daisyUI. The `conflicting-utilities` lint rule reports
67
+ such a pair when both classes set the same property. The
68
+ [Plugins](https://stillwind.dev/docs/lints/conflicting-utilities#plugins) section of the rule page
69
+ lists the settings that stop these reports for common plugins.
70
+
65
71
  Each selector that a plugin passes to `addUtilities` or `addComponents` must
66
72
  name a class. An `@scope` rule can appear inside such a selector, as in
67
73
  `{ ".join": { "@scope (&)": { … } } }`, but not around it. When a plugin
@@ -72,6 +78,6 @@ error.
72
78
  A CSS package does not use `@plugin`. Load it with `@import`, such as
73
79
  `@import "tw-animate-css";`.
74
80
 
75
- [invalid-css-import](../lints/invalid-css-import.md) reports a plugin that the
81
+ [invalid-css-import](https://stillwind.dev/docs/lints/invalid-css-import) reports a plugin that the
76
82
  host cannot find or load, and invalid options. The stylesheet loads without that
77
83
  plugin.