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