Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Icon

A small hand-drawn picture that goes with a word. It helps recognition; the word explains.

On this page

Playground

calendar
Icon
Background
HTML
<span class="feitio-inline" data-gap="1" style="font-size: var(--feitio-font-size-h3)"><svg class="feitio-icon" aria-hidden="true"><use href="/feitio/icons/sprite.svg#feitio-calendar"></use></svg><span>calendar</span></span>

When to use

When not to use

Examples

Three sizes

Small (16px), the size of the surrounding text (no attribute) and large (32px). Always in the text color.

Show code
HTML
<svg class="feitio-icon" data-size="small" aria-hidden="true"><use href="feitio/icons/sprite.svg#feitio-calendar"/></svg>
<svg class="feitio-icon" aria-hidden="true"><use href="feitio/icons/sprite.svg#feitio-calendar"/></svg>
<svg class="feitio-icon" data-size="large" aria-hidden="true"><use href="feitio/icons/sprite.svg#feitio-calendar"/></svg>

Every icon, with search and its code, is in the icon catalog.

Do and don’t

Do

Calendar

Icon and word together, in the same color.

Don’t

General settings

An orange icon decorating a heading: it helps no recognition and spends the orange.

Accessibility

Attributes

AttributeValuesWhat for
class="feitio-icon"requiredHand-drawn stroke, in the text color.
data-sizenone, "small", "large"The text size (no attribute), 16px or 32px.
aria-hidden="true"alwaysThe icon goes along; the word gives the name.
use hrefsprite.svg#feitio-<nome>Which icon.
Top