@thi.ng/meta-css 0.7.13 → 0.8.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 +48 -1
- package/README.md +1252 -98
- package/index.js +6 -6
- package/package.json +10 -10
- package/specs/_info.mcss.json +5 -3
- package/specs/a11y.mcss.json +2 -2
- package/specs/anim.mcss.json +93 -28
- package/specs/aspect.mcss.json +27 -41
- package/specs/background.mcss.json +2 -2
- package/specs/borders.mcss.json +6 -6
- package/specs/color-ops.mcss.json +160 -0
- package/specs/colors.mcss.json +49 -62
- package/specs/content.mcss.json +1 -1
- package/specs/cursor.mcss.json +1 -1
- package/specs/dimensions.mcss.json +7 -7
- package/specs/display.mcss.json +2 -2
- package/specs/flex.mcss.json +4 -4
- package/specs/grids.mcss.json +16 -5
- package/specs/icons.mcss.json +2 -2
- package/specs/lists.mcss.json +1 -1
- package/specs/margins.mcss.json +5 -5
- package/specs/normalize.mcss.json +1 -2
- package/specs/overflows.mcss.json +1 -1
- package/specs/positions.mcss.json +14 -3
- package/specs/print.mcss.json +1 -1
- package/specs/scroll.mcss.json +3 -3
- package/specs/selection.mcss.json +1 -1
- package/specs/shadows.mcss.json +3 -3
- package/specs/typography.mcss.json +15 -15
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
|
-
- [
|
|
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:
|
|
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
|
-
|
|
69
|
-
|
|
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
|
|
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
|
-
###
|
|
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
|
|
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/
|
|
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
|
|
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
|
|
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
|
|
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-color-black` (#000)
|
|
1781
|
+
- `fill-color-blue` (#357edd)
|
|
1782
|
+
- `fill-color-current` (currentcolor)
|
|
1783
|
+
- `fill-color-dark-blue` (#00449e)
|
|
1784
|
+
- `fill-color-dark-gray` (#333)
|
|
1785
|
+
- `fill-color-dark-green` (#137752)
|
|
1786
|
+
- `fill-color-dark-pink` (#d5008f)
|
|
1787
|
+
- `fill-color-dark-red` (#e7040f)
|
|
1788
|
+
- `fill-color-gold` (#ffb700)
|
|
1789
|
+
- `fill-color-gray` (#777)
|
|
1790
|
+
- `fill-color-green` (#19a974)
|
|
1791
|
+
- `fill-color-hot-pink` (#ff41b4)
|
|
1792
|
+
- `fill-color-light-blue` (#96ccff)
|
|
1793
|
+
- `fill-color-light-gray` (#eee)
|
|
1794
|
+
- `fill-color-light-green` (#9eebcf)
|
|
1795
|
+
- `fill-color-light-pink` (#ffa3d7)
|
|
1796
|
+
- `fill-color-light-purple` (#a463f2)
|
|
1797
|
+
- `fill-color-light-red` (#ff725c)
|
|
1798
|
+
- `fill-color-light-silver` (#aaa)
|
|
1799
|
+
- `fill-color-light-yellow` (#fbf1a9)
|
|
1800
|
+
- `fill-color-lightest-blue` (#cdecff)
|
|
1801
|
+
- `fill-color-mid-gray` (#555)
|
|
1802
|
+
- `fill-color-moon-gray` (#ccc)
|
|
1803
|
+
- `fill-color-navy` (#001b44)
|
|
1804
|
+
- `fill-color-near-black` (#111)
|
|
1805
|
+
- `fill-color-near-white` (#f4f4f4)
|
|
1806
|
+
- `fill-color-orange` (#ff6300)
|
|
1807
|
+
- `fill-color-pink` (#ff80cc)
|
|
1808
|
+
- `fill-color-purple` (#5e2ca5)
|
|
1809
|
+
- `fill-color-red` (#ff4136)
|
|
1810
|
+
- `fill-color-silver` (#999)
|
|
1811
|
+
- `fill-color-transparent` (transparent)
|
|
1812
|
+
- `fill-color-washed-blue` (#f6fffe)
|
|
1813
|
+
- `fill-color-washed-green` (#e8fdf5)
|
|
1814
|
+
- `fill-color-washed-red` (#ffdfdf)
|
|
1815
|
+
- `fill-color-washed-yellow` (#fffceb)
|
|
1816
|
+
- `fill-color-white` (#fff)
|
|
1817
|
+
- `fill-color-yellow` (#ffd700)
|
|
1818
|
+
- `stroke-color-black` (#000)
|
|
1819
|
+
- `stroke-color-blue` (#357edd)
|
|
1820
|
+
- `stroke-color-current` (currentcolor)
|
|
1821
|
+
- `stroke-color-dark-blue` (#00449e)
|
|
1822
|
+
- `stroke-color-dark-gray` (#333)
|
|
1823
|
+
- `stroke-color-dark-green` (#137752)
|
|
1824
|
+
- `stroke-color-dark-pink` (#d5008f)
|
|
1825
|
+
- `stroke-color-dark-red` (#e7040f)
|
|
1826
|
+
- `stroke-color-gold` (#ffb700)
|
|
1827
|
+
- `stroke-color-gray` (#777)
|
|
1828
|
+
- `stroke-color-green` (#19a974)
|
|
1829
|
+
- `stroke-color-hot-pink` (#ff41b4)
|
|
1830
|
+
- `stroke-color-light-blue` (#96ccff)
|
|
1831
|
+
- `stroke-color-light-gray` (#eee)
|
|
1832
|
+
- `stroke-color-light-green` (#9eebcf)
|
|
1833
|
+
- `stroke-color-light-pink` (#ffa3d7)
|
|
1834
|
+
- `stroke-color-light-purple` (#a463f2)
|
|
1835
|
+
- `stroke-color-light-red` (#ff725c)
|
|
1836
|
+
- `stroke-color-light-silver` (#aaa)
|
|
1837
|
+
- `stroke-color-light-yellow` (#fbf1a9)
|
|
1838
|
+
- `stroke-color-lightest-blue` (#cdecff)
|
|
1839
|
+
- `stroke-color-mid-gray` (#555)
|
|
1840
|
+
- `stroke-color-moon-gray` (#ccc)
|
|
1841
|
+
- `stroke-color-navy` (#001b44)
|
|
1842
|
+
- `stroke-color-near-black` (#111)
|
|
1843
|
+
- `stroke-color-near-white` (#f4f4f4)
|
|
1844
|
+
- `stroke-color-orange` (#ff6300)
|
|
1845
|
+
- `stroke-color-pink` (#ff80cc)
|
|
1846
|
+
- `stroke-color-purple` (#5e2ca5)
|
|
1847
|
+
- `stroke-color-red` (#ff4136)
|
|
1848
|
+
- `stroke-color-silver` (#999)
|
|
1849
|
+
- `stroke-color-transparent` (transparent)
|
|
1850
|
+
- `stroke-color-washed-blue` (#f6fffe)
|
|
1851
|
+
- `stroke-color-washed-green` (#e8fdf5)
|
|
1852
|
+
- `stroke-color-washed-red` (#ffdfdf)
|
|
1853
|
+
- `stroke-color-washed-yellow` (#fffceb)
|
|
1854
|
+
- `stroke-color-white` (#fff)
|
|
1855
|
+
- `stroke-color-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
|
-
|
|
1942
|
+
### Templates by category
|
|
829
1943
|
|
|
830
|
-
####
|
|
1944
|
+
#### Animation / transition
|
|
831
1945
|
|
|
832
|
-
|
|
1946
|
+
##### `anim-delay(delay)`
|
|
833
1947
|
|
|
834
|
-
|
|
1948
|
+
- **delay**: time (in seconds)
|
|
835
1949
|
|
|
836
|
-
|
|
1950
|
+
##### `anim-iter(iter)`
|
|
837
1951
|
|
|
838
|
-
|
|
1952
|
+
- **iter**: number of iterations
|
|
839
1953
|
|
|
840
|
-
|
|
1954
|
+
##### `anim-steps(steps)`
|
|
841
1955
|
|
|
842
|
-
|
|
1956
|
+
- **steps**: number of steps
|
|
843
1957
|
|
|
844
|
-
|
|
1958
|
+
##### `bg-anim(duration)`
|
|
845
1959
|
|
|
846
|
-
|
|
1960
|
+
- **duration**: in seconds
|
|
847
1961
|
|
|
848
|
-
|
|
1962
|
+
Transition to tween background color
|
|
849
1963
|
|
|
850
|
-
|
|
1964
|
+
##### `fade-in(duration)`
|
|
851
1965
|
|
|
852
|
-
|
|
1966
|
+
- **duration**: in seconds
|
|
853
1967
|
|
|
854
|
-
|
|
1968
|
+
Animation to change opacity
|
|
855
1969
|
|
|
856
|
-
|
|
1970
|
+
##### `fade-out(duration)`
|
|
857
1971
|
|
|
858
|
-
|
|
1972
|
+
- **duration**: in seconds
|
|
859
1973
|
|
|
860
|
-
|
|
1974
|
+
Animation to change opacity
|
|
861
1975
|
|
|
862
|
-
|
|
1976
|
+
##### `shrink(duration, height)`
|
|
863
1977
|
|
|
864
|
-
|
|
1978
|
+
- **duration**: in seconds
|
|
1979
|
+
- **height**: initial height (incl. units)
|
|
865
1980
|
|
|
866
|
-
|
|
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
|
-
|
|
1983
|
+
##### `spin(duration)`
|
|
869
1984
|
|
|
870
|
-
|
|
1985
|
+
- **duration**: in seconds
|
|
871
1986
|
|
|
872
|
-
|
|
1987
|
+
Animation which rotates element a full turn, looping indefinitely
|
|
873
1988
|
|
|
874
|
-
####
|
|
1989
|
+
#### Aspect ratios
|
|
875
1990
|
|
|
876
|
-
|
|
1991
|
+
##### `aspect-ratio(width, height)`
|
|
877
1992
|
|
|
878
|
-
|
|
1993
|
+
- **width**: aspect width
|
|
1994
|
+
- **height**: aspect height
|
|
879
1995
|
|
|
880
|
-
`
|
|
1996
|
+
Sets `aspect-ratio` CSS property
|
|
881
1997
|
|
|
882
|
-
|
|
1998
|
+
##### `bg-aspect-ratio(width, height)`
|
|
883
1999
|
|
|
884
|
-
|
|
2000
|
+
- **width**: aspect width
|
|
2001
|
+
- **height**: aspect height
|
|
885
2002
|
|
|
886
|
-
|
|
2003
|
+
Sets aspect ratio of background. Use with `bg-aspect-ratio-object` on child element.
|
|
887
2004
|
|
|
888
|
-
|
|
2005
|
+
#### Border color
|
|
889
2006
|
|
|
890
|
-
|
|
2007
|
+
##### `border-color(name)`
|
|
891
2008
|
|
|
892
|
-
|
|
2009
|
+
- **name**: variable name (without `--` prefix)
|
|
893
2010
|
|
|
894
|
-
####
|
|
2011
|
+
#### Color adjustment
|
|
895
2012
|
|
|
896
|
-
|
|
2013
|
+
##### `adjust-hsl(prop, name, hue, sat, lum, alpha)`
|
|
897
2014
|
|
|
898
|
-
|
|
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
|
-
|
|
2022
|
+
Assigns an adjusted version of a `def-hsl()`-defined color to given CSS property.
|
|
901
2023
|
|
|
902
|
-
|
|
2024
|
+
##### `adjust-lch(prop, name, luma, chroma, hue, alpha)`
|
|
903
2025
|
|
|
904
|
-
|
|
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
|
-
|
|
2033
|
+
Assigns an adjusted version of a `def-lch()` defined color to given CSS property.
|
|
907
2034
|
|
|
908
|
-
|
|
2035
|
+
##### `adjust-oklch(prop, name, luma, chroma, hue, alpha)`
|
|
909
2036
|
|
|
910
|
-
|
|
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
|
-
`
|
|
2044
|
+
Assigns an adjusted version of a `def-oklch()` defined color to given CSS property.
|
|
913
2045
|
|
|
914
|
-
|
|
2046
|
+
##### `adjust-rgb(prop, name, red, green, blue, alpha)`
|
|
915
2047
|
|
|
916
|
-
|
|
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
|
-
|
|
2055
|
+
Assigns an adjusted version of a `def-rgb()`-defined color to given CSS property.
|
|
919
2056
|
|
|
920
|
-
|
|
2057
|
+
#### Color definitions
|
|
921
2058
|
|
|
922
|
-
|
|
2059
|
+
##### `def-hsl(name, hue, sat, lum, alpha)`
|
|
923
2060
|
|
|
924
|
-
|
|
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
|
-
|
|
2067
|
+
Defines an hsl() color variable quad with a common base name
|
|
927
2068
|
|
|
928
|
-
|
|
2069
|
+
##### `def-lch(name, luma, chroma, hue, alpha)`
|
|
929
2070
|
|
|
930
|
-
|
|
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
|
-
|
|
2077
|
+
Defines a lch() color variable quad with a common base name
|
|
933
2078
|
|
|
934
|
-
|
|
2079
|
+
##### `def-oklch(name, luma, chroma, hue, alpha)`
|
|
935
2080
|
|
|
936
|
-
|
|
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
|
-
|
|
2087
|
+
Defines a oklch() color variable quad with a common base name
|
|
939
2088
|
|
|
940
|
-
|
|
2089
|
+
##### `def-rgb(name, red, green, blue, alpha)`
|
|
941
2090
|
|
|
942
|
-
|
|
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
|
-
|
|
2097
|
+
Defines a rgb() color variable quad with a common base name
|
|
945
2098
|
|
|
946
|
-
####
|
|
2099
|
+
#### Colors
|
|
947
2100
|
|
|
948
|
-
|
|
2101
|
+
##### `bg-color(name)`
|
|
949
2102
|
|
|
950
|
-
|
|
2103
|
+
- **name**: variable name (without `--` prefix)
|
|
951
2104
|
|
|
952
|
-
|
|
2105
|
+
##### `color(name)`
|
|
953
2106
|
|
|
954
|
-
|
|
2107
|
+
- **name**: variable name (without `--` prefix)
|
|
955
2108
|
|
|
956
|
-
|
|
2109
|
+
#### Grid layout
|
|
957
2110
|
|
|
958
|
-
|
|
2111
|
+
##### `grid-cols(cols)`
|
|
959
2112
|
|
|
960
|
-
|
|
2113
|
+
- **cols**: CSS cols definitions
|
|
961
2114
|
|
|
962
|
-
|
|
2115
|
+
##### `grid-rows(rows)`
|
|
963
2116
|
|
|
964
|
-
|
|
2117
|
+
- **rows**: CSS rows definitions
|
|
965
2118
|
|
|
966
|
-
####
|
|
2119
|
+
#### Positions
|
|
967
2120
|
|
|
968
|
-
|
|
2121
|
+
##### `bottom(coordinate)`
|
|
969
2122
|
|
|
970
|
-
|
|
2123
|
+
- **coordinate** (incl. units)
|
|
971
2124
|
|
|
972
|
-
|
|
2125
|
+
##### `left(coordinate)`
|
|
973
2126
|
|
|
974
|
-
|
|
2127
|
+
- **coordinate** (incl. units)
|
|
975
2128
|
|
|
976
|
-
|
|
2129
|
+
##### `right(coordinate)`
|
|
977
2130
|
|
|
978
|
-
|
|
2131
|
+
- **coordinate** (incl. units)
|
|
979
2132
|
|
|
980
|
-
|
|
2133
|
+
##### `top(coordinate)`
|
|
981
2134
|
|
|
982
|
-
|
|
2135
|
+
- **coordinate** (incl. units)
|
|
983
2136
|
|
|
984
|
-
|
|
2137
|
+
#### Svg
|
|
985
2138
|
|
|
986
|
-
|
|
2139
|
+
##### `fill(name)`
|
|
987
2140
|
|
|
988
|
-
|
|
2141
|
+
- **name**: variable name (without `--` prefix)
|
|
989
2142
|
|
|
990
|
-
|
|
2143
|
+
##### `stroke(name)`
|
|
991
2144
|
|
|
992
|
-
|
|
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.
|
|
2179
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 12.84 KB
|
|
1026
2180
|
|
|
1027
2181
|
## Dependencies
|
|
1028
2182
|
|