Overview
The color
CSS property sets the foreground color value of an element’s text and text decorations, and sets the <currentcolor>
value.
Colors
Use color
please refer to Colors.
f:fade-60
f:gray-60
f:brown-60
f:orange-60
f:gold-60
f:yellow-60
f:grass-60
f:green-60
f:beryl-60
f:teal-60
f:cyan-60
f:sky-60
f:blue-60
f:indigo-60
f:violet-60
f:purple-60
f:fuchsia-60
f:pink-60
f:crimson-60
f:red-60
Hex
f:#878d9f
f:#8d8d8f
f:#af836e
f:#d5731e
f:#c08000
f:#ac8a00
f:#689c13
f:#08a345
f:#00a170
f:#009f94
f:#0099c1
f:#0b92ee
f:#538cee
f:#7d84e8
f:#9e77f5
f:#b56cec
f:#e04ee5
f:#ee52a3
f:#ea5b82
f:#eb5f63
RGB
f:rgb(135,141,159)
f:rgb(141,141,143)
f:rgb(175,131,110)
f:rgb(213,115,30)
f:rgb(192,128,0)
f:rgb(172,138,0)
f:rgb(104,156,19)
f:rgb(8,163,69)
f:rgb(0,161,112)
f:rgb(0,159,148)
f:rgb(0,153,193)
f:rgb(11,146,238)
f:rgb(83,140,238)
f:rgb(125,132,232)
f:rgb(158,119,245)
f:rgb(181,108,236)
f:rgb(224,78,229)
f:rgb(238,82,163)
f:rgb(234,91,130)
f:rgb(235,95,99)
Applying with functions
<div class="font-color:$(value)">...</div>
Master supports native CSS variables and functions, just add var(--key)
or use shorthand$(key)
for variables.
You can also use calc(expression)
, env(expression)
and other CSS functions if the property supports it.
To learn more, see the Functions documentation.
Conditionally apply
States and selectors
<div class="font-color:fade-10:hover">...</div>
Master supports all native CSS selectors, just add :hover
, :disabled
, chaining, combinators and other CSS selectors as usual.
To learn more, see the Selectors documentation.
Responsive breakpoints
<div class="font-color:fade-10@sm">...</div>
Responsive breakpoints can be applied to all styles. Some available breakpoints are 3xs
, 2xs
, xs
, sm
,md
, lg
, xl
, 2xl
, 3xl
, 4xl
. Arbitrary breakpoints can be specified through comparison operators >
, >=
, <
, <=
.
To learn more, see the Breakpoints documentation.
Print format and media queries
<div class="font-color:fade-10@print">...</div>
Master supports media types like print
, screen
, speech
, all
, and other media queries.
To learn more, see the Media Queries documentation.
Dark mode and color schemes
<div class="font-color:fade-10@dark">...</div>
Master uses the selector html.dark
to support color schemes. Now, you can easily fine-tune your style for the color schemes.
To learn more, see the Color Schemes documentation.