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-60f:gray-60f:brown-60f:orange-60f:gold-60f:yellow-60f:grass-60f:green-60f:beryl-60f:teal-60f:cyan-60f:sky-60f:blue-60f:indigo-60f:violet-60f:purple-60f:fuchsia-60f:pink-60f:crimson-60f:red-60Hex
f:#878d9ff:#8d8d8ff:#af836ef:#d5731ef:#c08000f:#ac8a00f:#689c13f:#08a345f:#00a170f:#009f94f:#0099c1f:#0b92eef:#538ceef:#7d84e8f:#9e77f5f:#b56cecf:#e04ee5f:#ee52a3f:#ea5b82f:#eb5f63RGB
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.