stillwind 0.9.0 → 0.10.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # stillwind
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @stillwind/config@0.10.1
9
+ - @stillwind/native@0.10.1
10
+ - @stillwind/projection@0.10.1
11
+
12
+ ## 0.10.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 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.
17
+
18
+ ### Patch Changes
19
+
20
+ - `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.
21
+
22
+ - `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.
23
+
24
+ - 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`.
25
+
26
+ - Updated dependencies:
27
+ - @stillwind/config@0.10.0
28
+ - @stillwind/native@0.10.0
29
+ - @stillwind/projection@0.10.0
30
+
3
31
  ## 0.9.0
4
32
 
5
33
  ### Minor Changes
@@ -27,7 +27,7 @@ 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.9.0 | MIT License | https://stillwind.dev */
30
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
31
31
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
32
32
  @layer properties, theme, base, components, utilities;
33
33
 
@@ -54,7 +54,7 @@ export const link = {className:"sw_77cu9"};
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
57
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
58
58
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
@@ -62,6 +62,12 @@ A plugin can select elements by fixed class names, such as `not-prose`.
62
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
@@ -42,7 +42,7 @@ export const link = {className:"sw_77qpw"};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
 
@@ -52,7 +52,7 @@ export const icon = {className:"sw_wou1b"};
52
52
  ### Generated stylesheet without preflight
53
53
 
54
54
  ```css
55
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
55
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
56
56
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
57
57
  @layer properties, theme, base, components, utilities;
58
58
 
@@ -62,7 +62,7 @@ export const panel = {className:"sw_fd678"};
62
62
  ### Generated stylesheet without preflight
63
63
 
64
64
  ```css
65
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
65
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
66
66
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
67
67
  @layer properties, theme, base, components, utilities;
68
68
 
@@ -54,7 +54,7 @@ export const icon = {className:"sw_wou1b"};
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
57
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
58
58
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
@@ -45,7 +45,7 @@ export const accepted = {className:"sw_a2es4"};
45
45
  ### Generated stylesheet without preflight
46
46
 
47
47
  ```css
48
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
48
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
49
49
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
50
50
  @layer properties, theme, base, components, utilities;
51
51
 
@@ -48,7 +48,7 @@ export const replaced = {className:"sw_vtxcq"};
48
48
  ### Generated stylesheet without preflight
49
49
 
50
50
  ```css
51
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
51
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
52
52
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
53
53
  @layer properties, theme, base, components, utilities;
54
54
 
@@ -42,7 +42,7 @@ export const toolbar = {};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
  ```
@@ -44,7 +44,7 @@ export const card = {className:"sw_4rosj"};
44
44
  ### Generated stylesheet without preflight
45
45
 
46
46
  ```css
47
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
47
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
48
48
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
49
49
  @layer properties, theme, base, components, utilities;
50
50
 
@@ -110,7 +110,7 @@ export const label = {className:"sw_cum60"};
110
110
  ### Generated stylesheet without preflight
111
111
 
112
112
  ```css
113
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
113
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
114
114
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
115
115
  @layer properties, theme, base, components, utilities;
116
116
 
@@ -163,7 +163,7 @@ export const title = {className:"sw_suzvk"};
163
163
  ### Generated stylesheet without preflight
164
164
 
165
165
  ```css
166
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
166
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
167
167
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
168
168
  @layer properties, theme, base, components, utilities;
169
169
 
@@ -216,7 +216,7 @@ export const done = {className:"sw_wpj78"};
216
216
  ### Generated stylesheet without preflight
217
217
 
218
218
  ```css
219
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
219
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
220
220
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
221
221
  @layer properties, theme, base, components, utilities;
222
222
 
@@ -269,7 +269,7 @@ export const page = {className:"sw_6kn82"};
269
269
  ### Generated stylesheet without preflight
270
270
 
271
271
  ```css
272
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
272
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
273
273
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
274
274
  @layer properties, theme, base, components, utilities;
275
275
 
@@ -51,7 +51,7 @@ export const list = {className:"sw_l0qhr"};
51
51
  ### Generated stylesheet without preflight
52
52
 
53
53
  ```css
54
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
54
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
55
55
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
56
56
  @layer properties, theme, base, components, utilities;
57
57
 
@@ -116,7 +116,7 @@ export const code = {className:"sw_vqs03"};
116
116
  ### Generated stylesheet without preflight
117
117
 
118
118
  ```css
119
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
119
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
120
120
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
121
121
  @layer properties, theme, base, components, utilities;
122
122
 
@@ -172,7 +172,7 @@ export const page = {className:"sw_z5acf"};
172
172
  ### Generated stylesheet without preflight
173
173
 
174
174
  ```css
175
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
175
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
176
176
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
177
177
  @layer properties, theme, base, components, utilities;
178
178
 
@@ -268,7 +268,7 @@ export const icon = {className:"sw_xg0pi"};
268
268
  ### Generated stylesheet without preflight
269
269
 
270
270
  ```css
271
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
271
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
272
272
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
273
273
  @layer properties, theme, base, components, utilities;
274
274
 
@@ -39,7 +39,7 @@ body, that element is the one that uses the utility.
39
39
  ### Generated stylesheet without preflight
40
40
 
41
41
  ```css
42
- /*! stillwind v0.9.0 | MIT License | https://stillwind.dev */
42
+ /*! stillwind v0.10.1 | MIT License | https://stillwind.dev */
43
43
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
44
44
  @layer properties, theme, base, components, utilities;
45
45
 
@@ -222,17 +222,17 @@ 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`. `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` |
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"]`. `ignoredUtilities`: utility name globs whose pairs the rule does not report; defaults to `[]` |
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.
@@ -186,6 +186,11 @@ report utilities that Stillwind cannot resolve and Tailwind features that it
186
186
  ignores. Then test the production build, and compare your pages with the old
187
187
  version as described in the next section.
188
188
 
189
+ The `conflicting-utilities` lint rule can report a plugin's base class together
190
+ with its modifier classes, such as `btn btn-outline` in daisyUI. The
191
+ [Plugins](https://stillwind.dev/docs/lints/conflicting-utilities#plugins) section of the rule page
192
+ lists a setting for each tested plugin that stops these reports.
193
+
189
194
  ### Compare computed styles
190
195
 
191
196
  A successful build and clean CLI checks do not prove that the pages look the
@@ -81,6 +81,12 @@ Other plugins can use the same features. [`@plugin`](https://stillwind.dev/docs/
81
81
  lists the supported plugin API. JavaScript plugins need the `tailwindcss` package,
82
82
  and CSS packages do not.
83
83
 
84
+ Some of these packages combine a base class with modifier classes, such as
85
+ `btn btn-outline` in daisyUI. The `conflicting-utilities` lint rule reports such
86
+ pairs by default. The [Plugins](https://stillwind.dev/docs/lints/conflicting-utilities#plugins)
87
+ section of the rule page lists a setting for each package that stops these
88
+ reports.
89
+
84
90
  The tests cover CSS. They do not run the JavaScript of a package, such as the
85
91
  components of Preline. Plugins have no browser test with webpack or Next.js. Test
86
92
  these combinations in your application.
@@ -81,6 +81,70 @@ const rules = {
81
81
  Utilities that conflict in every writing mode, such as `p-2 px-4`, are reported
82
82
  even when the list is empty.
83
83
 
84
+ `ignoredUtilities` lists utility names whose pairs the rule does not report.
85
+ Use it for a base class that a component library expects you to combine with
86
+ modifier classes. For example, daisyUI expects `btn` with `btn-outline` or
87
+ `btn-ghost`:
88
+
89
+ ```ts
90
+ const rules = {
91
+ "conflicting-utilities": {
92
+ ignoredUtilities: ["btn"],
93
+ },
94
+ };
95
+ ```
96
+
97
+ The rule then reports neither `btn btn-outline` nor `btn btn-ghost`, but it
98
+ still reports `btn-outline btn-ghost`. Each entry is a complete,
99
+ case-sensitive glob that accepts `*` and `?`. The rule matches it against the
100
+ utility name without variants and the `!` modifier, so `btn` also covers
101
+ `hover:btn` and `btn!`. A pair is not reported when either utility matches. A
102
+ glob such as `btn*` also matches `btn-outline` and `btn-ghost`, so list base
103
+ classes by their full names. The default is an empty list.
104
+ [Plugins](#plugins) lists the base classes of common plugins.
105
+
106
+ ## Plugins
107
+
108
+ Some plugins define a base class that you combine with modifier classes on the
109
+ same element, such as `btn btn-outline` in daisyUI. When both classes set the
110
+ same property, the rule reports the pair, although the plugin intends the
111
+ modifier to win. The following settings stop these reports for the plugins that
112
+ [Tailwind CSS compatibility](https://stillwind.dev/docs/guides/tailwind-compatibility#plugins-and-css-packages)
113
+ lists:
114
+
115
+ | Package | Setting | Pairs that the setting allows |
116
+ | ---------------------------------------------- | --------------------------------------------------- | -------------------------------------------------------- |
117
+ | `daisyui` | `ignoredUtilities: ["btn", "join"]` | `btn btn-outline`, `btn btn-ghost`, `join join-vertical` |
118
+ | `@tailwindcss/typography` | `ignoredUtilities: ["prose"]` | `prose prose-lg`, `prose prose-invert` |
119
+ | `@tailwindcss/forms` with the `class` strategy | `ignoredUtilities: ["form-*"]` | `form-input px-4`, `form-select rounded-full` |
120
+ | `tailwind-scrollbar` | `ignoredUtilities: ["scrollbar", "scrollbar-thin"]` | `scrollbar scrollbar-thumb-sky-700` |
121
+ | `tailwindcss-motion` | `ignoredUtilities: ["motion-preset-*"]` | `motion-preset-fade motion-duration-2000` |
122
+ | `tailwindcss-animate` | `ignoredUtilities: ["animate-in", "animate-out"]` | `animate-in fade-in`, `animate-in duration-300` |
123
+ | `tailwindcss-animated` | `allowShorthandOverrides: true` | `animate-fade animate-duration-1000` |
124
+ | `tw-animate-css` | `allowShorthandOverrides: true` | `animate-in delay-150`, `animate-in repeat-infinite` |
125
+
126
+ The other packages on that page need no setting. In these packages, the rule
127
+ reports only pairs of alternative classes, such as `h-radix-select-trigger h-10`.
128
+
129
+ `tailwindcss-animated` and `tw-animate-css` write the `animation` shorthand in
130
+ an animation class and an `animation-*` longhand in a modifier class, so
131
+ `allowShorthandOverrides` allows these pairs without hiding other pairs of the
132
+ animation class.
133
+
134
+ If you use several plugins, put all their entries in one list:
135
+
136
+ ```ts
137
+ const rules = {
138
+ "conflicting-utilities": {
139
+ ignoredUtilities: ["btn", "join", "prose"],
140
+ },
141
+ };
142
+ ```
143
+
144
+ An ignored base class also hides the pairs that do conflict, such as
145
+ `animate-in animate-out` or `scrollbar scrollbar-thin`. Check these pairs in
146
+ review.
147
+
84
148
  ## Rule settings
85
149
 
86
150
  | Preset | Severity |
@@ -93,5 +157,6 @@ even when the list is empty.
93
157
  | --- | --- |
94
158
  | `allowShorthandOverrides` | `false` |
95
159
  | `writingModes` | `["horizontal-tb"]` |
160
+ | `ignoredUtilities` | `[]` |
96
161
 
97
162
  [Configure lint](https://stillwind.dev/docs/configuration#lint) to change the severity or options.
@@ -29,7 +29,20 @@ style("ms-4");
29
29
  ## How to fix
30
30
 
31
31
  - If the margin separates the element from the content before it, use the
32
- logical form, as in the example.
32
+ logical form, as in the example. Most physical utilities have a logical
33
+ utility that gives the same result in horizontal left-to-right text:
34
+
35
+ | Physical | Logical |
36
+ | ------------------------------------------------------ | ------------------------------------------------------------ |
37
+ | `w-*`, `h-*` | `inline-*`, `block-*` |
38
+ | `min-w-*`, `max-w-*`, `min-h-*`, `max-h-*` | `min-inline-*`, `max-inline-*`, `min-block-*`, `max-block-*` |
39
+ | `mt-*`, `mr-*`, `mb-*`, `ml-*` | `mbs-*`, `me-*`, `mbe-*`, `ms-*` |
40
+ | `pt-*`, `pr-*`, `pb-*`, `pl-*` | `pbs-*`, `pe-*`, `pbe-*`, `ps-*` |
41
+ | `top-*`, `right-*`, `bottom-*`, `left-*` | `inset-bs-*`, `inset-e-*`, `inset-be-*`, `inset-s-*` |
42
+ | `border-t-*`, `border-r-*`, `border-b-*`, `border-l-*` | `border-bs-*`, `border-e-*`, `border-be-*`, `border-s-*` |
43
+ | `rounded-l-*`, `rounded-tl-*` | `rounded-s-*`, `rounded-ss-*` |
44
+ | `text-left`, `float-left`, `clear-left` | `text-start`, `float-start`, `clear-start` |
45
+
33
46
  - If the side must stay on the left in every language, such as for an icon that
34
47
  points left, keep the physical form and add a
35
48
  [suppression comment](https://stillwind.dev/docs/configuration#suppression-comments).
@@ -41,7 +54,11 @@ style("ms-4");
41
54
  ## Shorthands
42
55
 
43
56
  A shorthand that gives every side the same value does not depend on the writing
44
- direction, so this rule does not report `p-4` or `overflow-hidden`.
57
+ direction, so this rule does not report `p-4` or `overflow-hidden`. The same
58
+ applies when one rule sets every physical property of a group to one value, so
59
+ the rule does not report `size-6`, which sets `width` and `height` to the same
60
+ value. A utility that sets `width` and `height` in different rules, such as
61
+ under different media queries, is still reported.
45
62
 
46
63
  The rule reports a shorthand with different values for its sides, such as
47
64
  `[padding:1rem_2rem]`. It also reports a shorthand that sets only some sides, such
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stillwind",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Write Tailwind CSS v4 utilities in components, enforce your design system, and ship static CSS",
5
5
  "keywords": [
6
6
  "alpinejs",
@@ -132,17 +132,17 @@
132
132
  "./package.json": "./package.json"
133
133
  },
134
134
  "dependencies": {
135
- "@stillwind/config": "0.9.0",
136
- "@stillwind/native": "0.9.0",
137
- "@stillwind/projection": "0.9.0"
135
+ "@stillwind/config": "0.10.1",
136
+ "@stillwind/native": "0.10.1",
137
+ "@stillwind/projection": "0.10.1"
138
138
  },
139
139
  "devDependencies": {
140
140
  "@stillwind-internal/tools-workspace": "0.0.0",
141
141
  "@types/node": "^26.6.6",
142
142
  "lit": "^3.3.3",
143
143
  "typescript": "^6.0.3",
144
- "vite": "npm:@voidzero-dev/vite-plus-core@1.5.1",
145
- "vite-plus": "1.5.1"
144
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
145
+ "vite-plus": "1.6.0"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "lit": "^3.3.0"
@@ -65,7 +65,40 @@ next steps.
65
65
 
66
66
  Do not change the look of the pages beyond the chosen level without asking.
67
67
  Do not add suppression comments or relax the `lint` setting to pass the checks
68
- unless the user agrees.
68
+ unless the user agrees. Plugin base classes are an exception, as the next
69
+ section describes.
70
+
71
+ ### Conflicts with plugin classes
72
+
73
+ `conflicting-utilities` can report two classes of a plugin or CSS package, or a
74
+ plugin class and a core utility. Decide from the plugin's own usage whether the
75
+ pair is intended:
76
+
77
+ - The pair is intended when the plugin's documentation or examples put both
78
+ classes on the same element, and one class is meant to change the other. For
79
+ example, daisyUI combines the base class `btn` with `btn-outline`, and
80
+ `@tailwindcss/forms` combines `form-input` with `px-4`. Check the
81
+ documentation of the installed version, because class names and CSS change
82
+ between versions.
83
+ - The pair is a real conflict when the classes are alternatives, such as two
84
+ modifiers of one kind (`btn-outline btn-ghost`) or two values (`p-2 p-4`), or
85
+ when the plugin uses them on different elements, such as a container class and
86
+ a class for its child. Fix the code instead.
87
+
88
+ For an intended pair, change the `conflicting-utilities` options in
89
+ `stillwind.config.ts`. You do not need to ask first, but report each change.
90
+
91
+ - When the finding has a note that names `allowShorthandOverrides`, the pair is a
92
+ shorthand and a longhand, such as `animation` and `animation-duration`. Set
93
+ `allowShorthandOverrides: true`.
94
+ - Otherwise, add the base class to `ignoredUtilities`. Write its full name, such
95
+ as `btn`. Use a glob such as `form-*` only when every class that it matches is
96
+ a base class, because the rule stops reporting every pair of a matching class.
97
+ - The "Plugins" section of `docs/lints/conflicting-utilities.md` lists the
98
+ settings for tested plugins. Use them as examples, and still check each pair
99
+ against the installed version.
100
+
101
+ When the plugin's usage does not tell whether a pair is intended, ask the user.
69
102
 
70
103
  ## Verify
71
104
 
@@ -84,5 +117,6 @@ unless the user agrees.
84
117
  the project's instruction file, such as `AGENTS.md` or `CLAUDE.md`. Ask
85
118
  before you create or change the file, and keep its other content.
86
119
  - Report the chosen level, the changes, the verification results, and what
87
- remains: unresolved findings, plugins that did not work, code that you left
120
+ remains: the `lint` options that you changed for plugin classes and the pairs
121
+ that they allow, unresolved findings, plugins that did not work, code that you left
88
122
  unchanged, and the work for the next level. Do not commit unless the user asks.
@@ -66,4 +66,8 @@ Markdown version of each page.
66
66
  the `docs` field of a finding names that page. Do not add a suppression comment or
67
67
  relax the `lint` setting unless the user agrees. A suppression comment names the rule
68
68
  and gives the reason after `--`.
69
+ - When `conflicting-utilities` reports a pair of classes from a plugin or CSS package,
70
+ follow "Conflicts with plugin classes" in `../migrate-to-stillwind/SKILL.md`. For a
71
+ pair that the plugin intends, you can change the rule options without asking first,
72
+ and you report the change.
69
73
  - Check the result in the browser when a change can affect the layout.