typewritingclass 0.2.1 → 0.2.3

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 (139) hide show
  1. package/dist/borders-pzt8w5Wv.d.cts +24 -0
  2. package/dist/borders-pzt8w5Wv.d.ts +24 -0
  3. package/dist/chunk-34VD2OBF.cjs +74 -0
  4. package/dist/chunk-6CEDQ6GF.cjs +36 -0
  5. package/dist/chunk-75ZPJI57.cjs +9 -0
  6. package/dist/chunk-ATLK64TQ.js +85 -0
  7. package/dist/chunk-BAZLFQIV.cjs +85 -0
  8. package/dist/chunk-CB7B6PHY.cjs +19 -0
  9. package/dist/chunk-EBHM46CV.cjs +25 -0
  10. package/dist/chunk-IL3LVS32.js +36 -0
  11. package/dist/chunk-JKT74FUK.js +25 -0
  12. package/dist/chunk-L3IF2OVA.cjs +354 -0
  13. package/{src/theme/animations.ts → dist/chunk-L7AJQJBR.js} +16 -8
  14. package/dist/chunk-LARVCDO3.js +113 -0
  15. package/dist/chunk-M34ZK4IV.cjs +53 -0
  16. package/dist/chunk-MLKGABMK.js +9 -0
  17. package/dist/chunk-PBQX6PVK.js +80 -0
  18. package/dist/chunk-PTY5FTFB.cjs +80 -0
  19. package/dist/chunk-T776FXQK.js +53 -0
  20. package/dist/chunk-TAAEIXRF.js +74 -0
  21. package/dist/chunk-TUUH2FJY.cjs +39 -0
  22. package/dist/chunk-U2LSMKZS.js +60 -0
  23. package/dist/chunk-UUUE7HRN.cjs +60 -0
  24. package/dist/chunk-UUVUSZJS.cjs +113 -0
  25. package/dist/chunk-XEHQXLQR.js +354 -0
  26. package/dist/chunk-YHDPOIUZ.js +39 -0
  27. package/dist/colors-MvgcZKUW.d.cts +72 -0
  28. package/dist/colors-MvgcZKUW.d.ts +72 -0
  29. package/dist/index.cjs +2922 -0
  30. package/dist/index.d.cts +3515 -0
  31. package/dist/index.d.ts +3515 -0
  32. package/dist/index.js +2922 -0
  33. package/{src/theme/inject-theme.ts → dist/inject-theme-CTzyfQH0.d.cts} +4 -20
  34. package/dist/inject-theme-CTzyfQH0.d.ts +65 -0
  35. package/dist/inject.cjs +32 -0
  36. package/dist/inject.d.cts +2 -0
  37. package/dist/inject.d.ts +2 -0
  38. package/dist/inject.js +32 -0
  39. package/dist/rule.cjs +19 -0
  40. package/{src/rule.ts → dist/rule.d.cts} +10 -79
  41. package/dist/rule.d.ts +133 -0
  42. package/dist/rule.js +19 -0
  43. package/dist/runtime.cjs +9 -0
  44. package/{src/runtime.ts → dist/runtime.d.cts} +4 -7
  45. package/dist/runtime.d.ts +33 -0
  46. package/dist/runtime.js +9 -0
  47. package/dist/shadows-CWViP1Zk.d.cts +22 -0
  48. package/dist/shadows-CWViP1Zk.d.ts +22 -0
  49. package/dist/sizes-CS9iz8YG.d.cts +46 -0
  50. package/dist/sizes-CS9iz8YG.d.ts +46 -0
  51. package/dist/theme/animations.cjs +15 -0
  52. package/dist/theme/animations.d.cts +12 -0
  53. package/dist/theme/animations.d.ts +12 -0
  54. package/dist/theme/animations.js +15 -0
  55. package/dist/theme/borders.cjs +23 -0
  56. package/dist/theme/borders.d.cts +1 -0
  57. package/dist/theme/borders.d.ts +1 -0
  58. package/dist/theme/borders.js +23 -0
  59. package/dist/theme/colors.cjs +57 -0
  60. package/dist/theme/colors.d.cts +1 -0
  61. package/dist/theme/colors.d.ts +1 -0
  62. package/dist/theme/colors.js +57 -0
  63. package/dist/theme/createTheme.cjs +7 -0
  64. package/dist/theme/createTheme.d.cts +133 -0
  65. package/dist/theme/createTheme.d.ts +133 -0
  66. package/dist/theme/createTheme.js +7 -0
  67. package/dist/theme/filters.cjs +9 -0
  68. package/dist/theme/filters.d.cts +21 -0
  69. package/dist/theme/filters.d.ts +21 -0
  70. package/dist/theme/filters.js +9 -0
  71. package/dist/theme/index.cjs +35 -0
  72. package/dist/theme/index.d.cts +18 -0
  73. package/dist/theme/index.d.ts +18 -0
  74. package/dist/theme/index.js +35 -0
  75. package/dist/theme/shadows.cjs +21 -0
  76. package/dist/theme/shadows.d.cts +1 -0
  77. package/dist/theme/shadows.d.ts +1 -0
  78. package/dist/theme/shadows.js +21 -0
  79. package/dist/theme/sizes.cjs +21 -0
  80. package/dist/theme/sizes.d.cts +1 -0
  81. package/dist/theme/sizes.d.ts +1 -0
  82. package/dist/theme/sizes.js +21 -0
  83. package/dist/theme/typography.cjs +55 -0
  84. package/dist/theme/typography.d.cts +1 -0
  85. package/dist/theme/typography.d.ts +1 -0
  86. package/dist/theme/typography.js +55 -0
  87. package/dist/types-FfRD4Hbd.d.cts +346 -0
  88. package/dist/types-FfRD4Hbd.d.ts +346 -0
  89. package/dist/typography-C8wipcCK.d.cts +87 -0
  90. package/dist/typography-C8wipcCK.d.ts +87 -0
  91. package/package.json +117 -33
  92. package/src/css.ts +0 -140
  93. package/src/cx.ts +0 -105
  94. package/src/dcx.ts +0 -79
  95. package/src/dynamic.ts +0 -117
  96. package/src/hash.ts +0 -55
  97. package/src/index.ts +0 -139
  98. package/src/inject.ts +0 -86
  99. package/src/layer.ts +0 -81
  100. package/src/modifiers/aria.ts +0 -15
  101. package/src/modifiers/colorScheme.ts +0 -32
  102. package/src/modifiers/data.ts +0 -6
  103. package/src/modifiers/direction.ts +0 -5
  104. package/src/modifiers/group.ts +0 -21
  105. package/src/modifiers/index.ts +0 -17
  106. package/src/modifiers/media.ts +0 -11
  107. package/src/modifiers/peer.ts +0 -24
  108. package/src/modifiers/pseudo.ts +0 -183
  109. package/src/modifiers/pseudoElements.ts +0 -26
  110. package/src/modifiers/responsive.ts +0 -110
  111. package/src/modifiers/supports.ts +0 -6
  112. package/src/registry.ts +0 -171
  113. package/src/theme/borders.ts +0 -9
  114. package/src/theme/colors.ts +0 -326
  115. package/src/theme/createTheme.ts +0 -238
  116. package/src/theme/filters.ts +0 -20
  117. package/src/theme/index.ts +0 -9
  118. package/src/theme/shadows.ts +0 -8
  119. package/src/theme/sizes.ts +0 -37
  120. package/src/theme/spacing.ts +0 -44
  121. package/src/theme/typography.ts +0 -72
  122. package/src/tw.ts +0 -960
  123. package/src/types.ts +0 -273
  124. package/src/utilities/accessibility.ts +0 -33
  125. package/src/utilities/backgrounds.ts +0 -87
  126. package/src/utilities/borders.ts +0 -629
  127. package/src/utilities/colors.ts +0 -151
  128. package/src/utilities/effects.ts +0 -181
  129. package/src/utilities/filters.ts +0 -113
  130. package/src/utilities/index.ts +0 -57
  131. package/src/utilities/interactivity.ts +0 -254
  132. package/src/utilities/layout.ts +0 -1194
  133. package/src/utilities/spacing.ts +0 -681
  134. package/src/utilities/svg.ts +0 -35
  135. package/src/utilities/tables.ts +0 -54
  136. package/src/utilities/transforms.ts +0 -88
  137. package/src/utilities/transitions.ts +0 -107
  138. package/src/utilities/typography.ts +0 -387
  139. package/src/when.ts +0 -63
@@ -1,1194 +0,0 @@
1
- import type { StyleRule } from '../types.ts'
2
- import type { DynamicValue } from '../dynamic.ts'
3
- import { createRule, createDynamicRule } from '../rule.ts'
4
- import { resolveSpacing } from '../theme/spacing.ts'
5
- import { isDynamic } from '../dynamic.ts'
6
- import { maxWidths } from '../theme/sizes.ts'
7
-
8
- const sizeMap: Record<string, string> = {
9
- full: '100%',
10
- auto: 'auto',
11
- min: 'min-content',
12
- max: 'max-content',
13
- fit: 'fit-content',
14
- '1/2': '50%',
15
- '1/3': '33.333333%',
16
- '2/3': '66.666667%',
17
- '1/4': '25%',
18
- '2/4': '50%',
19
- '3/4': '75%',
20
- '1/5': '20%',
21
- '2/5': '40%',
22
- '3/5': '60%',
23
- '4/5': '80%',
24
- '1/6': '16.666667%',
25
- '2/6': '33.333333%',
26
- '3/6': '50%',
27
- '4/6': '66.666667%',
28
- '5/6': '83.333333%',
29
- '1/12': '8.333333%',
30
- '2/12': '16.666667%',
31
- '3/12': '25%',
32
- '4/12': '33.333333%',
33
- '5/12': '41.666667%',
34
- '6/12': '50%',
35
- '7/12': '58.333333%',
36
- '8/12': '66.666667%',
37
- '9/12': '75%',
38
- '10/12': '83.333333%',
39
- '11/12': '91.666667%',
40
- }
41
-
42
- const widthSizeMap: Record<string, string> = { ...sizeMap, screen: '100vw' }
43
- const heightSizeMap: Record<string, string> = { ...sizeMap, screen: '100vh' }
44
- const maxWidthMap: Record<string, string> = { ...sizeMap, ...maxWidths }
45
-
46
- function resolveSize(value: number | string | DynamicValue, nameMap?: Record<string, string>): string | DynamicValue {
47
- if (isDynamic(value)) return value
48
- if (typeof value === 'string') return (nameMap && nameMap[value]) ?? sizeMap[value] ?? value
49
- return resolveSpacing(value)
50
- }
51
-
52
- function sizeRule(prop: string, value: number | string | DynamicValue, nameMap?: Record<string, string>): StyleRule {
53
- const v = resolveSize(value, nameMap)
54
- if (isDynamic(v)) {
55
- return createDynamicRule(
56
- { [prop]: `var(${v.__id})` },
57
- { [v.__id]: String(v.__value) },
58
- )
59
- }
60
- return createRule({ [prop]: v as string })
61
- }
62
-
63
- function sizeRuleMulti(props: string[], value: number | string | DynamicValue, nameMap?: Record<string, string>): StyleRule {
64
- const v = resolveSize(value, nameMap)
65
- if (isDynamic(v)) {
66
- const decls: Record<string, string> = {}
67
- for (const prop of props) decls[prop] = `var(${v.__id})`
68
- return createDynamicRule(decls, { [v.__id]: String(v.__value) })
69
- }
70
- const decls: Record<string, string> = {}
71
- for (const prop of props) decls[prop] = v as string
72
- return createRule(decls)
73
- }
74
-
75
- /**
76
- * Sets the element to `display: flex`.
77
- *
78
- * Takes no arguments and produces a single flex display declaration.
79
- *
80
- * @returns A {@link StyleRule} that sets `display: flex`.
81
- *
82
- * @example
83
- * ```ts
84
- * import { cx, flex } from 'typewritingclass'
85
- *
86
- * cx(flex())
87
- * // CSS: display: flex;
88
- * ```
89
- */
90
- export function flex(): StyleRule {
91
- return createRule({ display: 'flex' })
92
- }
93
-
94
- /**
95
- * Sets `flex-direction: column` on a flex container.
96
- *
97
- * Takes no arguments. Use with `flex()` to create a column-oriented flex container.
98
- *
99
- * @returns A {@link StyleRule} that sets `flex-direction: column`.
100
- *
101
- * @example
102
- * ```ts
103
- * import { cx, flex, flexCol } from 'typewritingclass'
104
- *
105
- * cx(flex(), flexCol())
106
- * // CSS: display: flex; flex-direction: column;
107
- * ```
108
- */
109
- export function flexCol(): StyleRule {
110
- return createRule({ 'flex-direction': 'column' })
111
- }
112
-
113
- /**
114
- * Sets `flex-direction: row` on a flex container.
115
- *
116
- * Takes no arguments. Use with `flex()` to create a row-oriented flex container.
117
- *
118
- * @returns A {@link StyleRule} that sets `flex-direction: row`.
119
- *
120
- * @example
121
- * ```ts
122
- * import { cx, flex, flexRow } from 'typewritingclass'
123
- *
124
- * cx(flex(), flexRow())
125
- * // CSS: display: flex; flex-direction: row;
126
- * ```
127
- */
128
- export function flexRow(): StyleRule {
129
- return createRule({ 'flex-direction': 'row' })
130
- }
131
-
132
- /**
133
- * Sets `flex-wrap: wrap` on a flex container to allow children to wrap.
134
- *
135
- * Takes no arguments.
136
- *
137
- * @returns A {@link StyleRule} that sets `flex-wrap: wrap`.
138
- *
139
- * @example
140
- * ```ts
141
- * import { cx, flexWrap } from 'typewritingclass'
142
- *
143
- * cx(flexWrap())
144
- * // CSS: flex-wrap: wrap;
145
- * ```
146
- */
147
- export function flexWrap(): StyleRule {
148
- return createRule({ 'flex-wrap': 'wrap' })
149
- }
150
-
151
- /**
152
- * Sets the element to `display: inline-flex`.
153
- *
154
- * Takes no arguments and produces an inline-level flex container.
155
- *
156
- * @returns A {@link StyleRule} that sets `display: inline-flex`.
157
- *
158
- * @example
159
- * ```ts
160
- * import { cx, inlineFlex } from 'typewritingclass'
161
- *
162
- * cx(inlineFlex())
163
- * // CSS: display: inline-flex;
164
- * ```
165
- */
166
- export function inlineFlex(): StyleRule {
167
- return createRule({ display: 'inline-flex' })
168
- }
169
-
170
- /**
171
- * Sets the element to `display: grid`, optionally defining equal-width columns.
172
- *
173
- * When called without arguments, sets only `display: grid`. When called with a
174
- * column count, also sets `grid-template-columns` with equal-width `1fr` columns.
175
- *
176
- * @param cols - Optional number of equal-width columns.
177
- * @returns A {@link StyleRule} that sets `display: grid` and optionally `grid-template-columns`.
178
- *
179
- * @example Grid without columns
180
- * ```ts
181
- * import { cx, grid } from 'typewritingclass'
182
- *
183
- * cx(grid())
184
- * // CSS: display: grid;
185
- * ```
186
- *
187
- * @example Grid with columns
188
- * ```ts
189
- * cx(grid(3))
190
- * // CSS: display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
191
- * ```
192
- */
193
- export function grid(cols?: number): StyleRule {
194
- const decls: Record<string, string> = { display: 'grid' }
195
- if (cols !== undefined) {
196
- decls['grid-template-columns'] = `repeat(${cols}, minmax(0, 1fr))`
197
- }
198
- return createRule(decls)
199
- }
200
-
201
- /**
202
- * Sets the number of equal-width grid columns.
203
- *
204
- * @param n - The number of columns.
205
- * @returns A {@link StyleRule} that sets `grid-template-columns`.
206
- *
207
- * @example
208
- * ```ts
209
- * import { cx, gridCols } from 'typewritingclass'
210
- *
211
- * cx(gridCols(4))
212
- * // CSS: grid-template-columns: repeat(4, minmax(0, 1fr));
213
- * ```
214
- */
215
- export function gridCols(n: number): StyleRule {
216
- return createRule({ 'grid-template-columns': `repeat(${n}, minmax(0, 1fr))` })
217
- }
218
-
219
- /**
220
- * Sets the number of equal-height grid rows.
221
- *
222
- * @param n - The number of rows.
223
- * @returns A {@link StyleRule} that sets `grid-template-rows`.
224
- *
225
- * @example
226
- * ```ts
227
- * import { cx, gridRows } from 'typewritingclass'
228
- *
229
- * cx(gridRows(3))
230
- * // CSS: grid-template-rows: repeat(3, minmax(0, 1fr));
231
- * ```
232
- */
233
- export function gridRows(n: number): StyleRule {
234
- return createRule({ 'grid-template-rows': `repeat(${n}, minmax(0, 1fr))` })
235
- }
236
-
237
- /**
238
- * Sets the width of an element.
239
- *
240
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
241
- * or a {@link DynamicValue} for runtime values.
242
- *
243
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'100%'`), or `dynamic()` value.
244
- * @returns A {@link StyleRule} that sets `width`.
245
- *
246
- * @example Theme scale
247
- * ```ts
248
- * import { cx, w } from 'typewritingclass'
249
- *
250
- * cx(w(64))
251
- * // CSS: width: 16rem;
252
- * ```
253
- *
254
- * @example Raw value
255
- * ```ts
256
- * cx(w('100%'))
257
- * // CSS: width: 100%;
258
- * ```
259
- *
260
- * @example Dynamic value
261
- * ```ts
262
- * import { dcx, w, dynamic } from 'typewritingclass'
263
- *
264
- * const { className, style } = dcx(w(dynamic(width)))
265
- * // CSS: width: var(--twc-d0);
266
- * // style: { '--twc-d0': width }
267
- * ```
268
- */
269
- export function w(value: number | string | DynamicValue): StyleRule {
270
- return sizeRule('width', value, widthSizeMap)
271
- }
272
-
273
- /**
274
- * Sets the height of an element.
275
- *
276
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
277
- * or a {@link DynamicValue} for runtime values.
278
- *
279
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'100vh'`), or `dynamic()` value.
280
- * @returns A {@link StyleRule} that sets `height`.
281
- *
282
- * @example Theme scale
283
- * ```ts
284
- * import { cx, h } from 'typewritingclass'
285
- *
286
- * cx(h(12))
287
- * // CSS: height: 3rem;
288
- * ```
289
- *
290
- * @example Raw value
291
- * ```ts
292
- * cx(h('100vh'))
293
- * // CSS: height: 100vh;
294
- * ```
295
- *
296
- * @example Dynamic value
297
- * ```ts
298
- * import { dcx, h, dynamic } from 'typewritingclass'
299
- *
300
- * const { className, style } = dcx(h(dynamic(height)))
301
- * // CSS: height: var(--twc-d0);
302
- * // style: { '--twc-d0': height }
303
- * ```
304
- */
305
- export function h(value: number | string | DynamicValue): StyleRule {
306
- return sizeRule('height', value, heightSizeMap)
307
- }
308
-
309
- /**
310
- * Sets both width and height of an element to the same value.
311
- *
312
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
313
- * or a {@link DynamicValue} for runtime values.
314
- *
315
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'48px'`), or `dynamic()` value.
316
- * @returns A {@link StyleRule} that sets both `width` and `height`.
317
- *
318
- * @example Theme scale
319
- * ```ts
320
- * import { cx, size } from 'typewritingclass'
321
- *
322
- * cx(size(10))
323
- * // CSS: width: 2.5rem; height: 2.5rem;
324
- * ```
325
- *
326
- * @example Raw value
327
- * ```ts
328
- * cx(size('48px'))
329
- * // CSS: width: 48px; height: 48px;
330
- * ```
331
- *
332
- * @example Dynamic value
333
- * ```ts
334
- * import { dcx, size, dynamic } from 'typewritingclass'
335
- *
336
- * const { className, style } = dcx(size(dynamic(dim)))
337
- * // CSS: width: var(--twc-d0); height: var(--twc-d0);
338
- * // style: { '--twc-d0': dim }
339
- * ```
340
- */
341
- export function size(value: number | string | DynamicValue): StyleRule {
342
- return sizeRuleMulti(['width', 'height'], value)
343
- }
344
-
345
- /**
346
- * Sets the minimum width of an element.
347
- *
348
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
349
- * or a {@link DynamicValue} for runtime values.
350
- *
351
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'200px'`), or `dynamic()` value.
352
- * @returns A {@link StyleRule} that sets `min-width`.
353
- *
354
- * @example Theme scale
355
- * ```ts
356
- * import { cx, minW } from 'typewritingclass'
357
- *
358
- * cx(minW(48))
359
- * // CSS: min-width: 12rem;
360
- * ```
361
- *
362
- * @example Raw value
363
- * ```ts
364
- * cx(minW('0'))
365
- * // CSS: min-width: 0;
366
- * ```
367
- *
368
- * @example Dynamic value
369
- * ```ts
370
- * import { dcx, minW, dynamic } from 'typewritingclass'
371
- *
372
- * const { className, style } = dcx(minW(dynamic(minWidth)))
373
- * // CSS: min-width: var(--twc-d0);
374
- * // style: { '--twc-d0': minWidth }
375
- * ```
376
- */
377
- export function minW(value: number | string | DynamicValue): StyleRule {
378
- return sizeRule('min-width', value)
379
- }
380
-
381
- /**
382
- * Sets the minimum height of an element.
383
- *
384
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
385
- * or a {@link DynamicValue} for runtime values.
386
- *
387
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'100vh'`), or `dynamic()` value.
388
- * @returns A {@link StyleRule} that sets `min-height`.
389
- *
390
- * @example Theme scale
391
- * ```ts
392
- * import { cx, minH } from 'typewritingclass'
393
- *
394
- * cx(minH(96))
395
- * // CSS: min-height: 24rem;
396
- * ```
397
- *
398
- * @example Raw value
399
- * ```ts
400
- * cx(minH('100vh'))
401
- * // CSS: min-height: 100vh;
402
- * ```
403
- *
404
- * @example Dynamic value
405
- * ```ts
406
- * import { dcx, minH, dynamic } from 'typewritingclass'
407
- *
408
- * const { className, style } = dcx(minH(dynamic(minHeight)))
409
- * // CSS: min-height: var(--twc-d0);
410
- * // style: { '--twc-d0': minHeight }
411
- * ```
412
- */
413
- export function minH(value: number | string | DynamicValue): StyleRule {
414
- return sizeRule('min-height', value, heightSizeMap)
415
- }
416
-
417
- /**
418
- * Sets the maximum width of an element.
419
- *
420
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
421
- * or a {@link DynamicValue} for runtime values.
422
- *
423
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'768px'`), or `dynamic()` value.
424
- * @returns A {@link StyleRule} that sets `max-width`.
425
- *
426
- * @example Theme scale
427
- * ```ts
428
- * import { cx, maxW } from 'typewritingclass'
429
- *
430
- * cx(maxW(80))
431
- * // CSS: max-width: 20rem;
432
- * ```
433
- *
434
- * @example Raw value
435
- * ```ts
436
- * cx(maxW('768px'))
437
- * // CSS: max-width: 768px;
438
- * ```
439
- *
440
- * @example Dynamic value
441
- * ```ts
442
- * import { dcx, maxW, dynamic } from 'typewritingclass'
443
- *
444
- * const { className, style } = dcx(maxW(dynamic(maxWidth)))
445
- * // CSS: max-width: var(--twc-d0);
446
- * // style: { '--twc-d0': maxWidth }
447
- * ```
448
- */
449
- export function maxW(value: number | string | DynamicValue): StyleRule {
450
- return sizeRule('max-width', value, maxWidthMap)
451
- }
452
-
453
- /**
454
- * Sets the maximum height of an element.
455
- *
456
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
457
- * or a {@link DynamicValue} for runtime values.
458
- *
459
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'100vh'`), or `dynamic()` value.
460
- * @returns A {@link StyleRule} that sets `max-height`.
461
- *
462
- * @example Theme scale
463
- * ```ts
464
- * import { cx, maxH } from 'typewritingclass'
465
- *
466
- * cx(maxH(40))
467
- * // CSS: max-height: 10rem;
468
- * ```
469
- *
470
- * @example Raw value
471
- * ```ts
472
- * cx(maxH('100vh'))
473
- * // CSS: max-height: 100vh;
474
- * ```
475
- *
476
- * @example Dynamic value
477
- * ```ts
478
- * import { dcx, maxH, dynamic } from 'typewritingclass'
479
- *
480
- * const { className, style } = dcx(maxH(dynamic(maxHeight)))
481
- * // CSS: max-height: var(--twc-d0);
482
- * // style: { '--twc-d0': maxHeight }
483
- * ```
484
- */
485
- export function maxH(value: number | string | DynamicValue): StyleRule {
486
- return sizeRule('max-height', value, heightSizeMap)
487
- }
488
-
489
- /**
490
- * Sets the CSS `display` property of an element.
491
- *
492
- * Accepts any valid CSS display value as a string.
493
- *
494
- * @param value - A CSS display value (`'block'`, `'none'`, `'inline-block'`, etc.).
495
- * @returns A {@link StyleRule} that sets `display`.
496
- *
497
- * @example Block display
498
- * ```ts
499
- * import { cx, display } from 'typewritingclass'
500
- *
501
- * cx(display('block'))
502
- * // CSS: display: block;
503
- * ```
504
- *
505
- * @example Hide element
506
- * ```ts
507
- * cx(display('none'))
508
- * // CSS: display: none;
509
- * ```
510
- */
511
- export function display(value: string): StyleRule {
512
- return createRule({ display: value })
513
- }
514
-
515
- /**
516
- * Sets the `align-items` property on a flex or grid container.
517
- *
518
- * Accepts any valid CSS align-items value as a string.
519
- *
520
- * @param value - A CSS align-items value (`'center'`, `'flex-start'`, `'stretch'`, etc.).
521
- * @returns A {@link StyleRule} that sets `align-items`.
522
- *
523
- * @example Center alignment
524
- * ```ts
525
- * import { cx, items } from 'typewritingclass'
526
- *
527
- * cx(items('center'))
528
- * // CSS: align-items: center;
529
- * ```
530
- *
531
- * @example Start alignment
532
- * ```ts
533
- * cx(items('flex-start'))
534
- * // CSS: align-items: flex-start;
535
- * ```
536
- */
537
- export function items(value: string): StyleRule {
538
- return createRule({ 'align-items': value })
539
- }
540
-
541
- /**
542
- * Sets the `justify-content` property on a flex or grid container.
543
- *
544
- * Accepts any valid CSS justify-content value as a string.
545
- *
546
- * @param value - A CSS justify-content value (`'center'`, `'space-between'`, `'flex-end'`, etc.).
547
- * @returns A {@link StyleRule} that sets `justify-content`.
548
- *
549
- * @example Center justification
550
- * ```ts
551
- * import { cx, justify } from 'typewritingclass'
552
- *
553
- * cx(justify('center'))
554
- * // CSS: justify-content: center;
555
- * ```
556
- *
557
- * @example Space between
558
- * ```ts
559
- * cx(justify('space-between'))
560
- * // CSS: justify-content: space-between;
561
- * ```
562
- */
563
- export function justify(value: string): StyleRule {
564
- return createRule({ 'justify-content': value })
565
- }
566
-
567
- /**
568
- * Sets the `align-self` property on a flex or grid child.
569
- *
570
- * Accepts any valid CSS align-self value as a string.
571
- *
572
- * @param value - A CSS align-self value (`'center'`, `'flex-start'`, `'stretch'`, etc.).
573
- * @returns A {@link StyleRule} that sets `align-self`.
574
- *
575
- * @example Center self-alignment
576
- * ```ts
577
- * import { cx, self } from 'typewritingclass'
578
- *
579
- * cx(self('center'))
580
- * // CSS: align-self: center;
581
- * ```
582
- *
583
- * @example End self-alignment
584
- * ```ts
585
- * cx(self('flex-end'))
586
- * // CSS: align-self: flex-end;
587
- * ```
588
- */
589
- export function self(value: string): StyleRule {
590
- return createRule({ 'align-self': value })
591
- }
592
-
593
- /**
594
- * Sets the `overflow` behavior on both axes of an element.
595
- *
596
- * Accepts any valid CSS overflow value as a string.
597
- *
598
- * @param value - A CSS overflow value (`'hidden'`, `'auto'`, `'scroll'`, `'visible'`).
599
- * @returns A {@link StyleRule} that sets `overflow`.
600
- *
601
- * @example Hidden overflow
602
- * ```ts
603
- * import { cx, overflow } from 'typewritingclass'
604
- *
605
- * cx(overflow('hidden'))
606
- * // CSS: overflow: hidden;
607
- * ```
608
- *
609
- * @example Auto overflow
610
- * ```ts
611
- * cx(overflow('auto'))
612
- * // CSS: overflow: auto;
613
- * ```
614
- */
615
- export function overflow(value: string): StyleRule {
616
- return createRule({ overflow: value })
617
- }
618
-
619
- /**
620
- * Sets the horizontal overflow behavior of an element.
621
- *
622
- * Accepts any valid CSS overflow-x value as a string.
623
- *
624
- * @param value - A CSS overflow-x value (`'hidden'`, `'auto'`, `'scroll'`, `'visible'`).
625
- * @returns A {@link StyleRule} that sets `overflow-x`.
626
- *
627
- * @example Auto horizontal scroll
628
- * ```ts
629
- * import { cx, overflowX } from 'typewritingclass'
630
- *
631
- * cx(overflowX('auto'))
632
- * // CSS: overflow-x: auto;
633
- * ```
634
- *
635
- * @example Hidden horizontal overflow
636
- * ```ts
637
- * cx(overflowX('hidden'))
638
- * // CSS: overflow-x: hidden;
639
- * ```
640
- */
641
- export function overflowX(value: string): StyleRule {
642
- return createRule({ 'overflow-x': value })
643
- }
644
-
645
- /**
646
- * Sets the vertical overflow behavior of an element.
647
- *
648
- * Accepts any valid CSS overflow-y value as a string.
649
- *
650
- * @param value - A CSS overflow-y value (`'hidden'`, `'auto'`, `'scroll'`, `'visible'`).
651
- * @returns A {@link StyleRule} that sets `overflow-y`.
652
- *
653
- * @example Scrollable vertical overflow
654
- * ```ts
655
- * import { cx, overflowY } from 'typewritingclass'
656
- *
657
- * cx(overflowY('scroll'))
658
- * // CSS: overflow-y: scroll;
659
- * ```
660
- *
661
- * @example Hidden vertical overflow
662
- * ```ts
663
- * cx(overflowY('hidden'))
664
- * // CSS: overflow-y: hidden;
665
- * ```
666
- */
667
- export function overflowY(value: string): StyleRule {
668
- return createRule({ 'overflow-y': value })
669
- }
670
-
671
- /**
672
- * Sets the element to `position: relative`.
673
- *
674
- * Takes no arguments. Creates a positioning context for absolutely positioned children.
675
- *
676
- * @returns A {@link StyleRule} that sets `position: relative`.
677
- *
678
- * @example
679
- * ```ts
680
- * import { cx, relative } from 'typewritingclass'
681
- *
682
- * cx(relative())
683
- * // CSS: position: relative;
684
- * ```
685
- */
686
- export function relative(): StyleRule {
687
- return createRule({ position: 'relative' })
688
- }
689
-
690
- /**
691
- * Sets the element to `position: absolute`.
692
- *
693
- * Takes no arguments. Removes the element from normal flow and positions it
694
- * relative to its nearest positioned ancestor.
695
- *
696
- * @returns A {@link StyleRule} that sets `position: absolute`.
697
- *
698
- * @example
699
- * ```ts
700
- * import { cx, absolute } from 'typewritingclass'
701
- *
702
- * cx(absolute())
703
- * // CSS: position: absolute;
704
- * ```
705
- */
706
- export function absolute(): StyleRule {
707
- return createRule({ position: 'absolute' })
708
- }
709
-
710
- /**
711
- * Sets the element to `position: fixed`.
712
- *
713
- * Takes no arguments. Removes the element from normal flow and positions it
714
- * relative to the viewport.
715
- *
716
- * @returns A {@link StyleRule} that sets `position: fixed`.
717
- *
718
- * @example
719
- * ```ts
720
- * import { cx, fixed } from 'typewritingclass'
721
- *
722
- * cx(fixed())
723
- * // CSS: position: fixed;
724
- * ```
725
- */
726
- export function fixed(): StyleRule {
727
- return createRule({ position: 'fixed' })
728
- }
729
-
730
- /**
731
- * Sets the element to `position: sticky`.
732
- *
733
- * Takes no arguments. The element is treated as relative until it crosses a
734
- * specified threshold, then treated as fixed.
735
- *
736
- * @returns A {@link StyleRule} that sets `position: sticky`.
737
- *
738
- * @example
739
- * ```ts
740
- * import { cx, sticky } from 'typewritingclass'
741
- *
742
- * cx(sticky())
743
- * // CSS: position: sticky;
744
- * ```
745
- */
746
- export function sticky(): StyleRule {
747
- return createRule({ position: 'sticky' })
748
- }
749
-
750
- /**
751
- * Sets the `top` position offset of a positioned element.
752
- *
753
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
754
- * or a {@link DynamicValue} for runtime values.
755
- *
756
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'0'`), or `dynamic()` value.
757
- * @returns A {@link StyleRule} that sets `top`.
758
- *
759
- * @example Theme scale
760
- * ```ts
761
- * import { cx, top } from 'typewritingclass'
762
- *
763
- * cx(top(0))
764
- * // CSS: top: 0px;
765
- * ```
766
- *
767
- * @example Raw value
768
- * ```ts
769
- * cx(top('50%'))
770
- * // CSS: top: 50%;
771
- * ```
772
- *
773
- * @example Dynamic value
774
- * ```ts
775
- * import { dcx, top, dynamic } from 'typewritingclass'
776
- *
777
- * const { className, style } = dcx(top(dynamic(offset)))
778
- * // CSS: top: var(--twc-d0);
779
- * // style: { '--twc-d0': offset }
780
- * ```
781
- */
782
- export function top(value: number | string | DynamicValue): StyleRule {
783
- return sizeRule('top', value)
784
- }
785
-
786
- /**
787
- * Sets the `right` position offset of a positioned element.
788
- *
789
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
790
- * or a {@link DynamicValue} for runtime values.
791
- *
792
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'0'`), or `dynamic()` value.
793
- * @returns A {@link StyleRule} that sets `right`.
794
- *
795
- * @example Theme scale
796
- * ```ts
797
- * import { cx, right } from 'typewritingclass'
798
- *
799
- * cx(right(4))
800
- * // CSS: right: 1rem;
801
- * ```
802
- *
803
- * @example Raw value
804
- * ```ts
805
- * cx(right('0'))
806
- * // CSS: right: 0;
807
- * ```
808
- *
809
- * @example Dynamic value
810
- * ```ts
811
- * import { dcx, right, dynamic } from 'typewritingclass'
812
- *
813
- * const { className, style } = dcx(right(dynamic(offset)))
814
- * // CSS: right: var(--twc-d0);
815
- * // style: { '--twc-d0': offset }
816
- * ```
817
- */
818
- export function right(value: number | string | DynamicValue): StyleRule {
819
- return sizeRule('right', value)
820
- }
821
-
822
- /**
823
- * Sets the `bottom` position offset of a positioned element.
824
- *
825
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
826
- * or a {@link DynamicValue} for runtime values.
827
- *
828
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'0'`), or `dynamic()` value.
829
- * @returns A {@link StyleRule} that sets `bottom`.
830
- *
831
- * @example Theme scale
832
- * ```ts
833
- * import { cx, bottom } from 'typewritingclass'
834
- *
835
- * cx(bottom(0))
836
- * // CSS: bottom: 0px;
837
- * ```
838
- *
839
- * @example Raw value
840
- * ```ts
841
- * cx(bottom('2rem'))
842
- * // CSS: bottom: 2rem;
843
- * ```
844
- *
845
- * @example Dynamic value
846
- * ```ts
847
- * import { dcx, bottom, dynamic } from 'typewritingclass'
848
- *
849
- * const { className, style } = dcx(bottom(dynamic(offset)))
850
- * // CSS: bottom: var(--twc-d0);
851
- * // style: { '--twc-d0': offset }
852
- * ```
853
- */
854
- export function bottom(value: number | string | DynamicValue): StyleRule {
855
- return sizeRule('bottom', value)
856
- }
857
-
858
- /**
859
- * Sets the `left` position offset of a positioned element.
860
- *
861
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
862
- * or a {@link DynamicValue} for runtime values.
863
- *
864
- * @param value - Spacing scale number (`4` -> `1rem`), raw string (`'0'`), or `dynamic()` value.
865
- * @returns A {@link StyleRule} that sets `left`.
866
- *
867
- * @example Theme scale
868
- * ```ts
869
- * import { cx, left } from 'typewritingclass'
870
- *
871
- * cx(left(4))
872
- * // CSS: left: 1rem;
873
- * ```
874
- *
875
- * @example Raw value
876
- * ```ts
877
- * cx(left('50%'))
878
- * // CSS: left: 50%;
879
- * ```
880
- *
881
- * @example Dynamic value
882
- * ```ts
883
- * import { dcx, left, dynamic } from 'typewritingclass'
884
- *
885
- * const { className, style } = dcx(left(dynamic(offset)))
886
- * // CSS: left: var(--twc-d0);
887
- * // style: { '--twc-d0': offset }
888
- * ```
889
- */
890
- export function left(value: number | string | DynamicValue): StyleRule {
891
- return sizeRule('left', value)
892
- }
893
-
894
- /**
895
- * Sets the `inset` shorthand property (top, right, bottom, left) on a positioned element.
896
- *
897
- * Accepts a theme spacing scale number (maps to the spacing scale), a raw CSS string,
898
- * or a {@link DynamicValue} for runtime values.
899
- *
900
- * @param value - Spacing scale number (`0` -> `0px`), raw string (`'0'`), or `dynamic()` value.
901
- * @returns A {@link StyleRule} that sets `inset`.
902
- *
903
- * @example Theme scale
904
- * ```ts
905
- * import { cx, inset } from 'typewritingclass'
906
- *
907
- * cx(inset(0))
908
- * // CSS: inset: 0px;
909
- * ```
910
- *
911
- * @example Raw value
912
- * ```ts
913
- * cx(inset('0'))
914
- * // CSS: inset: 0;
915
- * ```
916
- *
917
- * @example Dynamic value
918
- * ```ts
919
- * import { dcx, inset, dynamic } from 'typewritingclass'
920
- *
921
- * const { className, style } = dcx(inset(dynamic(offset)))
922
- * // CSS: inset: var(--twc-d0);
923
- * // style: { '--twc-d0': offset }
924
- * ```
925
- */
926
- export function inset(value: number | string | DynamicValue): StyleRule {
927
- return sizeRule('inset', value)
928
- }
929
-
930
- /**
931
- * Sets the `z-index` stacking order of an element.
932
- *
933
- * Accepts a numeric z-index value, a raw string, or a {@link DynamicValue}
934
- * for runtime values. Numeric values are converted to strings.
935
- *
936
- * @param value - A z-index number (`10`, `50`), raw string (`'auto'`), or `dynamic()` value.
937
- * @returns A {@link StyleRule} that sets `z-index`.
938
- *
939
- * @example Numeric z-index
940
- * ```ts
941
- * import { cx, z } from 'typewritingclass'
942
- *
943
- * cx(z(10))
944
- * // CSS: z-index: 10;
945
- * ```
946
- *
947
- * @example String z-index
948
- * ```ts
949
- * cx(z('auto'))
950
- * // CSS: z-index: auto;
951
- * ```
952
- *
953
- * @example Dynamic value
954
- * ```ts
955
- * import { dcx, z, dynamic } from 'typewritingclass'
956
- *
957
- * const { className, style } = dcx(z(dynamic(zIndex)))
958
- * // CSS: z-index: var(--twc-d0);
959
- * // style: { '--twc-d0': zIndex }
960
- * ```
961
- */
962
- export function z(value: number | string | DynamicValue): StyleRule {
963
- if (isDynamic(value)) {
964
- return createDynamicRule(
965
- { 'z-index': `var(${value.__id})` },
966
- { [value.__id]: String(value.__value) },
967
- )
968
- }
969
- return createRule({ 'z-index': String(value) })
970
- }
971
-
972
- // --- Additional layout utilities ---
973
-
974
- const aspectRatioMap: Record<string, string> = {
975
- auto: 'auto',
976
- square: '1 / 1',
977
- video: '16 / 9',
978
- }
979
-
980
- export function aspectRatio(value: string): StyleRule {
981
- return createRule({ 'aspect-ratio': aspectRatioMap[value] ?? value })
982
- }
983
-
984
- export function columns(value: string | number): StyleRule {
985
- return createRule({ columns: String(value) })
986
- }
987
-
988
- export function breakAfter(value: string): StyleRule {
989
- return createRule({ 'break-after': value })
990
- }
991
-
992
- export function breakBefore(value: string): StyleRule {
993
- return createRule({ 'break-before': value })
994
- }
995
-
996
- export function breakInside(value: string): StyleRule {
997
- return createRule({ 'break-inside': value })
998
- }
999
-
1000
- export function boxDecorationBreak(value: string): StyleRule {
1001
- return createRule({ 'box-decoration-break': value })
1002
- }
1003
-
1004
- export function boxSizing(value: string): StyleRule {
1005
- return createRule({ 'box-sizing': value })
1006
- }
1007
-
1008
- export function float_(value: string): StyleRule {
1009
- return createRule({ float: value })
1010
- }
1011
-
1012
- export function clear_(value: string): StyleRule {
1013
- return createRule({ clear: value })
1014
- }
1015
-
1016
- export function isolate(): StyleRule {
1017
- return createRule({ isolation: 'isolate' })
1018
- }
1019
-
1020
- export function isolationAuto(): StyleRule {
1021
- return createRule({ isolation: 'auto' })
1022
- }
1023
-
1024
- export function objectFit(value: string): StyleRule {
1025
- return createRule({ 'object-fit': value })
1026
- }
1027
-
1028
- export function objectPosition(value: string): StyleRule {
1029
- return createRule({ 'object-position': value })
1030
- }
1031
-
1032
- export function overscrollBehavior(value: string): StyleRule {
1033
- return createRule({ 'overscroll-behavior': value })
1034
- }
1035
-
1036
- export function overscrollX(value: string): StyleRule {
1037
- return createRule({ 'overscroll-behavior-x': value })
1038
- }
1039
-
1040
- export function overscrollY(value: string): StyleRule {
1041
- return createRule({ 'overscroll-behavior-y': value })
1042
- }
1043
-
1044
- export function static_(): StyleRule {
1045
- return createRule({ position: 'static' })
1046
- }
1047
-
1048
- export function insetX(value: number | string | DynamicValue): StyleRule {
1049
- return sizeRuleMulti(['left', 'right'], value)
1050
- }
1051
-
1052
- export function insetY(value: number | string | DynamicValue): StyleRule {
1053
- return sizeRuleMulti(['top', 'bottom'], value)
1054
- }
1055
-
1056
- export function start(value: number | string | DynamicValue): StyleRule {
1057
- return sizeRule('inset-inline-start', value)
1058
- }
1059
-
1060
- export function end(value: number | string | DynamicValue): StyleRule {
1061
- return sizeRule('inset-inline-end', value)
1062
- }
1063
-
1064
- export function visible(): StyleRule {
1065
- return createRule({ visibility: 'visible' })
1066
- }
1067
-
1068
- export function invisible(): StyleRule {
1069
- return createRule({ visibility: 'hidden' })
1070
- }
1071
-
1072
- export function collapse_(): StyleRule {
1073
- return createRule({ visibility: 'collapse' })
1074
- }
1075
-
1076
- export function flexBasis(value: number | string | DynamicValue): StyleRule {
1077
- return sizeRule('flex-basis', value)
1078
- }
1079
-
1080
- export function flexRowReverse(): StyleRule {
1081
- return createRule({ 'flex-direction': 'row-reverse' })
1082
- }
1083
-
1084
- export function flexColReverse(): StyleRule {
1085
- return createRule({ 'flex-direction': 'column-reverse' })
1086
- }
1087
-
1088
- export function flexWrapReverse(): StyleRule {
1089
- return createRule({ 'flex-wrap': 'wrap-reverse' })
1090
- }
1091
-
1092
- export function flexNowrap(): StyleRule {
1093
- return createRule({ 'flex-wrap': 'nowrap' })
1094
- }
1095
-
1096
- export function flex1(): StyleRule {
1097
- return createRule({ flex: '1 1 0%' })
1098
- }
1099
-
1100
- export function flexAuto(): StyleRule {
1101
- return createRule({ flex: '1 1 auto' })
1102
- }
1103
-
1104
- export function flexInitial(): StyleRule {
1105
- return createRule({ flex: '0 1 auto' })
1106
- }
1107
-
1108
- export function flexNone(): StyleRule {
1109
- return createRule({ flex: 'none' })
1110
- }
1111
-
1112
- export function grow(value: string | number = 1): StyleRule {
1113
- return createRule({ 'flex-grow': String(value) })
1114
- }
1115
-
1116
- export function shrink(value: string | number = 1): StyleRule {
1117
- return createRule({ 'flex-shrink': String(value) })
1118
- }
1119
-
1120
- export function order(value: number | string | DynamicValue): StyleRule {
1121
- if (isDynamic(value)) {
1122
- return createDynamicRule(
1123
- { order: `var(${value.__id})` },
1124
- { [value.__id]: String(value.__value) },
1125
- )
1126
- }
1127
- return createRule({ order: String(value) })
1128
- }
1129
-
1130
- export function colSpan(value: number | string): StyleRule {
1131
- if (value === 'full') return createRule({ 'grid-column': '1 / -1' })
1132
- return createRule({ 'grid-column': `span ${value} / span ${value}` })
1133
- }
1134
-
1135
- export function colStart(value: number | string): StyleRule {
1136
- return createRule({ 'grid-column-start': String(value) })
1137
- }
1138
-
1139
- export function colEnd(value: number | string): StyleRule {
1140
- return createRule({ 'grid-column-end': String(value) })
1141
- }
1142
-
1143
- export function rowSpan(value: number | string): StyleRule {
1144
- if (value === 'full') return createRule({ 'grid-row': '1 / -1' })
1145
- return createRule({ 'grid-row': `span ${value} / span ${value}` })
1146
- }
1147
-
1148
- export function rowStart(value: number | string): StyleRule {
1149
- return createRule({ 'grid-row-start': String(value) })
1150
- }
1151
-
1152
- export function rowEnd(value: number | string): StyleRule {
1153
- return createRule({ 'grid-row-end': String(value) })
1154
- }
1155
-
1156
- export function gridFlow(value: string): StyleRule {
1157
- return createRule({ 'grid-auto-flow': value })
1158
- }
1159
-
1160
- export function autoCols(value: string): StyleRule {
1161
- return createRule({ 'grid-auto-columns': value })
1162
- }
1163
-
1164
- export function autoRows(value: string): StyleRule {
1165
- return createRule({ 'grid-auto-rows': value })
1166
- }
1167
-
1168
- export function justifyItems(value: string): StyleRule {
1169
- return createRule({ 'justify-items': value })
1170
- }
1171
-
1172
- export function justifySelf(value: string): StyleRule {
1173
- return createRule({ 'justify-self': value })
1174
- }
1175
-
1176
- export function alignContent(value: string): StyleRule {
1177
- return createRule({ 'align-content': value })
1178
- }
1179
-
1180
- export function placeContent(value: string): StyleRule {
1181
- return createRule({ 'place-content': value })
1182
- }
1183
-
1184
- export function placeItems(value: string): StyleRule {
1185
- return createRule({ 'place-items': value })
1186
- }
1187
-
1188
- export function placeSelf(value: string): StyleRule {
1189
- return createRule({ 'place-self': value })
1190
- }
1191
-
1192
- export function container(): StyleRule {
1193
- return createRule({ width: '100%' })
1194
- }