@pandacss/studio 0.0.0-dev-20230613163214

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 (250) hide show
  1. package/LICENSE.md +21 -0
  2. package/astro.config.ts +14 -0
  3. package/dist/studio.d.ts +13 -0
  4. package/dist/studio.js +2089 -0
  5. package/dist/studio.mjs +2087 -0
  6. package/index.ts +1 -0
  7. package/package.json +59 -0
  8. package/panda.config.ts +110 -0
  9. package/public/favicon.svg +13 -0
  10. package/src/components/analyzer/category-utilities.tsx +146 -0
  11. package/src/components/analyzer/data-combobox.tsx +125 -0
  12. package/src/components/analyzer/data-table.tsx +43 -0
  13. package/src/components/analyzer/external-icon.tsx +8 -0
  14. package/src/components/analyzer/file-details.tsx +101 -0
  15. package/src/components/analyzer/get-report-infos-from.ts +80 -0
  16. package/src/components/analyzer/quick-tooltip.tsx +15 -0
  17. package/src/components/analyzer/report-item-columns.tsx +52 -0
  18. package/src/components/analyzer/report-item-link.tsx +98 -0
  19. package/src/components/analyzer/section.tsx +24 -0
  20. package/src/components/analyzer/sort-icon.tsx +7 -0
  21. package/src/components/analyzer/text-with-count.tsx +28 -0
  22. package/src/components/analyzer/token-search-combobox.tsx +39 -0
  23. package/src/components/analyzer/truncated-text.tsx +26 -0
  24. package/src/components/analyzer/utility-details.tsx +312 -0
  25. package/src/components/color-constrast.tsx +131 -0
  26. package/src/components/color-item.tsx +37 -0
  27. package/src/components/color-wrapper.tsx +25 -0
  28. package/src/components/colors.tsx +96 -0
  29. package/src/components/empty-state.tsx +19 -0
  30. package/src/components/font-family.tsx +55 -0
  31. package/src/components/font-tokens.tsx +69 -0
  32. package/src/components/head.astro +35 -0
  33. package/src/components/icons.tsx +207 -0
  34. package/src/components/input.tsx +27 -0
  35. package/src/components/layer-styles.tsx +38 -0
  36. package/src/components/logo.tsx +34 -0
  37. package/src/components/nav-item.tsx +39 -0
  38. package/src/components/overview.tsx +65 -0
  39. package/src/components/radii.tsx +34 -0
  40. package/src/components/semantic-color.tsx +27 -0
  41. package/src/components/side-nav-item.astro +25 -0
  42. package/src/components/side-nav.astro +30 -0
  43. package/src/components/sizes.tsx +53 -0
  44. package/src/components/text-styles.tsx +33 -0
  45. package/src/components/theme-toggle.astro +56 -0
  46. package/src/components/token-analyzer.tsx +390 -0
  47. package/src/components/token-content.tsx +5 -0
  48. package/src/components/token-group.tsx +6 -0
  49. package/src/components/typography-playground.tsx +83 -0
  50. package/src/env.d.ts +1 -0
  51. package/src/icons/moon.tsx +15 -0
  52. package/src/icons/sun.tsx +19 -0
  53. package/src/layouts/Layout.astro +19 -0
  54. package/src/layouts/Sidebar.astro +35 -0
  55. package/src/lib/analysis-data.ts +17 -0
  56. package/src/lib/color-contrast-checker.ts +218 -0
  57. package/src/lib/color.ts +40 -0
  58. package/src/lib/constants.ts +140 -0
  59. package/src/lib/create-context.ts +27 -0
  60. package/src/lib/get-report-item.tsx +41 -0
  61. package/src/lib/group-in.ts +35 -0
  62. package/src/lib/panda.context.ts +23 -0
  63. package/src/lib/pick.ts +24 -0
  64. package/src/lib/sizes-sort.ts +10 -0
  65. package/src/lib/truncate.tsx +7 -0
  66. package/src/lib/use-color-docs.ts +101 -0
  67. package/src/pages/colors.astro +11 -0
  68. package/src/pages/font-sizes.astro +15 -0
  69. package/src/pages/font-weights.astro +15 -0
  70. package/src/pages/fonts.astro +11 -0
  71. package/src/pages/index.astro +8 -0
  72. package/src/pages/layer-styles.astro +11 -0
  73. package/src/pages/letter-spacings.astro +20 -0
  74. package/src/pages/line-heights.astro +21 -0
  75. package/src/pages/playground/contrast-checker.astro +11 -0
  76. package/src/pages/playground/typography.astro +11 -0
  77. package/src/pages/radii.astro +11 -0
  78. package/src/pages/sizes.astro +14 -0
  79. package/src/pages/spacing.astro +14 -0
  80. package/src/pages/text-styles.astro +11 -0
  81. package/src/pages/token-analyzer/file.astro +11 -0
  82. package/src/pages/token-analyzer/index.astro +11 -0
  83. package/src/pages/token-analyzer/utility.astro +11 -0
  84. package/styled-system/chunks/..__core____tests____composition.test.css +2 -0
  85. package/styled-system/chunks/src__components__analyzer__category-utilities.css +97 -0
  86. package/styled-system/chunks/src__components__analyzer__data-combobox.css +77 -0
  87. package/styled-system/chunks/src__components__analyzer__data-table.css +37 -0
  88. package/styled-system/chunks/src__components__analyzer__file-details.css +103 -0
  89. package/styled-system/chunks/src__components__analyzer__quick-tooltip.css +2 -0
  90. package/styled-system/chunks/src__components__analyzer__report-item-columns.css +29 -0
  91. package/styled-system/chunks/src__components__analyzer__report-item-link.css +109 -0
  92. package/styled-system/chunks/src__components__analyzer__section.css +29 -0
  93. package/styled-system/chunks/src__components__analyzer__text-with-count.css +33 -0
  94. package/styled-system/chunks/src__components__analyzer__truncated-text.css +13 -0
  95. package/styled-system/chunks/src__components__analyzer__utility-details.css +125 -0
  96. package/styled-system/chunks/src__components__color-constrast.css +114 -0
  97. package/styled-system/chunks/src__components__color-item.css +21 -0
  98. package/styled-system/chunks/src__components__color-wrapper.css +73 -0
  99. package/styled-system/chunks/src__components__colors.css +97 -0
  100. package/styled-system/chunks/src__components__empty-state.css +45 -0
  101. package/styled-system/chunks/src__components__font-family.css +85 -0
  102. package/styled-system/chunks/src__components__font-tokens.css +61 -0
  103. package/styled-system/chunks/src__components__input.css +68 -0
  104. package/styled-system/chunks/src__components__layer-styles.css +66 -0
  105. package/styled-system/chunks/src__components__nav-item.css +73 -0
  106. package/styled-system/chunks/src__components__overview.css +125 -0
  107. package/styled-system/chunks/src__components__radii.css +49 -0
  108. package/styled-system/chunks/src__components__semantic-color.css +45 -0
  109. package/styled-system/chunks/src__components__side-nav-item.css +33 -0
  110. package/styled-system/chunks/src__components__side-nav.css +49 -0
  111. package/styled-system/chunks/src__components__sizes.css +41 -0
  112. package/styled-system/chunks/src__components__text-styles.css +31 -0
  113. package/styled-system/chunks/src__components__theme-toggle.css +63 -0
  114. package/styled-system/chunks/src__components__token-analyzer.css +227 -0
  115. package/styled-system/chunks/src__components__token-content.css +13 -0
  116. package/styled-system/chunks/src__components__token-group.css +21 -0
  117. package/styled-system/chunks/src__components__token-search-combobox.css +2 -0
  118. package/styled-system/chunks/src__components__typography-playground.css +61 -0
  119. package/styled-system/chunks/src__layouts__Layout.css +2 -0
  120. package/styled-system/chunks/src__layouts__Sidebar.css +113 -0
  121. package/styled-system/chunks/src__pages__colors.css +2 -0
  122. package/styled-system/chunks/src__pages__font-sizes.css +2 -0
  123. package/styled-system/chunks/src__pages__font-weights.css +2 -0
  124. package/styled-system/chunks/src__pages__fonts.css +2 -0
  125. package/styled-system/chunks/src__pages__index.css +2 -0
  126. package/styled-system/chunks/src__pages__layer-styles.css +2 -0
  127. package/styled-system/chunks/src__pages__letter-spacings.css +2 -0
  128. package/styled-system/chunks/src__pages__line-heights.css +2 -0
  129. package/styled-system/chunks/src__pages__playground__contrast-checker.css +2 -0
  130. package/styled-system/chunks/src__pages__playground__typography.css +2 -0
  131. package/styled-system/chunks/src__pages__radii.css +2 -0
  132. package/styled-system/chunks/src__pages__sizes.css +2 -0
  133. package/styled-system/chunks/src__pages__spacing.css +2 -0
  134. package/styled-system/chunks/src__pages__text-styles.css +2 -0
  135. package/styled-system/chunks/src__pages__token-analyzer__file.css +2 -0
  136. package/styled-system/chunks/src__pages__token-analyzer__index.css +2 -0
  137. package/styled-system/chunks/src__pages__token-analyzer__utility.css +2 -0
  138. package/styled-system/css/conditions.mjs +147 -0
  139. package/styled-system/css/css.d.ts +2 -0
  140. package/styled-system/css/css.mjs +391 -0
  141. package/styled-system/css/cva.d.ts +5 -0
  142. package/styled-system/css/cva.mjs +63 -0
  143. package/styled-system/css/cx.d.ts +4 -0
  144. package/styled-system/css/cx.mjs +15 -0
  145. package/styled-system/css/index.d.ts +3 -0
  146. package/styled-system/css/index.mjs +3 -0
  147. package/styled-system/global.css +61 -0
  148. package/styled-system/helpers.mjs +251 -0
  149. package/styled-system/jsx/absolute-center.d.ts +8 -0
  150. package/styled-system/jsx/absolute-center.mjs +9 -0
  151. package/styled-system/jsx/aspect-ratio.d.ts +8 -0
  152. package/styled-system/jsx/aspect-ratio.mjs +9 -0
  153. package/styled-system/jsx/box.d.ts +8 -0
  154. package/styled-system/jsx/box.mjs +8 -0
  155. package/styled-system/jsx/center.d.ts +8 -0
  156. package/styled-system/jsx/center.mjs +9 -0
  157. package/styled-system/jsx/circle.d.ts +8 -0
  158. package/styled-system/jsx/circle.mjs +9 -0
  159. package/styled-system/jsx/container.d.ts +8 -0
  160. package/styled-system/jsx/container.mjs +8 -0
  161. package/styled-system/jsx/divider.d.ts +8 -0
  162. package/styled-system/jsx/divider.mjs +9 -0
  163. package/styled-system/jsx/factory.d.ts +2 -0
  164. package/styled-system/jsx/factory.mjs +59 -0
  165. package/styled-system/jsx/flex.d.ts +8 -0
  166. package/styled-system/jsx/flex.mjs +9 -0
  167. package/styled-system/jsx/float.d.ts +8 -0
  168. package/styled-system/jsx/float.mjs +9 -0
  169. package/styled-system/jsx/grid-item.d.ts +8 -0
  170. package/styled-system/jsx/grid-item.mjs +9 -0
  171. package/styled-system/jsx/grid.d.ts +8 -0
  172. package/styled-system/jsx/grid.mjs +9 -0
  173. package/styled-system/jsx/hstack.d.ts +8 -0
  174. package/styled-system/jsx/hstack.mjs +9 -0
  175. package/styled-system/jsx/index.d.ts +20 -0
  176. package/styled-system/jsx/index.mjs +19 -0
  177. package/styled-system/jsx/is-valid-prop.mjs +1010 -0
  178. package/styled-system/jsx/spacer.d.ts +8 -0
  179. package/styled-system/jsx/spacer.mjs +9 -0
  180. package/styled-system/jsx/square.d.ts +8 -0
  181. package/styled-system/jsx/square.mjs +9 -0
  182. package/styled-system/jsx/stack.d.ts +8 -0
  183. package/styled-system/jsx/stack.mjs +9 -0
  184. package/styled-system/jsx/styled-link.d.ts +8 -0
  185. package/styled-system/jsx/styled-link.mjs +8 -0
  186. package/styled-system/jsx/vstack.d.ts +8 -0
  187. package/styled-system/jsx/vstack.mjs +9 -0
  188. package/styled-system/jsx/wrap.d.ts +8 -0
  189. package/styled-system/jsx/wrap.mjs +9 -0
  190. package/styled-system/patterns/absolute-center.d.ts +14 -0
  191. package/styled-system/patterns/absolute-center.mjs +23 -0
  192. package/styled-system/patterns/aspect-ratio.d.ts +14 -0
  193. package/styled-system/patterns/aspect-ratio.mjs +25 -0
  194. package/styled-system/patterns/box.d.ts +14 -0
  195. package/styled-system/patterns/box.mjs +12 -0
  196. package/styled-system/patterns/center.d.ts +14 -0
  197. package/styled-system/patterns/center.mjs +18 -0
  198. package/styled-system/patterns/circle.d.ts +14 -0
  199. package/styled-system/patterns/circle.mjs +22 -0
  200. package/styled-system/patterns/container.d.ts +14 -0
  201. package/styled-system/patterns/container.mjs +18 -0
  202. package/styled-system/patterns/divider.d.ts +16 -0
  203. package/styled-system/patterns/divider.mjs +21 -0
  204. package/styled-system/patterns/flex.d.ts +20 -0
  205. package/styled-system/patterns/flex.mjs +23 -0
  206. package/styled-system/patterns/float.d.ts +17 -0
  207. package/styled-system/patterns/float.mjs +45 -0
  208. package/styled-system/patterns/grid-item.d.ts +19 -0
  209. package/styled-system/patterns/grid-item.mjs +20 -0
  210. package/styled-system/patterns/grid.d.ts +18 -0
  211. package/styled-system/patterns/grid.mjs +25 -0
  212. package/styled-system/patterns/hstack.d.ts +15 -0
  213. package/styled-system/patterns/hstack.mjs +20 -0
  214. package/styled-system/patterns/index.d.ts +18 -0
  215. package/styled-system/patterns/index.mjs +18 -0
  216. package/styled-system/patterns/spacer.d.ts +14 -0
  217. package/styled-system/patterns/spacer.mjs +18 -0
  218. package/styled-system/patterns/square.d.ts +14 -0
  219. package/styled-system/patterns/square.mjs +21 -0
  220. package/styled-system/patterns/stack.d.ts +17 -0
  221. package/styled-system/patterns/stack.mjs +20 -0
  222. package/styled-system/patterns/styled-link.d.ts +14 -0
  223. package/styled-system/patterns/styled-link.mjs +18 -0
  224. package/styled-system/patterns/vstack.d.ts +15 -0
  225. package/styled-system/patterns/vstack.mjs +20 -0
  226. package/styled-system/patterns/wrap.d.ts +18 -0
  227. package/styled-system/patterns/wrap.mjs +22 -0
  228. package/styled-system/reset.css +190 -0
  229. package/styled-system/static.css +5 -0
  230. package/styled-system/styles.css +938 -0
  231. package/styled-system/tokens/index.css +374 -0
  232. package/styled-system/tokens/index.d.ts +8 -0
  233. package/styled-system/tokens/index.mjs +1590 -0
  234. package/styled-system/tokens/keyframes.css +30 -0
  235. package/styled-system/tokens/tokens.d.ts +56 -0
  236. package/styled-system/types/composition.d.ts +110 -0
  237. package/styled-system/types/conditions.d.ts +135 -0
  238. package/styled-system/types/csstype.d.ts +20748 -0
  239. package/styled-system/types/global.d.ts +15 -0
  240. package/styled-system/types/helpers.d.ts +1 -0
  241. package/styled-system/types/index.d.ts +3 -0
  242. package/styled-system/types/jsx.d.ts +27 -0
  243. package/styled-system/types/parts.d.ts +5 -0
  244. package/styled-system/types/pattern.d.ts +52 -0
  245. package/styled-system/types/prop-type.d.ts +300 -0
  246. package/styled-system/types/recipe.d.ts +79 -0
  247. package/styled-system/types/selectors.d.ts +56 -0
  248. package/styled-system/types/style-props.d.ts +688 -0
  249. package/styled-system/types/system-types.d.ts +76 -0
  250. package/virtual-panda.ts +72 -0
@@ -0,0 +1,227 @@
1
+ @layer utilities {
2
+ .py_20px {
3
+ padding-block: 20px;
4
+ }
5
+
6
+ .p_4px_8px {
7
+ padding: 4px 8px;
8
+ }
9
+
10
+ .bg_white {
11
+ background: var(--colors-white);
12
+ }
13
+
14
+ .list-style_none {
15
+ list-style: none;
16
+ }
17
+
18
+ .p_4 {
19
+ padding: var(--spacing-4);
20
+ }
21
+
22
+ .hover\:bg_gray\.50 {
23
+ &:where(:hover, [data-hover]) {
24
+ background-color: var(--colors-gray-50);
25
+ }
26
+ }
27
+
28
+ .px_24 {
29
+ padding-inline: var(--spacing-24);
30
+ }
31
+
32
+ .w_100\% {
33
+ width: 100%;
34
+ }
35
+
36
+ .w_26px {
37
+ width: 26px;
38
+ }
39
+
40
+ .ml_auto {
41
+ margin-left: auto;
42
+ }
43
+
44
+ .mt_8 {
45
+ margin-top: var(--spacing-8);
46
+ }
47
+
48
+ .fs_xl {
49
+ font-size: var(--font-sizes-xl);
50
+ }
51
+
52
+ .bg_gray\.100 {
53
+ background: var(--colors-gray-100);
54
+ }
55
+
56
+ .border_1px_solid_rgba\(0\,_0\,_0\,_0\.1\) {
57
+ border: 1px solid rgba(0, 0, 0, 0.1);
58
+ }
59
+
60
+ .rounded_md {
61
+ border-radius: var(--radii-md);
62
+ }
63
+
64
+ .fs_md {
65
+ font-size: var(--font-sizes-md);
66
+ }
67
+
68
+ .font_bold {
69
+ font-weight: var(--font-weights-bold);
70
+ }
71
+
72
+ .ml_2 {
73
+ margin-left: var(--spacing-2);
74
+ }
75
+
76
+ .d_inline-block {
77
+ display: inline-block;
78
+ }
79
+
80
+ .bg_gray\.50 {
81
+ background: var(--colors-gray-50);
82
+ }
83
+
84
+ .p_0 {
85
+ padding: 0;
86
+ }
87
+
88
+ .hover\:bg_gray\.100 {
89
+ &:where(:hover, [data-hover]) {
90
+ background-color: var(--colors-gray-100);
91
+ }
92
+ }
93
+
94
+ .py_2 {
95
+ padding-block: var(--spacing-2);
96
+ }
97
+
98
+ .px_4 {
99
+ padding-inline: var(--spacing-4);
100
+ }
101
+
102
+ .transition_all_0\.2s_ease {
103
+ transition: all 0.2s ease;
104
+ }
105
+
106
+ .hover\:bg_gray\.100 {
107
+ &:where(:hover, [data-hover]) {
108
+ background: var(--colors-gray-100);
109
+ }
110
+ }
111
+
112
+ .bg_none {
113
+ background: none;
114
+ }
115
+
116
+ .p_2 {
117
+ padding: var(--spacing-2);
118
+ }
119
+
120
+ .gap_10px {
121
+ gap: 10px;
122
+ }
123
+
124
+ .mb_4 {
125
+ margin-bottom: var(--spacing-4);
126
+ }
127
+
128
+ .p_20px {
129
+ padding: 20px;
130
+ }
131
+
132
+ .fs_lg {
133
+ font-size: var(--font-sizes-lg);
134
+ }
135
+
136
+ .hover\:opacity_1 {
137
+ &:where(:hover, [data-hover]) {
138
+ opacity: 1;
139
+ }
140
+ }
141
+
142
+ .hover\:border-b_black {
143
+ &:where(:hover, [data-hover]) {
144
+ border-bottom-color: var(--colors-black);
145
+ }
146
+ }
147
+
148
+ .hover\:opacity_1 {
149
+ &:where(:hover, [data-hover]) {
150
+ opacity: 1;
151
+ }
152
+ }
153
+
154
+ .hover\:border-b_black {
155
+ &:where(:hover, [data-hover]) {
156
+ border-bottom-color: var(--colors-black);
157
+ }
158
+ }
159
+
160
+ .d_inline-flex {
161
+ display: inline-flex;
162
+ }
163
+
164
+ .items_center {
165
+ align-items: center;
166
+ }
167
+
168
+ .opacity_0\.5 {
169
+ opacity: 0.5;
170
+ }
171
+
172
+ .border-b_1px_solid_transparent {
173
+ border-bottom: 1px solid transparent;
174
+ }
175
+
176
+ .cursor_pointer {
177
+ cursor: pointer;
178
+ }
179
+
180
+ .hover\:opacity_1 {
181
+ &:where(:hover, [data-hover]) {
182
+ opacity: 1;
183
+ }
184
+ }
185
+
186
+ .hover\:border-b_black {
187
+ &:where(:hover, [data-hover]) {
188
+ border-bottom-color: var(--colors-black);
189
+ }
190
+ }
191
+
192
+ .gap_4 {
193
+ gap: var(--spacing-4);
194
+ }
195
+
196
+ .flex-wrap_wrap {
197
+ flex-wrap: wrap;
198
+ }
199
+
200
+ .mt_4 {
201
+ margin-top: var(--spacing-4);
202
+ }
203
+
204
+ .d_flex {
205
+ display: flex;
206
+ }
207
+
208
+ .flex_column {
209
+ flex-direction: column;
210
+ }
211
+
212
+ .gap_2 {
213
+ gap: var(--spacing-2);
214
+ }
215
+
216
+ .px_2 {
217
+ padding-inline: var(--spacing-2);
218
+ }
219
+
220
+ .fs_sm {
221
+ font-size: var(--font-sizes-sm);
222
+ }
223
+
224
+ .w_full {
225
+ width: var(--sizes-full);
226
+ }
227
+ }
@@ -0,0 +1,13 @@
1
+ @layer utilities {
2
+ .d_flex {
3
+ display: flex;
4
+ }
5
+
6
+ .flex_column {
7
+ flex-direction: column;
8
+ }
9
+
10
+ .gap_12 {
11
+ gap: var(--spacing-12);
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ @layer utilities {
2
+ .d_flex {
3
+ display: flex;
4
+ }
5
+
6
+ .flex_column {
7
+ flex-direction: column;
8
+ }
9
+
10
+ .gap_3 {
11
+ gap: var(--spacing-3);
12
+ }
13
+
14
+ .w_full {
15
+ width: var(--sizes-full);
16
+ }
17
+
18
+ .mt_5 {
19
+ margin-top: var(--spacing-5);
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,61 @@
1
+ @layer utilities {
2
+ .bg_card {
3
+ background: var(--colors-card);
4
+ }
5
+
6
+ .ring_0 {
7
+ outline: 0;
8
+ }
9
+
10
+ .pt_28 {
11
+ padding-top: var(--spacing-28);
12
+ }
13
+
14
+ .pb_28 {
15
+ padding-bottom: var(--spacing-28);
16
+ }
17
+
18
+ .mx_auto {
19
+ margin-inline: auto;
20
+ }
21
+
22
+ .w_fit-content {
23
+ width: fit-content;
24
+ }
25
+
26
+ .items_center {
27
+ align-items: center;
28
+ }
29
+
30
+ .gap_1\.5 {
31
+ gap: var(--spacing-1\.5);
32
+ }
33
+
34
+ .white-space_nowrap {
35
+ white-space: nowrap;
36
+ }
37
+
38
+ .w_48 {
39
+ width: var(--sizes-48);
40
+ }
41
+
42
+ .text_capitalize {
43
+ text-transform: capitalize;
44
+ }
45
+
46
+ .mr_2 {
47
+ margin-right: var(--spacing-2);
48
+ }
49
+
50
+ .d_flex {
51
+ display: flex;
52
+ }
53
+
54
+ .flex_column {
55
+ flex-direction: column;
56
+ }
57
+
58
+ .gap_4 {
59
+ gap: var(--spacing-4);
60
+ }
61
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,113 @@
1
+ @layer utilities {
2
+ .h_calc\(100vh_-_env\(safe-area-inset-bottom\)\) {
3
+ height: calc(100vh - env(safe-area-inset-bottom));
4
+ }
5
+
6
+ .font_bold {
7
+ font-weight: var(--font-weights-bold);
8
+ }
9
+
10
+ .fs_2xl {
11
+ font-size: var(--font-sizes-2xl);
12
+ }
13
+
14
+ .gap_2 {
15
+ gap: var(--spacing-2);
16
+ }
17
+
18
+ .w_16 {
19
+ width: var(--sizes-16);
20
+ }
21
+
22
+ .mt_4 {
23
+ margin-top: var(--spacing-4);
24
+ }
25
+
26
+ .pt_14 {
27
+ padding-top: var(--spacing-14);
28
+ }
29
+
30
+ .pb_8 {
31
+ padding-bottom: var(--spacing-8);
32
+ }
33
+
34
+ .fs_3xl {
35
+ font-size: var(--font-sizes-3xl);
36
+ }
37
+
38
+ .font_semibold {
39
+ font-weight: var(--font-weights-semibold);
40
+ }
41
+
42
+ .mb_8 {
43
+ margin-bottom: var(--spacing-8);
44
+ }
45
+
46
+ .tracking_tight {
47
+ letter-spacing: var(--letter-spacings-tight);
48
+ }
49
+
50
+ .d_flex {
51
+ display: flex;
52
+ }
53
+
54
+ .flex_column {
55
+ flex-direction: column;
56
+ }
57
+
58
+ .gap_10px {
59
+ gap: 10px;
60
+ }
61
+
62
+ .h_full {
63
+ height: var(--sizes-full);
64
+ }
65
+
66
+ .min-w_60 {
67
+ min-width: var(--sizes-60);
68
+ }
69
+
70
+ .overflow_auto {
71
+ overflow: auto;
72
+ }
73
+
74
+ .px_12 {
75
+ padding-inline: var(--spacing-12);
76
+ }
77
+
78
+ .py_8 {
79
+ padding-block: var(--spacing-8);
80
+ }
81
+
82
+ .pos_relative {
83
+ position: relative;
84
+ }
85
+
86
+ .max-w_8xl {
87
+ max-width: var(--sizes-8xl);
88
+ }
89
+
90
+ .mx_auto {
91
+ margin-inline: auto;
92
+ }
93
+
94
+ .px_4 {
95
+ padding-inline: var(--spacing-4);
96
+ }
97
+
98
+ .w_full {
99
+ width: var(--sizes-full);
100
+ }
101
+
102
+ .md\:px_6 {
103
+ @media screen and (min-width: 768px) {
104
+ padding-inline: var(--spacing-6);
105
+ }
106
+ }
107
+
108
+ .lg\:px_8 {
109
+ @media screen and (min-width: 1024px) {
110
+ padding-inline: var(--spacing-8);
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,2 @@
1
+ @layer utilities {
2
+ }
@@ -0,0 +1,147 @@
1
+ import { withoutSpace } from '../helpers.mjs'
2
+
3
+ const conditions = new Set([
4
+ '_hover',
5
+ '_focus',
6
+ '_focusWithin',
7
+ '_focusVisible',
8
+ '_disabled',
9
+ '_active',
10
+ '_visited',
11
+ '_target',
12
+ '_readOnly',
13
+ '_readWrite',
14
+ '_empty',
15
+ '_checked',
16
+ '_enabled',
17
+ '_expanded',
18
+ '_highlighted',
19
+ '_before',
20
+ '_after',
21
+ '_firstLetter',
22
+ '_firstLine',
23
+ '_marker',
24
+ '_selection',
25
+ '_file',
26
+ '_backdrop',
27
+ '_first',
28
+ '_last',
29
+ '_only',
30
+ '_even',
31
+ '_odd',
32
+ '_firstOfType',
33
+ '_lastOfType',
34
+ '_onlyOfType',
35
+ '_peerFocus',
36
+ '_peerHover',
37
+ '_peerActive',
38
+ '_peerFocusWithin',
39
+ '_peerFocusVisible',
40
+ '_peerDisabled',
41
+ '_peerChecked',
42
+ '_peerInvalid',
43
+ '_peerExpanded',
44
+ '_peerPlaceholderShown',
45
+ '_groupFocus',
46
+ '_groupHover',
47
+ '_groupActive',
48
+ '_groupFocusWithin',
49
+ '_groupFocusVisible',
50
+ '_groupDisabled',
51
+ '_groupChecked',
52
+ '_groupExpanded',
53
+ '_groupInvalid',
54
+ '_indeterminate',
55
+ '_required',
56
+ '_valid',
57
+ '_invalid',
58
+ '_autofill',
59
+ '_inRange',
60
+ '_outOfRange',
61
+ '_placeholder',
62
+ '_placeholderShown',
63
+ '_pressed',
64
+ '_selected',
65
+ '_default',
66
+ '_optional',
67
+ '_open',
68
+ '_fullscreen',
69
+ '_loading',
70
+ '_currentPage',
71
+ '_currentStep',
72
+ '_motionReduce',
73
+ '_motionSafe',
74
+ '_print',
75
+ '_landscape',
76
+ '_portrait',
77
+ '_dark',
78
+ '_light',
79
+ '_osDark',
80
+ '_osLight',
81
+ '_highConstrast',
82
+ '_lessContrast',
83
+ '_moreContrast',
84
+ '_ltr',
85
+ '_rtl',
86
+ '_scrollbar',
87
+ '_scrollbarThumb',
88
+ '_scrollbarTrack',
89
+ '_horizontal',
90
+ '_vertical',
91
+ 'sm',
92
+ 'smOnly',
93
+ 'smDown',
94
+ 'md',
95
+ 'mdOnly',
96
+ 'mdDown',
97
+ 'lg',
98
+ 'lgOnly',
99
+ 'lgDown',
100
+ 'xl',
101
+ 'xlOnly',
102
+ 'xlDown',
103
+ '2xl',
104
+ '2xlOnly',
105
+ 'smToMd',
106
+ 'smToLg',
107
+ 'smToXl',
108
+ 'smTo2xl',
109
+ 'mdToLg',
110
+ 'mdToXl',
111
+ 'mdTo2xl',
112
+ 'lgToXl',
113
+ 'lgTo2xl',
114
+ 'xlTo2xl',
115
+ 'base',
116
+ ])
117
+
118
+ export function isCondition(value) {
119
+ return conditions.has(value) || /^@|&|&$/.test(value)
120
+ }
121
+
122
+ const underscoreRegex = /^_/
123
+ const selectorRegex = /&|@/
124
+
125
+ export function finalizeConditions(paths) {
126
+ return paths.map((path) => {
127
+ if (conditions.has(path)) {
128
+ return path.replace(underscoreRegex, '')
129
+ }
130
+
131
+ if (selectorRegex.test(path)) {
132
+ return `[${withoutSpace(path.trim())}]`
133
+ }
134
+
135
+ return path
136
+ })
137
+ }
138
+
139
+ export function sortConditions(paths) {
140
+ return paths.sort((a, b) => {
141
+ const aa = isCondition(a)
142
+ const bb = isCondition(b)
143
+ if (aa && !bb) return 1
144
+ if (!aa && bb) return -1
145
+ return 0
146
+ })
147
+ }
@@ -0,0 +1,2 @@
1
+ import type { SystemStyleObject } from '../types'
2
+ export declare function css(styles: SystemStyleObject): string