@thi.ng/meta-css 0.7.13 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,12 +18,14 @@
18
18
  - [Generating CSS frameworks](#generating-css-frameworks)
19
19
  - [Framework generation specs & syntax](#framework-generation-specs--syntax)
20
20
  - [Example generation spec](#example-generation-spec)
21
- - [Spec structure](#spec-structure)
21
+ - [Generator spec structure](#generator-spec-structure)
22
22
  - [Variations](#variations)
23
23
  - [Parametric IDs](#parametric-ids)
24
24
  - [Values](#values)
25
25
  - [Properties](#properties)
26
26
  - [Key value generation](#key-value-generation)
27
+ - [Templated class definitions](#templated-class-definitions)
28
+ - [Template arguments](#template-arguments)
27
29
  - [Media query definitions](#media-query-definitions)
28
30
  - [Custom declarations](#custom-declarations)
29
31
  - [Converting meta stylesheets to CSS](#converting-meta-stylesheets-to-css)
@@ -36,6 +38,61 @@
36
38
  - [Media query variations](#media-query-variations)
37
39
  - [Bundled CSS base framework](#bundled-css-base-framework)
38
40
  - [Classes by category](#classes-by-category)
41
+ - [Accessibility](#accessibility)
42
+ - [Animation / transition](#animation--transition)
43
+ - [Aspect ratios](#aspect-ratios)
44
+ - [Background](#background)
45
+ - [Border color](#border-color)
46
+ - [Border radius](#border-radius)
47
+ - [Border width](#border-width)
48
+ - [Colors](#colors)
49
+ - [Content](#content)
50
+ - [Cursors](#cursors)
51
+ - [Display mode](#display-mode)
52
+ - [Flex layout](#flex-layout)
53
+ - [Font families](#font-families)
54
+ - [Font sizes](#font-sizes)
55
+ - [Font style](#font-style)
56
+ - [Font variants](#font-variants)
57
+ - [Font weights](#font-weights)
58
+ - [Grid layout](#grid-layout)
59
+ - [Height](#height)
60
+ - [Icons](#icons)
61
+ - [Letter spacing](#letter-spacing)
62
+ - [Line heights](#line-heights)
63
+ - [Lists](#lists)
64
+ - [Margin](#margin)
65
+ - [Max. height](#max-height)
66
+ - [Max. width](#max-width)
67
+ - [Min. height](#min-height)
68
+ - [Min. width](#min-width)
69
+ - [Opacity](#opacity)
70
+ - [Overflow](#overflow)
71
+ - [Padding](#padding)
72
+ - [Positions](#positions)
73
+ - [Print](#print)
74
+ - [Scrolling](#scrolling)
75
+ - [Selection](#selection)
76
+ - [Shadow](#shadow)
77
+ - [Svg](#svg)
78
+ - [Text align](#text-align)
79
+ - [Text decorations](#text-decorations)
80
+ - [Text transforms](#text-transforms)
81
+ - [Vertical align](#vertical-align)
82
+ - [Visibility](#visibility)
83
+ - [Whitespace](#whitespace)
84
+ - [Width](#width)
85
+ - [Z-indices](#z-indices)
86
+ - [Templates by category](#templates-by-category)
87
+ - [Animation / transition](#animation--transition)
88
+ - [Aspect ratios](#aspect-ratios)
89
+ - [Border color](#border-color)
90
+ - [Color adjustment](#color-adjustment)
91
+ - [Color definitions](#color-definitions)
92
+ - [Colors](#colors)
93
+ - [Grid layout](#grid-layout)
94
+ - [Positions](#positions)
95
+ - [Svg](#svg)
39
96
  - [Media queries](#media-queries)
40
97
  - [Status](#status)
41
98
  - [Related packages](#related-packages)
@@ -60,13 +117,16 @@ remove the need for any complex & bloated CSS-related dependencies (parsers
60
117
  etc.) and to simplify building secondary tooling (e.g. part of this readme is an
61
118
  [auto-generated report of the included base framework
62
119
  specs](#bundled-css-base-framework)), we're using JSON — rather than CSS — as
63
- data format to: 1) express the _generative_ rules to define all the CSS classes,
64
- declarations, media query criteria which are forming a framework and
65
- 2) as intermediate data format for a generated CSS framework itself. **The
66
- entire toolkit (incl. all bundled dependencies) is currently only 32KB!**
120
+ data format to:
67
121
 
68
- This readme aims to provide a thorough overview of this toolchain and some
69
- concrete usage examples...
122
+ 1. express the _generative_ rules to define all the CSS classes, class templates,
123
+ declarations, and media query criteria, all of which are forming a framework
124
+ 2. as intermediate data format for generated CSS frameworks themselves
125
+
126
+ **The entire toolkit (incl. all bundled dependencies) is currently only 36KB (unzipped)!**
127
+
128
+ This readme aims to provide a thorough overview of this toolchain, its
129
+ possibilities and some concrete usage examples...
70
130
 
71
131
  Note: In all cases, final CSS generation itself is handled by
72
132
  [thi.ng/hiccup-css](https://github.com/thi-ng/umbrella/blob/develop/packages/hiccup-css/).
@@ -149,9 +209,13 @@ the toolchain.
149
209
  "decls": [
150
210
  ["html", { "box-sizing": "border-box" }]
151
211
  ],
152
- // array of actual generation specs
212
+ // array of class generation specs
153
213
  "specs": [
154
214
  //...
215
+ ],
216
+ // array of templated class generation specs
217
+ "tpls": [
218
+ //...
155
219
  ]
156
220
  }
157
221
  ```
@@ -231,17 +295,18 @@ When later used in stylesheets, we can then refer to each of these classes by
231
295
  their generated names, e.g. `ma0` to disable all margins or `mh2` to set both
232
296
  left & right margins to `1rem` (in this case)...
233
297
 
234
- ### Spec structure
298
+ ### Generator spec structure
235
299
 
236
300
  An individual generator spec JSON object can contain the following keys:
237
301
 
238
302
  | **ID** | **Type** | **Description** |
239
303
  |----------|-------------------------|--------------------------------------------------------------|
304
+ | `doc` | object, optional | Documentation metadata, see [section](#documentation) |
240
305
  | `key` | string, optional | Method for deriving keys from current value |
241
306
  | `name` | string | Parametric name for the generated CSS class(es) |
242
307
  | `props` | string or object | CSS property name(s), possibly parametric |
243
308
  | `unit` | string, optional | CSS unit to use for values |
244
- | `user` | any, optional | Custom, arbitrary user data, comments, metadata etc. |
309
+ | `user` | any, optional | Custom, arbitrary user data etc. |
245
310
  | `values` | string, array or object | Values to be assigned to CSS properties, possibly parametric |
246
311
  | `vars` | string[], optional | Array of variation IDs (see section below) |
247
312
 
@@ -443,6 +508,85 @@ The above spec will generate the following (some parts omitted):
443
508
  }
444
509
  ```
445
510
 
511
+ ### Templated class definitions
512
+
513
+ As a special case of "normal" generator specs described above, the toolchain
514
+ also supports the generation of so-called templated classes, which are very much
515
+ like callable functions and will later accept zero or more arguments when used
516
+ in a MetaCSS stylesheet.
517
+
518
+ These template specs are almost identical to the normal spec format, with the
519
+ exception of **not** using the `key` and `values` fields, since values will only
520
+ be provided by the user at a later stage, via template arguments.
521
+
522
+ A simple generator spec for a templated animation, including keyframe
523
+ definitions and documentation metadata:
524
+
525
+ ```json tangle:export/readme-templated-anim.mcss.json
526
+ {
527
+ "decls": [
528
+ ["@keyframes" ,"shrink", { "height": "var(--shrink-size)" }, { "height": 0 }]
529
+ ],
530
+ "tpls": [
531
+ {
532
+ "name": "shrink",
533
+ "props": {
534
+ "--shrink-size": "{0}",
535
+ "animation": "shrink {1}s ease-out forward"
536
+ },
537
+ "doc": {
538
+ "group": "animation",
539
+ "desc": "Animation which shrinks the height from given value down to zero",
540
+ "args": [
541
+ "height: initial height (incl. units)",
542
+ "duration: in seconds"
543
+ ]
544
+ }
545
+ }
546
+ ]
547
+ }
548
+ ```
549
+
550
+ In a MetaCSS stylesheet, the template can then be used like a function call, like so:
551
+
552
+ `shrink(4rem, 1)`
553
+
554
+ Here, two arguments are supplied as comma-separated list between the `(`..`)`
555
+ parens. In the template definition the `{0}`/`{1}` patterns are indicating where
556
+ these numbered args will be inserted. Templates support any number of
557
+ params/arguments and each one can be used multiple times in multiple locations,
558
+ incl. property names, values, and in documentation (`group`, `desc` and `args` fields).
559
+
560
+ #### Template arguments
561
+
562
+ When templates are compiled, the number of expected args is computed
563
+ automatically and later checked against the actually given args when the
564
+ template is used. An error will be thrown if the given number of args differs.
565
+
566
+ Any commas inside an argument **must** be escaped using `\,`, e.g.
567
+
568
+ ```text
569
+ // wrong (the comma inside `repeat()` MUST be escaped...)
570
+ #test { grid grid-cols(repeat(3, 1fr), 16rem) }
571
+
572
+ // correct
573
+ #test { grid grid-cols(repeat(3\, 1fr), 16rem) }
574
+ ```
575
+
576
+ If a template's `props` is a string, the optional `unit` field can be used to
577
+ auto-assign a CSS unit to provided args. If `props` is an object, the `unit`
578
+ option will be ignored.
579
+
580
+ Using the example template defined above, the MetaCSS stylesheet
581
+ `#test { shrink(4rem, 0.5) }` will then be expanded to:
582
+
583
+ ```css
584
+ #test {
585
+ --shrink-size: 4rem;
586
+ animation: shrink 0.5s ease-out forward;
587
+ }
588
+ ```
589
+
446
590
  ### Media query definitions
447
591
 
448
592
  Media queries can be defined via the top-level `media` object in a spec file.
@@ -460,7 +604,7 @@ ALWAYS combined using `and`:
460
604
  | `print: "only"` | `only print` |
461
605
 
462
606
  See [media queries in the bundled base
463
- specs](https://github.com/thi-ng/umbrella/blob/982fff7bfcc48f108b6ad88f854ef00be4078510/packages/meta-css/specs/_info.json#L6-L24)
607
+ specs](https://github.com/thi-ng/umbrella/blob/f40ff9b9d7da496c2dd967c6185ca626cbbd9b4c/packages/meta-css/specs/_info.mcss.json#L6-L27)
464
608
 
465
609
  ### Custom declarations
466
610
 
@@ -817,179 +961,1188 @@ and `w-50-l` (incl. their corresponding `@media` wrappers).
817
961
 
818
962
  ## Bundled CSS base framework
819
963
 
820
- The package includes a large number of useful specs in [/specs](https://github.com/thi-ng/umbrella/blob/develop/packages/meta-css/specs/). These are readily usable, but also are provided as starting point to define your own custom framework(s)...
964
+ The package includes a large number of useful generator specs in
965
+ [/specs](https://github.com/thi-ng/umbrella/blob/develop/packages/meta-css/specs/).
966
+ These are readily usable (and used by a growing number of example projects in
967
+ this repo), but also are provided as starting point to define your own custom
968
+ framework(s)...
821
969
 
822
- Currently, there are 940 CSS utility classes defined in MetaCSS base v0.7.0:
970
+ Currently, there are 862 CSS utility classes (incl. 29 templates) defined in "MetaCSS base" (v0.8.0):
823
971
 
824
972
  ### Classes by category
825
973
 
826
- #### Accessibility <!-- notoc -->
974
+ #### Accessibility
975
+
976
+ - `screen-reader`
977
+ - `screen-reader-focus`
978
+
979
+ #### Animation / transition
980
+
981
+ - `anim-alternate` (direction)
982
+ - `anim-alternate-reverse` (direction)
983
+ - `anim-ease` (timing function)
984
+ - `anim-ease-in` (timing function)
985
+ - `anim-ease-in-out` (timing function)
986
+ - `anim-ease-out` (timing function)
987
+ - `anim-linear` (timing function)
988
+ - `anim-normal` (direction)
989
+ - `anim-pause`
990
+ - `anim-play`
991
+ - `anim-reverse` (direction)
992
+
993
+ #### Aspect ratios
994
+
995
+ - `bg-aspect-ratio-object` (To be used on the element forming the background of a `bg-aspect-ratio()` parent/wrapper)
996
+
997
+ #### Background
998
+
999
+ - `bg-contain`
1000
+ - `bg-cover`
1001
+ - `bg-pos-center` (center)
1002
+ - `bg-pos-e` (right)
1003
+ - `bg-pos-n` (top)
1004
+ - `bg-pos-ne` (top right)
1005
+ - `bg-pos-nw` (top left)
1006
+ - `bg-pos-s` (bottom)
1007
+ - `bg-pos-se` (bottom right)
1008
+ - `bg-pos-sw` (bottom left)
1009
+ - `bg-pos-w` (left)
1010
+
1011
+ #### Border color
1012
+
1013
+ - `border-color-black` (#000)
1014
+ - `border-color-blue` (#357edd)
1015
+ - `border-color-current` (currentcolor)
1016
+ - `border-color-dark-blue` (#00449e)
1017
+ - `border-color-dark-gray` (#333)
1018
+ - `border-color-dark-green` (#137752)
1019
+ - `border-color-dark-pink` (#d5008f)
1020
+ - `border-color-dark-red` (#e7040f)
1021
+ - `border-color-gold` (#ffb700)
1022
+ - `border-color-gray` (#777)
1023
+ - `border-color-green` (#19a974)
1024
+ - `border-color-hot-pink` (#ff41b4)
1025
+ - `border-color-light-blue` (#96ccff)
1026
+ - `border-color-light-gray` (#eee)
1027
+ - `border-color-light-green` (#9eebcf)
1028
+ - `border-color-light-pink` (#ffa3d7)
1029
+ - `border-color-light-purple` (#a463f2)
1030
+ - `border-color-light-red` (#ff725c)
1031
+ - `border-color-light-silver` (#aaa)
1032
+ - `border-color-light-yellow` (#fbf1a9)
1033
+ - `border-color-lightest-blue` (#cdecff)
1034
+ - `border-color-mid-gray` (#555)
1035
+ - `border-color-moon-gray` (#ccc)
1036
+ - `border-color-navy` (#001b44)
1037
+ - `border-color-near-black` (#111)
1038
+ - `border-color-near-white` (#f4f4f4)
1039
+ - `border-color-orange` (#ff6300)
1040
+ - `border-color-pink` (#ff80cc)
1041
+ - `border-color-purple` (#5e2ca5)
1042
+ - `border-color-red` (#ff4136)
1043
+ - `border-color-silver` (#999)
1044
+ - `border-color-transparent` (transparent)
1045
+ - `border-color-washed-blue` (#f6fffe)
1046
+ - `border-color-washed-green` (#e8fdf5)
1047
+ - `border-color-washed-red` (#ffdfdf)
1048
+ - `border-color-washed-yellow` (#fffceb)
1049
+ - `border-color-white` (#fff)
1050
+ - `border-color-yellow` (#ffd700)
1051
+
1052
+ #### Border radius
1053
+
1054
+ - `br0` (0rem)
1055
+ - `br1` (.125rem)
1056
+ - `br2` (.25rem)
1057
+ - `br3` (.5rem)
1058
+ - `br4` (1rem)
1059
+ - `br-100` (100%)
1060
+ - `br-pill` (9999px)
1061
+ - `brb0` (0rem)
1062
+ - `brb1` (.125rem)
1063
+ - `brb2` (.25rem)
1064
+ - `brb3` (.5rem)
1065
+ - `brb4` (1rem)
1066
+ - `brl0` (0rem)
1067
+ - `brl1` (.125rem)
1068
+ - `brl2` (.25rem)
1069
+ - `brl3` (.5rem)
1070
+ - `brl4` (1rem)
1071
+ - `brr0` (0rem)
1072
+ - `brr1` (.125rem)
1073
+ - `brr2` (.25rem)
1074
+ - `brr3` (.5rem)
1075
+ - `brr4` (1rem)
1076
+ - `brt0` (0rem)
1077
+ - `brt1` (.125rem)
1078
+ - `brt2` (.25rem)
1079
+ - `brt3` (.5rem)
1080
+ - `brt4` (1rem)
1081
+
1082
+ #### Border width
1083
+
1084
+ - `bw0` (0rem)
1085
+ - `bw1` (.125rem)
1086
+ - `bw2` (.25rem)
1087
+ - `bw3` (.5rem)
1088
+ - `bw4` (1rem)
1089
+ - `bw5` (2rem)
1090
+ - `bw-1px` (1px)
1091
+ - `bwb0` (0rem)
1092
+ - `bwb1` (.125rem)
1093
+ - `bwb2` (.25rem)
1094
+ - `bwb3` (.5rem)
1095
+ - `bwb4` (1rem)
1096
+ - `bwb5` (2rem)
1097
+ - `bwb-1px` (1px)
1098
+ - `bwl0` (0rem)
1099
+ - `bwl1` (.125rem)
1100
+ - `bwl2` (.25rem)
1101
+ - `bwl3` (.5rem)
1102
+ - `bwl4` (1rem)
1103
+ - `bwl5` (2rem)
1104
+ - `bwl-1px` (1px)
1105
+ - `bwr0` (0rem)
1106
+ - `bwr1` (.125rem)
1107
+ - `bwr2` (.25rem)
1108
+ - `bwr3` (.5rem)
1109
+ - `bwr4` (1rem)
1110
+ - `bwr5` (2rem)
1111
+ - `bwr-1px` (1px)
1112
+ - `bwt0` (0rem)
1113
+ - `bwt1` (.125rem)
1114
+ - `bwt2` (.25rem)
1115
+ - `bwt3` (.5rem)
1116
+ - `bwt4` (1rem)
1117
+ - `bwt5` (2rem)
1118
+ - `bwt-1px` (1px)
1119
+
1120
+ #### Colors
1121
+
1122
+ - `bg-color-black` (#000)
1123
+ - `bg-color-blue` (#357edd)
1124
+ - `bg-color-current` (currentcolor)
1125
+ - `bg-color-dark-blue` (#00449e)
1126
+ - `bg-color-dark-gray` (#333)
1127
+ - `bg-color-dark-green` (#137752)
1128
+ - `bg-color-dark-pink` (#d5008f)
1129
+ - `bg-color-dark-red` (#e7040f)
1130
+ - `bg-color-gold` (#ffb700)
1131
+ - `bg-color-gray` (#777)
1132
+ - `bg-color-green` (#19a974)
1133
+ - `bg-color-hot-pink` (#ff41b4)
1134
+ - `bg-color-light-blue` (#96ccff)
1135
+ - `bg-color-light-gray` (#eee)
1136
+ - `bg-color-light-green` (#9eebcf)
1137
+ - `bg-color-light-pink` (#ffa3d7)
1138
+ - `bg-color-light-purple` (#a463f2)
1139
+ - `bg-color-light-red` (#ff725c)
1140
+ - `bg-color-light-silver` (#aaa)
1141
+ - `bg-color-light-yellow` (#fbf1a9)
1142
+ - `bg-color-lightest-blue` (#cdecff)
1143
+ - `bg-color-mid-gray` (#555)
1144
+ - `bg-color-moon-gray` (#ccc)
1145
+ - `bg-color-navy` (#001b44)
1146
+ - `bg-color-near-black` (#111)
1147
+ - `bg-color-near-white` (#f4f4f4)
1148
+ - `bg-color-orange` (#ff6300)
1149
+ - `bg-color-pink` (#ff80cc)
1150
+ - `bg-color-purple` (#5e2ca5)
1151
+ - `bg-color-red` (#ff4136)
1152
+ - `bg-color-silver` (#999)
1153
+ - `bg-color-transparent` (transparent)
1154
+ - `bg-color-washed-blue` (#f6fffe)
1155
+ - `bg-color-washed-green` (#e8fdf5)
1156
+ - `bg-color-washed-red` (#ffdfdf)
1157
+ - `bg-color-washed-yellow` (#fffceb)
1158
+ - `bg-color-white` (#fff)
1159
+ - `bg-color-yellow` (#ffd700)
1160
+ - `color-black` (#000)
1161
+ - `color-blue` (#357edd)
1162
+ - `color-current` (currentcolor)
1163
+ - `color-dark-blue` (#00449e)
1164
+ - `color-dark-gray` (#333)
1165
+ - `color-dark-green` (#137752)
1166
+ - `color-dark-pink` (#d5008f)
1167
+ - `color-dark-red` (#e7040f)
1168
+ - `color-gold` (#ffb700)
1169
+ - `color-gray` (#777)
1170
+ - `color-green` (#19a974)
1171
+ - `color-hot-pink` (#ff41b4)
1172
+ - `color-light-blue` (#96ccff)
1173
+ - `color-light-gray` (#eee)
1174
+ - `color-light-green` (#9eebcf)
1175
+ - `color-light-pink` (#ffa3d7)
1176
+ - `color-light-purple` (#a463f2)
1177
+ - `color-light-red` (#ff725c)
1178
+ - `color-light-silver` (#aaa)
1179
+ - `color-light-yellow` (#fbf1a9)
1180
+ - `color-lightest-blue` (#cdecff)
1181
+ - `color-mid-gray` (#555)
1182
+ - `color-moon-gray` (#ccc)
1183
+ - `color-navy` (#001b44)
1184
+ - `color-near-black` (#111)
1185
+ - `color-near-white` (#f4f4f4)
1186
+ - `color-orange` (#ff6300)
1187
+ - `color-pink` (#ff80cc)
1188
+ - `color-purple` (#5e2ca5)
1189
+ - `color-red` (#ff4136)
1190
+ - `color-silver` (#999)
1191
+ - `color-transparent` (transparent)
1192
+ - `color-washed-blue` (#f6fffe)
1193
+ - `color-washed-green` (#e8fdf5)
1194
+ - `color-washed-red` (#ffdfdf)
1195
+ - `color-washed-yellow` (#fffceb)
1196
+ - `color-white` (#fff)
1197
+ - `color-yellow` (#ffd700)
1198
+
1199
+ #### Content
1200
+
1201
+ - `content-data-lang` (data-lang attrib)
1202
+ - `content-href` (href attrib)
1203
+ - `content-id` (id attrib)
1204
+ - `content-name` (name attrib)
1205
+ - `content-slot` (slot attrib)
1206
+ - `content-title` (title attrib)
1207
+
1208
+ #### Cursors
1209
+
1210
+ - `cursor-alias`
1211
+ - `cursor-auto`
1212
+ - `cursor-cell`
1213
+ - `cursor-col`
1214
+ - `cursor-context`
1215
+ - `cursor-copy`
1216
+ - `cursor-cross`
1217
+ - `cursor-default`
1218
+ - `cursor-e`
1219
+ - `cursor-ew`
1220
+ - `cursor-forbidden`
1221
+ - `cursor-grab`
1222
+ - `cursor-grabbing`
1223
+ - `cursor-help`
1224
+ - `cursor-in`
1225
+ - `cursor-move`
1226
+ - `cursor-n`
1227
+ - `cursor-ne`
1228
+ - `cursor-news`
1229
+ - `cursor-no-drop`
1230
+ - `cursor-none`
1231
+ - `cursor-ns`
1232
+ - `cursor-nw`
1233
+ - `cursor-nwse`
1234
+ - `cursor-out`
1235
+ - `cursor-pointer`
1236
+ - `cursor-progress`
1237
+ - `cursor-row`
1238
+ - `cursor-s`
1239
+ - `cursor-scroll`
1240
+ - `cursor-se`
1241
+ - `cursor-sw`
1242
+ - `cursor-text`
1243
+ - `cursor-vtext`
1244
+ - `cursor-w`
1245
+ - `cursor-wait`
1246
+
1247
+ #### Display mode
1248
+
1249
+ - `db` (block)
1250
+ - `di` (inline)
1251
+ - `dib` (inline-block)
1252
+ - `dif` (inline-flex)
1253
+ - `dig` (inline-grid)
1254
+ - `dn` (none)
1255
+ - `dt` (table)
1256
+ - `dtc` (table-cell)
1257
+ - `dtr` (table-row)
1258
+ - `flex` (flex)
1259
+ - `grid` (grid)
1260
+
1261
+ #### Flex layout
1262
+
1263
+ - `align-content-center`
1264
+ - `align-content-end`
1265
+ - `align-content-start`
1266
+ - `flex-column`
1267
+ - `flex-column-reverse`
1268
+ - `flex-grow0`
1269
+ - `flex-grow1`
1270
+ - `flex-nowrap`
1271
+ - `flex-row`
1272
+ - `flex-row-reverse`
1273
+ - `flex-shrink0`
1274
+ - `flex-shrink1`
1275
+ - `flex-wrap`
1276
+ - `flex-wrap-reverse`
1277
+ - `justify-content-center`
1278
+ - `justify-content-end`
1279
+ - `justify-content-start`
1280
+
1281
+ #### Font families
1282
+
1283
+ - `monospace`
1284
+ - `sans-serif`
1285
+ - `serif`
1286
+ - `system`
1287
+ - `system-sans-serif`
1288
+ - `system-serif`
1289
+
1290
+ #### Font sizes
1291
+
1292
+ - `f-subtitle` (5rem)
1293
+ - `f-title` (6rem)
1294
+ - `f1` (3rem)
1295
+ - `f2` (2.25rem)
1296
+ - `f3` (1.5rem)
1297
+ - `f4` (1.25rem)
1298
+ - `f5` (1rem)
1299
+ - `f6` (.875rem)
1300
+ - `f7` (.75rem)
1301
+
1302
+ #### Font style
1303
+
1304
+ - `italic`
1305
+
1306
+ #### Font variants
1307
+
1308
+ - `small-caps`
1309
+
1310
+ #### Font weights
1311
+
1312
+ - `b` (700)
1313
+ - `fw100`
1314
+ - `fw200`
1315
+ - `fw300`
1316
+ - `fw400`
1317
+ - `fw500`
1318
+ - `fw600`
1319
+ - `fw700`
1320
+ - `fw800`
1321
+ - `fw900`
1322
+ - `normal` (400)
1323
+
1324
+ #### Grid layout
1325
+
1326
+ - `align-items-center`
1327
+ - `align-items-end`
1328
+ - `align-items-start`
1329
+ - `align-items-stretch`
1330
+ - `align-self-center`
1331
+ - `align-self-end`
1332
+ - `align-self-start`
1333
+ - `align-self-stretch`
1334
+ - `gap0` (0rem)
1335
+ - `gap1` (.125rem)
1336
+ - `gap2` (.25rem)
1337
+ - `gap3` (.5rem)
1338
+ - `gap4` (1rem)
1339
+ - `gap5` (2rem)
1340
+ - `gap-1px`
1341
+ - `gap-2px`
1342
+ - `gap-4px`
1343
+ - `gap-8px`
1344
+ - `grid-cols-1` (1fr)
1345
+ - `grid-cols-2` (1fr 1fr)
1346
+ - `grid-cols-3` (1fr 1fr 1fr)
1347
+ - `grid-cols-4` (repeat(4,1fr))
1348
+ - `grid-cols-5` (repeat(5,1fr))
1349
+ - `grid-cols-6` (repeat(6,1fr))
1350
+ - `grid-cols-7` (repeat(7,1fr))
1351
+ - `grid-cols-8` (repeat(8,1fr))
1352
+ - `grid-cols-9` (repeat(9,1fr))
1353
+ - `grid-cols-10` (repeat(10,1fr))
1354
+ - `grid-rows-1` (1fr)
1355
+ - `grid-rows-2` (1fr 1fr)
1356
+ - `grid-rows-3` (1fr 1fr 1fr)
1357
+ - `grid-rows-4` (repeat(4,1fr))
1358
+ - `grid-rows-5` (repeat(5,1fr))
1359
+ - `grid-rows-6` (repeat(6,1fr))
1360
+ - `grid-rows-7` (repeat(7,1fr))
1361
+ - `grid-rows-8` (repeat(8,1fr))
1362
+ - `grid-rows-9` (repeat(9,1fr))
1363
+ - `grid-rows-10` (repeat(10,1fr))
1364
+ - `justify-items-center`
1365
+ - `justify-items-end`
1366
+ - `justify-items-start`
1367
+ - `justify-items-stretch`
1368
+ - `justify-self-center`
1369
+ - `justify-self-end`
1370
+ - `justify-self-start`
1371
+ - `justify-self-stretch`
1372
+
1373
+ #### Height
1374
+
1375
+ - `h1` (1rem)
1376
+ - `h2` (2rem)
1377
+ - `h3` (4rem)
1378
+ - `h4` (8rem)
1379
+ - `h5` (16rem)
1380
+ - `h-10` (%)
1381
+ - `h-16` (%)
1382
+ - `h-17` (%)
1383
+ - `h-20` (%)
1384
+ - `h-25` (%)
1385
+ - `h-30` (%)
1386
+ - `h-33` (%)
1387
+ - `h-34` (%)
1388
+ - `h-40` (%)
1389
+ - `h-50` (%)
1390
+ - `h-60` (%)
1391
+ - `h-66` (%)
1392
+ - `h-67` (%)
1393
+ - `h-70` (%)
1394
+ - `h-75` (%)
1395
+ - `h-80` (%)
1396
+ - `h-83` (%)
1397
+ - `h-84` (%)
1398
+ - `h-90` (%)
1399
+ - `h-100` (%)
1400
+ - `vh-25`
1401
+ - `vh-50`
1402
+ - `vh-75`
1403
+ - `vh-100`
1404
+
1405
+ #### Icons
1406
+
1407
+ - `icon-1` (3rem)
1408
+ - `icon-2` (2.25rem)
1409
+ - `icon-3` (1.5rem)
1410
+ - `icon-4` (1.25rem)
1411
+ - `icon-5` (1rem)
1412
+ - `icon-6` (.875rem)
1413
+ - `icon-7` (.75rem)
1414
+ - `icon-subtitle` (5rem)
1415
+ - `icon-title` (6rem)
1416
+
1417
+ #### Letter spacing
1418
+
1419
+ - `ls-0` (0em)
1420
+ - `ls-1` (.05em)
1421
+ - `ls-2` (.1em)
1422
+ - `ls-3` (.2em)
1423
+ - `ls--1` (-.025em)
1424
+ - `ls--2` (-.05em)
1425
+
1426
+ #### Line heights
1427
+
1428
+ - `lh-0` (0)
1429
+ - `lh-copy` (1.5)
1430
+ - `lh-double` (2)
1431
+ - `lh-solid` (1)
1432
+ - `lh-title` (1.25)
1433
+
1434
+ #### Lists
1435
+
1436
+ - `list`
1437
+
1438
+ #### Margin
1439
+
1440
+ - `center`
1441
+ - `ma0` ( 0rem)
1442
+ - `ma1` ( .25rem)
1443
+ - `ma2` ( .5rem)
1444
+ - `ma3` ( 1rem)
1445
+ - `ma4` ( 2rem)
1446
+ - `ma5` ( 4rem)
1447
+ - `mb0` (bottom 0rem)
1448
+ - `mb1` (bottom .25rem)
1449
+ - `mb2` (bottom .5rem)
1450
+ - `mb3` (bottom 1rem)
1451
+ - `mb4` (bottom 2rem)
1452
+ - `mb5` (bottom 4rem)
1453
+ - `mbe-0` (block end 0rem)
1454
+ - `mbe-1` (block end .25rem)
1455
+ - `mbe-2` (block end .5rem)
1456
+ - `mbe-3` (block end 1rem)
1457
+ - `mbe-4` (block end 2rem)
1458
+ - `mbe-5` (block end 4rem)
1459
+ - `mbs-0` (block start 0rem)
1460
+ - `mbs-1` (block start .25rem)
1461
+ - `mbs-2` (block start .5rem)
1462
+ - `mbs-3` (block start 1rem)
1463
+ - `mbs-4` (block start 2rem)
1464
+ - `mbs-5` (block start 4rem)
1465
+ - `mh0` (left 0rem)
1466
+ - `mh1` (left .25rem)
1467
+ - `mh2` (left .5rem)
1468
+ - `mh3` (left 1rem)
1469
+ - `mh4` (left 2rem)
1470
+ - `mh5` (left 4rem)
1471
+ - `ml0` (left 0rem)
1472
+ - `ml1` (left .25rem)
1473
+ - `ml2` (left .5rem)
1474
+ - `ml3` (left 1rem)
1475
+ - `ml4` (left 2rem)
1476
+ - `ml5` (left 4rem)
1477
+ - `mr0` (right 0rem)
1478
+ - `mr1` (right .25rem)
1479
+ - `mr2` (right .5rem)
1480
+ - `mr3` (right 1rem)
1481
+ - `mr4` (right 2rem)
1482
+ - `mr5` (right 4rem)
1483
+ - `mt0` (top 0rem)
1484
+ - `mt1` (top .25rem)
1485
+ - `mt2` (top .5rem)
1486
+ - `mt3` (top 1rem)
1487
+ - `mt4` (top 2rem)
1488
+ - `mt5` (top 4rem)
1489
+ - `mv0` (top 0rem)
1490
+ - `mv1` (top .25rem)
1491
+ - `mv2` (top .5rem)
1492
+ - `mv3` (top 1rem)
1493
+ - `mv4` (top 2rem)
1494
+ - `mv5` (top 4rem)
1495
+
1496
+ #### Max. height
1497
+
1498
+ - `maxh1` (1rem)
1499
+ - `maxh2` (2rem)
1500
+ - `maxh3` (4rem)
1501
+ - `maxh4` (8rem)
1502
+ - `maxh5` (16rem)
1503
+ - `maxh-10` (%)
1504
+ - `maxh-16` (%)
1505
+ - `maxh-17` (%)
1506
+ - `maxh-20` (%)
1507
+ - `maxh-25` (%)
1508
+ - `maxh-30` (%)
1509
+ - `maxh-33` (%)
1510
+ - `maxh-34` (%)
1511
+ - `maxh-40` (%)
1512
+ - `maxh-50` (%)
1513
+ - `maxh-60` (%)
1514
+ - `maxh-66` (%)
1515
+ - `maxh-67` (%)
1516
+ - `maxh-70` (%)
1517
+ - `maxh-75` (%)
1518
+ - `maxh-80` (%)
1519
+ - `maxh-83` (%)
1520
+ - `maxh-84` (%)
1521
+ - `maxh-90` (%)
1522
+ - `maxh-100` (%)
1523
+
1524
+ #### Max. width
1525
+
1526
+ - `maxw1` (1rem)
1527
+ - `maxw2` (2rem)
1528
+ - `maxw3` (4rem)
1529
+ - `maxw4` (8rem)
1530
+ - `maxw5` (16rem)
1531
+ - `maxw-10` (%)
1532
+ - `maxw-16` (%)
1533
+ - `maxw-17` (%)
1534
+ - `maxw-20` (%)
1535
+ - `maxw-25` (%)
1536
+ - `maxw-30` (%)
1537
+ - `maxw-33` (%)
1538
+ - `maxw-34` (%)
1539
+ - `maxw-40` (%)
1540
+ - `maxw-50` (%)
1541
+ - `maxw-60` (%)
1542
+ - `maxw-66` (%)
1543
+ - `maxw-67` (%)
1544
+ - `maxw-70` (%)
1545
+ - `maxw-75` (%)
1546
+ - `maxw-80` (%)
1547
+ - `maxw-83` (%)
1548
+ - `maxw-84` (%)
1549
+ - `maxw-90` (%)
1550
+ - `maxw-100` (%)
1551
+
1552
+ #### Min. height
1553
+
1554
+ - `minh1` (1rem)
1555
+ - `minh2` (2rem)
1556
+ - `minh3` (4rem)
1557
+ - `minh4` (8rem)
1558
+ - `minh5` (16rem)
1559
+ - `minh-10` (%)
1560
+ - `minh-16` (%)
1561
+ - `minh-17` (%)
1562
+ - `minh-20` (%)
1563
+ - `minh-25` (%)
1564
+ - `minh-30` (%)
1565
+ - `minh-33` (%)
1566
+ - `minh-34` (%)
1567
+ - `minh-40` (%)
1568
+ - `minh-50` (%)
1569
+ - `minh-60` (%)
1570
+ - `minh-66` (%)
1571
+ - `minh-67` (%)
1572
+ - `minh-70` (%)
1573
+ - `minh-75` (%)
1574
+ - `minh-80` (%)
1575
+ - `minh-83` (%)
1576
+ - `minh-84` (%)
1577
+ - `minh-90` (%)
1578
+ - `minh-100` (%)
1579
+
1580
+ #### Min. width
1581
+
1582
+ - `minw1` (1rem)
1583
+ - `minw2` (2rem)
1584
+ - `minw3` (4rem)
1585
+ - `minw4` (8rem)
1586
+ - `minw5` (16rem)
1587
+ - `minw-10` (%)
1588
+ - `minw-16` (%)
1589
+ - `minw-17` (%)
1590
+ - `minw-20` (%)
1591
+ - `minw-25` (%)
1592
+ - `minw-30` (%)
1593
+ - `minw-33` (%)
1594
+ - `minw-34` (%)
1595
+ - `minw-40` (%)
1596
+ - `minw-50` (%)
1597
+ - `minw-60` (%)
1598
+ - `minw-66` (%)
1599
+ - `minw-67` (%)
1600
+ - `minw-70` (%)
1601
+ - `minw-75` (%)
1602
+ - `minw-80` (%)
1603
+ - `minw-83` (%)
1604
+ - `minw-84` (%)
1605
+ - `minw-90` (%)
1606
+ - `minw-100` (%)
1607
+
1608
+ #### Opacity
1609
+
1610
+ - `o-0` (0)
1611
+ - `o-10` (0.1)
1612
+ - `o-20` (0.2)
1613
+ - `o-30` (0.3)
1614
+ - `o-40` (0.4)
1615
+ - `o-50` (0.5)
1616
+ - `o-60` (0.6)
1617
+ - `o-70` (0.7)
1618
+ - `o-80` (0.8)
1619
+ - `o-90` (0.9)
1620
+ - `o-100` (1)
1621
+
1622
+ #### Overflow
1623
+
1624
+ - `overflow-auto`
1625
+ - `overflow-hidden`
1626
+ - `overflow-scroll`
1627
+ - `overflow-visible`
1628
+ - `overflow-x-auto`
1629
+ - `overflow-x-hidden`
1630
+ - `overflow-x-scroll`
1631
+ - `overflow-x-visible`
1632
+ - `overflow-y-auto`
1633
+ - `overflow-y-hidden`
1634
+ - `overflow-y-scroll`
1635
+ - `overflow-y-visible`
1636
+
1637
+ #### Padding
1638
+
1639
+ - `pa0` ( 0rem)
1640
+ - `pa1` ( .25rem)
1641
+ - `pa2` ( .5rem)
1642
+ - `pa3` ( 1rem)
1643
+ - `pa4` ( 2rem)
1644
+ - `pa5` ( 4rem)
1645
+ - `pb0` (bottom 0rem)
1646
+ - `pb1` (bottom .25rem)
1647
+ - `pb2` (bottom .5rem)
1648
+ - `pb3` (bottom 1rem)
1649
+ - `pb4` (bottom 2rem)
1650
+ - `pb5` (bottom 4rem)
1651
+ - `pbe-0` (block end 0rem)
1652
+ - `pbe-1` (block end .25rem)
1653
+ - `pbe-2` (block end .5rem)
1654
+ - `pbe-3` (block end 1rem)
1655
+ - `pbe-4` (block end 2rem)
1656
+ - `pbe-5` (block end 4rem)
1657
+ - `pbs-0` (block start 0rem)
1658
+ - `pbs-1` (block start .25rem)
1659
+ - `pbs-2` (block start .5rem)
1660
+ - `pbs-3` (block start 1rem)
1661
+ - `pbs-4` (block start 2rem)
1662
+ - `pbs-5` (block start 4rem)
1663
+ - `ph0` (left 0rem)
1664
+ - `ph1` (left .25rem)
1665
+ - `ph2` (left .5rem)
1666
+ - `ph3` (left 1rem)
1667
+ - `ph4` (left 2rem)
1668
+ - `ph5` (left 4rem)
1669
+ - `pl0` (left 0rem)
1670
+ - `pl1` (left .25rem)
1671
+ - `pl2` (left .5rem)
1672
+ - `pl3` (left 1rem)
1673
+ - `pl4` (left 2rem)
1674
+ - `pl5` (left 4rem)
1675
+ - `pr0` (right 0rem)
1676
+ - `pr1` (right .25rem)
1677
+ - `pr2` (right .5rem)
1678
+ - `pr3` (right 1rem)
1679
+ - `pr4` (right 2rem)
1680
+ - `pr5` (right 4rem)
1681
+ - `pt0` (top 0rem)
1682
+ - `pt1` (top .25rem)
1683
+ - `pt2` (top .5rem)
1684
+ - `pt3` (top 1rem)
1685
+ - `pt4` (top 2rem)
1686
+ - `pt5` (top 4rem)
1687
+ - `pv0` (top 0rem)
1688
+ - `pv1` (top .25rem)
1689
+ - `pv2` (top .5rem)
1690
+ - `pv3` (top 1rem)
1691
+ - `pv4` (top 2rem)
1692
+ - `pv5` (top 4rem)
1693
+
1694
+ #### Positions
1695
+
1696
+ - `absolute`
1697
+ - `bottom-0` (0rem)
1698
+ - `bottom-1` (1rem)
1699
+ - `bottom-2` (2rem)
1700
+ - `bottom--1` (-1rem)
1701
+ - `bottom--2` (-2rem)
1702
+ - `fixed`
1703
+ - `left-0` (0rem)
1704
+ - `left-1` (1rem)
1705
+ - `left-2` (2rem)
1706
+ - `left--1` (-1rem)
1707
+ - `left--2` (-2rem)
1708
+ - `relative`
1709
+ - `right-0` (0rem)
1710
+ - `right-1` (1rem)
1711
+ - `right-2` (2rem)
1712
+ - `right--1` (-1rem)
1713
+ - `right--2` (-2rem)
1714
+ - `static`
1715
+ - `sticky`
1716
+ - `top-0` (0rem)
1717
+ - `top-1` (1rem)
1718
+ - `top-2` (2rem)
1719
+ - `top--1` (-1rem)
1720
+ - `top--2` (-2rem)
1721
+
1722
+ #### Print
1723
+
1724
+ - `break-after-avoid`
1725
+ - `break-after-avoid-column`
1726
+ - `break-after-avoid-page`
1727
+ - `break-after-column`
1728
+ - `break-after-left`
1729
+ - `break-after-page`
1730
+ - `break-after-recto`
1731
+ - `break-after-right`
1732
+ - `break-after-verso`
1733
+ - `break-before-avoid`
1734
+ - `break-before-avoid-column`
1735
+ - `break-before-avoid-page`
1736
+ - `break-before-column`
1737
+ - `break-before-left`
1738
+ - `break-before-page`
1739
+ - `break-before-recto`
1740
+ - `break-before-right`
1741
+ - `break-before-verso`
1742
+
1743
+ #### Scrolling
1744
+
1745
+ - `ss-always` (snap stop)
1746
+ - `ss-both` (snap type)
1747
+ - `ss-center` (snap align)
1748
+ - `ss-end` (snap align)
1749
+ - `ss-normal` (snap stop)
1750
+ - `ss-start` (snap align)
1751
+ - `ss-x` (snap type)
1752
+ - `ss-y` (snap type)
1753
+
1754
+ #### Selection
1755
+
1756
+ - `noselect`
1757
+
1758
+ #### Shadow
1759
+
1760
+ - `box-shadow-1` (0 0 2px 0px #0003)
1761
+ - `box-shadow-2` (0 0 4px #0003)
1762
+ - `box-shadow-3` (0 0 4px 1px #0003)
1763
+ - `box-shadow-4` (0 0 8px 2px #0003)
1764
+ - `box-shadow-i-1` (0 0 2px 0px #0003)
1765
+ - `box-shadow-i-2` (0 0 4px #0003)
1766
+ - `box-shadow-i-3` (0 0 4px 1px #0003)
1767
+ - `box-shadow-i-4` (0 0 8px 2px #0003)
1768
+ - `text-shadow-1` (1px 1px 2px #0003)
1769
+ - `text-shadow-2` (1px 1px 4px #0003)
1770
+ - `text-shadow-3` (1px 1px 8px #0003)
1771
+ - `text-shadow-4` (2px 2px 2px #0003)
1772
+ - `text-shadow-5` (2px 2px 4px #0003)
1773
+ - `text-shadow-6` (2px 2px 8px #0003)
1774
+ - `text-shadow-7` (3px 3px 2px #0003)
1775
+ - `text-shadow-8` (3px 3px 4px #0003)
1776
+ - `text-shadow-9` (3px 3px 8px #0003)
1777
+
1778
+ #### Svg
1779
+
1780
+ - `fill-black` (#000)
1781
+ - `fill-blue` (#357edd)
1782
+ - `fill-current` (currentcolor)
1783
+ - `fill-dark-blue` (#00449e)
1784
+ - `fill-dark-gray` (#333)
1785
+ - `fill-dark-green` (#137752)
1786
+ - `fill-dark-pink` (#d5008f)
1787
+ - `fill-dark-red` (#e7040f)
1788
+ - `fill-gold` (#ffb700)
1789
+ - `fill-gray` (#777)
1790
+ - `fill-green` (#19a974)
1791
+ - `fill-hot-pink` (#ff41b4)
1792
+ - `fill-light-blue` (#96ccff)
1793
+ - `fill-light-gray` (#eee)
1794
+ - `fill-light-green` (#9eebcf)
1795
+ - `fill-light-pink` (#ffa3d7)
1796
+ - `fill-light-purple` (#a463f2)
1797
+ - `fill-light-red` (#ff725c)
1798
+ - `fill-light-silver` (#aaa)
1799
+ - `fill-light-yellow` (#fbf1a9)
1800
+ - `fill-lightest-blue` (#cdecff)
1801
+ - `fill-mid-gray` (#555)
1802
+ - `fill-moon-gray` (#ccc)
1803
+ - `fill-navy` (#001b44)
1804
+ - `fill-near-black` (#111)
1805
+ - `fill-near-white` (#f4f4f4)
1806
+ - `fill-orange` (#ff6300)
1807
+ - `fill-pink` (#ff80cc)
1808
+ - `fill-purple` (#5e2ca5)
1809
+ - `fill-red` (#ff4136)
1810
+ - `fill-silver` (#999)
1811
+ - `fill-transparent` (transparent)
1812
+ - `fill-washed-blue` (#f6fffe)
1813
+ - `fill-washed-green` (#e8fdf5)
1814
+ - `fill-washed-red` (#ffdfdf)
1815
+ - `fill-washed-yellow` (#fffceb)
1816
+ - `fill-white` (#fff)
1817
+ - `fill-yellow` (#ffd700)
1818
+ - `stroke-black` (#000)
1819
+ - `stroke-blue` (#357edd)
1820
+ - `stroke-current` (currentcolor)
1821
+ - `stroke-dark-blue` (#00449e)
1822
+ - `stroke-dark-gray` (#333)
1823
+ - `stroke-dark-green` (#137752)
1824
+ - `stroke-dark-pink` (#d5008f)
1825
+ - `stroke-dark-red` (#e7040f)
1826
+ - `stroke-gold` (#ffb700)
1827
+ - `stroke-gray` (#777)
1828
+ - `stroke-green` (#19a974)
1829
+ - `stroke-hot-pink` (#ff41b4)
1830
+ - `stroke-light-blue` (#96ccff)
1831
+ - `stroke-light-gray` (#eee)
1832
+ - `stroke-light-green` (#9eebcf)
1833
+ - `stroke-light-pink` (#ffa3d7)
1834
+ - `stroke-light-purple` (#a463f2)
1835
+ - `stroke-light-red` (#ff725c)
1836
+ - `stroke-light-silver` (#aaa)
1837
+ - `stroke-light-yellow` (#fbf1a9)
1838
+ - `stroke-lightest-blue` (#cdecff)
1839
+ - `stroke-mid-gray` (#555)
1840
+ - `stroke-moon-gray` (#ccc)
1841
+ - `stroke-navy` (#001b44)
1842
+ - `stroke-near-black` (#111)
1843
+ - `stroke-near-white` (#f4f4f4)
1844
+ - `stroke-orange` (#ff6300)
1845
+ - `stroke-pink` (#ff80cc)
1846
+ - `stroke-purple` (#5e2ca5)
1847
+ - `stroke-red` (#ff4136)
1848
+ - `stroke-silver` (#999)
1849
+ - `stroke-transparent` (transparent)
1850
+ - `stroke-washed-blue` (#f6fffe)
1851
+ - `stroke-washed-green` (#e8fdf5)
1852
+ - `stroke-washed-red` (#ffdfdf)
1853
+ - `stroke-washed-yellow` (#fffceb)
1854
+ - `stroke-white` (#fff)
1855
+ - `stroke-yellow` (#ffd700)
1856
+
1857
+ #### Text align
1858
+
1859
+ - `tc` (center)
1860
+ - `tj` (justify)
1861
+ - `tl` (left)
1862
+ - `tr` (right)
1863
+
1864
+ #### Text decorations
1865
+
1866
+ - `no-underline`
1867
+ - `strike`
1868
+ - `underline`
1869
+
1870
+ #### Text transforms
1871
+
1872
+ - `ttc` (capitalize)
1873
+ - `ttfsk` (full-size-kana)
1874
+ - `ttfw` (full-width)
1875
+ - `tti` (initial)
1876
+ - `ttl` (lowercase)
1877
+ - `ttn` (none)
1878
+ - `ttu` (uppercase)
1879
+
1880
+ #### Vertical align
1881
+
1882
+ - `v-base` (baseline)
1883
+ - `v-btm` (bottom)
1884
+ - `v-mid` (middle)
1885
+ - `v-top` (top)
1886
+
1887
+ #### Visibility
1888
+
1889
+ - `collapse`
1890
+ - `hidden`
1891
+ - `visible`
1892
+
1893
+ #### Whitespace
1894
+
1895
+ - `ws-normal`
1896
+ - `ws-nowrap`
1897
+ - `ws-pre`
1898
+
1899
+ #### Width
1900
+
1901
+ - `vw-25`
1902
+ - `vw-50`
1903
+ - `vw-75`
1904
+ - `vw-100`
1905
+ - `w1` (1rem)
1906
+ - `w2` (2rem)
1907
+ - `w3` (4rem)
1908
+ - `w4` (8rem)
1909
+ - `w5` (16rem)
1910
+ - `w-10` (%)
1911
+ - `w-16` (%)
1912
+ - `w-17` (%)
1913
+ - `w-20` (%)
1914
+ - `w-25` (%)
1915
+ - `w-30` (%)
1916
+ - `w-33` (%)
1917
+ - `w-34` (%)
1918
+ - `w-40` (%)
1919
+ - `w-50` (%)
1920
+ - `w-60` (%)
1921
+ - `w-66` (%)
1922
+ - `w-67` (%)
1923
+ - `w-70` (%)
1924
+ - `w-75` (%)
1925
+ - `w-80` (%)
1926
+ - `w-83` (%)
1927
+ - `w-84` (%)
1928
+ - `w-90` (%)
1929
+ - `w-100` (%)
1930
+
1931
+ #### Z-indices
1932
+
1933
+ - `z-0`
1934
+ - `z-1`
1935
+ - `z-2`
1936
+ - `z-3`
1937
+ - `z-4`
1938
+ - `z-5`
1939
+ - `z-999`
1940
+ - `z-9999`
827
1941
 
828
- `screen-reader` / `screen-reader-focus`
1942
+ ### Templates by category
829
1943
 
830
- #### Animations / transitions <!-- notoc -->
1944
+ #### Animation / transition
831
1945
 
832
- `anim-alternate` / `anim-alternate-reverse` / `anim-normal` / `anim-reverse` / `bg-anim1` / `bg-anim2` / `bg-anim3` / `fadein1` / `fadein2` / `fadein3` / `fadeout1` / `fadeout2` / `fadeout3` / `spin1` / `spin2` / `spin3`
1946
+ ##### `anim-delay(delay)`
833
1947
 
834
- #### Aspect ratios <!-- notoc -->
1948
+ - **delay**: time (in seconds)
835
1949
 
836
- `aspect-ratio-1x1` / `aspect-ratio-1x2` / `aspect-ratio-2x1` / `aspect-ratio-2x3` / `aspect-ratio-3x2` / `aspect-ratio-3x4` / `aspect-ratio-4x3` / `aspect-ratio-5x7` / `aspect-ratio-7x5` / `aspect-ratio-9x16` / `aspect-ratio-16x9` / `bg-aspect-ratio-1x1` / `bg-aspect-ratio-1x2` / `bg-aspect-ratio-2x1` / `bg-aspect-ratio-2x3` / `bg-aspect-ratio-3x2` / `bg-aspect-ratio-3x4` / `bg-aspect-ratio-4x3` / `bg-aspect-ratio-5x7` / `bg-aspect-ratio-7x5` / `bg-aspect-ratio-9x16` / `bg-aspect-ratio-16x9` / `bg-aspect-ratio-object`
1950
+ ##### `anim-iter(iter)`
837
1951
 
838
- #### Background <!-- notoc -->
1952
+ - **iter**: number of iterations
839
1953
 
840
- `bg-contain` / `bg-cover` / `bg-pos-center` / `bg-pos-e` / `bg-pos-n` / `bg-pos-ne` / `bg-pos-nw` / `bg-pos-s` / `bg-pos-se` / `bg-pos-sw` / `bg-pos-w`
1954
+ ##### `anim-steps(steps)`
841
1955
 
842
- #### Border radius <!-- notoc -->
1956
+ - **steps**: number of steps
843
1957
 
844
- `br0` / `br1` / `br2` / `br3` / `br4` / `br-100` / `br-pill` / `brb0` / `brb1` / `brb2` / `brb3` / `brb4` / `brl0` / `brl1` / `brl2` / `brl3` / `brl4` / `brr0` / `brr1` / `brr2` / `brr3` / `brr4` / `brt0` / `brt1` / `brt2` / `brt3` / `brt4`
1958
+ ##### `bg-anim(duration)`
845
1959
 
846
- #### Border width <!-- notoc -->
1960
+ - **duration**: in seconds
847
1961
 
848
- `bw0` / `bw1` / `bw2` / `bw3` / `bw4` / `bw5` / `bw-1px` / `bwb0` / `bwb1` / `bwb2` / `bwb3` / `bwb4` / `bwb5` / `bwb-1px` / `bwl0` / `bwl1` / `bwl2` / `bwl3` / `bwl4` / `bwl5` / `bwl-1px` / `bwr0` / `bwr1` / `bwr2` / `bwr3` / `bwr4` / `bwr5` / `bwr-1px` / `bwt0` / `bwt1` / `bwt2` / `bwt3` / `bwt4` / `bwt5` / `bwt-1px`
1962
+ Transition to tween background color
849
1963
 
850
- #### Colors <!-- notoc -->
1964
+ ##### `fade-in(duration)`
851
1965
 
852
- `b--color-black` / `b--color-blue` / `b--color-current` / `b--color-dark-blue` / `b--color-dark-gray` / `b--color-dark-green` / `b--color-dark-pink` / `b--color-dark-red` / `b--color-gold` / `b--color-gray` / `b--color-green` / `b--color-hot-pink` / `b--color-light-blue` / `b--color-light-gray` / `b--color-light-green` / `b--color-light-pink` / `b--color-light-purple` / `b--color-light-red` / `b--color-light-silver` / `b--color-light-yellow` / `b--color-lightest-blue` / `b--color-mid-gray` / `b--color-moon-gray` / `b--color-navy` / `b--color-near-black` / `b--color-near-white` / `b--color-orange` / `b--color-pink` / `b--color-purple` / `b--color-red` / `b--color-silver` / `b--color-transparent` / `b--color-washed-blue` / `b--color-washed-green` / `b--color-washed-red` / `b--color-washed-yellow` / `b--color-white` / `b--color-yellow` / `b--color1` / `b--color2` / `b--color3` / `b--color4` / `b--color5` / `b--color6` / `b--color7` / `b--color8` / `b--color9` / `b--color10` / `b--color11` / `b--color12` / `b--color13` / `b--color14` / `b--color15` / `b--color16` / `bg-color-black` / `bg-color-blue` / `bg-color-current` / `bg-color-dark-blue` / `bg-color-dark-gray` / `bg-color-dark-green` / `bg-color-dark-pink` / `bg-color-dark-red` / `bg-color-gold` / `bg-color-gray` / `bg-color-green` / `bg-color-hot-pink` / `bg-color-light-blue` / `bg-color-light-gray` / `bg-color-light-green` / `bg-color-light-pink` / `bg-color-light-purple` / `bg-color-light-red` / `bg-color-light-silver` / `bg-color-light-yellow` / `bg-color-lightest-blue` / `bg-color-mid-gray` / `bg-color-moon-gray` / `bg-color-navy` / `bg-color-near-black` / `bg-color-near-white` / `bg-color-orange` / `bg-color-pink` / `bg-color-purple` / `bg-color-red` / `bg-color-silver` / `bg-color-transparent` / `bg-color-washed-blue` / `bg-color-washed-green` / `bg-color-washed-red` / `bg-color-washed-yellow` / `bg-color-white` / `bg-color-yellow` / `bg-color1` / `bg-color2` / `bg-color3` / `bg-color4` / `bg-color5` / `bg-color6` / `bg-color7` / `bg-color8` / `bg-color9` / `bg-color10` / `bg-color11` / `bg-color12` / `bg-color13` / `bg-color14` / `bg-color15` / `bg-color16` / `color-black` / `color-blue` / `color-current` / `color-dark-blue` / `color-dark-gray` / `color-dark-green` / `color-dark-pink` / `color-dark-red` / `color-gold` / `color-gray` / `color-green` / `color-hot-pink` / `color-light-blue` / `color-light-gray` / `color-light-green` / `color-light-pink` / `color-light-purple` / `color-light-red` / `color-light-silver` / `color-light-yellow` / `color-lightest-blue` / `color-mid-gray` / `color-moon-gray` / `color-navy` / `color-near-black` / `color-near-white` / `color-orange` / `color-pink` / `color-purple` / `color-red` / `color-silver` / `color-transparent` / `color-washed-blue` / `color-washed-green` / `color-washed-red` / `color-washed-yellow` / `color-white` / `color-yellow` / `color1` / `color2` / `color3` / `color4` / `color5` / `color6` / `color7` / `color8` / `color9` / `color10` / `color11` / `color12` / `color13` / `color14` / `color15` / `color16` / `fill-color-black` / `fill-color-blue` / `fill-color-current` / `fill-color-dark-blue` / `fill-color-dark-gray` / `fill-color-dark-green` / `fill-color-dark-pink` / `fill-color-dark-red` / `fill-color-gold` / `fill-color-gray` / `fill-color-green` / `fill-color-hot-pink` / `fill-color-light-blue` / `fill-color-light-gray` / `fill-color-light-green` / `fill-color-light-pink` / `fill-color-light-purple` / `fill-color-light-red` / `fill-color-light-silver` / `fill-color-light-yellow` / `fill-color-lightest-blue` / `fill-color-mid-gray` / `fill-color-moon-gray` / `fill-color-navy` / `fill-color-near-black` / `fill-color-near-white` / `fill-color-orange` / `fill-color-pink` / `fill-color-purple` / `fill-color-red` / `fill-color-silver` / `fill-color-transparent` / `fill-color-washed-blue` / `fill-color-washed-green` / `fill-color-washed-red` / `fill-color-washed-yellow` / `fill-color-white` / `fill-color-yellow` / `fill-color1` / `fill-color2` / `fill-color3` / `fill-color4` / `fill-color5` / `fill-color6` / `fill-color7` / `fill-color8` / `fill-color9` / `fill-color10` / `fill-color11` / `fill-color12` / `fill-color13` / `fill-color14` / `fill-color15` / `fill-color16` / `o-0` / `o-10` / `o-20` / `o-30` / `o-40` / `o-50` / `o-60` / `o-70` / `o-80` / `o-90` / `o-100` / `stroke-color-black` / `stroke-color-blue` / `stroke-color-current` / `stroke-color-dark-blue` / `stroke-color-dark-gray` / `stroke-color-dark-green` / `stroke-color-dark-pink` / `stroke-color-dark-red` / `stroke-color-gold` / `stroke-color-gray` / `stroke-color-green` / `stroke-color-hot-pink` / `stroke-color-light-blue` / `stroke-color-light-gray` / `stroke-color-light-green` / `stroke-color-light-pink` / `stroke-color-light-purple` / `stroke-color-light-red` / `stroke-color-light-silver` / `stroke-color-light-yellow` / `stroke-color-lightest-blue` / `stroke-color-mid-gray` / `stroke-color-moon-gray` / `stroke-color-navy` / `stroke-color-near-black` / `stroke-color-near-white` / `stroke-color-orange` / `stroke-color-pink` / `stroke-color-purple` / `stroke-color-red` / `stroke-color-silver` / `stroke-color-transparent` / `stroke-color-washed-blue` / `stroke-color-washed-green` / `stroke-color-washed-red` / `stroke-color-washed-yellow` / `stroke-color-white` / `stroke-color-yellow` / `stroke-color1` / `stroke-color2` / `stroke-color3` / `stroke-color4` / `stroke-color5` / `stroke-color6` / `stroke-color7` / `stroke-color8` / `stroke-color9` / `stroke-color10` / `stroke-color11` / `stroke-color12` / `stroke-color13` / `stroke-color14` / `stroke-color15` / `stroke-color16`
1966
+ - **duration**: in seconds
853
1967
 
854
- #### Content <!-- notoc -->
1968
+ Animation to change opacity
855
1969
 
856
- `content-data-lang` / `content-href` / `content-id` / `content-name` / `content-slot` / `content-title`
1970
+ ##### `fade-out(duration)`
857
1971
 
858
- #### Cursors <!-- notoc -->
1972
+ - **duration**: in seconds
859
1973
 
860
- `cursor-alias` / `cursor-auto` / `cursor-cell` / `cursor-col` / `cursor-context` / `cursor-copy` / `cursor-cross` / `cursor-default` / `cursor-e` / `cursor-ew` / `cursor-forbidden` / `cursor-grab` / `cursor-grabbing` / `cursor-help` / `cursor-in` / `cursor-move` / `cursor-n` / `cursor-ne` / `cursor-news` / `cursor-no-drop` / `cursor-none` / `cursor-ns` / `cursor-nw` / `cursor-nwse` / `cursor-out` / `cursor-pointer` / `cursor-progress` / `cursor-row` / `cursor-s` / `cursor-scroll` / `cursor-se` / `cursor-sw` / `cursor-text` / `cursor-vtext` / `cursor-w` / `cursor-wait`
1974
+ Animation to change opacity
861
1975
 
862
- #### Display mode <!-- notoc -->
1976
+ ##### `shrink(duration, height)`
863
1977
 
864
- `db` / `di` / `dib` / `dif` / `dig` / `dn` / `dt` / `dtc` / `dtr` / `flex` / `grid`
1978
+ - **duration**: in seconds
1979
+ - **height**: initial height (incl. units)
865
1980
 
866
- #### Flex layout <!-- notoc -->
1981
+ Animation which shrinks the height from given initial value to zero. Target element must NOT have padding (use a wrapper if necessary).
867
1982
 
868
- `align-content-center` / `align-content-end` / `align-content-start` / `flex-column` / `flex-column-reverse` / `flex-grow0` / `flex-grow1` / `flex-nowrap` / `flex-row` / `flex-row-reverse` / `flex-shrink0` / `flex-shrink1` / `flex-wrap` / `flex-wrap-reverse` / `justify-content-center` / `justify-content-end` / `justify-content-start`
1983
+ ##### `spin(duration)`
869
1984
 
870
- #### Font families <!-- notoc -->
1985
+ - **duration**: in seconds
871
1986
 
872
- `monospace` / `sans-serif` / `serif` / `system` / `system-sans-serif` / `system-serif`
1987
+ Animation which rotates element a full turn, looping indefinitely
873
1988
 
874
- #### Font sizes <!-- notoc -->
1989
+ #### Aspect ratios
875
1990
 
876
- `f-subtitle` / `f-title` / `f1` / `f2` / `f3` / `f4` / `f5` / `f6` / `f7`
1991
+ ##### `aspect-ratio(width, height)`
877
1992
 
878
- #### Font style <!-- notoc -->
1993
+ - **width**: aspect width
1994
+ - **height**: aspect height
879
1995
 
880
- `italic`
1996
+ Sets `aspect-ratio` CSS property
881
1997
 
882
- #### Font variants <!-- notoc -->
1998
+ ##### `bg-aspect-ratio(width, height)`
883
1999
 
884
- `small-caps`
2000
+ - **width**: aspect width
2001
+ - **height**: aspect height
885
2002
 
886
- #### Font weights <!-- notoc -->
2003
+ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child element.
887
2004
 
888
- `b` / `fw100` / `fw200` / `fw300` / `fw400` / `fw500` / `fw600` / `fw700` / `fw800` / `fw900` / `normal`
2005
+ #### Border color
889
2006
 
890
- #### Grid layout <!-- notoc -->
2007
+ ##### `border-color(name)`
891
2008
 
892
- `align-items-center` / `align-items-end` / `align-items-start` / `align-items-stretch` / `align-self-center` / `align-self-end` / `align-self-start` / `align-self-stretch` / `gap0` / `gap1` / `gap2` / `gap3` / `gap4` / `gap5` / `gap-1px` / `gap-2px` / `gap-4px` / `gap-8px` / `grid-cols-1` / `grid-cols-2` / `grid-cols-3` / `grid-cols-4` / `grid-cols-5` / `grid-cols-6` / `grid-cols-7` / `grid-cols-8` / `grid-cols-9` / `grid-cols-10` / `grid-rows-1` / `grid-rows-2` / `grid-rows-3` / `grid-rows-4` / `grid-rows-5` / `grid-rows-6` / `grid-rows-7` / `grid-rows-8` / `grid-rows-9` / `grid-rows-10` / `justify-items-center` / `justify-items-end` / `justify-items-start` / `justify-items-stretch` / `justify-self-center` / `justify-self-end` / `justify-self-start` / `justify-self-stretch`
2009
+ - **name**: variable name (without `--` prefix)
893
2010
 
894
- #### Height <!-- notoc -->
2011
+ #### Color adjustment
895
2012
 
896
- `h1` / `h2` / `h3` / `h4` / `h5` / `h-10` / `h-16` / `h-17` / `h-20` / `h-25` / `h-30` / `h-33` / `h-34` / `h-40` / `h-50` / `h-60` / `h-66` / `h-67` / `h-70` / `h-75` / `h-80` / `h-83` / `h-84` / `h-90` / `h-100` / `vh-25` / `vh-50` / `vh-75` / `vh-100`
2013
+ ##### `adjust-hsl(prop, name, hue, sat, lum, alpha)`
897
2014
 
898
- #### Icons <!-- notoc -->
2015
+ - **prop**: CSS target property
2016
+ - **name**: color variable name (without `--` prefix)
2017
+ - **hue**: offset in degrees
2018
+ - **sat**: factor
2019
+ - **lum**: factor
2020
+ - **alpha**: factor
899
2021
 
900
- `icon-1` / `icon-2` / `icon-3` / `icon-4` / `icon-5` / `icon-6` / `icon-7` / `icon-subtitle` / `icon-title`
2022
+ Assigns an adjusted version of a `def-hsl()`-defined color to given CSS property.
901
2023
 
902
- #### Letter spacing <!-- notoc -->
2024
+ ##### `adjust-lch(prop, name, luma, chroma, hue, alpha)`
903
2025
 
904
- `ls-0` / `ls-1` / `ls-2` / `ls-3` / `ls--1` / `ls--2`
2026
+ - **prop**: CSS target property
2027
+ - **name**: color variable name (without `--` prefix)
2028
+ - **luma**: factor
2029
+ - **chroma**: factor
2030
+ - **hue**: offset in degrees
2031
+ - **alpha**: factor
905
2032
 
906
- #### Line heights <!-- notoc -->
2033
+ Assigns an adjusted version of a `def-lch()` defined color to given CSS property.
907
2034
 
908
- `lh-0` / `lh-copy` / `lh-double` / `lh-solid` / `lh-title`
2035
+ ##### `adjust-oklch(prop, name, luma, chroma, hue, alpha)`
909
2036
 
910
- #### Lists <!-- notoc -->
2037
+ - **prop**: CSS target property
2038
+ - **name**: color variable name (without `--` prefix)
2039
+ - **luma**: factor
2040
+ - **chroma**: factor
2041
+ - **hue**: offset in degrees
2042
+ - **alpha**: alpha factor
911
2043
 
912
- `list`
2044
+ Assigns an adjusted version of a `def-oklch()` defined color to given CSS property.
913
2045
 
914
- #### Margin <!-- notoc -->
2046
+ ##### `adjust-rgb(prop, name, red, green, blue, alpha)`
915
2047
 
916
- `center` / `ma0` / `ma1` / `ma2` / `ma3` / `ma4` / `ma5` / `mb0` / `mb1` / `mb2` / `mb3` / `mb4` / `mb5` / `mbe-0` / `mbe-1` / `mbe-2` / `mbe-3` / `mbe-4` / `mbe-5` / `mbs-0` / `mbs-1` / `mbs-2` / `mbs-3` / `mbs-4` / `mbs-5` / `mh0` / `mh1` / `mh2` / `mh3` / `mh4` / `mh5` / `ml0` / `ml1` / `ml2` / `ml3` / `ml4` / `ml5` / `mr0` / `mr1` / `mr2` / `mr3` / `mr4` / `mr5` / `mt0` / `mt1` / `mt2` / `mt3` / `mt4` / `mt5` / `mv0` / `mv1` / `mv2` / `mv3` / `mv4` / `mv5`
2048
+ - **prop**: CSS target property
2049
+ - **name**: color variable name (without `--` prefix)
2050
+ - **red**: factor
2051
+ - **green**: factor
2052
+ - **blue**: factor
2053
+ - **alpha**: factor
917
2054
 
918
- #### Max. height <!-- notoc -->
2055
+ Assigns an adjusted version of a `def-rgb()`-defined color to given CSS property.
919
2056
 
920
- `maxh1` / `maxh2` / `maxh3` / `maxh4` / `maxh5` / `maxh-10` / `maxh-16` / `maxh-17` / `maxh-20` / `maxh-25` / `maxh-30` / `maxh-33` / `maxh-34` / `maxh-40` / `maxh-50` / `maxh-60` / `maxh-66` / `maxh-67` / `maxh-70` / `maxh-75` / `maxh-80` / `maxh-83` / `maxh-84` / `maxh-90` / `maxh-100`
2057
+ #### Color definitions
921
2058
 
922
- #### Max. width <!-- notoc -->
2059
+ ##### `def-hsl(name, hue, sat, lum, alpha)`
923
2060
 
924
- `maxw1` / `maxw2` / `maxw3` / `maxw4` / `maxw5` / `maxw-10` / `maxw-16` / `maxw-17` / `maxw-20` / `maxw-25` / `maxw-30` / `maxw-33` / `maxw-34` / `maxw-40` / `maxw-50` / `maxw-60` / `maxw-66` / `maxw-67` / `maxw-70` / `maxw-75` / `maxw-80` / `maxw-83` / `maxw-84` / `maxw-90` / `maxw-100`
2061
+ - **name**: variable name (without `--` prefix)
2062
+ - **hue**: in degrees
2063
+ - **sat**: in percent
2064
+ - **lum**: in percent
2065
+ - **alpha**: in [0,1] range
925
2066
 
926
- #### Min. height <!-- notoc -->
2067
+ Defines a hsl() color variable with given name and additional derived vars for each channel (e.g. `--name-hue`). Use `adjust-hsl()` to create derived versions from this base color.
927
2068
 
928
- `minh1` / `minh2` / `minh3` / `minh4` / `minh5` / `minh-10` / `minh-16` / `minh-17` / `minh-20` / `minh-25` / `minh-30` / `minh-33` / `minh-34` / `minh-40` / `minh-50` / `minh-60` / `minh-66` / `minh-67` / `minh-70` / `minh-75` / `minh-80` / `minh-83` / `minh-84` / `minh-90` / `minh-100`
2069
+ ##### `def-lch(name, luma, chroma, hue, alpha)`
929
2070
 
930
- #### Min. width <!-- notoc -->
2071
+ - **name**: variable name
2072
+ - **luma**: in percent
2073
+ - **chroma**: in percent
2074
+ - **hue**: in degrees
2075
+ - **alpha**: in [0,1] range
931
2076
 
932
- `minw1` / `minw2` / `minw3` / `minw4` / `minw5` / `minw-10` / `minw-16` / `minw-17` / `minw-20` / `minw-25` / `minw-30` / `minw-33` / `minw-34` / `minw-40` / `minw-50` / `minw-60` / `minw-66` / `minw-67` / `minw-70` / `minw-75` / `minw-80` / `minw-83` / `minw-84` / `minw-90` / `minw-100`
2077
+ Defines a lch() color variable with given name and additional derived vars for each channel (e.g. `--name-hue`). Use `adjust-lch()` to create derived versions from this base color.
933
2078
 
934
- #### Overflow <!-- notoc -->
2079
+ ##### `def-oklch(name, luma, chroma, hue, alpha)`
935
2080
 
936
- `overflow-auto` / `overflow-hidden` / `overflow-scroll` / `overflow-visible` / `overflow-x-auto` / `overflow-x-hidden` / `overflow-x-scroll` / `overflow-x-visible` / `overflow-y-auto` / `overflow-y-hidden` / `overflow-y-scroll` / `overflow-y-visible`
2081
+ - **name**: variable name
2082
+ - **luma**: in percent
2083
+ - **chroma**: in percent
2084
+ - **hue**: in degrees
2085
+ - **alpha**: in [0,1] range
937
2086
 
938
- #### Padding <!-- notoc -->
2087
+ Defines a oklch() color variable with given name and additional derived vars for each channel (e.g. `--name-hue`). Use `adjust-oklch()` to create derived versions from this base color.
939
2088
 
940
- `pa0` / `pa1` / `pa2` / `pa3` / `pa4` / `pa5` / `pb0` / `pb1` / `pb2` / `pb3` / `pb4` / `pb5` / `pbe-0` / `pbe-1` / `pbe-2` / `pbe-3` / `pbe-4` / `pbe-5` / `pbs-0` / `pbs-1` / `pbs-2` / `pbs-3` / `pbs-4` / `pbs-5` / `ph0` / `ph1` / `ph2` / `ph3` / `ph4` / `ph5` / `pl0` / `pl1` / `pl2` / `pl3` / `pl4` / `pl5` / `pr0` / `pr1` / `pr2` / `pr3` / `pr4` / `pr5` / `pt0` / `pt1` / `pt2` / `pt3` / `pt4` / `pt5` / `pv0` / `pv1` / `pv2` / `pv3` / `pv4` / `pv5`
2089
+ ##### `def-rgb(name, red, green, blue, alpha)`
941
2090
 
942
- #### Positions <!-- notoc -->
2091
+ - **name**: variable name (without `--` prefix)
2092
+ - **red**: [0,255] range
2093
+ - **green**: [0,255] range
2094
+ - **blue**: [0,255] range
2095
+ - **alpha**: in [0,1] range
943
2096
 
944
- `absolute` / `bottom-0` / `bottom-1` / `bottom-2` / `bottom--1` / `bottom--2` / `fixed` / `left-0` / `left-1` / `left-2` / `left--1` / `left--2` / `relative` / `right-0` / `right-1` / `right-2` / `right--1` / `right--2` / `static` / `sticky` / `top-0` / `top-1` / `top-2` / `top--1` / `top--2`
2097
+ Defines a rgb() color variable with given name and additional derived vars for each channel (e.g. `--name-red`). Use `adjust-rgb()` to create derived versions from this base color.
945
2098
 
946
- #### Print <!-- notoc -->
2099
+ #### Colors
947
2100
 
948
- `break-after-avoid` / `break-after-avoid-column` / `break-after-avoid-page` / `break-after-column` / `break-after-left` / `break-after-page` / `break-after-recto` / `break-after-right` / `break-after-verso` / `break-before-avoid` / `break-before-avoid-column` / `break-before-avoid-page` / `break-before-column` / `break-before-left` / `break-before-page` / `break-before-recto` / `break-before-right` / `break-before-verso`
2101
+ ##### `bg-color(name)`
949
2102
 
950
- #### Scrolling <!-- notoc -->
2103
+ - **name**: variable name (without `--` prefix)
951
2104
 
952
- `ss-always` / `ss-both` / `ss-center` / `ss-end` / `ss-normal` / `ss-start` / `ss-x` / `ss-y`
2105
+ ##### `color(name)`
953
2106
 
954
- #### Selection <!-- notoc -->
2107
+ - **name**: variable name (without `--` prefix)
955
2108
 
956
- `noselect`
2109
+ #### Grid layout
957
2110
 
958
- #### Shadow <!-- notoc -->
2111
+ ##### `grid-cols(cols)`
959
2112
 
960
- `box-shadow-1` / `box-shadow-2` / `box-shadow-3` / `box-shadow-4` / `box-shadow-i-1` / `box-shadow-i-2` / `box-shadow-i-3` / `box-shadow-i-4` / `text-shadow-1` / `text-shadow-2` / `text-shadow-3` / `text-shadow-4` / `text-shadow-5` / `text-shadow-6` / `text-shadow-7` / `text-shadow-8` / `text-shadow-9`
2113
+ - **cols**: CSS cols definitions
961
2114
 
962
- #### Text align <!-- notoc -->
2115
+ ##### `grid-rows(rows)`
963
2116
 
964
- `tc` / `tj` / `tl` / `tr`
2117
+ - **rows**: CSS rows definitions
965
2118
 
966
- #### Text decorations <!-- notoc -->
2119
+ #### Positions
967
2120
 
968
- `no-underline` / `strike` / `underline`
2121
+ ##### `bottom(coordinate)`
969
2122
 
970
- #### Text transforms <!-- notoc -->
2123
+ - **coordinate** (incl. units)
971
2124
 
972
- `ttc` / `ttfsk` / `ttfw` / `tti` / `ttl` / `ttn` / `ttu`
2125
+ ##### `left(coordinate)`
973
2126
 
974
- #### Vertical align <!-- notoc -->
2127
+ - **coordinate** (incl. units)
975
2128
 
976
- `v-base` / `v-btm` / `v-mid` / `v-top`
2129
+ ##### `right(coordinate)`
977
2130
 
978
- #### Visibility <!-- notoc -->
2131
+ - **coordinate** (incl. units)
979
2132
 
980
- `collapse` / `hidden` / `visible`
2133
+ ##### `top(coordinate)`
981
2134
 
982
- #### Whitespace <!-- notoc -->
2135
+ - **coordinate** (incl. units)
983
2136
 
984
- `ws-0` / `ws-1` / `ws-2`
2137
+ #### Svg
985
2138
 
986
- #### Width <!-- notoc -->
2139
+ ##### `fill(name)`
987
2140
 
988
- `vw-25` / `vw-50` / `vw-75` / `vw-100` / `w1` / `w2` / `w3` / `w4` / `w5` / `w-10` / `w-16` / `w-17` / `w-20` / `w-25` / `w-30` / `w-33` / `w-34` / `w-40` / `w-50` / `w-60` / `w-66` / `w-67` / `w-70` / `w-75` / `w-80` / `w-83` / `w-84` / `w-90` / `w-100`
2141
+ - **name**: variable name (without `--` prefix)
989
2142
 
990
- #### Z-indices <!-- notoc -->
2143
+ ##### `stroke(name)`
991
2144
 
992
- `z-0` / `z-1` / `z-2` / `z-3` / `z-4` / `z-5` / `z-999` / `z-9999`
2145
+ - **name**: variable name (without `--` prefix)
993
2146
 
994
2147
  ### Media queries
995
2148
 
@@ -1000,6 +2153,7 @@ Currently, there are 940 CSS utility classes defined in MetaCSS base v0.7.0:
1000
2153
  - **light**: `{"prefers-color-scheme":"light"}`
1001
2154
  - **anim**: `{"prefers-reduced-motion":false}`
1002
2155
  - **noanim**: `{"prefers-reduced-motion":true}`
2156
+ - **contrast**: `{"forced-colors":true}`
1003
2157
 
1004
2158
  ## Status
1005
2159
 
@@ -1022,7 +2176,7 @@ distributed as CLI bundle with **no runtime dependencies**. The following
1022
2176
  dependencies are only shown for informational purposes and are (partially)
1023
2177
  included in the bundle.
1024
2178
 
1025
- Package sizes (brotli'd, pre-treeshake): ESM: 12.25 KB
2179
+ Package sizes (brotli'd, pre-treeshake): ESM: 12.83 KB
1026
2180
 
1027
2181
  ## Dependencies
1028
2182