stillwind 0.0.0 → 0.1.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/AGENTS_TEMPLATE.md +5 -0
- package/LICENSE +21 -0
- package/README.md +166 -0
- package/TAILWINDCSS-MIT-LICENSE +21 -0
- package/css/builtin-metadata/sw-motion-properties.css +186 -0
- package/css/builtin-metadata/tw-legacy-metadata.css +36 -0
- package/css/builtin-metadata/tw-properties.css +944 -0
- package/css/builtin-metadata/tw-registry-metadata.css +52 -0
- package/css/builtin-metadata/tw-relationship-metadata.css +10 -0
- package/css/builtin-utilities/sw-motion-contexts.css +1043 -0
- package/css/builtin-utilities/tw-backgrounds.css +606 -0
- package/css/builtin-utilities/tw-borders.css +954 -0
- package/css/builtin-utilities/tw-effects.css +1209 -0
- package/css/builtin-utilities/tw-flex-grid.css +749 -0
- package/css/builtin-utilities/tw-interactivity.css +680 -0
- package/css/builtin-utilities/tw-layout.css +943 -0
- package/css/builtin-utilities/tw-masks.css +1268 -0
- package/css/builtin-utilities/tw-motion.css +142 -0
- package/css/builtin-utilities/tw-spacing-sizing.css +621 -0
- package/css/builtin-utilities/tw-svg.css +50 -0
- package/css/builtin-utilities/tw-transforms.css +652 -0
- package/css/builtin-utilities/tw-typography.css +720 -0
- package/css/builtin-variants/sw-conditional.css +5 -0
- package/css/builtin-variants/sw-document.css +13 -0
- package/css/builtin-variants/tw-conditional.css +187 -0
- package/css/builtin-variants/tw-dynamic-selector.css +49 -0
- package/css/builtin-variants/tw-relationship.css +41 -0
- package/css/builtin-variants/tw-state.css +159 -0
- package/css/builtin-variants/tw-structural.css +121 -0
- package/css/builtins.css +111 -0
- package/css/preflight.css +401 -0
- package/css/templates.css +40 -0
- package/css/theme.css +546 -0
- package/css/utilities.css +9 -0
- package/dist/class-object-D24FFYqO.js +6 -0
- package/dist/class-object-D24FFYqO.js.map +1 -0
- package/dist/class-object-D7ZGJOf_.d.ts +9 -0
- package/dist/class-string-CQHnc9GN.d.ts +9 -0
- package/dist/class-string-Db8-oI4q.js +6 -0
- package/dist/class-string-Db8-oI4q.js.map +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -0
- package/dist/css.d.ts +100 -0
- package/dist/css.js +143 -0
- package/dist/css.js.map +1 -0
- package/dist/cva-BwX07CFw.js +204 -0
- package/dist/cva-BwX07CFw.js.map +1 -0
- package/dist/cva-DSpDNBYi.d.ts +9 -0
- package/dist/development-DttPQc71.d.ts +27 -0
- package/dist/development-J-JCSIm0.js +111 -0
- package/dist/development-J-JCSIm0.js.map +1 -0
- package/dist/frameworks/alpine.d.ts +20 -0
- package/dist/frameworks/alpine.js +18 -0
- package/dist/frameworks/alpine.js.map +1 -0
- package/dist/frameworks/astro.d.ts +3 -0
- package/dist/frameworks/astro.js +1 -0
- package/dist/frameworks/lit.d.ts +21 -0
- package/dist/frameworks/lit.js +38 -0
- package/dist/frameworks/lit.js.map +1 -0
- package/dist/frameworks/preact.d.ts +3 -0
- package/dist/frameworks/preact.js +1 -0
- package/dist/frameworks/qwik.d.ts +3 -0
- package/dist/frameworks/qwik.js +1 -0
- package/dist/frameworks/react.d.ts +10 -0
- package/dist/frameworks/react.js +6 -0
- package/dist/frameworks/react.js.map +1 -0
- package/dist/frameworks/solid.d.ts +3 -0
- package/dist/frameworks/solid.js +1 -0
- package/dist/frameworks/svelte.d.ts +3 -0
- package/dist/frameworks/svelte.js +1 -0
- package/dist/frameworks/vanilla.d.ts +27 -0
- package/dist/frameworks/vanilla.js +3 -0
- package/dist/frameworks/vue.d.ts +3 -0
- package/dist/frameworks/vue.js +1 -0
- package/dist/index-RwVFpxhE.d.ts +815 -0
- package/dist/macro/index.d.ts +2 -0
- package/dist/macro/index.js +1 -0
- package/dist/module-css.d.ts +30 -0
- package/dist/module-css.js +23 -0
- package/dist/module-css.js.map +1 -0
- package/dist/runtime/class-name-object-development.d.ts +10 -0
- package/dist/runtime/class-name-object-development.js +18 -0
- package/dist/runtime/class-name-object-development.js.map +1 -0
- package/dist/runtime/class-name-object.d.ts +16 -0
- package/dist/runtime/class-name-object.js +31 -0
- package/dist/runtime/class-name-object.js.map +1 -0
- package/dist/runtime/class-object-development.d.ts +10 -0
- package/dist/runtime/class-object-development.js +18 -0
- package/dist/runtime/class-object-development.js.map +1 -0
- package/dist/runtime/class-object.d.ts +16 -0
- package/dist/runtime/class-object.js +31 -0
- package/dist/runtime/class-object.js.map +1 -0
- package/dist/runtime/class-string-development.d.ts +10 -0
- package/dist/runtime/class-string-development.js +18 -0
- package/dist/runtime/class-string-development.js.map +1 -0
- package/dist/runtime/class-string.d.ts +16 -0
- package/dist/runtime/class-string.js +31 -0
- package/dist/runtime/class-string.js.map +1 -0
- package/dist/shared-B9IQXU6P.d.ts +32 -0
- package/dist/style-BV4ctkni.js +78 -0
- package/dist/style-BV4ctkni.js.map +1 -0
- package/dist/style-fTQbsVWZ.js +41 -0
- package/dist/style-fTQbsVWZ.js.map +1 -0
- package/docs/agents.md +76 -0
- package/docs/at-rules/apply.md +93 -0
- package/docs/at-rules/custom-variant.md +127 -0
- package/docs/at-rules/index.md +75 -0
- package/docs/at-rules/plugin.md +71 -0
- package/docs/at-rules/registry-directives.md +181 -0
- package/docs/at-rules/slot.md +58 -0
- package/docs/at-rules/stillwind-css-template.md +126 -0
- package/docs/at-rules/stillwind-property.md +133 -0
- package/docs/at-rules/stillwind-registry.md +115 -0
- package/docs/at-rules/stillwind-require-properties.md +91 -0
- package/docs/at-rules/stillwind-slot.md +85 -0
- package/docs/at-rules/stillwind-undef-arbitrary-property.md +75 -0
- package/docs/at-rules/stillwind-undef-utility.md +87 -0
- package/docs/at-rules/stillwind-undef-variant.md +55 -0
- package/docs/at-rules/theme.md +304 -0
- package/docs/at-rules/utility.md +286 -0
- package/docs/at-rules/variant.md +91 -0
- package/docs/concepts/css-ordering.md +245 -0
- package/docs/concepts/how-styles-compile.md +132 -0
- package/docs/configuration.md +298 -0
- package/docs/errors/SW01001.md +51 -0
- package/docs/errors/SW01002.md +52 -0
- package/docs/errors/SW01003.md +69 -0
- package/docs/errors/SW02001.md +23 -0
- package/docs/errors/SW02002.md +51 -0
- package/docs/errors/SW03001.md +71 -0
- package/docs/errors/SW03002.md +79 -0
- package/docs/errors/SW03003.md +36 -0
- package/docs/errors/SW10001.md +34 -0
- package/docs/errors/SW10002.md +36 -0
- package/docs/errors/SW10003.md +30 -0
- package/docs/errors/SW10004.md +39 -0
- package/docs/errors/SW10005.md +35 -0
- package/docs/errors/SW11001.md +37 -0
- package/docs/errors/SW11002.md +65 -0
- package/docs/errors/SW11003.md +20 -0
- package/docs/errors/SW12001.md +43 -0
- package/docs/errors/SW12002.md +42 -0
- package/docs/errors/SW13001.md +35 -0
- package/docs/errors/SW13002.md +33 -0
- package/docs/errors/SW13003.md +18 -0
- package/docs/errors/SW13004.md +45 -0
- package/docs/errors/SW14001.md +44 -0
- package/docs/errors/SW14002.md +47 -0
- package/docs/errors/SW14003.md +38 -0
- package/docs/errors/SW14004.md +48 -0
- package/docs/errors/SW14005.md +51 -0
- package/docs/errors/SW14006.md +19 -0
- package/docs/errors/SW14007.md +35 -0
- package/docs/errors/SW14008.md +41 -0
- package/docs/errors/SW15001.md +18 -0
- package/docs/errors/SW15002.md +19 -0
- package/docs/errors/SW15003.md +16 -0
- package/docs/errors/SW30001.md +21 -0
- package/docs/errors/SW30002.md +18 -0
- package/docs/errors/SW30003.md +17 -0
- package/docs/errors/SW30004.md +18 -0
- package/docs/errors/SW31001.md +20 -0
- package/docs/errors/SW31002.md +17 -0
- package/docs/errors/SW31003.md +18 -0
- package/docs/errors/SW31004.md +20 -0
- package/docs/errors/SW31005.md +18 -0
- package/docs/errors/SW31006.md +17 -0
- package/docs/errors/SW31007.md +18 -0
- package/docs/errors/SW31008.md +16 -0
- package/docs/errors/SW31009.md +18 -0
- package/docs/errors/SW31010.md +16 -0
- package/docs/errors/SW31011.md +17 -0
- package/docs/errors/SW32001.md +18 -0
- package/docs/errors/SW32002.md +45 -0
- package/docs/errors/SW32003.md +43 -0
- package/docs/errors/SW32004.md +17 -0
- package/docs/errors/SW32005.md +40 -0
- package/docs/errors/SW32006.md +18 -0
- package/docs/errors/SW32007.md +20 -0
- package/docs/errors/SW33001.md +17 -0
- package/docs/errors/SW33002.md +17 -0
- package/docs/errors/SW33003.md +17 -0
- package/docs/errors/SW33004.md +17 -0
- package/docs/errors/SW33005.md +20 -0
- package/docs/errors/SW34001.md +18 -0
- package/docs/errors/SW34002.md +17 -0
- package/docs/errors/SW34003.md +18 -0
- package/docs/errors/SW90001.md +17 -0
- package/docs/errors/SW90002.md +18 -0
- package/docs/errors/SW90003.md +17 -0
- package/docs/errors/SW90004.md +17 -0
- package/docs/errors/SW90005.md +16 -0
- package/docs/errors/SW90006.md +17 -0
- package/docs/errors/SW90007.md +17 -0
- package/docs/errors/SW90008.md +17 -0
- package/docs/errors/index.md +125 -0
- package/docs/guides/animations.md +73 -0
- package/docs/guides/design-systems.md +119 -0
- package/docs/guides/element-relationships.md +136 -0
- package/docs/guides/lint-adoption.md +128 -0
- package/docs/guides/migrating-from-css.md +126 -0
- package/docs/guides/migrating-from-tailwind.md +179 -0
- package/docs/guides/recommended-practices.md +338 -0
- package/docs/guides/responsive-styles.md +103 -0
- package/docs/guides/reusable-styles.md +110 -0
- package/docs/guides/style.md +181 -0
- package/docs/guides/tailwind-compatibility.md +126 -0
- package/docs/guides/view-transitions.md +84 -0
- package/docs/guides/web-components.md +216 -0
- package/docs/index.md +136 -0
- package/docs/integrations.md +190 -0
- package/docs/lints/ambiguous-style-base-order.md +50 -0
- package/docs/lints/bypassed-undefinition.md +50 -0
- package/docs/lints/clamped-value.md +44 -0
- package/docs/lints/conflicting-provider-properties.md +47 -0
- package/docs/lints/conflicting-utilities.md +55 -0
- package/docs/lints/document-scoped-selector.md +45 -0
- package/docs/lints/duplicate-definition.md +44 -0
- package/docs/lints/duplicate-utility.md +44 -0
- package/docs/lints/duplicate-view-transition-name.md +45 -0
- package/docs/lints/ignored-definition-condition.md +51 -0
- package/docs/lints/ignored-tailwind-feature.md +62 -0
- package/docs/lints/incompatible-property-value.md +60 -0
- package/docs/lints/incompatible-theme-value.md +46 -0
- package/docs/lints/index.md +140 -0
- package/docs/lints/ineffective-anchor-scope.md +46 -0
- package/docs/lints/interfering-imported-style-base.md +57 -0
- package/docs/lints/invalid-animation-option.md +47 -0
- package/docs/lints/invalid-css-directive.md +43 -0
- package/docs/lints/invalid-css-import.md +43 -0
- package/docs/lints/invalid-css-input.md +45 -0
- package/docs/lints/invalid-cva-config.md +46 -0
- package/docs/lints/invalid-cva-input.md +50 -0
- package/docs/lints/invalid-keyframes-definition.md +47 -0
- package/docs/lints/invalid-keyframes-use.md +47 -0
- package/docs/lints/invalid-keyframes-variant.md +48 -0
- package/docs/lints/invalid-lint-suppression.md +47 -0
- package/docs/lints/invalid-marker-use.md +53 -0
- package/docs/lints/invalid-media-query.md +52 -0
- package/docs/lints/invalid-ref-input.md +49 -0
- package/docs/lints/invalid-rule-group-input.md +58 -0
- package/docs/lints/invalid-runtime-condition.md +67 -0
- package/docs/lints/invalid-style-composition.md +52 -0
- package/docs/lints/invalid-style-input.md +47 -0
- package/docs/lints/invalid-theme-reference.md +52 -0
- package/docs/lints/invalid-utility.md +44 -0
- package/docs/lints/invalid-variant.md +45 -0
- package/docs/lints/invalid-view-transition-definition.md +46 -0
- package/docs/lints/invalid-view-transition-use.md +46 -0
- package/docs/lints/invalid-view-transition-variant.md +51 -0
- package/docs/lints/mismatched-framework-import.md +47 -0
- package/docs/lints/missing-document-target.md +44 -0
- package/docs/lints/missing-ref-attachment.md +44 -0
- package/docs/lints/missing-view-transition-name.md +46 -0
- package/docs/lints/mutating-macro-argument.md +48 -0
- package/docs/lints/no-arbitrary-breakpoints.md +50 -0
- package/docs/lints/no-arbitrary-colors.md +51 -0
- package/docs/lints/no-arbitrary-spacing.md +57 -0
- package/docs/lints/no-class-property.md +58 -0
- package/docs/lints/no-important.md +50 -0
- package/docs/lints/no-restricted-declarations.md +76 -0
- package/docs/lints/no-restricted-length-units.md +73 -0
- package/docs/lints/no-restricted-theme-tokens.md +73 -0
- package/docs/lints/no-restricted-utilities.md +73 -0
- package/docs/lints/prefer-canonical-utilities.md +69 -0
- package/docs/lints/prefer-direct-styling.md +47 -0
- package/docs/lints/prefer-explicit-nesting-selector.md +42 -0
- package/docs/lints/prefer-logical-properties.md +49 -0
- package/docs/lints/prefer-sorted-utilities.md +46 -0
- package/docs/lints/prefer-typed-relationships.md +48 -0
- package/docs/lints/prefer-typed-variables.md +43 -0
- package/docs/lints/prefer-variant-directive.md +59 -0
- package/docs/lints/redundant-variant.md +50 -0
- package/docs/lints/repeated-nesting-selector.md +59 -0
- package/docs/lints/runtime-condition-requires-css-if.md +59 -0
- package/docs/lints/split-view-transition-class.md +47 -0
- package/docs/lints/suspending-macro-argument.md +46 -0
- package/docs/lints/unknown-utility.md +47 -0
- package/docs/lints/unknown-variant.md +42 -0
- package/docs/lints/unsatisfiable-variants.md +42 -0
- package/docs/lints/unused-lint-suppression.md +57 -0
- package/docs/lints/unverified-style-base.md +64 -0
- package/docs/macros/anchor-scope.md +90 -0
- package/docs/macros/css.md +68 -0
- package/docs/macros/cva.md +153 -0
- package/docs/macros/index.md +30 -0
- package/docs/macros/keyframes.md +98 -0
- package/docs/macros/media.md +65 -0
- package/docs/macros/ref/as-anchor.md +70 -0
- package/docs/macros/ref/as-container.md +64 -0
- package/docs/macros/ref/at.md +68 -0
- package/docs/macros/ref/condition.md +86 -0
- package/docs/macros/ref/in.md +81 -0
- package/docs/macros/ref/index.md +115 -0
- package/docs/macros/ref/position-anchor.md +64 -0
- package/docs/macros/style.md +185 -0
- package/docs/macros/view-transition.md +159 -0
- package/docs/utilities.md +35 -0
- package/docs/why.md +144 -0
- package/index.css +7 -0
- package/package.json +135 -8
- package/skills/migrate-to-stillwind/SKILL.md +81 -0
- package/skills/setup-stillwind/SKILL.md +51 -0
- package/skills/stillwind/SKILL.md +54 -0
- package/index.js +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate-to-stillwind
|
|
3
|
+
description: Migrate a project from Tailwind CSS, plain CSS, CSS Modules, preprocessors, or CSS-in-JS to Stillwind, after agreeing with the user how far to migrate.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Migrate to Stillwind
|
|
7
|
+
|
|
8
|
+
Use the documentation in `node_modules/stillwind/docs/`. Without a local
|
|
9
|
+
package, use `../../docs/` relative to this skill's real directory, following
|
|
10
|
+
any link. If the skill was copied without the package, start from
|
|
11
|
+
https://stillwind.dev/docs/llms.txt, which lists the Markdown version of each page.
|
|
12
|
+
|
|
13
|
+
Read these pages before you change code:
|
|
14
|
+
|
|
15
|
+
- `docs/guides/migrating-from-tailwind.md` or `docs/guides/migrating-from-css.md`
|
|
16
|
+
- `docs/guides/tailwind-compatibility.md` for a Tailwind CSS project
|
|
17
|
+
- `docs/guides/recommended-practices.md`
|
|
18
|
+
- `docs/integrations.md` for the build tool
|
|
19
|
+
|
|
20
|
+
## Inspect the project
|
|
21
|
+
|
|
22
|
+
Check the working tree first, and keep unrelated changes. Then count what the
|
|
23
|
+
migration touches, so that the user can choose its scope:
|
|
24
|
+
|
|
25
|
+
- files and elements with class strings, and class helpers such as `clsx`,
|
|
26
|
+
`classnames`, `tailwind-merge`, and `cva`;
|
|
27
|
+
- stylesheets, CSS Modules, preprocessor files, and CSS-in-JS calls;
|
|
28
|
+
- Tailwind configuration, `@config`, plugins, and import options;
|
|
29
|
+
- arbitrary values, such as `text-[#abcdef]` and `max-[768px]:`, and repeated
|
|
30
|
+
literal values in CSS;
|
|
31
|
+
- `group-*` and `peer-*` variants, parent and sibling selectors, global
|
|
32
|
+
`@keyframes`, and classes that code toggles.
|
|
33
|
+
|
|
34
|
+
## Agree on the scope
|
|
35
|
+
|
|
36
|
+
Explain these levels to the user. For each level, give the counts that it
|
|
37
|
+
affects, one before-and-after example from the project, and whether the pages
|
|
38
|
+
can look different. Recommend one level, and wait for the user's choice.
|
|
39
|
+
|
|
40
|
+
| Level | Tailwind CSS projects | CSS projects | Look |
|
|
41
|
+
| ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- | ---------- |
|
|
42
|
+
| 1 | Move classes into `style()`, replace class helpers, move the configuration | Move rules into `style()`; values without a token become arbitrary values | Unchanged |
|
|
43
|
+
| 2 | Level 1, and replace arbitrary values with theme tokens and enable the design-system rules | Level 1, and collect repeated values into theme tokens | Can change |
|
|
44
|
+
| 3 | Level 2, and adopt Stillwind idioms: refs instead of `group-*` and `peer-*`, keyframes next to their components, attributes instead of toggled classes, custom utilities instead of separate CSS | Same as Tailwind CSS projects | Can change |
|
|
45
|
+
|
|
46
|
+
The user can also limit the migration to some directories or components. When
|
|
47
|
+
you cannot ask the user, migrate to level 1 and report the higher levels as
|
|
48
|
+
next steps.
|
|
49
|
+
|
|
50
|
+
## Migrate
|
|
51
|
+
|
|
52
|
+
1. Set up Stillwind as in steps 1 to 6 of `../setup-stillwind/SKILL.md`. In a
|
|
53
|
+
CSS project, leave out the preflight reset until the old CSS is gone, as
|
|
54
|
+
`docs/guides/migrating-from-css.md` describes.
|
|
55
|
+
2. Migrate in batches, such as one directory or one group of components. After
|
|
56
|
+
each batch, build the project and run `stillwind lint`.
|
|
57
|
+
3. For many mechanical changes, you can write a one-off codemod for this
|
|
58
|
+
project. Keep it outside the source directories, review its diff, and delete
|
|
59
|
+
it afterward.
|
|
60
|
+
4. Remove an old dependency or stylesheet only when nothing uses it. The
|
|
61
|
+
`tailwind` field of `stillwind.config.ts` still requires the `tailwindcss`
|
|
62
|
+
package.
|
|
63
|
+
|
|
64
|
+
Do not change the look of the pages beyond the chosen level without asking.
|
|
65
|
+
Do not add suppression comments or relax the `lint` setting to pass the checks
|
|
66
|
+
unless the user agrees.
|
|
67
|
+
|
|
68
|
+
## Verify
|
|
69
|
+
|
|
70
|
+
- Build the project, and run `stillwind lint` and `stillwind fmt`.
|
|
71
|
+
- Compare the migrated pages with the old version in a browser when you can.
|
|
72
|
+
Otherwise, list the pages that the user should check.
|
|
73
|
+
|
|
74
|
+
## Finish
|
|
75
|
+
|
|
76
|
+
- Offer to add the contents of `node_modules/stillwind/AGENTS_TEMPLATE.md` to
|
|
77
|
+
the project's instruction file, such as `AGENTS.md` or `CLAUDE.md`. Ask
|
|
78
|
+
before you create or change the file, and keep its other content.
|
|
79
|
+
- Report the chosen level, the changes, the verification results, and what
|
|
80
|
+
remains: unresolved findings, plugins that did not work, code that you left
|
|
81
|
+
unchanged, and the work for the next level. Do not commit unless the user asks.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup-stillwind
|
|
3
|
+
description: Set up Stillwind in a project that has no styles to migrate, such as a new project, using the bundled documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Set up Stillwind
|
|
7
|
+
|
|
8
|
+
Use the documentation in `node_modules/stillwind/docs/`. Without a local
|
|
9
|
+
package, use `../../docs/` relative to this skill's real directory, following
|
|
10
|
+
any link. If the skill was copied without the package, start from
|
|
11
|
+
https://stillwind.dev/docs/llms.txt, which lists the Markdown version of each page.
|
|
12
|
+
|
|
13
|
+
If the project already styles its pages with Tailwind CSS or other CSS, follow
|
|
14
|
+
`../migrate-to-stillwind/SKILL.md` instead.
|
|
15
|
+
|
|
16
|
+
## Steps
|
|
17
|
+
|
|
18
|
+
1. Find the package manager, the build tool, and the frameworks. Stillwind
|
|
19
|
+
requires a build tool that `docs/integrations.md` lists. If the project has
|
|
20
|
+
no build tool, tell the user and stop.
|
|
21
|
+
2. Read `docs/index.md` and the section of `docs/integrations.md` for the build
|
|
22
|
+
tool.
|
|
23
|
+
3. Install `stillwind` as a dependency, and `@stillwind/integration` and
|
|
24
|
+
`@stillwind/cli` as development dependencies. When the project uses
|
|
25
|
+
Prettier, also install `prettier-plugin-stillwind` and add it to the Prettier
|
|
26
|
+
configuration.
|
|
27
|
+
4. Create the CSS entry and `stillwind.config.ts`. Make `files` match the file
|
|
28
|
+
extensions of the frameworks that the project uses.
|
|
29
|
+
5. Register the integration as the integration page describes. Keep the plugin
|
|
30
|
+
order that it requires, such as Stillwind before the JSX transform.
|
|
31
|
+
6. Add `stillwind lint` and `stillwind fmt --check` to the project's check
|
|
32
|
+
scripts or CI when the project has them.
|
|
33
|
+
7. A starter template often includes demo styles, such as `App.css`. Ask the
|
|
34
|
+
user whether to rewrite the demo components with `style()` or to remove the
|
|
35
|
+
demo.
|
|
36
|
+
|
|
37
|
+
## Verify
|
|
38
|
+
|
|
39
|
+
- Build the project, and start the development server if you can. Confirm that
|
|
40
|
+
an element styled with `style()` receives its CSS.
|
|
41
|
+
- Run `stillwind lint`, and fix the findings.
|
|
42
|
+
|
|
43
|
+
## Finish
|
|
44
|
+
|
|
45
|
+
- Offer to add the contents of `node_modules/stillwind/AGENTS_TEMPLATE.md` to
|
|
46
|
+
the project's instruction file, such as `AGENTS.md` or `CLAUDE.md`. Ask
|
|
47
|
+
before you create or change the file, and keep its other content.
|
|
48
|
+
- Mention that `docs/agents.md` describes how to install the skills, and that
|
|
49
|
+
the VS Code extension shows findings in the editor.
|
|
50
|
+
- Report the installed packages, the created and changed files, and the
|
|
51
|
+
verification results. Do not commit unless the user asks.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stillwind
|
|
3
|
+
description: Write and fix styles in a project that uses Stillwind, by loading the relevant pages of the bundled documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Stillwind
|
|
7
|
+
|
|
8
|
+
Read only the pages that the task needs. Use the documentation of the installed
|
|
9
|
+
package in `node_modules/stillwind/docs/`, so that it matches the project's
|
|
10
|
+
Stillwind version. The `docs/` paths below are relative to the package root.
|
|
11
|
+
When this skill is installed without a local package, follow the skill's link to
|
|
12
|
+
its real directory and use `../../docs/` in the same package. If the skill was
|
|
13
|
+
copied without the package, start from https://stillwind.dev/docs/llms.txt,
|
|
14
|
+
which lists the Markdown version of each page.
|
|
15
|
+
|
|
16
|
+
## Task routing
|
|
17
|
+
|
|
18
|
+
| Task | Pages |
|
|
19
|
+
| ------------------------------------------------------ | ------------------------------------------------------------------- |
|
|
20
|
+
| Set up a project, choose an integration | `docs/index.md`, `docs/integrations.md` |
|
|
21
|
+
| Migrate existing styles | `../migrate-to-stillwind/SKILL.md` |
|
|
22
|
+
| Recommended practices and mistakes that produce no CSS | `docs/guides/recommended-practices.md` |
|
|
23
|
+
| Utilities, variants, conditions, runtime values | `docs/guides/style.md`, `docs/macros/style.md` |
|
|
24
|
+
| Shared styles, states, and component options | `docs/guides/reusable-styles.md`, `docs/macros/cva.md` |
|
|
25
|
+
| Breakpoints and media queries in JavaScript | `docs/guides/responsive-styles.md`, `docs/macros/media.md` |
|
|
26
|
+
| Styles that depend on a parent, sibling, or anchor | `docs/guides/element-relationships.md`, `docs/macros/ref/index.md` |
|
|
27
|
+
| Animations | `docs/guides/animations.md`, `docs/macros/keyframes.md` |
|
|
28
|
+
| View transitions | `docs/guides/view-transitions.md`, `docs/macros/view-transition.md` |
|
|
29
|
+
| Theme tokens and design-system rules | `docs/guides/design-systems.md` |
|
|
30
|
+
| Custom utilities and variants | `docs/at-rules/index.md`, then the page of the at-rule |
|
|
31
|
+
| Available utilities | `docs/utilities.md` |
|
|
32
|
+
| `stillwind.config.ts` | `docs/configuration.md` |
|
|
33
|
+
| CLI, CI, and lint presets | `docs/guides/lint-adoption.md` |
|
|
34
|
+
| A lint finding | `docs/lints/<rule>.md` |
|
|
35
|
+
| A compiler error such as `SW01001` | `docs/errors/<code>.md` |
|
|
36
|
+
| Shadow DOM and Web Components | `docs/guides/web-components.md` |
|
|
37
|
+
| Which declaration wins when styles are composed | `docs/concepts/css-ordering.md` |
|
|
38
|
+
| What the compiler generates | `docs/concepts/how-styles-compile.md` |
|
|
39
|
+
|
|
40
|
+
## Working rules
|
|
41
|
+
|
|
42
|
+
- Follow `docs/guides/recommended-practices.md`. Keep styles in `style()` calls
|
|
43
|
+
on their elements, and express states with attributes and variants.
|
|
44
|
+
- Use theme tokens instead of arbitrary values. When a value is missing, ask the
|
|
45
|
+
user before you add a token.
|
|
46
|
+
- Write custom utilities with `@apply` and variants, not with hand-written
|
|
47
|
+
selectors or media queries.
|
|
48
|
+
- After you change styles, run `stillwind lint --fix` and `stillwind fmt` through
|
|
49
|
+
the project's package manager, such as `vp exec stillwind lint`. Add
|
|
50
|
+
`--format json` when you parse the output.
|
|
51
|
+
- Read the page of each remaining finding before you fix it. Do not add a
|
|
52
|
+
suppression comment or relax the `lint` setting unless the user agrees. A
|
|
53
|
+
suppression comment names the rule and gives the reason after `--`.
|
|
54
|
+
- Check the result in the browser when a change can affect the layout.
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Placeholder
|