Module freya_testing::_docs::color_syntax
Expand description
§Color syntax
The attributes that have colors as values can use the following syntax:
§Static colors
rectbluegreenyellowblack(default forcolorattribute)graywhite(default forbackgroundattribute)orangetransparent
§rgb() / hsl()
- With RGB:
rgb(150, 60, 20) - With RGB and alpha:
rgb(150, 60, 20, 0.7)- You can also use 0-255 for the alpha:
rgb(150, 60, 20, 70)
- You can also use 0-255 for the alpha:
- With HSL:
hsl(28deg, 80%, 50%) - With HSL and alpha:
hsl(28deg, 80%, 50%, 25%)