Template:ColorLabel
Jump to navigation
Jump to search
{{{1}}}
Examples
Hex color (gold):
#FFD700
Predefined color (red):
red
Predefined CSS variable color (green):
var(--color-cosmoGreen)
RGB color (orange) with a custom name:
Sunset
#FFD700
Included
#FFD700
within text.
Forced to wrap var(--color-cosmoGreen) mid itself - doesn't break.
Inline in a table cell, inside other text.
Warning
To prevent the color label from breaking structure, you must add a linebreak where the table cell starts.
It should be a regular linebreak: no
It should be a regular linebreak: no
<br>
(HTML tag) or {{Br}}
(template).
In a table cell yes it's red being inline |
Inline in a table cell, on its own.
Warning
To prevent the color label from breaking structure, you must add a linebreak where the table cell starts.
It should be a regular linebreak: no
It should be a regular linebreak: no
<br>
(HTML tag) or {{Br}}
(template).
green |
Creates a little square of given color and the given color string right after.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | 1 | A valid CSS color string: #123456, rgb(10, 20, 30), red, var(--red) (must be an existing CSS variable), etc.
| String | required |
Label | 2 | Give your color a custom label.
| String | optional |
Category:
- Design Templates