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,187 @@
|
|
|
1
|
+
/* Built-in environment, responsive, and conditional variants. */
|
|
2
|
+
|
|
3
|
+
@stillwind-variant supports-* (value: [supports-condition]) {
|
|
4
|
+
@supports (--value()) {
|
|
5
|
+
@slot;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@stillwind-variant motion-safe {
|
|
10
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
+
@slot;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@stillwind-variant motion-reduce {
|
|
16
|
+
@media (prefers-reduced-motion: reduce) {
|
|
17
|
+
@slot;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@stillwind-variant contrast-more {
|
|
22
|
+
@media (prefers-contrast: more) {
|
|
23
|
+
@slot;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@stillwind-variant contrast-less {
|
|
28
|
+
@media (prefers-contrast: less) {
|
|
29
|
+
@slot;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@stillwind-variant max-* (sort: --breakpoint-*, direction: desc) {
|
|
34
|
+
@media (width < --value(--breakpoint-*)) {
|
|
35
|
+
@slot;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@stillwind-variant max-* (sort: --breakpoint-*, direction: desc) {
|
|
40
|
+
@media (width < --value([length])) {
|
|
41
|
+
@slot;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@stillwind-variant min-* (sort: --breakpoint-*, direction: asc, bare: true) {
|
|
46
|
+
@media (width >= --value(--breakpoint-*)) {
|
|
47
|
+
@slot;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@stillwind-variant min-* (sort: --breakpoint-*, direction: asc, bare: true) {
|
|
52
|
+
@media (width >= --value([length])) {
|
|
53
|
+
@slot;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@stillwind-variant @max-* (sort: --container-*, direction: desc) {
|
|
58
|
+
@container \{modifier\} (width < --value(--container-*)) {
|
|
59
|
+
@slot;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@stillwind-variant @max-* (sort: --container-*, direction: desc) {
|
|
64
|
+
@container \{modifier\} (width < --value([length])) {
|
|
65
|
+
@slot;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@stillwind-variant @* (group: container-min, sort: --container-*, direction: asc, bare: true) {
|
|
70
|
+
@container \{modifier\} (width >= --value(--container-*)) {
|
|
71
|
+
@slot;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@stillwind-variant @* (group: container-min, sort: --container-*, direction: asc, bare: true) {
|
|
76
|
+
@container \{modifier\} (width >= --value([length])) {
|
|
77
|
+
@slot;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@stillwind-variant @min-* (group: container-min, sort: --container-*, direction: asc) {
|
|
82
|
+
@container \{modifier\} (width >= --value(--container-*)) {
|
|
83
|
+
@slot;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@stillwind-variant @min-* (group: container-min, sort: --container-*, direction: asc) {
|
|
88
|
+
@container \{modifier\} (width >= --value([length])) {
|
|
89
|
+
@slot;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@stillwind-variant portrait {
|
|
94
|
+
@media (orientation: portrait) {
|
|
95
|
+
@slot;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@stillwind-variant landscape {
|
|
100
|
+
@media (orientation: landscape) {
|
|
101
|
+
@slot;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@stillwind-variant ltr {
|
|
106
|
+
&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *) {
|
|
107
|
+
@slot;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@stillwind-variant rtl {
|
|
112
|
+
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
|
|
113
|
+
@slot;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@stillwind-variant dark {
|
|
118
|
+
@media (prefers-color-scheme: dark) {
|
|
119
|
+
@slot;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@stillwind-variant starting {
|
|
124
|
+
@starting-style {
|
|
125
|
+
@slot;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@stillwind-variant print {
|
|
130
|
+
@media print {
|
|
131
|
+
@slot;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@stillwind-variant forced-colors {
|
|
136
|
+
@media (forced-colors: active) {
|
|
137
|
+
@slot;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@stillwind-variant inverted-colors {
|
|
142
|
+
@media (inverted-colors: inverted) {
|
|
143
|
+
@slot;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@stillwind-variant pointer-none {
|
|
148
|
+
@media (pointer: none) {
|
|
149
|
+
@slot;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@stillwind-variant pointer-coarse {
|
|
154
|
+
@media (pointer: coarse) {
|
|
155
|
+
@slot;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@stillwind-variant pointer-fine {
|
|
160
|
+
@media (pointer: fine) {
|
|
161
|
+
@slot;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@stillwind-variant any-pointer-none {
|
|
166
|
+
@media (any-pointer: none) {
|
|
167
|
+
@slot;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@stillwind-variant any-pointer-coarse {
|
|
172
|
+
@media (any-pointer: coarse) {
|
|
173
|
+
@slot;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@stillwind-variant any-pointer-fine {
|
|
178
|
+
@media (any-pointer: fine) {
|
|
179
|
+
@slot;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@stillwind-variant noscript {
|
|
184
|
+
@media (scripting: none) {
|
|
185
|
+
@slot;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Built-in functional selector and attribute variants. */
|
|
2
|
+
|
|
3
|
+
@stillwind-variant in-* (value: [variant]) {
|
|
4
|
+
:where(:--value()) & {
|
|
5
|
+
@slot;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@stillwind-variant has-* (value: [variant]) {
|
|
10
|
+
&:has(:--value()) {
|
|
11
|
+
@slot;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@stillwind-variant aria-* (value: [aria]) {
|
|
16
|
+
&:--value() {
|
|
17
|
+
@slot;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@stillwind-variant data-* (value: [data]) {
|
|
22
|
+
&:--value() {
|
|
23
|
+
@slot;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@stillwind-variant nth-* (value: [nth]) {
|
|
28
|
+
&:--value(":nth-child({value})") {
|
|
29
|
+
@slot;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@stillwind-variant nth-last-* (value: [nth]) {
|
|
34
|
+
&:--value(":nth-last-child({value})") {
|
|
35
|
+
@slot;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@stillwind-variant nth-of-type-* (value: [nth]) {
|
|
40
|
+
&:--value(":nth-of-type({value})") {
|
|
41
|
+
@slot;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@stillwind-variant nth-last-of-type-* (value: [nth]) {
|
|
46
|
+
&:--value(":nth-last-of-type({value})") {
|
|
47
|
+
@slot;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* Built-in child and inter-element relationship variants. */
|
|
2
|
+
|
|
3
|
+
@stillwind-variant \* {
|
|
4
|
+
:is(& > *) {
|
|
5
|
+
@slot;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@stillwind-variant \*\* {
|
|
10
|
+
:is(& *) {
|
|
11
|
+
@slot;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@stillwind-variant not-* (value: [variant], group: not) {
|
|
16
|
+
@stillwind-intrinsic builtin-not-variant;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@stillwind-variant group-* (value: [variant]) {
|
|
20
|
+
&:is(:where(.group):--value() *) {
|
|
21
|
+
@slot;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@stillwind-variant group-* (value: [variant], modifier: [class-identifier]) {
|
|
26
|
+
&:is(:where(:--modifier(".group\/{modifier}")):--value() *) {
|
|
27
|
+
@slot;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@stillwind-variant peer-* (value: [variant]) {
|
|
32
|
+
&:is(:where(.peer):--value() ~ *) {
|
|
33
|
+
@slot;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@stillwind-variant peer-* (value: [variant], modifier: [class-identifier]) {
|
|
38
|
+
&:is(:where(:--modifier(".peer\/{modifier}")):--value() ~ *) {
|
|
39
|
+
@slot;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* Built-in element state and interaction variants. */
|
|
2
|
+
|
|
3
|
+
@stillwind-variant visited {
|
|
4
|
+
&:visited {
|
|
5
|
+
@slot;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@stillwind-variant target {
|
|
10
|
+
&:target {
|
|
11
|
+
@slot;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@stillwind-variant open {
|
|
16
|
+
&:is([open], :popover-open, :open) {
|
|
17
|
+
@slot;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@stillwind-variant default {
|
|
22
|
+
&:default {
|
|
23
|
+
@slot;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@stillwind-variant checked {
|
|
28
|
+
&:checked {
|
|
29
|
+
@slot;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@stillwind-variant indeterminate {
|
|
34
|
+
&:indeterminate {
|
|
35
|
+
@slot;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@stillwind-variant placeholder-shown {
|
|
40
|
+
&:placeholder-shown {
|
|
41
|
+
@slot;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@stillwind-variant autofill {
|
|
46
|
+
&:autofill {
|
|
47
|
+
@slot;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@stillwind-variant optional {
|
|
52
|
+
&:optional {
|
|
53
|
+
@slot;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@stillwind-variant required {
|
|
58
|
+
&:required {
|
|
59
|
+
@slot;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@stillwind-variant valid {
|
|
64
|
+
&:valid {
|
|
65
|
+
@slot;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@stillwind-variant invalid {
|
|
70
|
+
&:invalid {
|
|
71
|
+
@slot;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@stillwind-variant user-valid {
|
|
76
|
+
&:user-valid {
|
|
77
|
+
@slot;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@stillwind-variant user-invalid {
|
|
82
|
+
&:user-invalid {
|
|
83
|
+
@slot;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@stillwind-variant in-range {
|
|
88
|
+
&:in-range {
|
|
89
|
+
@slot;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@stillwind-variant out-of-range {
|
|
94
|
+
&:out-of-range {
|
|
95
|
+
@slot;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@stillwind-variant read-only {
|
|
100
|
+
&:read-only {
|
|
101
|
+
@slot;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@stillwind-variant empty {
|
|
106
|
+
&:empty {
|
|
107
|
+
@slot;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@stillwind-variant focus-within {
|
|
112
|
+
&:focus-within {
|
|
113
|
+
@slot;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@stillwind-variant hover {
|
|
118
|
+
@media (hover: hover) {
|
|
119
|
+
&:hover {
|
|
120
|
+
@slot;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@stillwind-variant focus {
|
|
126
|
+
&:focus {
|
|
127
|
+
@slot;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@stillwind-variant focus-visible {
|
|
132
|
+
&:focus-visible {
|
|
133
|
+
@slot;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@stillwind-variant active {
|
|
138
|
+
&:active {
|
|
139
|
+
@slot;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@stillwind-variant enabled {
|
|
144
|
+
&:enabled {
|
|
145
|
+
@slot;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@stillwind-variant disabled {
|
|
150
|
+
&:disabled {
|
|
151
|
+
@slot;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@stillwind-variant inert {
|
|
156
|
+
&:is([inert], [inert] *) {
|
|
157
|
+
@slot;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* Built-in tree-structural and pseudo-element variants. */
|
|
2
|
+
|
|
3
|
+
@stillwind-variant first-letter {
|
|
4
|
+
&::first-letter {
|
|
5
|
+
@slot;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@stillwind-variant first-line {
|
|
10
|
+
&::first-line {
|
|
11
|
+
@slot;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@stillwind-variant marker {
|
|
16
|
+
& ::marker,
|
|
17
|
+
&::marker {
|
|
18
|
+
@slot;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& ::-webkit-details-marker {
|
|
22
|
+
@slot;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&::-webkit-details-marker {
|
|
26
|
+
@slot;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@stillwind-variant selection {
|
|
31
|
+
& ::selection,
|
|
32
|
+
&::selection {
|
|
33
|
+
@slot;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@stillwind-variant file {
|
|
38
|
+
&::file-selector-button {
|
|
39
|
+
@slot;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@stillwind-variant placeholder {
|
|
44
|
+
&::placeholder {
|
|
45
|
+
@slot;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@stillwind-variant backdrop {
|
|
50
|
+
&::backdrop {
|
|
51
|
+
@slot;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@stillwind-variant details-content {
|
|
56
|
+
&::details-content {
|
|
57
|
+
@slot;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@stillwind-variant before {
|
|
62
|
+
&::before {
|
|
63
|
+
content: var(--tw-content);
|
|
64
|
+
@slot;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@stillwind-variant after {
|
|
69
|
+
&::after {
|
|
70
|
+
content: var(--tw-content);
|
|
71
|
+
@slot;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@stillwind-variant first {
|
|
76
|
+
&:first-child {
|
|
77
|
+
@slot;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@stillwind-variant last {
|
|
82
|
+
&:last-child {
|
|
83
|
+
@slot;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@stillwind-variant only {
|
|
88
|
+
&:only-child {
|
|
89
|
+
@slot;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@stillwind-variant odd {
|
|
94
|
+
&:nth-child(odd) {
|
|
95
|
+
@slot;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@stillwind-variant even {
|
|
100
|
+
&:nth-child(even) {
|
|
101
|
+
@slot;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@stillwind-variant first-of-type {
|
|
106
|
+
&:first-of-type {
|
|
107
|
+
@slot;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@stillwind-variant last-of-type {
|
|
112
|
+
&:last-of-type {
|
|
113
|
+
@slot;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@stillwind-variant only-of-type {
|
|
118
|
+
&:only-of-type {
|
|
119
|
+
@slot;
|
|
120
|
+
}
|
|
121
|
+
}
|
package/css/builtins.css
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* Stillwind's built-in registry manifest. */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Load the metadata required for Tailwind CSS compatibility, deterministic
|
|
5
|
+
serialization, and relationship-aware linting.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import "./builtin-metadata/tw-registry-metadata.css";
|
|
9
|
+
@import "./builtin-metadata/tw-relationship-metadata.css";
|
|
10
|
+
@import "./builtin-metadata/tw-legacy-metadata.css";
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
Load the built-in utility definitions.
|
|
14
|
+
|
|
15
|
+
Each `@stillwind-utility` describes how a candidate produces CSS, while
|
|
16
|
+
`@stillwind-arbitrary-property` places an arbitrary-property candidate in the
|
|
17
|
+
same source-ordered cascade. Definitions must be positioned so that interacting
|
|
18
|
+
declarations produce the same computed result as Tailwind CSS. The files are
|
|
19
|
+
split by feature domain, so ordering between properties that cannot affect each
|
|
20
|
+
other may differ from Tailwind without changing observable behavior.
|
|
21
|
+
|
|
22
|
+
Tailwind uses internal sort keys when emitted properties do not imply the
|
|
23
|
+
desired position; Stillwind does not need them because the definition position
|
|
24
|
+
is itself the sort key.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
@import "./builtin-utilities/tw-layout.css";
|
|
28
|
+
@import "./builtin-utilities/tw-spacing-sizing.css";
|
|
29
|
+
@import "./builtin-utilities/tw-flex-grid.css";
|
|
30
|
+
@import "./builtin-utilities/tw-typography.css";
|
|
31
|
+
@import "./builtin-utilities/tw-backgrounds.css";
|
|
32
|
+
@import "./builtin-utilities/tw-borders.css";
|
|
33
|
+
@import "./builtin-utilities/tw-effects.css";
|
|
34
|
+
@import "./builtin-utilities/tw-masks.css";
|
|
35
|
+
@import "./builtin-utilities/tw-transforms.css";
|
|
36
|
+
@import "./builtin-utilities/tw-motion.css";
|
|
37
|
+
@import "./builtin-utilities/tw-interactivity.css";
|
|
38
|
+
@import "./builtin-utilities/tw-svg.css";
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
Load the definitions that apply only in the registry contexts of keyframes, keyframes
|
|
42
|
+
uses, and view transitions. They follow the default definitions that they replace.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
@import "./builtin-utilities/sw-motion-contexts.css";
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
Load the built-in variant definitions.
|
|
49
|
+
|
|
50
|
+
Each `@stillwind-variant` defines a selector or conditional transformation.
|
|
51
|
+
Like utilities, variants are ordered by definition order, including the import
|
|
52
|
+
order below and the order within each imported file. This order determines the
|
|
53
|
+
relative output order of variant rules and is part of Tailwind CSS compatibility:
|
|
54
|
+
when variants apply together, reordering them can change which declarations win.
|
|
55
|
+
Preserve that precedence when adding or moving definitions.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
@import "./builtin-variants/tw-relationship.css";
|
|
59
|
+
@import "./builtin-variants/tw-structural.css";
|
|
60
|
+
@import "./builtin-variants/tw-state.css";
|
|
61
|
+
@import "./builtin-variants/tw-dynamic-selector.css";
|
|
62
|
+
@import "./builtin-variants/tw-conditional.css";
|
|
63
|
+
|
|
64
|
+
@import "./builtin-variants/sw-conditional.css";
|
|
65
|
+
@import "./builtin-variants/sw-document.css";
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
Load custom-property registrations used by the built-in utilities.
|
|
69
|
+
|
|
70
|
+
Each `@stillwind-property` defines the syntax, inheritance behavior, initial
|
|
71
|
+
value, and activation conditions for a generated standard @property rule.
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
@import "./builtin-metadata/tw-properties.css";
|
|
75
|
+
@import "./builtin-metadata/sw-motion-properties.css";
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
Arbitrary properties not assigned a family-specific position are emitted
|
|
79
|
+
after all built-in utilities, matching Tailwind's unknown-property bucket.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
@stillwind-arbitrary-property --tw-*;
|
|
83
|
+
@stillwind-arbitrary-property *;
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
The property-initials slot inserts declarations for selected builtin registrations.
|
|
87
|
+
Each element and the listed pseudo-elements receive their own fallback values in the
|
|
88
|
+
queried compatibility environments; a root-only reset would allow inherited state to
|
|
89
|
+
reach descendants. Keep this declaration slot inside the selector rule.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
@layer properties {
|
|
93
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
|
|
94
|
+
((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
95
|
+
*,
|
|
96
|
+
::before,
|
|
97
|
+
::after,
|
|
98
|
+
::backdrop {
|
|
99
|
+
@stillwind-slot property-initials;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
The properties slot emits complete @property rules outside the query so registration
|
|
106
|
+
is available independently of fallback activation. The entry stylesheet reserves the
|
|
107
|
+
properties layer's position; moving the fallback to another layer changes its cascade
|
|
108
|
+
priority relative to utility declarations.
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
@stillwind-slot properties;
|