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.
Files changed (305) hide show
  1. package/AGENTS_TEMPLATE.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +166 -0
  4. package/TAILWINDCSS-MIT-LICENSE +21 -0
  5. package/css/builtin-metadata/sw-motion-properties.css +186 -0
  6. package/css/builtin-metadata/tw-legacy-metadata.css +36 -0
  7. package/css/builtin-metadata/tw-properties.css +944 -0
  8. package/css/builtin-metadata/tw-registry-metadata.css +52 -0
  9. package/css/builtin-metadata/tw-relationship-metadata.css +10 -0
  10. package/css/builtin-utilities/sw-motion-contexts.css +1043 -0
  11. package/css/builtin-utilities/tw-backgrounds.css +606 -0
  12. package/css/builtin-utilities/tw-borders.css +954 -0
  13. package/css/builtin-utilities/tw-effects.css +1209 -0
  14. package/css/builtin-utilities/tw-flex-grid.css +749 -0
  15. package/css/builtin-utilities/tw-interactivity.css +680 -0
  16. package/css/builtin-utilities/tw-layout.css +943 -0
  17. package/css/builtin-utilities/tw-masks.css +1268 -0
  18. package/css/builtin-utilities/tw-motion.css +142 -0
  19. package/css/builtin-utilities/tw-spacing-sizing.css +621 -0
  20. package/css/builtin-utilities/tw-svg.css +50 -0
  21. package/css/builtin-utilities/tw-transforms.css +652 -0
  22. package/css/builtin-utilities/tw-typography.css +720 -0
  23. package/css/builtin-variants/sw-conditional.css +5 -0
  24. package/css/builtin-variants/sw-document.css +13 -0
  25. package/css/builtin-variants/tw-conditional.css +187 -0
  26. package/css/builtin-variants/tw-dynamic-selector.css +49 -0
  27. package/css/builtin-variants/tw-relationship.css +41 -0
  28. package/css/builtin-variants/tw-state.css +159 -0
  29. package/css/builtin-variants/tw-structural.css +121 -0
  30. package/css/builtins.css +111 -0
  31. package/css/preflight.css +401 -0
  32. package/css/templates.css +40 -0
  33. package/css/theme.css +546 -0
  34. package/css/utilities.css +9 -0
  35. package/dist/class-object-D24FFYqO.js +6 -0
  36. package/dist/class-object-D24FFYqO.js.map +1 -0
  37. package/dist/class-object-D7ZGJOf_.d.ts +9 -0
  38. package/dist/class-string-CQHnc9GN.d.ts +9 -0
  39. package/dist/class-string-Db8-oI4q.js +6 -0
  40. package/dist/class-string-Db8-oI4q.js.map +1 -0
  41. package/dist/config.d.ts +1 -0
  42. package/dist/config.js +2 -0
  43. package/dist/css.d.ts +100 -0
  44. package/dist/css.js +143 -0
  45. package/dist/css.js.map +1 -0
  46. package/dist/cva-BwX07CFw.js +204 -0
  47. package/dist/cva-BwX07CFw.js.map +1 -0
  48. package/dist/cva-DSpDNBYi.d.ts +9 -0
  49. package/dist/development-DttPQc71.d.ts +27 -0
  50. package/dist/development-J-JCSIm0.js +111 -0
  51. package/dist/development-J-JCSIm0.js.map +1 -0
  52. package/dist/frameworks/alpine.d.ts +20 -0
  53. package/dist/frameworks/alpine.js +18 -0
  54. package/dist/frameworks/alpine.js.map +1 -0
  55. package/dist/frameworks/astro.d.ts +3 -0
  56. package/dist/frameworks/astro.js +1 -0
  57. package/dist/frameworks/lit.d.ts +21 -0
  58. package/dist/frameworks/lit.js +38 -0
  59. package/dist/frameworks/lit.js.map +1 -0
  60. package/dist/frameworks/preact.d.ts +3 -0
  61. package/dist/frameworks/preact.js +1 -0
  62. package/dist/frameworks/qwik.d.ts +3 -0
  63. package/dist/frameworks/qwik.js +1 -0
  64. package/dist/frameworks/react.d.ts +10 -0
  65. package/dist/frameworks/react.js +6 -0
  66. package/dist/frameworks/react.js.map +1 -0
  67. package/dist/frameworks/solid.d.ts +3 -0
  68. package/dist/frameworks/solid.js +1 -0
  69. package/dist/frameworks/svelte.d.ts +3 -0
  70. package/dist/frameworks/svelte.js +1 -0
  71. package/dist/frameworks/vanilla.d.ts +27 -0
  72. package/dist/frameworks/vanilla.js +3 -0
  73. package/dist/frameworks/vue.d.ts +3 -0
  74. package/dist/frameworks/vue.js +1 -0
  75. package/dist/index-RwVFpxhE.d.ts +815 -0
  76. package/dist/macro/index.d.ts +2 -0
  77. package/dist/macro/index.js +1 -0
  78. package/dist/module-css.d.ts +30 -0
  79. package/dist/module-css.js +23 -0
  80. package/dist/module-css.js.map +1 -0
  81. package/dist/runtime/class-name-object-development.d.ts +10 -0
  82. package/dist/runtime/class-name-object-development.js +18 -0
  83. package/dist/runtime/class-name-object-development.js.map +1 -0
  84. package/dist/runtime/class-name-object.d.ts +16 -0
  85. package/dist/runtime/class-name-object.js +31 -0
  86. package/dist/runtime/class-name-object.js.map +1 -0
  87. package/dist/runtime/class-object-development.d.ts +10 -0
  88. package/dist/runtime/class-object-development.js +18 -0
  89. package/dist/runtime/class-object-development.js.map +1 -0
  90. package/dist/runtime/class-object.d.ts +16 -0
  91. package/dist/runtime/class-object.js +31 -0
  92. package/dist/runtime/class-object.js.map +1 -0
  93. package/dist/runtime/class-string-development.d.ts +10 -0
  94. package/dist/runtime/class-string-development.js +18 -0
  95. package/dist/runtime/class-string-development.js.map +1 -0
  96. package/dist/runtime/class-string.d.ts +16 -0
  97. package/dist/runtime/class-string.js +31 -0
  98. package/dist/runtime/class-string.js.map +1 -0
  99. package/dist/shared-B9IQXU6P.d.ts +32 -0
  100. package/dist/style-BV4ctkni.js +78 -0
  101. package/dist/style-BV4ctkni.js.map +1 -0
  102. package/dist/style-fTQbsVWZ.js +41 -0
  103. package/dist/style-fTQbsVWZ.js.map +1 -0
  104. package/docs/agents.md +76 -0
  105. package/docs/at-rules/apply.md +93 -0
  106. package/docs/at-rules/custom-variant.md +127 -0
  107. package/docs/at-rules/index.md +75 -0
  108. package/docs/at-rules/plugin.md +71 -0
  109. package/docs/at-rules/registry-directives.md +181 -0
  110. package/docs/at-rules/slot.md +58 -0
  111. package/docs/at-rules/stillwind-css-template.md +126 -0
  112. package/docs/at-rules/stillwind-property.md +133 -0
  113. package/docs/at-rules/stillwind-registry.md +115 -0
  114. package/docs/at-rules/stillwind-require-properties.md +91 -0
  115. package/docs/at-rules/stillwind-slot.md +85 -0
  116. package/docs/at-rules/stillwind-undef-arbitrary-property.md +75 -0
  117. package/docs/at-rules/stillwind-undef-utility.md +87 -0
  118. package/docs/at-rules/stillwind-undef-variant.md +55 -0
  119. package/docs/at-rules/theme.md +304 -0
  120. package/docs/at-rules/utility.md +286 -0
  121. package/docs/at-rules/variant.md +91 -0
  122. package/docs/concepts/css-ordering.md +245 -0
  123. package/docs/concepts/how-styles-compile.md +132 -0
  124. package/docs/configuration.md +298 -0
  125. package/docs/errors/SW01001.md +51 -0
  126. package/docs/errors/SW01002.md +52 -0
  127. package/docs/errors/SW01003.md +69 -0
  128. package/docs/errors/SW02001.md +23 -0
  129. package/docs/errors/SW02002.md +51 -0
  130. package/docs/errors/SW03001.md +71 -0
  131. package/docs/errors/SW03002.md +79 -0
  132. package/docs/errors/SW03003.md +36 -0
  133. package/docs/errors/SW10001.md +34 -0
  134. package/docs/errors/SW10002.md +36 -0
  135. package/docs/errors/SW10003.md +30 -0
  136. package/docs/errors/SW10004.md +39 -0
  137. package/docs/errors/SW10005.md +35 -0
  138. package/docs/errors/SW11001.md +37 -0
  139. package/docs/errors/SW11002.md +65 -0
  140. package/docs/errors/SW11003.md +20 -0
  141. package/docs/errors/SW12001.md +43 -0
  142. package/docs/errors/SW12002.md +42 -0
  143. package/docs/errors/SW13001.md +35 -0
  144. package/docs/errors/SW13002.md +33 -0
  145. package/docs/errors/SW13003.md +18 -0
  146. package/docs/errors/SW13004.md +45 -0
  147. package/docs/errors/SW14001.md +44 -0
  148. package/docs/errors/SW14002.md +47 -0
  149. package/docs/errors/SW14003.md +38 -0
  150. package/docs/errors/SW14004.md +48 -0
  151. package/docs/errors/SW14005.md +51 -0
  152. package/docs/errors/SW14006.md +19 -0
  153. package/docs/errors/SW14007.md +35 -0
  154. package/docs/errors/SW14008.md +41 -0
  155. package/docs/errors/SW15001.md +18 -0
  156. package/docs/errors/SW15002.md +19 -0
  157. package/docs/errors/SW15003.md +16 -0
  158. package/docs/errors/SW30001.md +21 -0
  159. package/docs/errors/SW30002.md +18 -0
  160. package/docs/errors/SW30003.md +17 -0
  161. package/docs/errors/SW30004.md +18 -0
  162. package/docs/errors/SW31001.md +20 -0
  163. package/docs/errors/SW31002.md +17 -0
  164. package/docs/errors/SW31003.md +18 -0
  165. package/docs/errors/SW31004.md +20 -0
  166. package/docs/errors/SW31005.md +18 -0
  167. package/docs/errors/SW31006.md +17 -0
  168. package/docs/errors/SW31007.md +18 -0
  169. package/docs/errors/SW31008.md +16 -0
  170. package/docs/errors/SW31009.md +18 -0
  171. package/docs/errors/SW31010.md +16 -0
  172. package/docs/errors/SW31011.md +17 -0
  173. package/docs/errors/SW32001.md +18 -0
  174. package/docs/errors/SW32002.md +45 -0
  175. package/docs/errors/SW32003.md +43 -0
  176. package/docs/errors/SW32004.md +17 -0
  177. package/docs/errors/SW32005.md +40 -0
  178. package/docs/errors/SW32006.md +18 -0
  179. package/docs/errors/SW32007.md +20 -0
  180. package/docs/errors/SW33001.md +17 -0
  181. package/docs/errors/SW33002.md +17 -0
  182. package/docs/errors/SW33003.md +17 -0
  183. package/docs/errors/SW33004.md +17 -0
  184. package/docs/errors/SW33005.md +20 -0
  185. package/docs/errors/SW34001.md +18 -0
  186. package/docs/errors/SW34002.md +17 -0
  187. package/docs/errors/SW34003.md +18 -0
  188. package/docs/errors/SW90001.md +17 -0
  189. package/docs/errors/SW90002.md +18 -0
  190. package/docs/errors/SW90003.md +17 -0
  191. package/docs/errors/SW90004.md +17 -0
  192. package/docs/errors/SW90005.md +16 -0
  193. package/docs/errors/SW90006.md +17 -0
  194. package/docs/errors/SW90007.md +17 -0
  195. package/docs/errors/SW90008.md +17 -0
  196. package/docs/errors/index.md +125 -0
  197. package/docs/guides/animations.md +73 -0
  198. package/docs/guides/design-systems.md +119 -0
  199. package/docs/guides/element-relationships.md +136 -0
  200. package/docs/guides/lint-adoption.md +128 -0
  201. package/docs/guides/migrating-from-css.md +126 -0
  202. package/docs/guides/migrating-from-tailwind.md +179 -0
  203. package/docs/guides/recommended-practices.md +338 -0
  204. package/docs/guides/responsive-styles.md +103 -0
  205. package/docs/guides/reusable-styles.md +110 -0
  206. package/docs/guides/style.md +181 -0
  207. package/docs/guides/tailwind-compatibility.md +126 -0
  208. package/docs/guides/view-transitions.md +84 -0
  209. package/docs/guides/web-components.md +216 -0
  210. package/docs/index.md +136 -0
  211. package/docs/integrations.md +190 -0
  212. package/docs/lints/ambiguous-style-base-order.md +50 -0
  213. package/docs/lints/bypassed-undefinition.md +50 -0
  214. package/docs/lints/clamped-value.md +44 -0
  215. package/docs/lints/conflicting-provider-properties.md +47 -0
  216. package/docs/lints/conflicting-utilities.md +55 -0
  217. package/docs/lints/document-scoped-selector.md +45 -0
  218. package/docs/lints/duplicate-definition.md +44 -0
  219. package/docs/lints/duplicate-utility.md +44 -0
  220. package/docs/lints/duplicate-view-transition-name.md +45 -0
  221. package/docs/lints/ignored-definition-condition.md +51 -0
  222. package/docs/lints/ignored-tailwind-feature.md +62 -0
  223. package/docs/lints/incompatible-property-value.md +60 -0
  224. package/docs/lints/incompatible-theme-value.md +46 -0
  225. package/docs/lints/index.md +140 -0
  226. package/docs/lints/ineffective-anchor-scope.md +46 -0
  227. package/docs/lints/interfering-imported-style-base.md +57 -0
  228. package/docs/lints/invalid-animation-option.md +47 -0
  229. package/docs/lints/invalid-css-directive.md +43 -0
  230. package/docs/lints/invalid-css-import.md +43 -0
  231. package/docs/lints/invalid-css-input.md +45 -0
  232. package/docs/lints/invalid-cva-config.md +46 -0
  233. package/docs/lints/invalid-cva-input.md +50 -0
  234. package/docs/lints/invalid-keyframes-definition.md +47 -0
  235. package/docs/lints/invalid-keyframes-use.md +47 -0
  236. package/docs/lints/invalid-keyframes-variant.md +48 -0
  237. package/docs/lints/invalid-lint-suppression.md +47 -0
  238. package/docs/lints/invalid-marker-use.md +53 -0
  239. package/docs/lints/invalid-media-query.md +52 -0
  240. package/docs/lints/invalid-ref-input.md +49 -0
  241. package/docs/lints/invalid-rule-group-input.md +58 -0
  242. package/docs/lints/invalid-runtime-condition.md +67 -0
  243. package/docs/lints/invalid-style-composition.md +52 -0
  244. package/docs/lints/invalid-style-input.md +47 -0
  245. package/docs/lints/invalid-theme-reference.md +52 -0
  246. package/docs/lints/invalid-utility.md +44 -0
  247. package/docs/lints/invalid-variant.md +45 -0
  248. package/docs/lints/invalid-view-transition-definition.md +46 -0
  249. package/docs/lints/invalid-view-transition-use.md +46 -0
  250. package/docs/lints/invalid-view-transition-variant.md +51 -0
  251. package/docs/lints/mismatched-framework-import.md +47 -0
  252. package/docs/lints/missing-document-target.md +44 -0
  253. package/docs/lints/missing-ref-attachment.md +44 -0
  254. package/docs/lints/missing-view-transition-name.md +46 -0
  255. package/docs/lints/mutating-macro-argument.md +48 -0
  256. package/docs/lints/no-arbitrary-breakpoints.md +50 -0
  257. package/docs/lints/no-arbitrary-colors.md +51 -0
  258. package/docs/lints/no-arbitrary-spacing.md +57 -0
  259. package/docs/lints/no-class-property.md +58 -0
  260. package/docs/lints/no-important.md +50 -0
  261. package/docs/lints/no-restricted-declarations.md +76 -0
  262. package/docs/lints/no-restricted-length-units.md +73 -0
  263. package/docs/lints/no-restricted-theme-tokens.md +73 -0
  264. package/docs/lints/no-restricted-utilities.md +73 -0
  265. package/docs/lints/prefer-canonical-utilities.md +69 -0
  266. package/docs/lints/prefer-direct-styling.md +47 -0
  267. package/docs/lints/prefer-explicit-nesting-selector.md +42 -0
  268. package/docs/lints/prefer-logical-properties.md +49 -0
  269. package/docs/lints/prefer-sorted-utilities.md +46 -0
  270. package/docs/lints/prefer-typed-relationships.md +48 -0
  271. package/docs/lints/prefer-typed-variables.md +43 -0
  272. package/docs/lints/prefer-variant-directive.md +59 -0
  273. package/docs/lints/redundant-variant.md +50 -0
  274. package/docs/lints/repeated-nesting-selector.md +59 -0
  275. package/docs/lints/runtime-condition-requires-css-if.md +59 -0
  276. package/docs/lints/split-view-transition-class.md +47 -0
  277. package/docs/lints/suspending-macro-argument.md +46 -0
  278. package/docs/lints/unknown-utility.md +47 -0
  279. package/docs/lints/unknown-variant.md +42 -0
  280. package/docs/lints/unsatisfiable-variants.md +42 -0
  281. package/docs/lints/unused-lint-suppression.md +57 -0
  282. package/docs/lints/unverified-style-base.md +64 -0
  283. package/docs/macros/anchor-scope.md +90 -0
  284. package/docs/macros/css.md +68 -0
  285. package/docs/macros/cva.md +153 -0
  286. package/docs/macros/index.md +30 -0
  287. package/docs/macros/keyframes.md +98 -0
  288. package/docs/macros/media.md +65 -0
  289. package/docs/macros/ref/as-anchor.md +70 -0
  290. package/docs/macros/ref/as-container.md +64 -0
  291. package/docs/macros/ref/at.md +68 -0
  292. package/docs/macros/ref/condition.md +86 -0
  293. package/docs/macros/ref/in.md +81 -0
  294. package/docs/macros/ref/index.md +115 -0
  295. package/docs/macros/ref/position-anchor.md +64 -0
  296. package/docs/macros/style.md +185 -0
  297. package/docs/macros/view-transition.md +159 -0
  298. package/docs/utilities.md +35 -0
  299. package/docs/why.md +144 -0
  300. package/index.css +7 -0
  301. package/package.json +135 -8
  302. package/skills/migrate-to-stillwind/SKILL.md +81 -0
  303. package/skills/setup-stillwind/SKILL.md +51 -0
  304. package/skills/stillwind/SKILL.md +54 -0
  305. package/index.js +0 -1
@@ -0,0 +1,720 @@
1
+ /* Built-in typography utilities. */
2
+
3
+ /* MARK: `list-style` */
4
+
5
+ @stillwind-arbitrary-property list-style-position;
6
+ @stillwind-arbitrary-property list-style-type;
7
+ @stillwind-arbitrary-property list-style-image;
8
+
9
+ @stillwind-utility list-inside {
10
+ list-style-position: inside;
11
+ }
12
+
13
+ @stillwind-utility list-outside {
14
+ list-style-position: outside;
15
+ }
16
+
17
+ @stillwind-utility list-decimal {
18
+ list-style-type: decimal;
19
+ }
20
+
21
+ @stillwind-utility list-disc {
22
+ list-style-type: disc;
23
+ }
24
+
25
+ @stillwind-utility list-none {
26
+ list-style-type: none;
27
+ }
28
+
29
+ @stillwind-utility list-* {
30
+ list-style-type: --value(--list-style-type-*, [list-style-type]);
31
+ }
32
+
33
+ @stillwind-utility list-image-none {
34
+ list-style-image: none;
35
+ }
36
+
37
+ @stillwind-utility list-image-* {
38
+ list-style-image: --value(--list-style-image-*, [list-style-image]);
39
+ }
40
+
41
+ /* MARK: Breaks */
42
+
43
+ @stillwind-arbitrary-property break-before;
44
+
45
+ @stillwind-utility break-before-all {
46
+ break-before: all;
47
+ }
48
+
49
+ @stillwind-utility break-before-auto {
50
+ break-before: auto;
51
+ }
52
+
53
+ @stillwind-utility break-before-avoid {
54
+ break-before: avoid;
55
+ }
56
+
57
+ @stillwind-utility break-before-avoid-page {
58
+ break-before: avoid-page;
59
+ }
60
+
61
+ @stillwind-utility break-before-column {
62
+ break-before: column;
63
+ }
64
+
65
+ @stillwind-utility break-before-left {
66
+ break-before: left;
67
+ }
68
+
69
+ @stillwind-utility break-before-page {
70
+ break-before: page;
71
+ }
72
+
73
+ @stillwind-utility break-before-right {
74
+ break-before: right;
75
+ }
76
+
77
+ @stillwind-arbitrary-property break-inside;
78
+
79
+ @stillwind-utility break-inside-auto {
80
+ break-inside: auto;
81
+ }
82
+
83
+ @stillwind-utility break-inside-avoid {
84
+ break-inside: avoid;
85
+ }
86
+
87
+ @stillwind-utility break-inside-avoid-column {
88
+ break-inside: avoid-column;
89
+ }
90
+
91
+ @stillwind-utility break-inside-avoid-page {
92
+ break-inside: avoid-page;
93
+ }
94
+
95
+ @stillwind-arbitrary-property break-after;
96
+
97
+ @stillwind-utility break-after-all {
98
+ break-after: all;
99
+ }
100
+
101
+ @stillwind-utility break-after-auto {
102
+ break-after: auto;
103
+ }
104
+
105
+ @stillwind-utility break-after-avoid {
106
+ break-after: avoid;
107
+ }
108
+
109
+ @stillwind-utility break-after-avoid-page {
110
+ break-after: avoid-page;
111
+ }
112
+
113
+ @stillwind-utility break-after-column {
114
+ break-after: column;
115
+ }
116
+
117
+ @stillwind-utility break-after-left {
118
+ break-after: left;
119
+ }
120
+
121
+ @stillwind-utility break-after-page {
122
+ break-after: page;
123
+ }
124
+
125
+ @stillwind-utility break-after-right {
126
+ break-after: right;
127
+ }
128
+
129
+ /* MARK: `text-align` */
130
+
131
+ @stillwind-arbitrary-property text-align;
132
+
133
+ @stillwind-utility text-center {
134
+ text-align: center;
135
+ }
136
+
137
+ @stillwind-utility text-end {
138
+ text-align: end;
139
+ }
140
+
141
+ @stillwind-utility text-justify {
142
+ text-align: justify;
143
+ }
144
+
145
+ @stillwind-utility text-left {
146
+ text-align: left;
147
+ }
148
+
149
+ @stillwind-utility text-right {
150
+ text-align: right;
151
+ }
152
+
153
+ @stillwind-utility text-start {
154
+ text-align: start;
155
+ }
156
+
157
+ /* MARK: `text-indent` */
158
+
159
+ @stillwind-arbitrary-property text-indent;
160
+
161
+ @stillwind-utility indent-* {
162
+ text-indent: --value(--spacing-*, --spacing(), --fraction(), [length-percentage]);
163
+ }
164
+
165
+ @stillwind-utility -indent-* {
166
+ text-indent: calc(--value(--spacing-*, --spacing(), --fraction(), [length-percentage]) * -1);
167
+ }
168
+
169
+ /* MARK: `vertical-align` */
170
+
171
+ /* Vertical-alignment utilities share the same typed CSS value family. */
172
+ @stillwind-arbitrary-property vertical-align;
173
+
174
+ @stillwind-utility align-baseline {
175
+ vertical-align: baseline;
176
+ }
177
+
178
+ @stillwind-utility align-bottom {
179
+ vertical-align: bottom;
180
+ }
181
+
182
+ @stillwind-utility align-middle {
183
+ vertical-align: middle;
184
+ }
185
+
186
+ @stillwind-utility align-sub {
187
+ vertical-align: sub;
188
+ }
189
+
190
+ @stillwind-utility align-super {
191
+ vertical-align: super;
192
+ }
193
+
194
+ @stillwind-utility align-text-bottom {
195
+ vertical-align: text-bottom;
196
+ }
197
+
198
+ @stillwind-utility align-text-top {
199
+ vertical-align: text-top;
200
+ }
201
+
202
+ @stillwind-utility align-top {
203
+ vertical-align: top;
204
+ }
205
+
206
+ @stillwind-utility align-* {
207
+ vertical-align: --value([vertical-align]);
208
+ }
209
+
210
+ /* MARK: Fonts and Colors */
211
+
212
+ @stillwind-arbitrary-property font-weight;
213
+
214
+ /*
215
+ An untyped variable selects the earliest registered branch that accepts it. Keep the
216
+ font-weight branch before the font-family branch so `font-(--x)` sets the weight, as in
217
+ Tailwind.
218
+ */
219
+ @stillwind-utility font-* {
220
+ --tw-font-weight: --value(--font-weight-*, [number]);
221
+ font-weight: --value(--font-weight-*, [number]);
222
+ }
223
+
224
+ @stillwind-arbitrary-property font-family;
225
+
226
+ @stillwind-utility font-* {
227
+ font-family: --value(--font-*);
228
+ }
229
+
230
+ @stillwind-arbitrary-property font-feature-settings;
231
+
232
+ @stillwind-utility font-features-* {
233
+ font-feature-settings: --value([font-feature-settings]);
234
+ }
235
+
236
+ @stillwind-arbitrary-property color;
237
+
238
+ /*
239
+ An untyped variable selects the earliest registered branch that accepts it. Keep this
240
+ color branch before the font-size branches so `text-(--x)` sets the color, as in
241
+ Tailwind.
242
+ */
243
+ @stillwind-utility text-* {
244
+ color: --value(--color-*, current, inherit, transparent);
245
+ }
246
+
247
+ @stillwind-utility text-* {
248
+ color: --compat-color(
249
+ --value(--color-*, current, inherit, transparent, [color]),
250
+ --alpha(--modifier())
251
+ );
252
+ }
253
+
254
+ @stillwind-arbitrary-property font-size;
255
+
256
+ @stillwind-utility text-* {
257
+ font-size: --value(--text-*, [length-percentage]);
258
+ }
259
+
260
+ @stillwind-utility text-* {
261
+ font-size: --value(--text-*);
262
+ }
263
+
264
+ @stillwind-arbitrary-property line-height;
265
+
266
+ @stillwind-utility text-* {
267
+ font-size: --value(--text-*);
268
+ line-height: var(--tw-leading, --stillwind-theme-suffix(--text-*, --line-height));
269
+ }
270
+
271
+ @stillwind-utility text-* {
272
+ font-size: --value(--text-*);
273
+ line-height: --modifier(--leading-*, --spacing(), [length-percentage]);
274
+ }
275
+
276
+ /* MARK: `line-height` */
277
+
278
+ @stillwind-utility leading-0 {
279
+ --tw-leading: 0px;
280
+ line-height: 0;
281
+ }
282
+
283
+ @stillwind-utility leading-none {
284
+ --tw-leading: 1;
285
+ line-height: 1;
286
+ }
287
+
288
+ @stillwind-utility leading-* {
289
+ --tw-leading: --value(--leading-*);
290
+ line-height: --value(--leading-*);
291
+ }
292
+
293
+ @stillwind-utility leading-* {
294
+ --tw-leading: --value(--leading-*, --spacing(), number, [length-percentage]);
295
+ line-height: --value(--leading-*, --spacing(), number, [length-percentage]);
296
+ }
297
+
298
+ /* MARK: `font-weight` */
299
+
300
+ @stillwind-utility font-bold {
301
+ --tw-font-weight: var(--font-weight-bold);
302
+ font-weight: var(--font-weight-bold);
303
+ }
304
+
305
+ @stillwind-utility font-medium {
306
+ --tw-font-weight: var(--font-weight-medium);
307
+ font-weight: var(--font-weight-medium);
308
+ }
309
+
310
+ @stillwind-utility font-semibold {
311
+ --tw-font-weight: var(--font-weight-semibold);
312
+ font-weight: var(--font-weight-semibold);
313
+ }
314
+
315
+ /* MARK: `letter-spacing` */
316
+
317
+ @stillwind-arbitrary-property letter-spacing;
318
+
319
+ @stillwind-utility tracking-* {
320
+ --tw-tracking: --value(--tracking-*);
321
+ letter-spacing: --value(--tracking-*);
322
+ }
323
+
324
+ @stillwind-utility -tracking-* {
325
+ --tw-tracking: calc(--value(--tracking-*) * -1);
326
+ letter-spacing: calc(--value(--tracking-*) * -1);
327
+ }
328
+
329
+ /* MARK: `text-wrap` */
330
+
331
+ @stillwind-arbitrary-property text-wrap;
332
+
333
+ @stillwind-utility text-balance {
334
+ text-wrap: balance;
335
+ }
336
+
337
+ @stillwind-utility text-nowrap {
338
+ text-wrap: nowrap;
339
+ }
340
+
341
+ @stillwind-utility text-pretty {
342
+ text-wrap: pretty;
343
+ }
344
+
345
+ @stillwind-utility text-wrap {
346
+ text-wrap: wrap;
347
+ }
348
+
349
+ /* MARK: `overflow-wrap` and `word-break` */
350
+
351
+ @stillwind-arbitrary-property overflow-wrap;
352
+ @stillwind-arbitrary-property word-break;
353
+
354
+ @stillwind-utility break-normal {
355
+ overflow-wrap: normal;
356
+ word-break: normal;
357
+ }
358
+
359
+ @stillwind-utility break-words {
360
+ overflow-wrap: break-word;
361
+ }
362
+
363
+ @stillwind-utility wrap-anywhere {
364
+ overflow-wrap: anywhere;
365
+ }
366
+
367
+ @stillwind-utility wrap-break-word {
368
+ overflow-wrap: break-word;
369
+ }
370
+
371
+ @stillwind-utility wrap-normal {
372
+ overflow-wrap: normal;
373
+ }
374
+
375
+ @stillwind-utility break-all {
376
+ word-break: break-all;
377
+ }
378
+
379
+ @stillwind-utility break-keep {
380
+ word-break: keep-all;
381
+ }
382
+
383
+ /* MARK: `text-overflow` */
384
+
385
+ @stillwind-arbitrary-property text-overflow;
386
+
387
+ @stillwind-utility text-clip {
388
+ text-overflow: clip;
389
+ }
390
+
391
+ @stillwind-utility text-ellipsis {
392
+ text-overflow: ellipsis;
393
+ }
394
+
395
+ /* MARK: `hyphens` */
396
+
397
+ @stillwind-arbitrary-property hyphens;
398
+
399
+ @stillwind-utility hyphens-auto {
400
+ -webkit-hyphens: auto;
401
+ hyphens: auto;
402
+ }
403
+
404
+ @stillwind-utility hyphens-manual {
405
+ -webkit-hyphens: manual;
406
+ hyphens: manual;
407
+ }
408
+
409
+ @stillwind-utility hyphens-none {
410
+ -webkit-hyphens: none;
411
+ hyphens: none;
412
+ }
413
+
414
+ /* MARK: `white-space` */
415
+
416
+ @stillwind-arbitrary-property white-space;
417
+
418
+ @stillwind-utility whitespace-break-spaces {
419
+ white-space: break-spaces;
420
+ }
421
+
422
+ @stillwind-utility whitespace-normal {
423
+ white-space: normal;
424
+ }
425
+
426
+ @stillwind-utility whitespace-nowrap {
427
+ white-space: nowrap;
428
+ }
429
+
430
+ @stillwind-utility whitespace-pre {
431
+ white-space: pre;
432
+ }
433
+
434
+ @stillwind-utility whitespace-pre-line {
435
+ white-space: pre-line;
436
+ }
437
+
438
+ @stillwind-utility whitespace-pre-wrap {
439
+ white-space: pre-wrap;
440
+ }
441
+
442
+ /* MARK: `tab-size` */
443
+
444
+ @stillwind-arbitrary-property tab-size;
445
+
446
+ @stillwind-utility tab-* {
447
+ tab-size: --value(integer, [integer]);
448
+ }
449
+
450
+ @stillwind-utility tab-* {
451
+ tab-size: --value([tab-size]);
452
+ }
453
+
454
+ /* MARK: `color` of placeholders */
455
+
456
+ @stillwind-arbitrary-property placeholder-color;
457
+
458
+ @stillwind-utility placeholder-* (tw-sort: placeholder-color) {
459
+ &::placeholder {
460
+ color: --value(--color-*, current, inherit, transparent, [color]);
461
+ }
462
+ }
463
+
464
+ @stillwind-utility placeholder-* (tw-sort: placeholder-color) {
465
+ &::placeholder {
466
+ color: --compat-color(
467
+ --value(--color-*, current, inherit, transparent, [color]),
468
+ --alpha(--modifier())
469
+ );
470
+ }
471
+ }
472
+
473
+ /* MARK: `text-transform` */
474
+
475
+ @stillwind-arbitrary-property text-transform;
476
+
477
+ @stillwind-utility capitalize {
478
+ text-transform: capitalize;
479
+ }
480
+
481
+ @stillwind-utility lowercase {
482
+ text-transform: lowercase;
483
+ }
484
+
485
+ @stillwind-utility normal-case {
486
+ text-transform: none;
487
+ }
488
+
489
+ @stillwind-utility uppercase {
490
+ text-transform: uppercase;
491
+ }
492
+
493
+ /* MARK: `font-style` */
494
+
495
+ @stillwind-arbitrary-property font-style;
496
+
497
+ @stillwind-utility italic {
498
+ font-style: italic;
499
+ }
500
+
501
+ @stillwind-utility not-italic {
502
+ font-style: normal;
503
+ }
504
+
505
+ /* MARK: `font-stretch` */
506
+
507
+ @stillwind-arbitrary-property font-stretch;
508
+
509
+ @stillwind-utility font-stretch-condensed {
510
+ font-stretch: condensed;
511
+ }
512
+
513
+ @stillwind-utility font-stretch-expanded {
514
+ font-stretch: expanded;
515
+ }
516
+
517
+ @stillwind-utility font-stretch-extra-condensed {
518
+ font-stretch: extra-condensed;
519
+ }
520
+
521
+ @stillwind-utility font-stretch-extra-expanded {
522
+ font-stretch: extra-expanded;
523
+ }
524
+
525
+ @stillwind-utility font-stretch-normal {
526
+ font-stretch: normal;
527
+ }
528
+
529
+ @stillwind-utility font-stretch-semi-condensed {
530
+ font-stretch: semi-condensed;
531
+ }
532
+
533
+ @stillwind-utility font-stretch-semi-expanded {
534
+ font-stretch: semi-expanded;
535
+ }
536
+
537
+ @stillwind-utility font-stretch-ultra-condensed {
538
+ font-stretch: ultra-condensed;
539
+ }
540
+
541
+ @stillwind-utility font-stretch-ultra-expanded {
542
+ font-stretch: ultra-expanded;
543
+ }
544
+
545
+ @stillwind-utility font-stretch-* {
546
+ font-stretch: --value(percentage [50, 200]);
547
+ }
548
+
549
+ @stillwind-utility font-stretch-* {
550
+ font-stretch: --value(--font-stretch-*);
551
+ }
552
+
553
+ @stillwind-utility font-stretch-* {
554
+ font-stretch: --value([font-stretch]);
555
+ }
556
+
557
+ /* MARK: `font-variant-numeric` */
558
+
559
+ @stillwind-utility diagonal-fractions {
560
+ --tw-numeric-fraction: diagonal-fractions;
561
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
562
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
563
+ }
564
+
565
+ @stillwind-utility lining-nums {
566
+ --tw-numeric-figure: lining-nums;
567
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
568
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
569
+ }
570
+
571
+ @stillwind-utility oldstyle-nums {
572
+ --tw-numeric-figure: oldstyle-nums;
573
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
574
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
575
+ }
576
+
577
+ @stillwind-utility ordinal {
578
+ --tw-ordinal: ordinal;
579
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
580
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
581
+ }
582
+
583
+ @stillwind-utility proportional-nums {
584
+ --tw-numeric-spacing: proportional-nums;
585
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
586
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
587
+ }
588
+
589
+ @stillwind-utility slashed-zero {
590
+ --tw-slashed-zero: slashed-zero;
591
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
592
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
593
+ }
594
+
595
+ @stillwind-utility stacked-fractions {
596
+ --tw-numeric-fraction: stacked-fractions;
597
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
598
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
599
+ }
600
+
601
+ @stillwind-utility tabular-nums {
602
+ --tw-numeric-spacing: tabular-nums;
603
+ font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
604
+ var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
605
+ }
606
+
607
+ @stillwind-arbitrary-property font-variant-numeric;
608
+
609
+ @stillwind-utility normal-nums {
610
+ font-variant-numeric: normal;
611
+ }
612
+
613
+ /* MARK: `text-decoration` */
614
+
615
+ @stillwind-arbitrary-property text-decoration-line;
616
+ @stillwind-arbitrary-property text-decoration-color;
617
+ @stillwind-arbitrary-property text-decoration-style;
618
+ @stillwind-arbitrary-property text-decoration-thickness;
619
+ @stillwind-arbitrary-property text-underline-offset;
620
+
621
+ @stillwind-utility line-through {
622
+ text-decoration-line: line-through;
623
+ }
624
+
625
+ @stillwind-utility no-underline {
626
+ text-decoration-line: none;
627
+ }
628
+
629
+ @stillwind-utility overline {
630
+ text-decoration-line: overline;
631
+ }
632
+
633
+ @stillwind-utility underline {
634
+ text-decoration-line: underline;
635
+ }
636
+
637
+ @stillwind-utility decoration-* {
638
+ text-decoration-color: --value(--color-*, current, inherit, transparent, [color]);
639
+ }
640
+
641
+ @stillwind-utility decoration-* {
642
+ text-decoration-color: --compat-color(
643
+ --value(--color-*, current, inherit, transparent, [color]),
644
+ --alpha(--modifier())
645
+ );
646
+ }
647
+
648
+ @stillwind-utility decoration-dashed {
649
+ text-decoration-style: dashed;
650
+ }
651
+
652
+ @stillwind-utility decoration-dotted {
653
+ text-decoration-style: dotted;
654
+ }
655
+
656
+ @stillwind-utility decoration-double {
657
+ text-decoration-style: double;
658
+ }
659
+
660
+ @stillwind-utility decoration-solid {
661
+ text-decoration-style: solid;
662
+ }
663
+
664
+ @stillwind-utility decoration-wavy {
665
+ text-decoration-style: wavy;
666
+ }
667
+
668
+ @stillwind-utility decoration-auto {
669
+ text-decoration-thickness: auto;
670
+ }
671
+
672
+ @stillwind-utility decoration-from-font {
673
+ text-decoration-thickness: from-font;
674
+ }
675
+
676
+ @stillwind-utility decoration-* {
677
+ text-decoration-thickness: calc(--value(integer) * 1px);
678
+ }
679
+
680
+ @stillwind-utility decoration-* {
681
+ text-decoration-thickness: --value([length-percentage]);
682
+ }
683
+
684
+ @stillwind-utility underline-offset-0 {
685
+ text-underline-offset: 0px;
686
+ }
687
+
688
+ @stillwind-utility underline-offset-auto {
689
+ text-underline-offset: auto;
690
+ }
691
+
692
+ @stillwind-utility underline-offset-* {
693
+ text-underline-offset: --value(--text-underline-offset-*, [length-percentage]);
694
+ }
695
+
696
+ @stillwind-utility underline-offset-* {
697
+ text-underline-offset: calc(--value(integer) * 1px);
698
+ }
699
+
700
+ @stillwind-utility -underline-offset-* {
701
+ text-underline-offset: calc(--value(--text-underline-offset-*, [length-percentage]) * -1);
702
+ }
703
+
704
+ @stillwind-utility -underline-offset-* {
705
+ text-underline-offset: calc(--value(integer) * 1px * -1);
706
+ }
707
+
708
+ /* MARK: Font smoothing */
709
+
710
+ @stillwind-arbitrary-property -webkit-font-smoothing;
711
+
712
+ @stillwind-utility antialiased {
713
+ -webkit-font-smoothing: antialiased;
714
+ -moz-osx-font-smoothing: grayscale;
715
+ }
716
+
717
+ @stillwind-utility subpixel-antialiased {
718
+ -webkit-font-smoothing: auto;
719
+ -moz-osx-font-smoothing: auto;
720
+ }
@@ -0,0 +1,5 @@
1
+ /* Built-in Stillwind conditional variant. */
2
+
3
+ @stillwind-variant if\(*\) (value: [if-condition]) {
4
+ @stillwind-intrinsic builtin-if-variant;
5
+ }
@@ -0,0 +1,13 @@
1
+ /* Built-in Stillwind variants that select a document-level element. */
2
+
3
+ /*
4
+ `scope: document` keeps the selector as written instead of nesting it under `&`.
5
+ In `style()`, the rule stays document-wide, and `document-scoped-selector`
6
+ reports it. In a document-level style, the variant selects the element that
7
+ later variants and the utility apply to.
8
+ */
9
+ @stillwind-variant host (scope: document) {
10
+ :host {
11
+ @slot;
12
+ }
13
+ }