mancha 0.17.3 → 0.17.5

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 (70) hide show
  1. package/.github/workflows/ci.yml +8 -8
  2. package/.prettierrc +2 -2
  3. package/.vscode/extensions.json +1 -1
  4. package/.vscode/launch.json +33 -43
  5. package/README.md +94 -94
  6. package/dist/browser.js.map +1 -1
  7. package/dist/cli.js.map +1 -1
  8. package/dist/css_gen_basic.js.map +1 -1
  9. package/dist/css_gen_utils.d.ts +786 -0
  10. package/dist/css_gen_utils.js +63 -23
  11. package/dist/css_gen_utils.js.map +1 -1
  12. package/dist/dome.js.map +1 -1
  13. package/dist/expressions/ast.d.ts +16 -16
  14. package/dist/expressions/ast.test.js +89 -64
  15. package/dist/expressions/ast.test.js.map +1 -1
  16. package/dist/expressions/ast_factory.d.ts +1 -1
  17. package/dist/expressions/ast_factory.js +17 -17
  18. package/dist/expressions/ast_factory.js.map +1 -1
  19. package/dist/expressions/ast_factory.test.js +42 -36
  20. package/dist/expressions/ast_factory.test.js.map +1 -1
  21. package/dist/expressions/constants.js +56 -56
  22. package/dist/expressions/constants.js.map +1 -1
  23. package/dist/expressions/constants.test.js +57 -57
  24. package/dist/expressions/constants.test.js.map +1 -1
  25. package/dist/expressions/eval.d.ts +17 -17
  26. package/dist/expressions/eval.js +58 -60
  27. package/dist/expressions/eval.js.map +1 -1
  28. package/dist/expressions/eval.test.js +11 -8
  29. package/dist/expressions/eval.test.js.map +1 -1
  30. package/dist/expressions/expressions.test.d.ts +6 -6
  31. package/dist/expressions/expressions.test.js +6 -6
  32. package/dist/expressions/index.d.ts +6 -6
  33. package/dist/expressions/index.js +6 -6
  34. package/dist/expressions/parser.d.ts +3 -3
  35. package/dist/expressions/parser.js +37 -42
  36. package/dist/expressions/parser.js.map +1 -1
  37. package/dist/expressions/parser.test.js +3 -6
  38. package/dist/expressions/parser.test.js.map +1 -1
  39. package/dist/expressions/tokenizer.js +22 -25
  40. package/dist/expressions/tokenizer.js.map +1 -1
  41. package/dist/expressions/tokenizer.test.js +40 -15
  42. package/dist/expressions/tokenizer.test.js.map +1 -1
  43. package/dist/index.js.map +1 -1
  44. package/dist/iterator.js.map +1 -1
  45. package/dist/mancha.js.map +1 -1
  46. package/dist/plugins.js +2 -2
  47. package/dist/plugins.js.map +1 -1
  48. package/dist/query.js.map +1 -1
  49. package/dist/renderer.js.map +1 -1
  50. package/dist/safe_browser.js.map +1 -1
  51. package/dist/store.js +1 -1
  52. package/dist/store.js.map +1 -1
  53. package/dist/test_utils.js.map +1 -1
  54. package/dist/trusted_attributes.js.map +1 -1
  55. package/dist/type_checker.js +11 -7
  56. package/dist/type_checker.js.map +1 -1
  57. package/dist/worker.js.map +1 -1
  58. package/docs/css.md +419 -0
  59. package/docs/quickstart.md +305 -296
  60. package/global.d.ts +2 -2
  61. package/gulpfile.ts +44 -0
  62. package/package.json +86 -84
  63. package/scripts/generate-css-docs.ts +374 -0
  64. package/tsconfig.json +42 -19
  65. package/tsec_exemptions.json +8 -3
  66. package/webpack.config.esmodule.ts +26 -0
  67. package/webpack.config.ts +21 -0
  68. package/gulpfile.js +0 -44
  69. package/webpack.config.esmodule.js +0 -23
  70. package/webpack.config.js +0 -18
package/docs/css.md ADDED
@@ -0,0 +1,419 @@
1
+ # CSS Documentation
2
+
3
+ Mancha provides a set of CSS utilities and basic styles to help you build your application.
4
+
5
+ ## Basic CSS
6
+
7
+ The basic CSS rules provide a clean, readable default style for standard HTML elements. You can inject them using `injectBasicCss()` or by adding `css="basic"` to your script tag.
8
+
9
+ ### Reset & Defaults
10
+ - **Max Width**: 70ch (centered)
11
+ - **Padding**: 2em 1em
12
+ - **Line Height**: 1.75
13
+ - **Font Family**: sans-serif
14
+ - **H1-H6 Margin**: 1em 0 0.5em
15
+ - **P, UL, OL Margin Bottom**: 1em
16
+
17
+ ## Utility CSS
18
+
19
+ The utility CSS rules are inspired by Tailwind CSS. You can inject them using `injectUtilsCss()` or by adding `css="utils"` to your script tag.
20
+
21
+ ### Media Breakpoints
22
+
23
+ | Prefix | Min Width |
24
+ | --- | --- |
25
+ | `sm:` | `640px` |
26
+ | `md:` | `768px` |
27
+ | `lg:` | `1024px` |
28
+ | `xl:` | `1280px` |
29
+
30
+ ### Pseudo States
31
+
32
+ The following pseudo states are supported for all utilities:
33
+ - `hover:`
34
+ - `focus:`
35
+ - `disabled:`
36
+ - `active:`
37
+
38
+ ### Spacing (Margin & Padding)
39
+
40
+ Spacing utilities use a 0.25rem (4px) unit by default.
41
+
42
+ | Prefix | Property | Values |
43
+ | --- | --- | --- |
44
+ | `m-` | `margin` | `0`, `0.25rem` - `128rem` (and negative versions) |
45
+ | `mx-` | `margin-left/right` | Same as above |
46
+ | `my-` | `margin-top/bottom` | Same as above |
47
+ | `mt-` | `margin-top` | Same as above |
48
+ | `mb-` | `margin-bottom` | Same as above |
49
+ | `ml-` | `margin-left` | Same as above |
50
+ | `mr-` | `margin-right` | Same as above |
51
+ | `p-` | `padding` | `0`, `0.25rem` - `128rem` (and negative versions) |
52
+ | `px-` | `padding-left/right` | Same as above |
53
+ | `py-` | `padding-top/bottom` | Same as above |
54
+ | `pt-` | `padding-top` | Same as above |
55
+ | `pb-` | `padding-bottom` | Same as above |
56
+ | `pl-` | `padding-left` | Same as above |
57
+ | `pr-` | `padding-right` | Same as above |
58
+
59
+ ### Sizing (Width & Height)
60
+
61
+ | Prefix | Property | Values |
62
+ | --- | --- | --- |
63
+ | `w-` | `width` | `0`, `full` (100%), `screen` (100vw/vh), `auto`, `px`, `0.25rem` - `128rem` |
64
+ | `w-dvw/dvh/svw/svh/lvw/lvh` | `width` | Viewport-relative units |
65
+ | `w-fit/min/max` | `width` | `fit-content`, `min-content`, `max-content` |
66
+ | `h-` | `height` | `0`, `full` (100%), `screen` (100vw/vh), `auto`, `px`, `0.25rem` - `128rem` |
67
+ | `h-dvw/dvh/svw/svh/lvw/lvh` | `height` | Viewport-relative units |
68
+ | `h-fit/min/max` | `height` | `fit-content`, `min-content`, `max-content` |
69
+ | `min-w-` | `min-width` | Same as sizing |
70
+ | `min-h-` | `min-height` | Same as sizing |
71
+ | `max-w-` | `max-width` | Same as sizing |
72
+ | `max-h-` | `max-height` | Same as sizing |
73
+ | `size-` | `width` & `height` | `auto`, `px`, `full`, `dvw`, `dvh`, `svw`, `svh`, `lvw`, `lvh`, `min`, `max`, `fit` |
74
+
75
+ ### Colors
76
+
77
+ Supported prefixes: `text-`, `bg-`, `border-`, `fill-`.
78
+
79
+ | Color | Shades |
80
+ | --- | --- |
81
+ | `white`, `black`, `transparent` | N/A |
82
+ | `red` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
83
+ | `pink` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
84
+ | `purple` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
85
+ | `deep-purple` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
86
+ | `indigo` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
87
+ | `blue` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
88
+ | `light-blue` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
89
+ | `cyan` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
90
+ | `teal` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
91
+ | `green` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
92
+ | `light-green` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
93
+ | `lime` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
94
+ | `yellow` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
95
+ | `amber` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
96
+ | `orange` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
97
+ | `deep-orange` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
98
+ | `brown` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
99
+ | `gray` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
100
+ | `blue-gray` | `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` |
101
+
102
+ ### Borders & Corners
103
+
104
+ | Utility | Description |
105
+ | --- | --- |
106
+ | `border` | `{"border":"1px solid"}` |
107
+ | `border-none` | `{"border":"none"}` |
108
+ | `border-solid` | `{"border-style":"solid"}` |
109
+ | `border-dashed` | `{"border-style":"dashed"}` |
110
+ | `border-dotted` | `{"border-style":"dotted"}` |
111
+ | `border-collapse` | `{"border-collapse":"collapse"}` |
112
+ | `rounded-none` | `{"border-radius":"0"}` |
113
+ | `rounded` | `{"border-radius":".25rem"}` |
114
+ | `rounded-sm` | `{"border-radius":".125rem"}` |
115
+ | `rounded-md` | `{"border-radius":".375rem"}` |
116
+ | `rounded-lg` | `{"border-radius":".5rem"}` |
117
+ | `rounded-xl` | `{"border-radius":".75rem"}` |
118
+ | `rounded-full` | `{"border-radius":"9999px"}` |
119
+ | `border-{0-15}` | Border width in pixels (e.g., `border-0`, `border-1`, ..., `border-15`) |
120
+ | `border-x-{0-15}` | Horizontal border width in pixels |
121
+ | `border-y-{0-15}` | Vertical border width in pixels |
122
+ | `border-{t,b,l,r}-{0-15}` | Individual side border width in pixels |
123
+
124
+ ### Shadows & Effects
125
+
126
+ | Utility | Description |
127
+ | --- | --- |
128
+ | `shadow` | `{"box-shadow":"0 0 1px 0 rgba(0, 0, 0, 0.05)"}` |
129
+ | `shadow-sm` | `{"box-shadow":"0 1px 2px 0 rgba(0, 0, 0, 0.05)"}` |
130
+ | `shadow-md` | `{"box-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}` |
131
+ | `shadow-lg` | `{"box-shadow":"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}` |
132
+ | `shadow-xl` | `{"box-shadow":"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"}` |
133
+ | `shadow-2xl` | `{"box-shadow":"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}` |
134
+ | `shadow-inner` | `{"box-shadow":"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"}` |
135
+ | `shadow-outline` | `{"box-shadow":"0 0 0 3px rgba(66, 153, 225, 0.5)"}` |
136
+ | `shadow-none` | `{"box-shadow":"none"}` |
137
+ | `opacity-0` | Fully transparent |
138
+ | `opacity-{1,2,5,10,20,25,30,40,50,60,70,75,80,90,95,98,99,100}` | Opacity values from 0-100 |
139
+
140
+ ### Transitions & Animations
141
+
142
+ | Utility | Description |
143
+ | --- | --- |
144
+ | `transition-none` | `{"transition":"none"}` |
145
+ | `transition` | `{"transition":"all 150ms ease-in-out"}` |
146
+ | `animate-none` | `{"animation":"none"}` |
147
+ | `animate-spin` | `{"animation":"spin 1s linear infinite"}` |
148
+ | `animate-ping` | `{"animation":"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"}` |
149
+ | `animate-pulse` | `{"animation":"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"}` |
150
+ | `duration-{75,100,150,200,300,500,700,1000}` | Transition duration in milliseconds |
151
+
152
+ ### Interactivity
153
+
154
+ | Utility | Description |
155
+ | --- | --- |
156
+ | `cursor-pointer` | `{"cursor":"pointer"}` |
157
+ | `cursor-wait` | `{"cursor":"wait"}` |
158
+ | `cursor-not-allowed` | `{"cursor":"not-allowed"}` |
159
+ | `select-none` | `{"user-select":"none"}` |
160
+ | `select-all` | `{"user-select":"all"}` |
161
+ | `pointer-events-auto` | `{"pointer-events":"auto"}` |
162
+ | `pointer-events-none` | `{"pointer-events":"none"}` |
163
+ | `resize` | `{"resize":"both"}` |
164
+ | `resize-x` | `{"resize":"horizontal"}` |
165
+ | `resize-y` | `{"resize":"vertical"}` |
166
+ | `resize-none` | `{"resize":"none"}` |
167
+
168
+ ### Typography
169
+
170
+ | Utility | Description |
171
+ | --- | --- |
172
+ | `font-mono` | `{"font-family":"monospace"}` |
173
+ | `font-sans` | `{"font-family":"sans-serif"}` |
174
+ | `font-serif` | `{"font-family":"serif"}` |
175
+ | `font-cursive` | `{"font-family":"cursive"}` |
176
+ | `text-xs` | `{"font-size":".75rem","line-height":"calc(1 / 0.75)"}` |
177
+ | `text-sm` | `{"font-size":".875rem","line-height":"calc(1.25 / 0.875)"}` |
178
+ | `text-base` | `{"font-size":"1rem","line-height":"calc(1.5 / 1)"}` |
179
+ | `text-lg` | `{"font-size":"1.125rem","line-height":"calc(1.75 / 1.125)"}` |
180
+ | `text-xl` | `{"font-size":"1.25rem","line-height":"calc(1.75 / 1.25)"}` |
181
+ | `text-2xl` | `{"font-size":"1.5rem","line-height":"calc(2 / 1.5)"}` |
182
+ | `text-3xl` | `{"font-size":"1.875rem","line-height":"calc(2.25 / 1.875)"}` |
183
+ | `text-4xl` | `{"font-size":"2.25rem","line-height":"calc(2.5 / 2.25)"}` |
184
+ | `text-5xl` | `{"font-size":"3rem","line-height":"1"}` |
185
+ | `text-6xl` | `{"font-size":"3.75rem","line-height":"1"}` |
186
+ | `text-7xl` | `{"font-size":"4.5rem","line-height":"1"}` |
187
+ | `font-thin` | `{"font-weight":100}` |
188
+ | `font-extralight` | `{"font-weight":200}` |
189
+ | `font-light` | `{"font-weight":300}` |
190
+ | `font-normal` | `{"font-weight":400}` |
191
+ | `font-medium` | `{"font-weight":500}` |
192
+ | `font-semibold` | `{"font-weight":600}` |
193
+ | `font-bold` | `{"font-weight":700}` |
194
+ | `font-extrabold` | `{"font-weight":800}` |
195
+ | `font-black` | `{"font-weight":900}` |
196
+ | `italic` | `{"font-style":"italic"}` |
197
+ | `not-italic` | `{"font-style":"normal"}` |
198
+ | `tracking-tighter` | `{"letter-spacing":"-0.05em"}` |
199
+ | `tracking-tight` | `{"letter-spacing":"-0.025em"}` |
200
+ | `tracking-normal` | `{"letter-spacing":"0"}` |
201
+ | `tracking-wide` | `{"letter-spacing":"0.025em"}` |
202
+ | `tracking-wider` | `{"letter-spacing":"0.05em"}` |
203
+ | `tracking-widest` | `{"letter-spacing":"0.1em"}` |
204
+ | `leading-none` | `{"line-height":"1"}` |
205
+ | `leading-tight` | `{"line-height":"1.25"}` |
206
+ | `leading-snug` | `{"line-height":"1.375"}` |
207
+ | `leading-normal` | `{"line-height":"1.5"}` |
208
+ | `leading-relaxed` | `{"line-height":"1.625"}` |
209
+ | `leading-loose` | `{"line-height":"2"}` |
210
+ | `text-left` | `{"text-align":"left"}` |
211
+ | `text-right` | `{"text-align":"right"}` |
212
+ | `text-center` | `{"text-align":"center"}` |
213
+ | `text-justify` | `{"text-align":"justify"}` |
214
+ | `underline` | `{"text-decoration":"underline"}` |
215
+ | `decoration-none` | `{"text-decoration":"none"}` |
216
+ | `line-through` | `{"text-decoration":"line-through"}` |
217
+ | `uppercase` | `{"text-transform":"uppercase"}` |
218
+ | `lowercase` | `{"text-transform":"lowercase"}` |
219
+ | `capitalize` | `{"text-transform":"capitalize"}` |
220
+ | `truncate` | `{"white-space":"nowrap","overflow":"hidden","text-overflow":"ellipsis"}` |
221
+ | `text-elipsis` | `{"text-overflow":"ellipsis"}` |
222
+ | `text-clip` | `{"text-overflow":"clip"}` |
223
+ | `text-wrap` | `{"text-wrap":"wrap"}` |
224
+ | `text-nowrap` | `{"text-wrap":"nowrap"}` |
225
+ | `text-balance` | `{"text-wrap":"balance"}` |
226
+ | `text-pretty` | `{"text-wrap":"pretty"}` |
227
+ | `whitespace-normal` | `{"white-space":"normal"}` |
228
+ | `whitespace-nowrap` | `{"white-space":"nowrap"}` |
229
+ | `whitespace-pre` | `{"white-space":"pre"}` |
230
+ | `whitespace-pre-line` | `{"white-space":"pre-line"}` |
231
+ | `whitespace-pre-wrap` | `{"white-space":"pre-wrap"}` |
232
+ | `whitespace-break-spaces` | `{"white-space":"break-spaces"}` |
233
+
234
+ ### Flexbox & Layout
235
+
236
+ | Utility | Description |
237
+ | --- | --- |
238
+ | `flex` | `{"display":"flex"}` |
239
+ | `flex-1` | `{"flex":"1 1 0%"}` |
240
+ | `flex-inline` | `{"display":"inline-flex"}` |
241
+ | `flex-row` | `{"flex-direction":"row"}` |
242
+ | `flex-col` | `{"flex-direction":"column"}` |
243
+ | `flex-row-reverse` | `{"flex-direction":"row-reverse"}` |
244
+ | `flex-col-reverse` | `{"flex-direction":"column-reverse"}` |
245
+ | `flex-wrap` | `{"flex-wrap":"wrap"}` |
246
+ | `flex-wrap-reverse` | `{"flex-wrap":"wrap-reverse"}` |
247
+ | `flex-nowrap` | `{"flex-wrap":"nowrap"}` |
248
+ | `justify-start` | `{"justify-content":"flex-start"}` |
249
+ | `justify-end` | `{"justify-content":"flex-end"}` |
250
+ | `justify-center` | `{"justify-content":"center"}` |
251
+ | `justify-between` | `{"justify-content":"space-between"}` |
252
+ | `justify-around` | `{"justify-content":"space-around"}` |
253
+ | `justify-evenly` | `{"justify-content":"space-evenly"}` |
254
+ | `justify-stretch` | `{"justify-content":"stretch"}` |
255
+ | `items-start` | `{"align-items":"flex-start"}` |
256
+ | `items-end` | `{"align-items":"flex-end"}` |
257
+ | `items-center` | `{"align-items":"center"}` |
258
+ | `items-stretch` | `{"align-items":"stretch"}` |
259
+ | `flex-grow` | `{"flex-grow":1}` |
260
+ | `flex-shrink` | `{"flex-shrink":1}` |
261
+ | `flex-none` | `{"flex":"none"}` |
262
+ | `flex-auto` | `{"flex":"1 1 auto"}` |
263
+ | `flex-initial` | `{"flex":"0 1 auto"}` |
264
+ | `grow` | `{"flex-grow":"1"}` |
265
+ | `grow-0` | `{"flex-grow":"0"}` |
266
+ | `shrink` | `{"flex-shrink":"1"}` |
267
+ | `shrink-0` | `{"flex-shrink":"0"}` |
268
+ | `self-auto` | `{"align-self":"auto"}` |
269
+ | `self-start` | `{"align-self":"flex-start"}` |
270
+ | `self-end` | `{"align-self":"flex-end"}` |
271
+ | `self-center` | `{"align-self":"center"}` |
272
+ | `self-stretch` | `{"align-self":"stretch"}` |
273
+ | `self-baseline` | `{"align-self":"baseline"}` |
274
+ | `content-normal` | `{"align-content":"normal"}` |
275
+ | `content-start` | `{"align-content":"flex-start"}` |
276
+ | `content-end` | `{"align-content":"flex-end"}` |
277
+ | `content-center` | `{"align-content":"center"}` |
278
+ | `content-between` | `{"align-content":"space-between"}` |
279
+ | `content-around` | `{"align-content":"space-around"}` |
280
+ | `content-evenly` | `{"align-content":"space-evenly"}` |
281
+ | `content-stretch` | `{"align-content":"stretch"}` |
282
+ | `items-baseline` | `{"align-items":"baseline"}` |
283
+ | `gap-0` | No gap |
284
+ | `gap-{1-512}` | Gap in rem units (0.25rem increments) |
285
+ | `gap-{1-512}px` | Gap in pixels |
286
+ | `gap-x-{1-512}` | Horizontal gap in rem units |
287
+ | `gap-y-{1-512}` | Vertical gap in rem units |
288
+ | `gap-x-{1-512}px` | Horizontal gap in pixels |
289
+ | `gap-y-{1-512}px` | Vertical gap in pixels |
290
+ | `space-x-{0-512}` | Horizontal spacing between children (rem) |
291
+ | `space-y-{0-512}` | Vertical spacing between children (rem) |
292
+ | `space-x-{0-512}px` | Horizontal spacing between children (px) |
293
+ | `space-y-{0-512}px` | Vertical spacing between children (px) |
294
+
295
+ ### Position & Inset
296
+
297
+ | Utility | Description |
298
+ | --- | --- |
299
+ | `relative` | `{"position":"relative"}` |
300
+ | `fixed` | `{"position":"fixed"}` |
301
+ | `absolute` | `{"position":"absolute"}` |
302
+ | `sticky` | `{"position":"sticky"}` |
303
+ | `object-contain` | `{"object-fit":"contain"}` |
304
+ | `object-cover` | `{"object-fit":"cover"}` |
305
+ | `object-fill` | `{"object-fit":"fill"}` |
306
+ | `object-none` | `{"object-fit":"none"}` |
307
+ | `inset-0` | `{"inset":"0"}` |
308
+ | `inset-auto` | `{"inset":"auto"}` |
309
+ | `inset-x-0` | `{"left":"0","right":"0"}` |
310
+ | `inset-y-0` | `{"top":"0","bottom":"0"}` |
311
+ | `inset-x-auto` | `{"left":"auto","right":"auto"}` |
312
+ | `inset-y-auto` | `{"top":"auto","bottom":"auto"}` |
313
+ | `top-{0-512}`, `bottom-{0-512}`, `left-{0-512}`, `right-{0-512}` | Position in rem units (0.25rem increments) |
314
+ | `top-{0-512}px`, `bottom-{0-512}px`, `left-{0-512}px`, `right-{0-512}px` | Position in pixels |
315
+ | `top-{1-100}%`, `bottom-{1-100}%`, `left-{1-100}%`, `right-{1-100}%` | Position in percentages |
316
+ | `top-auto`, `bottom-auto`, `left-auto`, `right-auto` | Auto positioning |
317
+ | `z-{1,2,5,10,20,25,30,40,50,60,70,75,80,90,95,98,99,100}` | Z-index values |
318
+
319
+ ### Display & Visibility
320
+
321
+ | Utility | Description |
322
+ | --- | --- |
323
+ | `block` | `{"display":"block"}` |
324
+ | `contents` | `{"display":"contents"}` |
325
+ | `hidden` | `{"display":"none"}` |
326
+ | `inline` | `{"display":"inline"}` |
327
+ | `visible` | `{"visibility":"visible"}` |
328
+ | `invisible` | `{"visibility":"hidden"}` |
329
+ | `collapse` | `{"visibility":"collapse"}` |
330
+
331
+ ### Overflow & Scrolling
332
+
333
+ | Utility | Description |
334
+ | --- | --- |
335
+ | `overflow-auto` | `{"overflow":"auto"}` |
336
+ | `overflow-x-auto` | `{"overflow-x":"auto"}` |
337
+ | `overflow-y-auto` | `{"overflow-y":"auto"}` |
338
+ | `overflow-hidden` | `{"overflow":"hidden"}` |
339
+ | `overflow-x-hidden` | `{"overflow-x":"hidden"}` |
340
+ | `overflow-y-hidden` | `{"overflow-y":"hidden"}` |
341
+ | `overflow-visible` | `{"overflow":"visible"}` |
342
+ | `overscroll-auto` | `{"overscroll-behavior":"auto"}` |
343
+ | `overscroll-contain` | `{"overscroll-behavior":"contain"}` |
344
+ | `overscroll-none` | `{"overscroll-behavior":"none"}` |
345
+ | `overscroll-x-auto` | `{"overscroll-behavior-x":"auto"}` |
346
+ | `overscroll-x-contain` | `{"overscroll-behavior-x":"contain"}` |
347
+ | `overscroll-x-none` | `{"overscroll-behavior-x":"none"}` |
348
+ | `overscroll-y-auto` | `{"overscroll-behavior-y":"auto"}` |
349
+ | `overscroll-y-contain` | `{"overscroll-behavior-y":"contain"}` |
350
+ | `overscroll-y-none` | `{"overscroll-behavior-y":"none"}` |
351
+
352
+ ### Backgrounds
353
+
354
+ | Utility | Description |
355
+ | --- | --- |
356
+ | `bg-auto` | `{"background-size":"auto"}` |
357
+ | `bg-cover` | `{"background-size":"cover"}` |
358
+ | `bg-contain` | `{"background-size":"contain"}` |
359
+ | `bg-no-repeat` | `{"background-repeat":"no-repeat"}` |
360
+ | `bg-fixed` | `{"background-attachment":"fixed"}` |
361
+ | `bg-local` | `{"background-attachment":"local"}` |
362
+ | `bg-scroll` | `{"background-attachment":"scroll"}` |
363
+
364
+ ### Lists
365
+
366
+ | Utility | Description |
367
+ | --- | --- |
368
+ | `list-none` | `{"list-style-type":"none"}` |
369
+ | `list-disc` | `{"list-style-type":"disc"}` |
370
+ | `list-decimal` | `{"list-style-type":"decimal"}` |
371
+
372
+ ### Vertical Alignment
373
+
374
+ | Utility | Description |
375
+ | --- | --- |
376
+ | `align-baseline` | `{"vertical-align":"baseline"}` |
377
+ | `align-top` | `{"vertical-align":"top"}` |
378
+ | `align-middle` | `{"vertical-align":"middle"}` |
379
+ | `align-bottom` | `{"vertical-align":"bottom"}` |
380
+ | `align-text-top` | `{"vertical-align":"text-top"}` |
381
+ | `align-text-bottom` | `{"vertical-align":"text-bottom"}` |
382
+
383
+ ### Viewport Sizing
384
+
385
+ | Utility | Description |
386
+ | --- | --- |
387
+ | `min-h-screen` | `{"min-height":"100vh"}` |
388
+ | `max-h-screen` | `{"max-height":"100vh"}` |
389
+ | `min-w-screen` | `{"min-width":"100vw"}` |
390
+ | `h-dvh` | `{"height":"100dvh"}` |
391
+ | `h-svh` | `{"height":"100svh"}` |
392
+ | `h-lvh` | `{"height":"100lvh"}` |
393
+ | `w-dvw` | `{"width":"100dvw"}` |
394
+ | `w-svw` | `{"width":"100svw"}` |
395
+ | `w-lvw` | `{"width":"100lvw"}` |
396
+ | `min-h-dvh` | `{"min-height":"100dvh"}` |
397
+ | `min-h-svh` | `{"min-height":"100svh"}` |
398
+ | `min-h-lvh` | `{"min-height":"100lvh"}` |
399
+
400
+ ### Accessibility
401
+
402
+ | Utility | Description |
403
+ | --- | --- |
404
+ | `sr-only` | `{"position":"absolute","width":"1px","height":"1px","padding":"0","margin":"-1px","overflow":"hidden","clip":"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"}` |
405
+ | `not-sr-only` | `{"position":"static","width":"auto","height":"auto","padding":"0","margin":"0","overflow":"visible","clip":"auto","white-space":"normal"}` |
406
+
407
+ ### Other Utilities
408
+
409
+ | Utility | Description |
410
+ | --- | --- |
411
+ | `no-underline` | `{"text-decoration":"none"}` |
412
+ | `box-border` | `{"box-sizing":"border-box"}` |
413
+ | `box-content` | `{"box-sizing":"content-box"}` |
414
+ | `text-{0-99}px` | Font size in pixels (e.g., `text-12px`, `text-16px`) |
415
+ | `text-{0-24.75}rem` | Font size in rem units (0.25rem increments) |
416
+
417
+ ---
418
+
419
+ *Generated automatically from `src/css_gen_utils.ts`*