Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Swatch

A sample of a color, with the ink line around it, next to its name.

On this page

Playground

accent
Role
Background
HTML
<span class="feitio-inline" data-gap="2"><span class="feitio-swatch" style="--swatch: var(--feitio-color-accent)"></span><code>accent</code></span>

When to use

When not to use

Examples

accentokwarnerror

Next to the name

The sample is the size of the text and follows the theme: it changes on its own from day to night.

Show code
HTML
<span class="feitio-swatch" style="--swatch: var(--feitio-color-accent)"></span><code>accent</code>

Accessibility

Attributes

AttributeValuesWhat for
class="feitio-swatch"requiredThe little square with the ink line.
--swatcha Feitio colorThe sample’s color.
Top