ColorsColor

Text Color

Set the text color for an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Sphinx of black quartz, judge my vow.

Sphinx of black quartz, judge my vow.

Sphinx of black quartz, judge my vow.

<div class="d-g p-4 rg-4">
<p class="ta-c c-silver-3">Sphinx of black quartz, judge my vow.</p>
<p class="ta-c c-silver">Sphinx of black quartz, judge my vow.</p>
<p class="ta-c c-silver-8">Sphinx of black quartz, judge my vow.</p>
</div>

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:c-[value]
Small≥640px
md:c-[value]
Medium≥768px
lg:c-[value]
Large≥1024px
xxl:c-[value]
Extra Large≥1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:c-[value]

Opacity Modifiers

Adjust color transparency by appending an opacity suffix.

Append /[opacity] to any color utility to control its transparency level.

Syntax:c-[color]/[0-100]