Font

Font Color

Can I use ?Can I use ?
classproperties
font-color:color / font:color / f:colorcolor: color
font:#hexcolor: #hex
font:rgb(rgb)color: rgb(rgb)
font:hsl(hsl)color: hsl(hsl)

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.

Aa
f:fade-60
Aa
f:gray-60
Aa
f:brown-60
Aa
f:orange-60
Aa
f:gold-60
Aa
f:yellow-60
Aa
f:grass-60
Aa
f:green-60
Aa
f:beryl-60
Aa
f:teal-60
Aa
f:cyan-60
Aa
f:sky-60
Aa
f:blue-60
Aa
f:indigo-60
Aa
f:violet-60
Aa
f:purple-60
Aa
f:fuchsia-60
Aa
f:pink-60
Aa
f:crimson-60
Aa
f:red-60

Hex

Aa
f:#878d9f
Aa
f:#8d8d8f
Aa
f:#af836e
Aa
f:#d5731e
Aa
f:#c08000
Aa
f:#ac8a00
Aa
f:#689c13
Aa
f:#08a345
Aa
f:#00a170
Aa
f:#009f94
Aa
f:#0099c1
Aa
f:#0b92ee
Aa
f:#538cee
Aa
f:#7d84e8
Aa
f:#9e77f5
Aa
f:#b56cec
Aa
f:#e04ee5
Aa
f:#ee52a3
Aa
f:#ea5b82
Aa
f:#eb5f63

RGB

Aa
f:rgb(135,141,159)
Aa
f:rgb(141,141,143)
Aa
f:rgb(175,131,110)
Aa
f:rgb(213,115,30)
Aa
f:rgb(192,128,0)
Aa
f:rgb(172,138,0)
Aa
f:rgb(104,156,19)
Aa
f:rgb(8,163,69)
Aa
f:rgb(0,161,112)
Aa
f:rgb(0,159,148)
Aa
f:rgb(0,153,193)
Aa
f:rgb(11,146,238)
Aa
f:rgb(83,140,238)
Aa
f:rgb(125,132,232)
Aa
f:rgb(158,119,245)
Aa
f:rgb(181,108,236)
Aa
f:rgb(224,78,229)
Aa
f:rgb(238,82,163)
Aa
f:rgb(234,91,130)
Aa
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.

<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.


© Aoyue Design LLC.
Issue on this page
Edited byAronLola