stillwind 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/css/builtin-variants/tw-relationship.css +4 -4
  3. package/css/builtins.css +1 -1
  4. package/dist/frameworks/alpine.d.ts +1 -1
  5. package/dist/frameworks/astro.d.ts +1 -1
  6. package/dist/frameworks/lit.d.ts +1 -1
  7. package/dist/frameworks/preact.d.ts +1 -1
  8. package/dist/frameworks/qwik.d.ts +1 -1
  9. package/dist/frameworks/solid.d.ts +1 -1
  10. package/dist/frameworks/svelte.d.ts +1 -1
  11. package/dist/frameworks/vanilla.d.ts +1 -1
  12. package/dist/frameworks/vue.d.ts +1 -1
  13. package/docs/at-rules/apply.md +5 -5
  14. package/docs/at-rules/custom-variant.md +12 -12
  15. package/docs/at-rules/index.md +19 -19
  16. package/docs/at-rules/plugin.md +7 -7
  17. package/docs/at-rules/registry-directives.md +9 -9
  18. package/docs/at-rules/slot.md +6 -6
  19. package/docs/at-rules/stillwind-css-template.md +7 -7
  20. package/docs/at-rules/stillwind-property.md +10 -10
  21. package/docs/at-rules/stillwind-registry.md +18 -18
  22. package/docs/at-rules/stillwind-require-properties.md +9 -9
  23. package/docs/at-rules/stillwind-slot.md +6 -6
  24. package/docs/at-rules/stillwind-undef-arbitrary-property.md +9 -9
  25. package/docs/at-rules/stillwind-undef-utility.md +10 -10
  26. package/docs/at-rules/stillwind-undef-variant.md +6 -6
  27. package/docs/at-rules/theme.md +23 -23
  28. package/docs/at-rules/utility.md +30 -30
  29. package/docs/at-rules/variant.md +6 -6
  30. package/docs/cli.md +7 -7
  31. package/docs/concepts/css-ordering.md +17 -17
  32. package/docs/concepts/how-styles-compile.md +14 -14
  33. package/docs/concepts/stylesheets.md +4 -4
  34. package/docs/configuration.md +19 -19
  35. package/docs/editors.md +8 -8
  36. package/docs/errors/SW01003.md +1 -1
  37. package/docs/errors/SW10001.md +1 -1
  38. package/docs/errors/SW10002.md +1 -1
  39. package/docs/errors/SW10004.md +6 -6
  40. package/docs/errors/SW10005.md +1 -1
  41. package/docs/errors/SW11001.md +1 -1
  42. package/docs/errors/SW11003.md +1 -1
  43. package/docs/errors/SW12001.md +2 -2
  44. package/docs/errors/SW12002.md +1 -1
  45. package/docs/errors/SW13001.md +1 -1
  46. package/docs/errors/SW13003.md +2 -2
  47. package/docs/errors/SW14001.md +1 -1
  48. package/docs/errors/SW14003.md +4 -4
  49. package/docs/errors/SW14004.md +2 -2
  50. package/docs/errors/SW14005.md +1 -1
  51. package/docs/errors/SW14006.md +1 -1
  52. package/docs/errors/SW14007.md +2 -2
  53. package/docs/errors/SW14008.md +1 -1
  54. package/docs/errors/SW30001.md +1 -1
  55. package/docs/errors/SW31001.md +1 -1
  56. package/docs/errors/SW31004.md +1 -1
  57. package/docs/errors/SW33005.md +1 -1
  58. package/docs/errors/SW34002.md +1 -1
  59. package/docs/errors/SW90001.md +1 -1
  60. package/docs/errors/SW90005.md +1 -1
  61. package/docs/errors/SW90006.md +1 -1
  62. package/docs/errors/index.md +72 -72
  63. package/docs/formatters.md +5 -5
  64. package/docs/guides/animations.md +7 -8
  65. package/docs/guides/design-systems.md +7 -7
  66. package/docs/guides/element-relationships.md +15 -19
  67. package/docs/guides/lint-adoption.md +5 -5
  68. package/docs/guides/migrating-from-css.md +11 -11
  69. package/docs/guides/migrating-from-tailwind.md +16 -16
  70. package/docs/guides/recommended-practices.md +18 -18
  71. package/docs/guides/responsive-styles.md +7 -7
  72. package/docs/guides/reusable-styles.md +5 -5
  73. package/docs/guides/runtime-conditions.md +6 -6
  74. package/docs/guides/style.md +15 -15
  75. package/docs/guides/tailwind-compatibility.md +21 -21
  76. package/docs/guides/view-transitions.md +9 -11
  77. package/docs/guides/web-components.md +4 -4
  78. package/docs/index.md +14 -12
  79. package/docs/integrations.md +3 -3
  80. package/docs/lints/ambiguous-style-base-order.md +2 -2
  81. package/docs/lints/bypassed-undefinition.md +3 -3
  82. package/docs/lints/clamped-value.md +1 -1
  83. package/docs/lints/conflicting-provider-properties.md +2 -2
  84. package/docs/lints/conflicting-utilities.md +2 -2
  85. package/docs/lints/document-scoped-selector.md +1 -1
  86. package/docs/lints/duplicate-definition.md +3 -3
  87. package/docs/lints/duplicate-utility.md +2 -2
  88. package/docs/lints/duplicate-view-transition-name.md +3 -3
  89. package/docs/lints/ignored-definition-condition.md +2 -2
  90. package/docs/lints/ignored-tailwind-feature.md +3 -3
  91. package/docs/lints/implicit-nesting-selector.md +2 -2
  92. package/docs/lints/incompatible-property-value.md +3 -3
  93. package/docs/lints/incompatible-theme-value.md +1 -1
  94. package/docs/lints/index.md +74 -74
  95. package/docs/lints/ineffective-anchor-scope.md +2 -2
  96. package/docs/lints/interfering-imported-style-base.md +1 -1
  97. package/docs/lints/invalid-animation-option.md +3 -3
  98. package/docs/lints/invalid-css-directive.md +3 -3
  99. package/docs/lints/invalid-css-import.md +2 -2
  100. package/docs/lints/invalid-css-input.md +4 -4
  101. package/docs/lints/invalid-cva-config.md +2 -2
  102. package/docs/lints/invalid-cva-input.md +4 -4
  103. package/docs/lints/invalid-keyframes-definition.md +2 -2
  104. package/docs/lints/invalid-keyframes-use.md +2 -2
  105. package/docs/lints/invalid-keyframes-variant.md +4 -4
  106. package/docs/lints/invalid-lint-suppression.md +3 -3
  107. package/docs/lints/invalid-marker-use.md +2 -2
  108. package/docs/lints/invalid-media-query.md +4 -4
  109. package/docs/lints/invalid-ref-input.md +4 -4
  110. package/docs/lints/invalid-rule-group-input.md +2 -2
  111. package/docs/lints/invalid-runtime-condition.md +3 -3
  112. package/docs/lints/invalid-stored-variant.md +3 -3
  113. package/docs/lints/invalid-style-composition.md +2 -2
  114. package/docs/lints/invalid-style-input.md +2 -2
  115. package/docs/lints/invalid-theme-reference.md +3 -3
  116. package/docs/lints/invalid-utility.md +3 -3
  117. package/docs/lints/invalid-variant.md +2 -2
  118. package/docs/lints/invalid-view-transition-definition.md +2 -2
  119. package/docs/lints/invalid-view-transition-use.md +2 -2
  120. package/docs/lints/invalid-view-transition-variant.md +3 -3
  121. package/docs/lints/mismatched-framework-import.md +3 -3
  122. package/docs/lints/missing-document-target.md +2 -2
  123. package/docs/lints/missing-ref-attachment.md +4 -4
  124. package/docs/lints/missing-view-transition-name.md +3 -3
  125. package/docs/lints/mutating-macro-argument.md +2 -2
  126. package/docs/lints/no-arbitrary-breakpoints.md +2 -2
  127. package/docs/lints/no-arbitrary-colors.md +2 -2
  128. package/docs/lints/no-arbitrary-spacing.md +1 -1
  129. package/docs/lints/no-class-property.md +3 -3
  130. package/docs/lints/no-important.md +2 -2
  131. package/docs/lints/no-restricted-declarations.md +1 -1
  132. package/docs/lints/no-restricted-length-units.md +1 -1
  133. package/docs/lints/no-restricted-theme-tokens.md +1 -1
  134. package/docs/lints/no-restricted-utilities.md +2 -2
  135. package/docs/lints/prefer-canonical-utilities.md +2 -2
  136. package/docs/lints/prefer-direct-styling.md +3 -3
  137. package/docs/lints/prefer-logical-properties.md +3 -3
  138. package/docs/lints/prefer-sorted-utilities.md +2 -2
  139. package/docs/lints/prefer-typed-relationships.md +3 -3
  140. package/docs/lints/prefer-typed-variables.md +1 -1
  141. package/docs/lints/prefer-variant-directive.md +3 -3
  142. package/docs/lints/redundant-variant.md +2 -2
  143. package/docs/lints/repeated-nesting-selector.md +2 -2
  144. package/docs/lints/runtime-condition-requires-css-if.md +3 -3
  145. package/docs/lints/split-view-transition-class.md +3 -3
  146. package/docs/lints/suspending-macro-argument.md +2 -2
  147. package/docs/lints/unknown-utility.md +4 -4
  148. package/docs/lints/unknown-variant.md +2 -2
  149. package/docs/lints/unmatched-host-selector.md +2 -2
  150. package/docs/lints/unsatisfiable-variants.md +1 -1
  151. package/docs/lints/unused-lint-suppression.md +1 -1
  152. package/docs/lints/unverified-style-base.md +2 -2
  153. package/docs/macros/anchor-scope.md +13 -13
  154. package/docs/macros/css.md +7 -7
  155. package/docs/macros/cva.md +13 -13
  156. package/docs/macros/index.md +10 -10
  157. package/docs/macros/keyframes.md +9 -9
  158. package/docs/macros/media.md +2 -2
  159. package/docs/macros/ref/as-anchor.md +11 -11
  160. package/docs/macros/ref/as-container.md +8 -8
  161. package/docs/macros/ref/at.md +10 -10
  162. package/docs/macros/ref/condition.md +8 -8
  163. package/docs/macros/ref/in.md +11 -11
  164. package/docs/macros/ref/index.md +16 -16
  165. package/docs/macros/ref/position-anchor.md +9 -9
  166. package/docs/macros/style.md +24 -24
  167. package/docs/macros/view-transition.md +16 -16
  168. package/docs/macros/when.md +13 -13
  169. package/docs/plugins/iconify.md +5 -5
  170. package/docs/plugins/index.md +4 -4
  171. package/docs/utilities-and-variants.md +6 -6
  172. package/docs/why.md +13 -15
  173. package/package.json +8 -6
@@ -24,7 +24,7 @@ Load the plugin in the project stylesheet:
24
24
  ```
25
25
 
26
26
  Use `icon-<set>--<icon>` or `icon-[<set>--<icon>]` to select an icon. Variants
27
- apply as usual. The [prefer-canonical-utilities](../lints/prefer-canonical-utilities.md)
27
+ apply as usual. The [prefer-canonical-utilities](https://stillwind.dev/docs/lints/prefer-canonical-utilities)
28
28
  lint suggests the form without brackets:
29
29
 
30
30
  ```tsx
@@ -44,7 +44,7 @@ To change the height, add a size utility to the same element:
44
44
  | `icon-(<custom-property>)` | The value of the given custom property |
45
45
 
46
46
  To add a named size, define a `--icon-size-<name>` token in
47
- [`@theme`](../at-rules/theme.md). Its value must be a length or a percentage.
47
+ [`@theme`](https://stillwind.dev/docs/at-rules/theme). Its value must be a length or a percentage.
48
48
  For example, this token adds the `icon-lg` utility:
49
49
 
50
50
  ```css
@@ -73,9 +73,9 @@ needs its own size, so give the size utility the same variant as the icon:
73
73
  ```
74
74
 
75
75
  Size values follow lint policies configured for `height`. For example,
76
- [no-restricted-length-units](../lints/no-restricted-length-units.md) with
76
+ [no-restricted-length-units](https://stillwind.dev/docs/lints/no-restricted-length-units) with
77
77
  `properties: ["height"]` checks their units, and
78
- [no-arbitrary-spacing](../lints/no-arbitrary-spacing.md) with
78
+ [no-arbitrary-spacing](https://stillwind.dev/docs/lints/no-arbitrary-spacing) with
79
79
  `properties: ["height"]` reports arbitrary sizes, but not named sizes such as
80
80
  `icon-lg`.
81
81
 
@@ -161,7 +161,7 @@ export default defineConfig({
161
161
  });
162
162
  ```
163
163
 
164
- `iconify()` accepts the options of the [`@plugin`](../at-rules/plugin.md)
164
+ `iconify()` accepts the options of the [`@plugin`](https://stillwind.dev/docs/at-rules/plugin)
165
165
  block, with `hashLength` in place of `hash-length`. When both set the same
166
166
  option, the `@plugin` block wins.
167
167
 
@@ -6,15 +6,15 @@ description: "Add utilities to your stylesheet with the plugins that the Stillwi
6
6
  # Official plugins
7
7
 
8
8
  A plugin adds utilities and variants to your stylesheet. Each project that loads
9
- a plugin can use its definitions in [`style()`](../macros/style.md), and the
9
+ a plugin can use its definitions in [`style()`](https://stillwind.dev/docs/macros/style), and the
10
10
  editor and the CLI check them like your own definitions.
11
11
 
12
12
  | Plugin | Adds |
13
13
  | ---------------------------------------------------- | -------------------------- |
14
- | [`@stillwind/plugin-iconify`](iconify.md) | Iconify icons as utilities |
14
+ | [`@stillwind/plugin-iconify`](https://stillwind.dev/docs/plugins/iconify) | Iconify icons as utilities |
15
15
 
16
16
  Install the package, and load it in your stylesheet with
17
- [`@plugin`](../at-rules/plugin.md):
17
+ [`@plugin`](https://stillwind.dev/docs/at-rules/plugin):
18
18
 
19
19
  ```css
20
20
  @import "stillwind";
@@ -22,5 +22,5 @@ Install the package, and load it in your stylesheet with
22
22
  ```
23
23
 
24
24
  Tailwind CSS v4 JavaScript plugins use the same statement.
25
- [Tailwind CSS compatibility](../guides/tailwind-compatibility.md) lists the tested
25
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility) lists the tested
26
26
  plugins.
@@ -20,7 +20,7 @@ CSS declarations names the declaration that it comes from. A variant result
20
20
  shows where the variant places the declarations of a utility.
21
21
 
22
22
  The results leave out the theme variables and other supporting CSS that the full
23
- stylesheet contains. The [macro reference](macros/index.md) shows complete
23
+ stylesheet contains. The [macro reference](https://stillwind.dev/docs/macros) shows complete
24
24
  generated stylesheets.
25
25
 
26
26
  A declaration without a matching utility becomes an arbitrary property, such as
@@ -31,22 +31,22 @@ does, so compare its declarations with your CSS before you replace it.
31
31
 
32
32
  The lookup runs the Stillwind compiler in your browser with the default theme.
33
33
  It downloads the compiler when the page opens. Utilities from your own
34
- [`@theme`](at-rules/theme.md) tokens, such as `bg-brand`, do not resolve here.
35
- See [Design systems](guides/design-systems.md) to add them. To check a utility
34
+ [`@theme`](https://stillwind.dev/docs/at-rules/theme) tokens, such as `bg-brand`, do not resolve here.
35
+ See [Design systems](https://stillwind.dev/docs/guides/design-systems) to add them. To check a utility
36
36
  in your project, hover over it in the editor or run `stillwind utilities`.
37
37
 
38
38
  The built-in utilities and variants follow Tailwind CSS, so see the
39
39
  [Tailwind CSS documentation](https://tailwindcss.com/docs) for their usage.
40
- [Tailwind CSS compatibility](guides/tailwind-compatibility.md#what-stillwind-adds)
40
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility#what-stillwind-adds)
41
41
  lists what Stillwind adds.
42
42
 
43
43
  The editor and the CLI report non-canonical spellings with
44
- [prefer-canonical-utilities](lints/prefer-canonical-utilities.md).
44
+ [prefer-canonical-utilities](https://stillwind.dev/docs/lints/prefer-canonical-utilities).
45
45
 
46
46
  ## Look up names from the command line
47
47
 
48
48
  The lookup needs a browser. In a terminal or a coding agent, the
49
- [CLI](cli.md#stillwind-utilities) shows the CSS of utilities and variants:
49
+ [CLI](https://stillwind.dev/docs/cli#stillwind-utilities) shows the CSS of utilities and variants:
50
50
 
51
51
  ```sh
52
52
  vp exec stillwind utilities p-4 hover:underline
package/docs/why.md CHANGED
@@ -34,7 +34,7 @@ lint: {
34
34
  },
35
35
  ```
36
36
 
37
- To use a breakpoint in JavaScript, call [`style.media()`](macros/media.md) with its name. You do
37
+ To use a breakpoint in JavaScript, call [`style.media()`](https://stillwind.dev/docs/macros/media) with its name. You do
38
38
  not need to copy the breakpoint value into your code.
39
39
 
40
40
  ## Connect elements through variables
@@ -43,14 +43,13 @@ Tailwind connects elements by name: `group/card` on the parent and
43
43
  `group-hover/card:` on the child. Tailwind reads these names as strings, so it
44
44
  does not check that the two names agree.
45
45
 
46
- In Stillwind, you create the name as a variable with [`style.ref()`](macros/ref/index.md):
46
+ In Stillwind, you create the name as a variable with [`style.ref()`](https://stillwind.dev/docs/macros/ref):
47
47
 
48
48
  ```tsx
49
49
  import { style } from "stillwind/react";
50
50
 
51
- const card = style.ref("card");
52
-
53
51
  export function Card() {
52
+ const card = style.ref("card");
54
53
  return (
55
54
  <article {...style(card, "rounded-lg p-4")}>
56
55
  <h2 {...style({ [card("hover")]: "text-blue-600" })}>Project</h2>
@@ -74,12 +73,11 @@ In Stillwind, you define them in the component that uses them:
74
73
  ```tsx
75
74
  import { style } from "stillwind/react";
76
75
 
77
- const enter = style.keyframes({
78
- from: "opacity-0",
79
- to: "opacity-100",
80
- });
81
-
82
76
  export function Notice() {
77
+ const enter = style.keyframes({
78
+ from: "opacity-0",
79
+ to: "opacity-100",
80
+ });
83
81
  return <aside {...style(enter("duration-300"))}>Your changes are saved.</aside>;
84
82
  }
85
83
  ```
@@ -114,21 +112,21 @@ stillwind fmt
114
112
  ```
115
113
 
116
114
  AI agents can run the same commands as you, and CI can run them on every change.
117
- The [VS Code extension](editors.md) shows the same findings while you edit.
115
+ The [VS Code extension](https://stillwind.dev/docs/editors) shows the same findings while you edit.
118
116
 
119
117
  ## Ship static CSS
120
118
 
121
119
  The compiler turns static utilities into CSS files and class names at build time.
122
120
  These styles need no JavaScript at runtime. Conditions and dynamic values add
123
121
  only the small runtime helpers that they use. See
124
- [How styles compile](concepts/how-styles-compile.md) for the generated code.
122
+ [How styles compile](https://stillwind.dev/docs/concepts/how-styles-compile) for the generated code.
125
123
 
126
124
  ## What changes from Tailwind
127
125
 
128
126
  Stillwind supports Tailwind CSS v4 utilities, variants, and plugins. You write
129
127
  them in a different place:
130
128
 
131
- - You pass utilities to [`style()`](guides/style.md) and spread the result onto
129
+ - You pass utilities to [`style()`](https://stillwind.dev/docs/guides/style) and spread the result onto
132
130
  the element, instead of writing a `className` string.
133
131
  - Stillwind needs a build tool. It supports Vite, Astro, Next.js, SvelteKit,
134
132
  Nuxt, webpack, Rspack, Rsbuild, and Turbopack.
@@ -136,9 +134,9 @@ them in a different place:
136
134
 
137
135
  Tailwind CSS remains the better fit when a project has no build tool, or when
138
136
  classes come from places that Stillwind does not compile, such as HTML from a
139
- CMS. [Tailwind CSS compatibility](guides/tailwind-compatibility.md) lists the
137
+ CMS. [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility) lists the
140
138
  tested plugins and the differences.
141
139
 
142
- [Getting started](index.md) adds Stillwind to a new application.
143
- [Migrating from Tailwind CSS](guides/migrating-from-tailwind.md) moves an
140
+ [Getting started](https://stillwind.dev/docs) adds Stillwind to a new application.
141
+ [Migrating from Tailwind CSS](https://stillwind.dev/docs/guides/migrating-from-tailwind) moves an
144
142
  existing Tailwind project.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stillwind",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Write Tailwind CSS v4 utilities in components, enforce your design system, and ship static CSS",
5
5
  "keywords": [
6
6
  "alpinejs",
@@ -43,6 +43,8 @@
43
43
  "css",
44
44
  "docs",
45
45
  "skills",
46
+ "README.md",
47
+ "CHANGELOG.md",
46
48
  "AGENTS_TEMPLATE.md",
47
49
  "TAILWINDCSS-MIT-LICENSE"
48
50
  ],
@@ -130,17 +132,17 @@
130
132
  "./package.json": "./package.json"
131
133
  },
132
134
  "dependencies": {
133
- "@stillwind/config": "0.8.0",
134
- "@stillwind/native": "0.8.0",
135
- "@stillwind/projection": "0.8.0"
135
+ "@stillwind/config": "0.9.0",
136
+ "@stillwind/native": "0.9.0",
137
+ "@stillwind/projection": "0.9.0"
136
138
  },
137
139
  "devDependencies": {
138
140
  "@stillwind-internal/tools-workspace": "0.0.0",
139
141
  "@types/node": "^26.6.6",
140
142
  "lit": "^3.3.3",
141
143
  "typescript": "^6.0.3",
142
- "vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
143
- "vite-plus": "1.4.0"
144
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.5.1",
145
+ "vite-plus": "1.5.1"
144
146
  },
145
147
  "peerDependencies": {
146
148
  "lit": "^3.3.0"