@thi.ng/meta-css 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/README.md +466 -157
- package/index.js +6 -6
- package/package.json +22 -18
- package/specs/_info.mcss.json +6 -6
- package/specs/borders.mcss.json +4 -4
- package/specs/box-sizing.mcss.json +10 -0
- package/specs/colors.mcss.json +23 -23
- package/specs/normalize.mcss.json +1 -0
- package/specs/typography.mcss.json +10 -0
package/README.md
CHANGED
|
@@ -36,16 +36,20 @@
|
|
|
36
36
|
- [Force inclusion of unreferenced classes](#force-inclusion-of-unreferenced-classes)
|
|
37
37
|
- [Exporting a generated framework as CSS](#exporting-a-generated-framework-as-css)
|
|
38
38
|
- [Media query variations](#media-query-variations)
|
|
39
|
+
- [Development mode](#development-mode)
|
|
40
|
+
- [Documenting a generated framework](#documenting-a-generated-framework)
|
|
41
|
+
- [Documentation metadata](#documentation-metadata)
|
|
39
42
|
- [Bundled CSS base framework](#bundled-css-base-framework)
|
|
40
43
|
- [Classes by category](#classes-by-category)
|
|
41
44
|
- [Accessibility](#accessibility)
|
|
42
45
|
- [Animation / transition](#animation--transition)
|
|
43
46
|
- [Aspect ratios](#aspect-ratios)
|
|
44
47
|
- [Background](#background)
|
|
48
|
+
- [Background color](#background-color)
|
|
45
49
|
- [Border color](#border-color)
|
|
46
50
|
- [Border radius](#border-radius)
|
|
47
51
|
- [Border width](#border-width)
|
|
48
|
-
- [
|
|
52
|
+
- [Box sizing](#box-sizing)
|
|
49
53
|
- [Content](#content)
|
|
50
54
|
- [Cursors](#cursors)
|
|
51
55
|
- [Display mode](#display-mode)
|
|
@@ -77,6 +81,7 @@
|
|
|
77
81
|
- [Shadow](#shadow)
|
|
78
82
|
- [Svg](#svg)
|
|
79
83
|
- [Text align](#text-align)
|
|
84
|
+
- [Text color](#text-color)
|
|
80
85
|
- [Text decorations](#text-decorations)
|
|
81
86
|
- [Text transforms](#text-transforms)
|
|
82
87
|
- [Vertical align](#vertical-align)
|
|
@@ -88,17 +93,19 @@
|
|
|
88
93
|
- [Animation / transition](#animation--transition)
|
|
89
94
|
- [Aspect ratios](#aspect-ratios)
|
|
90
95
|
- [Background](#background)
|
|
96
|
+
- [Background color](#background-color)
|
|
91
97
|
- [Border color](#border-color)
|
|
92
98
|
- [Color adjustment](#color-adjustment)
|
|
93
99
|
- [Color definitions](#color-definitions)
|
|
94
|
-
- [Colors](#colors)
|
|
95
100
|
- [Dimensions](#dimensions)
|
|
101
|
+
- [Font families](#font-families)
|
|
96
102
|
- [Grid layout](#grid-layout)
|
|
97
103
|
- [Margin](#margin)
|
|
98
104
|
- [Mask](#mask)
|
|
99
105
|
- [Padding](#padding)
|
|
100
106
|
- [Positions](#positions)
|
|
101
107
|
- [Svg](#svg)
|
|
108
|
+
- [Text color](#text-color)
|
|
102
109
|
- [Media queries](#media-queries)
|
|
103
110
|
- [Status](#status)
|
|
104
111
|
- [Related packages](#related-packages)
|
|
@@ -678,6 +685,7 @@ Main:
|
|
|
678
685
|
supported, @-prefix will read from file)
|
|
679
686
|
-I STR, --include STR [multiple] Include CSS files (prepend)
|
|
680
687
|
-o STR, --out STR Output file (or stdout)
|
|
688
|
+
--scope STR Suffix for CSS class names
|
|
681
689
|
-s STR, --specs STR [required] Path to generated JSON defs
|
|
682
690
|
```
|
|
683
691
|
|
|
@@ -685,6 +693,7 @@ Notes:
|
|
|
685
693
|
|
|
686
694
|
- The `--no-write` flag is only used if `--bundle` is **disabled**
|
|
687
695
|
- The `--out` file arg is only used if `--bundle` is **enabled**
|
|
696
|
+
- The `--scope` option can be used to specify a suffix for all CSS classes.
|
|
688
697
|
|
|
689
698
|
If bundling is disabled (default), each input `.mcss` file is converted
|
|
690
699
|
individually and results are written to the same directory, but using `.css` as
|
|
@@ -931,6 +940,8 @@ If the `--only-decls` option is used, **only** the [framework
|
|
|
931
940
|
declarations](#custom-declarations) but none of the generated utility classes
|
|
932
941
|
will be exported.
|
|
933
942
|
|
|
943
|
+
The `--scope` option can be used to specify a suffix for all CSS classes.
|
|
944
|
+
|
|
934
945
|
```text
|
|
935
946
|
metacss export --help
|
|
936
947
|
|
|
@@ -949,6 +960,7 @@ Main:
|
|
|
949
960
|
-I STR, --include STR [multiple] Include CSS files (prepend)
|
|
950
961
|
-m ID, --media ID [multiple] Media query IDs (use 'ALL' for all)
|
|
951
962
|
-o STR, --out STR Output file (or stdout)
|
|
963
|
+
--scope STR Suffix for CSS class names
|
|
952
964
|
```
|
|
953
965
|
|
|
954
966
|
### Media query variations
|
|
@@ -965,6 +977,130 @@ to 50%) and media queries for different screen sizes (e.g. named `ns`, `l`),
|
|
|
965
977
|
then the export with said media queries will also generate classes `w-50-ns`
|
|
966
978
|
and `w-50-l` (incl. their corresponding `@media` wrappers).
|
|
967
979
|
|
|
980
|
+
## Development mode
|
|
981
|
+
|
|
982
|
+
The `develop` command is a combination of the `generate` and `convert` commands.
|
|
983
|
+
It creates file watchers for all input files (both for generator specs **and**
|
|
984
|
+
MCSS stylesheets) and then auto-generates/compiles/updates results. Together
|
|
985
|
+
with [Vite](https://vitejs.dev/) this command enables a seamless hot-reloading
|
|
986
|
+
workflow. Using a multi-process runner like
|
|
987
|
+
[mprocs](https://github.com/pvolok/mprocs) further simplifies this.
|
|
988
|
+
|
|
989
|
+
For example, using one of the bundled example projects in this repo ([more
|
|
990
|
+
examples](#usage-examples)):
|
|
991
|
+
|
|
992
|
+
```bash
|
|
993
|
+
cd examples/meta-css-basics
|
|
994
|
+
|
|
995
|
+
# launch both metacss in dev mode and vite's dev server
|
|
996
|
+
mprocs 'yarn css:watch' 'yarn start:only'
|
|
997
|
+
```
|
|
998
|
+
|
|
999
|
+
See that example's
|
|
1000
|
+
[package.json](https://github.com/thi-ng/umbrella/blob/develop/examples/meta-css-basics/package.json)
|
|
1001
|
+
for concrete usage/reference.
|
|
1002
|
+
|
|
1003
|
+
```text
|
|
1004
|
+
metacss develop --help
|
|
1005
|
+
|
|
1006
|
+
Usage: metacss develop [opts] input [...]
|
|
1007
|
+
|
|
1008
|
+
Flags:
|
|
1009
|
+
|
|
1010
|
+
-b, --bundle Bundle inputs (see `out` option)
|
|
1011
|
+
-d, --no-decls Don't emit framework decls
|
|
1012
|
+
--no-header Don't emit generated header comment
|
|
1013
|
+
-p, --pretty Pretty print output
|
|
1014
|
+
-v, --verbose Display extra process information
|
|
1015
|
+
-w, --watch Watch input files for changes
|
|
1016
|
+
|
|
1017
|
+
Main:
|
|
1018
|
+
|
|
1019
|
+
-e STR, --eval STR eval meta stylesheet in given string (ignores other
|
|
1020
|
+
inputs & includes)
|
|
1021
|
+
-f STR, --force STR [multiple] CSS classes to force include (wildcards are
|
|
1022
|
+
supported, @-prefix will read from file)
|
|
1023
|
+
-I STR, --include STR [multiple] Include CSS files (prepend)
|
|
1024
|
+
--out-css STR [required] Output file for CSS bundle
|
|
1025
|
+
--out-specs STR [required] Output file for framework
|
|
1026
|
+
--prec INT Number of fractional digits (default: 3)
|
|
1027
|
+
--scope STR Suffix for CSS class names
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
## Documenting a generated framework
|
|
1031
|
+
|
|
1032
|
+
Generator specs and templates can include documentation metadata, which can then
|
|
1033
|
+
be utilized to produce Markdown documentation via the `metacss doc` command:
|
|
1034
|
+
|
|
1035
|
+
```text
|
|
1036
|
+
metacss doc --help
|
|
1037
|
+
|
|
1038
|
+
Usage: metacss doc [opts] input [...]
|
|
1039
|
+
|
|
1040
|
+
Flags:
|
|
1041
|
+
|
|
1042
|
+
-v, --verbose Display extra process information
|
|
1043
|
+
|
|
1044
|
+
Main:
|
|
1045
|
+
|
|
1046
|
+
-l INT, --level INT Initial heading level (default: 1)
|
|
1047
|
+
-o STR, --out STR Output file (or stdout)
|
|
1048
|
+
-t STR, --title STR Main title, set to 'none' to disable (default: "meta")
|
|
1049
|
+
```
|
|
1050
|
+
|
|
1051
|
+
The command allows for customization of the initial heading level and title.
|
|
1052
|
+
|
|
1053
|
+
### Documentation metadata
|
|
1054
|
+
|
|
1055
|
+
All [generator specs](#generator-spec-structure) and
|
|
1056
|
+
[templates](#templated-class-definitions) can include a `doc` object with this
|
|
1057
|
+
structure:
|
|
1058
|
+
|
|
1059
|
+
```json
|
|
1060
|
+
"doc": {
|
|
1061
|
+
"group": "Section name for the group this spec belongs to",
|
|
1062
|
+
"desc": "Description of this spec/class/template",
|
|
1063
|
+
"args": [
|
|
1064
|
+
"argName1: description",
|
|
1065
|
+
"argName2: description...",
|
|
1066
|
+
]
|
|
1067
|
+
}
|
|
1068
|
+
```
|
|
1069
|
+
|
|
1070
|
+
**Note:** The `args` field is **only** used for documenting
|
|
1071
|
+
[templates](#templated-class-definitions).
|
|
1072
|
+
|
|
1073
|
+
All values in this `doc` object can contain [parameters](#parametric-ids) which
|
|
1074
|
+
will be interpolated when the framework specs are expanded (via the [`generate`
|
|
1075
|
+
command](#generating-css-frameworks)). For example, the following spec:
|
|
1076
|
+
|
|
1077
|
+
```json
|
|
1078
|
+
{
|
|
1079
|
+
"doc": { "group": "box sizing", "desc": "<v>" },
|
|
1080
|
+
"name": "<v>",
|
|
1081
|
+
"props": "box-sizing",
|
|
1082
|
+
"values": ["border-box", "content-box"]
|
|
1083
|
+
}
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
...will be expanded to produce these CSS classes:
|
|
1087
|
+
|
|
1088
|
+
```json
|
|
1089
|
+
{
|
|
1090
|
+
"border-box": {
|
|
1091
|
+
"__doc": { "group": "box sizing", "desc": "border-box" },
|
|
1092
|
+
"box-sizing": "border-box"
|
|
1093
|
+
},
|
|
1094
|
+
"content-box": {
|
|
1095
|
+
"__doc": { "group": "box sizing", "desc": "content-box" },
|
|
1096
|
+
"box-sizing": "content-box"
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
```
|
|
1100
|
+
|
|
1101
|
+
The command is also used to produce the following documentation of the included
|
|
1102
|
+
base framework specs.
|
|
1103
|
+
|
|
968
1104
|
## Bundled CSS base framework
|
|
969
1105
|
|
|
970
1106
|
The package includes a large number of useful generator specs in
|
|
@@ -973,7 +1109,7 @@ These are readily usable (and used by a growing number of example projects in
|
|
|
973
1109
|
this repo), but also are provided as starting point to define your own custom
|
|
974
1110
|
framework(s)...
|
|
975
1111
|
|
|
976
|
-
Currently, there are
|
|
1112
|
+
Currently, there are 935 CSS utility classes (incl. 62 templates) defined in "MetaCSS base" (v0.9.0):
|
|
977
1113
|
|
|
978
1114
|
### Classes by category
|
|
979
1115
|
|
|
@@ -984,6 +1120,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
984
1120
|
|
|
985
1121
|
#### Animation / transition
|
|
986
1122
|
|
|
1123
|
+
<details><summary>22 items:</summary>
|
|
1124
|
+
|
|
987
1125
|
- `anim-alternate` (direction)
|
|
988
1126
|
- `anim-alternate-reverse` (direction)
|
|
989
1127
|
- `anim-ease` (timing function)
|
|
@@ -1006,6 +1144,7 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1006
1144
|
- `transition-linear` (timing function)
|
|
1007
1145
|
- `transition-none` (none)
|
|
1008
1146
|
- `transition-width` (width)
|
|
1147
|
+
</details>
|
|
1009
1148
|
|
|
1010
1149
|
#### Aspect ratios
|
|
1011
1150
|
|
|
@@ -1013,6 +1152,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1013
1152
|
|
|
1014
1153
|
#### Background
|
|
1015
1154
|
|
|
1155
|
+
<details><summary>17 items:</summary>
|
|
1156
|
+
|
|
1016
1157
|
- `bg-contain`
|
|
1017
1158
|
- `bg-cover`
|
|
1018
1159
|
- `bg-pos-center` (center)
|
|
@@ -1030,9 +1171,56 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1030
1171
|
- `bg-repeat-space` (space)
|
|
1031
1172
|
- `bg-repeat-x` (repeat-x)
|
|
1032
1173
|
- `bg-repeat-y` (repeat-y)
|
|
1174
|
+
</details>
|
|
1175
|
+
|
|
1176
|
+
#### Background color
|
|
1177
|
+
|
|
1178
|
+
<details><summary>38 items:</summary>
|
|
1179
|
+
|
|
1180
|
+
- `bg-color-black` (#000)
|
|
1181
|
+
- `bg-color-blue` (#357edd)
|
|
1182
|
+
- `bg-color-current` (currentcolor)
|
|
1183
|
+
- `bg-color-dark-blue` (#00449e)
|
|
1184
|
+
- `bg-color-dark-gray` (#333)
|
|
1185
|
+
- `bg-color-dark-green` (#137752)
|
|
1186
|
+
- `bg-color-dark-pink` (#d5008f)
|
|
1187
|
+
- `bg-color-dark-red` (#e7040f)
|
|
1188
|
+
- `bg-color-gold` (#ffb700)
|
|
1189
|
+
- `bg-color-gray` (#777)
|
|
1190
|
+
- `bg-color-green` (#19a974)
|
|
1191
|
+
- `bg-color-hot-pink` (#ff41b4)
|
|
1192
|
+
- `bg-color-light-blue` (#96ccff)
|
|
1193
|
+
- `bg-color-light-gray` (#eee)
|
|
1194
|
+
- `bg-color-light-green` (#9eebcf)
|
|
1195
|
+
- `bg-color-light-pink` (#ffa3d7)
|
|
1196
|
+
- `bg-color-light-purple` (#a463f2)
|
|
1197
|
+
- `bg-color-light-red` (#ff725c)
|
|
1198
|
+
- `bg-color-light-silver` (#aaa)
|
|
1199
|
+
- `bg-color-light-yellow` (#fbf1a9)
|
|
1200
|
+
- `bg-color-lightest-blue` (#cdecff)
|
|
1201
|
+
- `bg-color-mid-gray` (#555)
|
|
1202
|
+
- `bg-color-moon-gray` (#ccc)
|
|
1203
|
+
- `bg-color-navy` (#001b44)
|
|
1204
|
+
- `bg-color-near-black` (#111)
|
|
1205
|
+
- `bg-color-near-white` (#f4f4f4)
|
|
1206
|
+
- `bg-color-orange` (#ff6300)
|
|
1207
|
+
- `bg-color-pink` (#ff80cc)
|
|
1208
|
+
- `bg-color-purple` (#5e2ca5)
|
|
1209
|
+
- `bg-color-red` (#ff4136)
|
|
1210
|
+
- `bg-color-silver` (#999)
|
|
1211
|
+
- `bg-color-transparent` (transparent)
|
|
1212
|
+
- `bg-color-washed-blue` (#f6fffe)
|
|
1213
|
+
- `bg-color-washed-green` (#e8fdf5)
|
|
1214
|
+
- `bg-color-washed-red` (#ffdfdf)
|
|
1215
|
+
- `bg-color-washed-yellow` (#fffceb)
|
|
1216
|
+
- `bg-color-white` (#fff)
|
|
1217
|
+
- `bg-color-yellow` (#ffd700)
|
|
1218
|
+
</details>
|
|
1033
1219
|
|
|
1034
1220
|
#### Border color
|
|
1035
1221
|
|
|
1222
|
+
<details><summary>38 items:</summary>
|
|
1223
|
+
|
|
1036
1224
|
- `border-color-black` (#000)
|
|
1037
1225
|
- `border-color-blue` (#357edd)
|
|
1038
1226
|
- `border-color-current` (currentcolor)
|
|
@@ -1071,9 +1259,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1071
1259
|
- `border-color-washed-yellow` (#fffceb)
|
|
1072
1260
|
- `border-color-white` (#fff)
|
|
1073
1261
|
- `border-color-yellow` (#ffd700)
|
|
1262
|
+
</details>
|
|
1074
1263
|
|
|
1075
1264
|
#### Border radius
|
|
1076
1265
|
|
|
1266
|
+
<details><summary>27 items:</summary>
|
|
1267
|
+
|
|
1077
1268
|
- `br0` (0rem)
|
|
1078
1269
|
- `br1` (.125rem)
|
|
1079
1270
|
- `br2` (.25rem)
|
|
@@ -1081,155 +1272,90 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1081
1272
|
- `br4` (1rem)
|
|
1082
1273
|
- `br-100` (100%)
|
|
1083
1274
|
- `br-pill` (9999px)
|
|
1084
|
-
- `brb0` (0rem)
|
|
1085
|
-
- `brb1` (.125rem)
|
|
1086
|
-
- `brb2` (.25rem)
|
|
1087
|
-
- `brb3` (.5rem)
|
|
1088
|
-
- `brb4` (1rem)
|
|
1089
|
-
- `brl0` (0rem)
|
|
1090
|
-
- `brl1` (.125rem)
|
|
1091
|
-
- `brl2` (.25rem)
|
|
1092
|
-
- `brl3` (.5rem)
|
|
1093
|
-
- `brl4` (1rem)
|
|
1094
|
-
- `brr0` (0rem)
|
|
1095
|
-
- `brr1` (.125rem)
|
|
1096
|
-
- `brr2` (.25rem)
|
|
1097
|
-
- `brr3` (.5rem)
|
|
1098
|
-
- `brr4` (1rem)
|
|
1099
|
-
- `brt0` (0rem)
|
|
1100
|
-
- `brt1` (.125rem)
|
|
1101
|
-
- `brt2` (.25rem)
|
|
1102
|
-
- `brt3` (.5rem)
|
|
1103
|
-
- `brt4` (1rem)
|
|
1275
|
+
- `brb0` (bottom 0rem)
|
|
1276
|
+
- `brb1` (bottom .125rem)
|
|
1277
|
+
- `brb2` (bottom .25rem)
|
|
1278
|
+
- `brb3` (bottom .5rem)
|
|
1279
|
+
- `brb4` (bottom 1rem)
|
|
1280
|
+
- `brl0` (left 0rem)
|
|
1281
|
+
- `brl1` (left .125rem)
|
|
1282
|
+
- `brl2` (left .25rem)
|
|
1283
|
+
- `brl3` (left .5rem)
|
|
1284
|
+
- `brl4` (left 1rem)
|
|
1285
|
+
- `brr0` (right 0rem)
|
|
1286
|
+
- `brr1` (right .125rem)
|
|
1287
|
+
- `brr2` (right .25rem)
|
|
1288
|
+
- `brr3` (right .5rem)
|
|
1289
|
+
- `brr4` (right 1rem)
|
|
1290
|
+
- `brt0` (top 0rem)
|
|
1291
|
+
- `brt1` (top .125rem)
|
|
1292
|
+
- `brt2` (top .25rem)
|
|
1293
|
+
- `brt3` (top .5rem)
|
|
1294
|
+
- `brt4` (top 1rem)
|
|
1295
|
+
</details>
|
|
1104
1296
|
|
|
1105
1297
|
#### Border width
|
|
1106
1298
|
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
- `
|
|
1110
|
-
- `
|
|
1111
|
-
- `
|
|
1112
|
-
- `
|
|
1113
|
-
- `
|
|
1114
|
-
- `
|
|
1115
|
-
- `
|
|
1116
|
-
- `
|
|
1117
|
-
- `
|
|
1118
|
-
- `
|
|
1119
|
-
- `
|
|
1120
|
-
- `
|
|
1121
|
-
- `
|
|
1122
|
-
- `
|
|
1123
|
-
- `
|
|
1124
|
-
- `
|
|
1125
|
-
- `
|
|
1126
|
-
- `
|
|
1127
|
-
- `
|
|
1128
|
-
- `
|
|
1129
|
-
- `
|
|
1130
|
-
- `
|
|
1131
|
-
- `
|
|
1132
|
-
- `
|
|
1133
|
-
- `
|
|
1134
|
-
- `
|
|
1135
|
-
- `
|
|
1136
|
-
- `
|
|
1137
|
-
- `
|
|
1138
|
-
- `
|
|
1139
|
-
- `
|
|
1140
|
-
- `
|
|
1141
|
-
- `
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
- `
|
|
1149
|
-
- `
|
|
1150
|
-
- `bg-color-dark-green` (#137752)
|
|
1151
|
-
- `bg-color-dark-pink` (#d5008f)
|
|
1152
|
-
- `bg-color-dark-red` (#e7040f)
|
|
1153
|
-
- `bg-color-gold` (#ffb700)
|
|
1154
|
-
- `bg-color-gray` (#777)
|
|
1155
|
-
- `bg-color-green` (#19a974)
|
|
1156
|
-
- `bg-color-hot-pink` (#ff41b4)
|
|
1157
|
-
- `bg-color-light-blue` (#96ccff)
|
|
1158
|
-
- `bg-color-light-gray` (#eee)
|
|
1159
|
-
- `bg-color-light-green` (#9eebcf)
|
|
1160
|
-
- `bg-color-light-pink` (#ffa3d7)
|
|
1161
|
-
- `bg-color-light-purple` (#a463f2)
|
|
1162
|
-
- `bg-color-light-red` (#ff725c)
|
|
1163
|
-
- `bg-color-light-silver` (#aaa)
|
|
1164
|
-
- `bg-color-light-yellow` (#fbf1a9)
|
|
1165
|
-
- `bg-color-lightest-blue` (#cdecff)
|
|
1166
|
-
- `bg-color-mid-gray` (#555)
|
|
1167
|
-
- `bg-color-moon-gray` (#ccc)
|
|
1168
|
-
- `bg-color-navy` (#001b44)
|
|
1169
|
-
- `bg-color-near-black` (#111)
|
|
1170
|
-
- `bg-color-near-white` (#f4f4f4)
|
|
1171
|
-
- `bg-color-orange` (#ff6300)
|
|
1172
|
-
- `bg-color-pink` (#ff80cc)
|
|
1173
|
-
- `bg-color-purple` (#5e2ca5)
|
|
1174
|
-
- `bg-color-red` (#ff4136)
|
|
1175
|
-
- `bg-color-silver` (#999)
|
|
1176
|
-
- `bg-color-transparent` (transparent)
|
|
1177
|
-
- `bg-color-washed-blue` (#f6fffe)
|
|
1178
|
-
- `bg-color-washed-green` (#e8fdf5)
|
|
1179
|
-
- `bg-color-washed-red` (#ffdfdf)
|
|
1180
|
-
- `bg-color-washed-yellow` (#fffceb)
|
|
1181
|
-
- `bg-color-white` (#fff)
|
|
1182
|
-
- `bg-color-yellow` (#ffd700)
|
|
1183
|
-
- `color-black` (#000)
|
|
1184
|
-
- `color-blue` (#357edd)
|
|
1185
|
-
- `color-current` (currentcolor)
|
|
1186
|
-
- `color-dark-blue` (#00449e)
|
|
1187
|
-
- `color-dark-gray` (#333)
|
|
1188
|
-
- `color-dark-green` (#137752)
|
|
1189
|
-
- `color-dark-pink` (#d5008f)
|
|
1190
|
-
- `color-dark-red` (#e7040f)
|
|
1191
|
-
- `color-gold` (#ffb700)
|
|
1192
|
-
- `color-gray` (#777)
|
|
1193
|
-
- `color-green` (#19a974)
|
|
1194
|
-
- `color-hot-pink` (#ff41b4)
|
|
1195
|
-
- `color-light-blue` (#96ccff)
|
|
1196
|
-
- `color-light-gray` (#eee)
|
|
1197
|
-
- `color-light-green` (#9eebcf)
|
|
1198
|
-
- `color-light-pink` (#ffa3d7)
|
|
1199
|
-
- `color-light-purple` (#a463f2)
|
|
1200
|
-
- `color-light-red` (#ff725c)
|
|
1201
|
-
- `color-light-silver` (#aaa)
|
|
1202
|
-
- `color-light-yellow` (#fbf1a9)
|
|
1203
|
-
- `color-lightest-blue` (#cdecff)
|
|
1204
|
-
- `color-mid-gray` (#555)
|
|
1205
|
-
- `color-moon-gray` (#ccc)
|
|
1206
|
-
- `color-navy` (#001b44)
|
|
1207
|
-
- `color-near-black` (#111)
|
|
1208
|
-
- `color-near-white` (#f4f4f4)
|
|
1209
|
-
- `color-orange` (#ff6300)
|
|
1210
|
-
- `color-pink` (#ff80cc)
|
|
1211
|
-
- `color-purple` (#5e2ca5)
|
|
1212
|
-
- `color-red` (#ff4136)
|
|
1213
|
-
- `color-silver` (#999)
|
|
1214
|
-
- `color-transparent` (transparent)
|
|
1215
|
-
- `color-washed-blue` (#f6fffe)
|
|
1216
|
-
- `color-washed-green` (#e8fdf5)
|
|
1217
|
-
- `color-washed-red` (#ffdfdf)
|
|
1218
|
-
- `color-washed-yellow` (#fffceb)
|
|
1219
|
-
- `color-white` (#fff)
|
|
1220
|
-
- `color-yellow` (#ffd700)
|
|
1299
|
+
<details><summary>35 items:</summary>
|
|
1300
|
+
|
|
1301
|
+
- `bw0` ( 0rem)
|
|
1302
|
+
- `bw1` ( .125rem)
|
|
1303
|
+
- `bw2` ( .25rem)
|
|
1304
|
+
- `bw3` ( .5rem)
|
|
1305
|
+
- `bw4` ( 1rem)
|
|
1306
|
+
- `bw5` ( 2rem)
|
|
1307
|
+
- `bw-1px` ( 1px)
|
|
1308
|
+
- `bwb0` (bottom 0rem)
|
|
1309
|
+
- `bwb1` (bottom .125rem)
|
|
1310
|
+
- `bwb2` (bottom .25rem)
|
|
1311
|
+
- `bwb3` (bottom .5rem)
|
|
1312
|
+
- `bwb4` (bottom 1rem)
|
|
1313
|
+
- `bwb5` (bottom 2rem)
|
|
1314
|
+
- `bwb-1px` (bottom 1px)
|
|
1315
|
+
- `bwl0` (left 0rem)
|
|
1316
|
+
- `bwl1` (left .125rem)
|
|
1317
|
+
- `bwl2` (left .25rem)
|
|
1318
|
+
- `bwl3` (left .5rem)
|
|
1319
|
+
- `bwl4` (left 1rem)
|
|
1320
|
+
- `bwl5` (left 2rem)
|
|
1321
|
+
- `bwl-1px` (left 1px)
|
|
1322
|
+
- `bwr0` (right 0rem)
|
|
1323
|
+
- `bwr1` (right .125rem)
|
|
1324
|
+
- `bwr2` (right .25rem)
|
|
1325
|
+
- `bwr3` (right .5rem)
|
|
1326
|
+
- `bwr4` (right 1rem)
|
|
1327
|
+
- `bwr5` (right 2rem)
|
|
1328
|
+
- `bwr-1px` (right 1px)
|
|
1329
|
+
- `bwt0` (top 0rem)
|
|
1330
|
+
- `bwt1` (top .125rem)
|
|
1331
|
+
- `bwt2` (top .25rem)
|
|
1332
|
+
- `bwt3` (top .5rem)
|
|
1333
|
+
- `bwt4` (top 1rem)
|
|
1334
|
+
- `bwt5` (top 2rem)
|
|
1335
|
+
- `bwt-1px` (top 1px)
|
|
1336
|
+
</details>
|
|
1337
|
+
|
|
1338
|
+
#### Box sizing
|
|
1339
|
+
|
|
1340
|
+
- `border-box` (border-box)
|
|
1341
|
+
- `content-box` (content-box)
|
|
1221
1342
|
|
|
1222
1343
|
#### Content
|
|
1223
1344
|
|
|
1345
|
+
<details><summary>6 items:</summary>
|
|
1346
|
+
|
|
1224
1347
|
- `content-data-lang` (data-lang attrib)
|
|
1225
1348
|
- `content-href` (href attrib)
|
|
1226
1349
|
- `content-id` (id attrib)
|
|
1227
1350
|
- `content-name` (name attrib)
|
|
1228
1351
|
- `content-slot` (slot attrib)
|
|
1229
1352
|
- `content-title` (title attrib)
|
|
1353
|
+
</details>
|
|
1230
1354
|
|
|
1231
1355
|
#### Cursors
|
|
1232
1356
|
|
|
1357
|
+
<details><summary>36 items:</summary>
|
|
1358
|
+
|
|
1233
1359
|
- `cursor-alias`
|
|
1234
1360
|
- `cursor-auto`
|
|
1235
1361
|
- `cursor-cell`
|
|
@@ -1266,9 +1392,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1266
1392
|
- `cursor-vtext`
|
|
1267
1393
|
- `cursor-w`
|
|
1268
1394
|
- `cursor-wait`
|
|
1395
|
+
</details>
|
|
1269
1396
|
|
|
1270
1397
|
#### Display mode
|
|
1271
1398
|
|
|
1399
|
+
<details><summary>11 items:</summary>
|
|
1400
|
+
|
|
1272
1401
|
- `db` (block)
|
|
1273
1402
|
- `di` (inline)
|
|
1274
1403
|
- `dib` (inline-block)
|
|
@@ -1280,9 +1409,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1280
1409
|
- `dtr` (table-row)
|
|
1281
1410
|
- `flex` (flex)
|
|
1282
1411
|
- `grid` (grid)
|
|
1412
|
+
</details>
|
|
1283
1413
|
|
|
1284
1414
|
#### Flex layout
|
|
1285
1415
|
|
|
1416
|
+
<details><summary>25 items:</summary>
|
|
1417
|
+
|
|
1286
1418
|
- `align-content-center`
|
|
1287
1419
|
- `align-content-end`
|
|
1288
1420
|
- `align-content-space-around`
|
|
@@ -1308,18 +1440,24 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1308
1440
|
- `justify-content-space-evenly`
|
|
1309
1441
|
- `justify-content-start`
|
|
1310
1442
|
- `justify-content-stretch`
|
|
1443
|
+
</details>
|
|
1311
1444
|
|
|
1312
1445
|
#### Font families
|
|
1313
1446
|
|
|
1447
|
+
<details><summary>6 items:</summary>
|
|
1448
|
+
|
|
1314
1449
|
- `monospace`
|
|
1315
1450
|
- `sans-serif`
|
|
1316
1451
|
- `serif`
|
|
1317
1452
|
- `system`
|
|
1318
1453
|
- `system-sans-serif`
|
|
1319
1454
|
- `system-serif`
|
|
1455
|
+
</details>
|
|
1320
1456
|
|
|
1321
1457
|
#### Font sizes
|
|
1322
1458
|
|
|
1459
|
+
<details><summary>9 items:</summary>
|
|
1460
|
+
|
|
1323
1461
|
- `f-subtitle` (5rem)
|
|
1324
1462
|
- `f-title` (6rem)
|
|
1325
1463
|
- `f1` (3rem)
|
|
@@ -1329,6 +1467,7 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1329
1467
|
- `f5` (1rem)
|
|
1330
1468
|
- `f6` (.875rem)
|
|
1331
1469
|
- `f7` (.75rem)
|
|
1470
|
+
</details>
|
|
1332
1471
|
|
|
1333
1472
|
#### Font style
|
|
1334
1473
|
|
|
@@ -1340,6 +1479,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1340
1479
|
|
|
1341
1480
|
#### Font weights
|
|
1342
1481
|
|
|
1482
|
+
<details><summary>11 items:</summary>
|
|
1483
|
+
|
|
1343
1484
|
- `b` (700)
|
|
1344
1485
|
- `fw100`
|
|
1345
1486
|
- `fw200`
|
|
@@ -1351,9 +1492,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1351
1492
|
- `fw800`
|
|
1352
1493
|
- `fw900`
|
|
1353
1494
|
- `normal` (400)
|
|
1495
|
+
</details>
|
|
1354
1496
|
|
|
1355
1497
|
#### Grid layout
|
|
1356
1498
|
|
|
1499
|
+
<details><summary>46 items:</summary>
|
|
1500
|
+
|
|
1357
1501
|
- `align-items-center`
|
|
1358
1502
|
- `align-items-end`
|
|
1359
1503
|
- `align-items-start`
|
|
@@ -1400,9 +1544,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1400
1544
|
- `justify-self-end`
|
|
1401
1545
|
- `justify-self-start`
|
|
1402
1546
|
- `justify-self-stretch`
|
|
1547
|
+
</details>
|
|
1403
1548
|
|
|
1404
1549
|
#### Height
|
|
1405
1550
|
|
|
1551
|
+
<details><summary>29 items:</summary>
|
|
1552
|
+
|
|
1406
1553
|
- `h1` (1rem)
|
|
1407
1554
|
- `h2` (2rem)
|
|
1408
1555
|
- `h3` (4rem)
|
|
@@ -1432,9 +1579,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1432
1579
|
- `vh-50`
|
|
1433
1580
|
- `vh-75`
|
|
1434
1581
|
- `vh-100`
|
|
1582
|
+
</details>
|
|
1435
1583
|
|
|
1436
1584
|
#### Icons
|
|
1437
1585
|
|
|
1586
|
+
<details><summary>9 items:</summary>
|
|
1587
|
+
|
|
1438
1588
|
- `icon-1` (3rem)
|
|
1439
1589
|
- `icon-2` (2.25rem)
|
|
1440
1590
|
- `icon-3` (1.5rem)
|
|
@@ -1444,23 +1594,30 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1444
1594
|
- `icon-7` (.75rem)
|
|
1445
1595
|
- `icon-subtitle` (5rem)
|
|
1446
1596
|
- `icon-title` (6rem)
|
|
1597
|
+
</details>
|
|
1447
1598
|
|
|
1448
1599
|
#### Letter spacing
|
|
1449
1600
|
|
|
1601
|
+
<details><summary>6 items:</summary>
|
|
1602
|
+
|
|
1450
1603
|
- `ls-0` (0em)
|
|
1451
1604
|
- `ls-1` (.05em)
|
|
1452
1605
|
- `ls-2` (.1em)
|
|
1453
1606
|
- `ls-3` (.2em)
|
|
1454
1607
|
- `ls--1` (-.025em)
|
|
1455
1608
|
- `ls--2` (-.05em)
|
|
1609
|
+
</details>
|
|
1456
1610
|
|
|
1457
1611
|
#### Line heights
|
|
1458
1612
|
|
|
1613
|
+
<details><summary>5 items:</summary>
|
|
1614
|
+
|
|
1459
1615
|
- `lh-0` (0)
|
|
1460
1616
|
- `lh-copy` (1.5)
|
|
1461
1617
|
- `lh-double` (2)
|
|
1462
1618
|
- `lh-solid` (1)
|
|
1463
1619
|
- `lh-title` (1.25)
|
|
1620
|
+
</details>
|
|
1464
1621
|
|
|
1465
1622
|
#### Lists
|
|
1466
1623
|
|
|
@@ -1468,6 +1625,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1468
1625
|
|
|
1469
1626
|
#### Margin
|
|
1470
1627
|
|
|
1628
|
+
<details><summary>55 items:</summary>
|
|
1629
|
+
|
|
1471
1630
|
- `center`
|
|
1472
1631
|
- `ma0` ( 0rem)
|
|
1473
1632
|
- `ma1` ( .25rem)
|
|
@@ -1523,9 +1682,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1523
1682
|
- `mv3` (top 1rem)
|
|
1524
1683
|
- `mv4` (top 2rem)
|
|
1525
1684
|
- `mv5` (top 4rem)
|
|
1685
|
+
</details>
|
|
1526
1686
|
|
|
1527
1687
|
#### Mask
|
|
1528
1688
|
|
|
1689
|
+
<details><summary>13 items:</summary>
|
|
1690
|
+
|
|
1529
1691
|
- `mask-clip-border` (border-box)
|
|
1530
1692
|
- `mask-clip-content` (content-box)
|
|
1531
1693
|
- `mask-clip-fill` (fill-box)
|
|
@@ -1539,9 +1701,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1539
1701
|
- `mask-type-alpha` (alpha)
|
|
1540
1702
|
- `mask-type-luminance` (luminance)
|
|
1541
1703
|
- `mask-type-match-source` (match-source)
|
|
1704
|
+
</details>
|
|
1542
1705
|
|
|
1543
1706
|
#### Max. height
|
|
1544
1707
|
|
|
1708
|
+
<details><summary>25 items:</summary>
|
|
1709
|
+
|
|
1545
1710
|
- `maxh1` (1rem)
|
|
1546
1711
|
- `maxh2` (2rem)
|
|
1547
1712
|
- `maxh3` (4rem)
|
|
@@ -1567,9 +1732,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1567
1732
|
- `maxh-84` (%)
|
|
1568
1733
|
- `maxh-90` (%)
|
|
1569
1734
|
- `maxh-100` (%)
|
|
1735
|
+
</details>
|
|
1570
1736
|
|
|
1571
1737
|
#### Max. width
|
|
1572
1738
|
|
|
1739
|
+
<details><summary>25 items:</summary>
|
|
1740
|
+
|
|
1573
1741
|
- `maxw1` (1rem)
|
|
1574
1742
|
- `maxw2` (2rem)
|
|
1575
1743
|
- `maxw3` (4rem)
|
|
@@ -1595,9 +1763,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1595
1763
|
- `maxw-84` (%)
|
|
1596
1764
|
- `maxw-90` (%)
|
|
1597
1765
|
- `maxw-100` (%)
|
|
1766
|
+
</details>
|
|
1598
1767
|
|
|
1599
1768
|
#### Min. height
|
|
1600
1769
|
|
|
1770
|
+
<details><summary>25 items:</summary>
|
|
1771
|
+
|
|
1601
1772
|
- `minh1` (1rem)
|
|
1602
1773
|
- `minh2` (2rem)
|
|
1603
1774
|
- `minh3` (4rem)
|
|
@@ -1623,9 +1794,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1623
1794
|
- `minh-84` (%)
|
|
1624
1795
|
- `minh-90` (%)
|
|
1625
1796
|
- `minh-100` (%)
|
|
1797
|
+
</details>
|
|
1626
1798
|
|
|
1627
1799
|
#### Min. width
|
|
1628
1800
|
|
|
1801
|
+
<details><summary>25 items:</summary>
|
|
1802
|
+
|
|
1629
1803
|
- `minw1` (1rem)
|
|
1630
1804
|
- `minw2` (2rem)
|
|
1631
1805
|
- `minw3` (4rem)
|
|
@@ -1651,9 +1825,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1651
1825
|
- `minw-84` (%)
|
|
1652
1826
|
- `minw-90` (%)
|
|
1653
1827
|
- `minw-100` (%)
|
|
1828
|
+
</details>
|
|
1654
1829
|
|
|
1655
1830
|
#### Opacity
|
|
1656
1831
|
|
|
1832
|
+
<details><summary>11 items:</summary>
|
|
1833
|
+
|
|
1657
1834
|
- `o-0` (0)
|
|
1658
1835
|
- `o-10` (0.1)
|
|
1659
1836
|
- `o-20` (0.2)
|
|
@@ -1665,9 +1842,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1665
1842
|
- `o-80` (0.8)
|
|
1666
1843
|
- `o-90` (0.9)
|
|
1667
1844
|
- `o-100` (1)
|
|
1845
|
+
</details>
|
|
1668
1846
|
|
|
1669
1847
|
#### Overflow
|
|
1670
1848
|
|
|
1849
|
+
<details><summary>12 items:</summary>
|
|
1850
|
+
|
|
1671
1851
|
- `overflow-auto`
|
|
1672
1852
|
- `overflow-hidden`
|
|
1673
1853
|
- `overflow-scroll`
|
|
@@ -1680,9 +1860,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1680
1860
|
- `overflow-y-hidden`
|
|
1681
1861
|
- `overflow-y-scroll`
|
|
1682
1862
|
- `overflow-y-visible`
|
|
1863
|
+
</details>
|
|
1683
1864
|
|
|
1684
1865
|
#### Padding
|
|
1685
1866
|
|
|
1867
|
+
<details><summary>54 items:</summary>
|
|
1868
|
+
|
|
1686
1869
|
- `pa0` ( 0rem)
|
|
1687
1870
|
- `pa1` ( .25rem)
|
|
1688
1871
|
- `pa2` ( .5rem)
|
|
@@ -1737,9 +1920,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1737
1920
|
- `pv3` (top 1rem)
|
|
1738
1921
|
- `pv4` (top 2rem)
|
|
1739
1922
|
- `pv5` (top 4rem)
|
|
1923
|
+
</details>
|
|
1740
1924
|
|
|
1741
1925
|
#### Positions
|
|
1742
1926
|
|
|
1927
|
+
<details><summary>25 items:</summary>
|
|
1928
|
+
|
|
1743
1929
|
- `absolute`
|
|
1744
1930
|
- `bottom-0` (0rem)
|
|
1745
1931
|
- `bottom-1` (1rem)
|
|
@@ -1765,9 +1951,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1765
1951
|
- `top-2` (2rem)
|
|
1766
1952
|
- `top--1` (-1rem)
|
|
1767
1953
|
- `top--2` (-2rem)
|
|
1954
|
+
</details>
|
|
1768
1955
|
|
|
1769
1956
|
#### Print
|
|
1770
1957
|
|
|
1958
|
+
<details><summary>18 items:</summary>
|
|
1959
|
+
|
|
1771
1960
|
- `break-after-avoid`
|
|
1772
1961
|
- `break-after-avoid-column`
|
|
1773
1962
|
- `break-after-avoid-page`
|
|
@@ -1786,9 +1975,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1786
1975
|
- `break-before-recto`
|
|
1787
1976
|
- `break-before-right`
|
|
1788
1977
|
- `break-before-verso`
|
|
1978
|
+
</details>
|
|
1789
1979
|
|
|
1790
1980
|
#### Scrolling
|
|
1791
1981
|
|
|
1982
|
+
<details><summary>8 items:</summary>
|
|
1983
|
+
|
|
1792
1984
|
- `ss-always` (snap stop)
|
|
1793
1985
|
- `ss-both` (snap type)
|
|
1794
1986
|
- `ss-center` (snap align)
|
|
@@ -1797,6 +1989,7 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1797
1989
|
- `ss-start` (snap align)
|
|
1798
1990
|
- `ss-x` (snap type)
|
|
1799
1991
|
- `ss-y` (snap type)
|
|
1992
|
+
</details>
|
|
1800
1993
|
|
|
1801
1994
|
#### Selection
|
|
1802
1995
|
|
|
@@ -1804,6 +1997,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1804
1997
|
|
|
1805
1998
|
#### Shadow
|
|
1806
1999
|
|
|
2000
|
+
<details><summary>17 items:</summary>
|
|
2001
|
+
|
|
1807
2002
|
- `box-shadow-1` (0 0 2px 0px #0003)
|
|
1808
2003
|
- `box-shadow-2` (0 0 4px #0003)
|
|
1809
2004
|
- `box-shadow-3` (0 0 4px 1px #0003)
|
|
@@ -1821,9 +2016,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1821
2016
|
- `text-shadow-7` (3px 3px 2px #0003)
|
|
1822
2017
|
- `text-shadow-8` (3px 3px 4px #0003)
|
|
1823
2018
|
- `text-shadow-9` (3px 3px 8px #0003)
|
|
2019
|
+
</details>
|
|
1824
2020
|
|
|
1825
2021
|
#### Svg
|
|
1826
2022
|
|
|
2023
|
+
<details><summary>76 items:</summary>
|
|
2024
|
+
|
|
1827
2025
|
- `fill-black` (#000)
|
|
1828
2026
|
- `fill-blue` (#357edd)
|
|
1829
2027
|
- `fill-current` (currentcolor)
|
|
@@ -1900,13 +2098,61 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1900
2098
|
- `stroke-washed-yellow` (#fffceb)
|
|
1901
2099
|
- `stroke-white` (#fff)
|
|
1902
2100
|
- `stroke-yellow` (#ffd700)
|
|
2101
|
+
</details>
|
|
1903
2102
|
|
|
1904
2103
|
#### Text align
|
|
1905
2104
|
|
|
2105
|
+
<details><summary>4 items:</summary>
|
|
2106
|
+
|
|
1906
2107
|
- `tc` (center)
|
|
1907
2108
|
- `tj` (justify)
|
|
1908
2109
|
- `tl` (left)
|
|
1909
2110
|
- `tr` (right)
|
|
2111
|
+
</details>
|
|
2112
|
+
|
|
2113
|
+
#### Text color
|
|
2114
|
+
|
|
2115
|
+
<details><summary>38 items:</summary>
|
|
2116
|
+
|
|
2117
|
+
- `color-black` (#000)
|
|
2118
|
+
- `color-blue` (#357edd)
|
|
2119
|
+
- `color-current` (currentcolor)
|
|
2120
|
+
- `color-dark-blue` (#00449e)
|
|
2121
|
+
- `color-dark-gray` (#333)
|
|
2122
|
+
- `color-dark-green` (#137752)
|
|
2123
|
+
- `color-dark-pink` (#d5008f)
|
|
2124
|
+
- `color-dark-red` (#e7040f)
|
|
2125
|
+
- `color-gold` (#ffb700)
|
|
2126
|
+
- `color-gray` (#777)
|
|
2127
|
+
- `color-green` (#19a974)
|
|
2128
|
+
- `color-hot-pink` (#ff41b4)
|
|
2129
|
+
- `color-light-blue` (#96ccff)
|
|
2130
|
+
- `color-light-gray` (#eee)
|
|
2131
|
+
- `color-light-green` (#9eebcf)
|
|
2132
|
+
- `color-light-pink` (#ffa3d7)
|
|
2133
|
+
- `color-light-purple` (#a463f2)
|
|
2134
|
+
- `color-light-red` (#ff725c)
|
|
2135
|
+
- `color-light-silver` (#aaa)
|
|
2136
|
+
- `color-light-yellow` (#fbf1a9)
|
|
2137
|
+
- `color-lightest-blue` (#cdecff)
|
|
2138
|
+
- `color-mid-gray` (#555)
|
|
2139
|
+
- `color-moon-gray` (#ccc)
|
|
2140
|
+
- `color-navy` (#001b44)
|
|
2141
|
+
- `color-near-black` (#111)
|
|
2142
|
+
- `color-near-white` (#f4f4f4)
|
|
2143
|
+
- `color-orange` (#ff6300)
|
|
2144
|
+
- `color-pink` (#ff80cc)
|
|
2145
|
+
- `color-purple` (#5e2ca5)
|
|
2146
|
+
- `color-red` (#ff4136)
|
|
2147
|
+
- `color-silver` (#999)
|
|
2148
|
+
- `color-transparent` (transparent)
|
|
2149
|
+
- `color-washed-blue` (#f6fffe)
|
|
2150
|
+
- `color-washed-green` (#e8fdf5)
|
|
2151
|
+
- `color-washed-red` (#ffdfdf)
|
|
2152
|
+
- `color-washed-yellow` (#fffceb)
|
|
2153
|
+
- `color-white` (#fff)
|
|
2154
|
+
- `color-yellow` (#ffd700)
|
|
2155
|
+
</details>
|
|
1910
2156
|
|
|
1911
2157
|
#### Text decorations
|
|
1912
2158
|
|
|
@@ -1916,6 +2162,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1916
2162
|
|
|
1917
2163
|
#### Text transforms
|
|
1918
2164
|
|
|
2165
|
+
<details><summary>7 items:</summary>
|
|
2166
|
+
|
|
1919
2167
|
- `ttc` (capitalize)
|
|
1920
2168
|
- `ttfsk` (full-size-kana)
|
|
1921
2169
|
- `ttfw` (full-width)
|
|
@@ -1923,13 +2171,17 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1923
2171
|
- `ttl` (lowercase)
|
|
1924
2172
|
- `ttn` (none)
|
|
1925
2173
|
- `ttu` (uppercase)
|
|
2174
|
+
</details>
|
|
1926
2175
|
|
|
1927
2176
|
#### Vertical align
|
|
1928
2177
|
|
|
2178
|
+
<details><summary>4 items:</summary>
|
|
2179
|
+
|
|
1929
2180
|
- `v-base` (baseline)
|
|
1930
2181
|
- `v-btm` (bottom)
|
|
1931
2182
|
- `v-mid` (middle)
|
|
1932
2183
|
- `v-top` (top)
|
|
2184
|
+
</details>
|
|
1933
2185
|
|
|
1934
2186
|
#### Visibility
|
|
1935
2187
|
|
|
@@ -1945,6 +2197,8 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1945
2197
|
|
|
1946
2198
|
#### Width
|
|
1947
2199
|
|
|
2200
|
+
<details><summary>29 items:</summary>
|
|
2201
|
+
|
|
1948
2202
|
- `vw-25`
|
|
1949
2203
|
- `vw-50`
|
|
1950
2204
|
- `vw-75`
|
|
@@ -1974,9 +2228,12 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1974
2228
|
- `w-84` (%)
|
|
1975
2229
|
- `w-90` (%)
|
|
1976
2230
|
- `w-100` (%)
|
|
2231
|
+
</details>
|
|
1977
2232
|
|
|
1978
2233
|
#### Z-indices
|
|
1979
2234
|
|
|
2235
|
+
<details><summary>8 items:</summary>
|
|
2236
|
+
|
|
1980
2237
|
- `z-0`
|
|
1981
2238
|
- `z-1`
|
|
1982
2239
|
- `z-2`
|
|
@@ -1985,11 +2242,14 @@ Currently, there are 932 CSS utility classes (incl. 61 templates) defined in "Me
|
|
|
1985
2242
|
- `z-5`
|
|
1986
2243
|
- `z-999`
|
|
1987
2244
|
- `z-9999`
|
|
2245
|
+
</details>
|
|
1988
2246
|
|
|
1989
2247
|
### Templates by category
|
|
1990
2248
|
|
|
1991
2249
|
#### Animation / transition
|
|
1992
2250
|
|
|
2251
|
+
<details><summary>15 items:</summary>
|
|
2252
|
+
|
|
1993
2253
|
##### `anim(body)`
|
|
1994
2254
|
|
|
1995
2255
|
- **body**: CSS value/definition
|
|
@@ -2065,6 +2325,8 @@ Animation which rotates element a full turn, looping indefinitely
|
|
|
2065
2325
|
|
|
2066
2326
|
Sets transition-timing-function to `steps(num)`
|
|
2067
2327
|
|
|
2328
|
+
</details>
|
|
2329
|
+
|
|
2068
2330
|
#### Aspect ratios
|
|
2069
2331
|
|
|
2070
2332
|
##### `aspect-ratio(width, height)`
|
|
@@ -2083,6 +2345,8 @@ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child elem
|
|
|
2083
2345
|
|
|
2084
2346
|
#### Background
|
|
2085
2347
|
|
|
2348
|
+
<details><summary>4 items:</summary>
|
|
2349
|
+
|
|
2086
2350
|
##### `bg-blur(radius)`
|
|
2087
2351
|
|
|
2088
2352
|
- **radius**: incl. units
|
|
@@ -2099,6 +2363,14 @@ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child elem
|
|
|
2099
2363
|
|
|
2100
2364
|
- **body**: CSS value/definition
|
|
2101
2365
|
|
|
2366
|
+
</details>
|
|
2367
|
+
|
|
2368
|
+
#### Background color
|
|
2369
|
+
|
|
2370
|
+
##### `bg-color(name)`
|
|
2371
|
+
|
|
2372
|
+
- **name**: variable name (without `--` prefix)
|
|
2373
|
+
|
|
2102
2374
|
#### Border color
|
|
2103
2375
|
|
|
2104
2376
|
##### `border-color(name)`
|
|
@@ -2107,6 +2379,8 @@ Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child elem
|
|
|
2107
2379
|
|
|
2108
2380
|
#### Color adjustment
|
|
2109
2381
|
|
|
2382
|
+
<details><summary>4 items:</summary>
|
|
2383
|
+
|
|
2110
2384
|
##### `adjust-hsl(prop, name, hue, sat, lum, alpha)`
|
|
2111
2385
|
|
|
2112
2386
|
- **prop**: CSS target property
|
|
@@ -2151,8 +2425,12 @@ Assigns an adjusted version of a `def-oklch()` defined color to given CSS proper
|
|
|
2151
2425
|
|
|
2152
2426
|
Assigns an adjusted version of a `def-rgb()`-defined color to given CSS property.
|
|
2153
2427
|
|
|
2428
|
+
</details>
|
|
2429
|
+
|
|
2154
2430
|
#### Color definitions
|
|
2155
2431
|
|
|
2432
|
+
<details><summary>4 items:</summary>
|
|
2433
|
+
|
|
2156
2434
|
##### `def-hsl(name, hue, sat, lum, alpha)`
|
|
2157
2435
|
|
|
2158
2436
|
- **name**: variable name (without `--` prefix)
|
|
@@ -2193,18 +2471,12 @@ Defines a oklch() color variable with given name and additional derived vars for
|
|
|
2193
2471
|
|
|
2194
2472
|
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.
|
|
2195
2473
|
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
##### `bg-color(name)`
|
|
2199
|
-
|
|
2200
|
-
- **name**: variable name (without `--` prefix)
|
|
2201
|
-
|
|
2202
|
-
##### `color(name)`
|
|
2203
|
-
|
|
2204
|
-
- **name**: variable name (without `--` prefix)
|
|
2474
|
+
</details>
|
|
2205
2475
|
|
|
2206
2476
|
#### Dimensions
|
|
2207
2477
|
|
|
2478
|
+
<details><summary>6 items:</summary>
|
|
2479
|
+
|
|
2208
2480
|
##### `height(height)`
|
|
2209
2481
|
|
|
2210
2482
|
- **height**: incl. units
|
|
@@ -2241,6 +2513,14 @@ Sets min-width to given value
|
|
|
2241
2513
|
|
|
2242
2514
|
Sets width to given value
|
|
2243
2515
|
|
|
2516
|
+
</details>
|
|
2517
|
+
|
|
2518
|
+
#### Font families
|
|
2519
|
+
|
|
2520
|
+
##### `font-family(body)`
|
|
2521
|
+
|
|
2522
|
+
- **body**: CSS value/definition
|
|
2523
|
+
|
|
2244
2524
|
#### Grid layout
|
|
2245
2525
|
|
|
2246
2526
|
##### `grid-cols(cols)`
|
|
@@ -2253,6 +2533,8 @@ Sets width to given value
|
|
|
2253
2533
|
|
|
2254
2534
|
#### Margin
|
|
2255
2535
|
|
|
2536
|
+
<details><summary>7 items:</summary>
|
|
2537
|
+
|
|
2256
2538
|
##### `ma(size)`
|
|
2257
2539
|
|
|
2258
2540
|
- **size**: incl. units
|
|
@@ -2295,6 +2577,8 @@ Sets margin to custom size
|
|
|
2295
2577
|
|
|
2296
2578
|
Sets margin to custom size
|
|
2297
2579
|
|
|
2580
|
+
</details>
|
|
2581
|
+
|
|
2298
2582
|
#### Mask
|
|
2299
2583
|
|
|
2300
2584
|
##### `mask-image(body)`
|
|
@@ -2303,6 +2587,8 @@ Sets margin to custom size
|
|
|
2303
2587
|
|
|
2304
2588
|
#### Padding
|
|
2305
2589
|
|
|
2590
|
+
<details><summary>7 items:</summary>
|
|
2591
|
+
|
|
2306
2592
|
##### `pa(size)`
|
|
2307
2593
|
|
|
2308
2594
|
- **size**: incl. units
|
|
@@ -2345,8 +2631,12 @@ Sets padding to custom size
|
|
|
2345
2631
|
|
|
2346
2632
|
Sets padding to custom size
|
|
2347
2633
|
|
|
2634
|
+
</details>
|
|
2635
|
+
|
|
2348
2636
|
#### Positions
|
|
2349
2637
|
|
|
2638
|
+
<details><summary>4 items:</summary>
|
|
2639
|
+
|
|
2350
2640
|
##### `bottom(coordinate)`
|
|
2351
2641
|
|
|
2352
2642
|
- **coordinate** (incl. units)
|
|
@@ -2363,6 +2653,8 @@ Sets padding to custom size
|
|
|
2363
2653
|
|
|
2364
2654
|
- **coordinate** (incl. units)
|
|
2365
2655
|
|
|
2656
|
+
</details>
|
|
2657
|
+
|
|
2366
2658
|
#### Svg
|
|
2367
2659
|
|
|
2368
2660
|
##### `fill(name)`
|
|
@@ -2373,11 +2665,19 @@ Sets padding to custom size
|
|
|
2373
2665
|
|
|
2374
2666
|
- **name**: variable name (without `--` prefix)
|
|
2375
2667
|
|
|
2668
|
+
#### Text color
|
|
2669
|
+
|
|
2670
|
+
##### `color(name)`
|
|
2671
|
+
|
|
2672
|
+
- **name**: variable name (without `--` prefix)
|
|
2673
|
+
|
|
2376
2674
|
### Media queries
|
|
2377
2675
|
|
|
2378
|
-
- **ns**: `{"min-width":"
|
|
2379
|
-
- **m**: `{"min-width":"
|
|
2380
|
-
- **l**: `{"min-width":"
|
|
2676
|
+
- **ns**: `{"min-width":"640px"}`
|
|
2677
|
+
- **m**: `{"min-width":"768px"}`
|
|
2678
|
+
- **l**: `{"min-width":"1024px"}`
|
|
2679
|
+
- **xl**: `{"min-width":"1280px"}`
|
|
2680
|
+
- **2xl**: `{"min-width":"1536px"}`
|
|
2381
2681
|
- **dark**: `{"prefers-color-scheme":"dark"}`
|
|
2382
2682
|
- **light**: `{"prefers-color-scheme":"light"}`
|
|
2383
2683
|
- **anim**: `{"prefers-reduced-motion":false}`
|
|
@@ -2405,7 +2705,7 @@ distributed as CLI bundle with **no runtime dependencies**. The following
|
|
|
2405
2705
|
dependencies are only shown for informational purposes and are (partially)
|
|
2406
2706
|
included in the bundle.
|
|
2407
2707
|
|
|
2408
|
-
Package sizes (brotli'd, pre-treeshake): ESM:
|
|
2708
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 13.75 KB
|
|
2409
2709
|
|
|
2410
2710
|
## Dependencies
|
|
2411
2711
|
|
|
@@ -2413,10 +2713,12 @@ Package sizes (brotli'd, pre-treeshake): ESM: 12.85 KB
|
|
|
2413
2713
|
- [@thi.ng/args](https://github.com/thi-ng/umbrella/tree/develop/packages/args)
|
|
2414
2714
|
- [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/develop/packages/arrays)
|
|
2415
2715
|
- [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
|
|
2716
|
+
- [@thi.ng/compare](https://github.com/thi-ng/umbrella/tree/develop/packages/compare)
|
|
2416
2717
|
- [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)
|
|
2417
2718
|
- [@thi.ng/file-io](https://github.com/thi-ng/umbrella/tree/develop/packages/file-io)
|
|
2418
2719
|
- [@thi.ng/hiccup-css](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-css)
|
|
2419
2720
|
- [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/develop/packages/logger)
|
|
2721
|
+
- [@thi.ng/memoize](https://github.com/thi-ng/umbrella/tree/develop/packages/memoize)
|
|
2420
2722
|
- [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)
|
|
2421
2723
|
- [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings)
|
|
2422
2724
|
- [@thi.ng/text-format](https://github.com/thi-ng/umbrella/tree/develop/packages/text-format)
|
|
@@ -2428,13 +2730,20 @@ Several projects in this repo's
|
|
|
2428
2730
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
2429
2731
|
directory are using this package:
|
|
2430
2732
|
|
|
2431
|
-
| Screenshot
|
|
2432
|
-
|
|
2433
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/blurhash.jpg" width="240"/>
|
|
2434
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/layout-gridgen.png" width="240"/>
|
|
2435
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/meta-css-basics.png" width="240"/>
|
|
2436
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/
|
|
2437
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-
|
|
2733
|
+
| Screenshot | Description | Live demo | Source |
|
|
2734
|
+
|:---------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------|:----------------------------------------------------------|:---------------------------------------------------------------------------------------|
|
|
2735
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/blurhash.jpg" width="240"/> | Interactive & reactive image blurhash generator | [Demo](https://demo.thi.ng/umbrella/blurhash/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/blurhash) |
|
|
2736
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/layout-gridgen.png" width="240"/> | Randomized space-filling, nested grid layout generator | [Demo](https://demo.thi.ng/umbrella/layout-gridgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/layout-gridgen) |
|
|
2737
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/meta-css-basics.png" width="240"/> | Basic thi.ng/meta-css usage & testbed | [Demo](https://demo.thi.ng/umbrella/meta-css-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/meta-css-basics) |
|
|
2738
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/ramp-scroll-anim.png" width="240"/> | Scroll-based, reactive, multi-param CSS animation basics | [Demo](https://demo.thi.ng/umbrella/ramp-scroll-anim/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/ramp-scroll-anim) |
|
|
2739
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-dnd.png" width="240"/> | rdom drag & drop example | [Demo](https://demo.thi.ng/umbrella/rdom-dnd/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-dnd) |
|
|
2740
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-formgen.jpg" width="240"/> | Basic usage of the declarative rdom-forms generator | [Demo](https://demo.thi.ng/umbrella/rdom-formgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-formgen) |
|
|
2741
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-lazy-load.png" width="240"/> | Lazy loading components via @thi.ng/rdom | [Demo](https://demo.thi.ng/umbrella/rdom-lazy-load/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-lazy-load) |
|
|
2742
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-web-components.png" width="240"/> | Defining & using basic Web Components (with shadow DOM) via @thi.ng/rdom & @thi.ng/meta-css | [Demo](https://demo.thi.ng/umbrella/rdom-web-components/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-web-components) |
|
|
2743
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rstream-system-bus.png" width="240"/> | Declarative component-based system with central rstream-based pubsub event bus | [Demo](https://demo.thi.ng/umbrella/rstream-system-bus/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rstream-system-bus) |
|
|
2744
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/text-canvas.png" width="240"/> | 3D wireframe textmode demo | [Demo](https://demo.thi.ng/umbrella/text-canvas/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/text-canvas) |
|
|
2745
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/trace-bitmap.jpg" width="240"/> | Multi-layer vectorization & dithering of bitmap images | [Demo](https://demo.thi.ng/umbrella/trace-bitmap/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/trace-bitmap) |
|
|
2746
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/webgl-texture-paint.jpg" width="240"/> | Interactively drawing to & reading from a WebGL offscreen render texture | [Demo](https://demo.thi.ng/umbrella/webgl-texture-paint/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/webgl-texture-paint) |
|
|
2438
2747
|
|
|
2439
2748
|
## Authors
|
|
2440
2749
|
|