Icons
Icons are used to visually communicate core parts of the product and available actions. They can help users understand where they are in the product and what common interaction patterns are available.
Variants
Section titled “Variants”We load the SVG icons on demand from an icon sprite sheet. The SVG symbol ID is the icon’s name the in FontAwesome’s library.
<svg class="icon"> <use aria-hidden="true" xlink:href="/assets/svg/light.svg#circle-check"></use></svg>@import components._
@icon(icon="", weight="", classes="", id="")PropTypeDescription
- iconstringname of Font Awesome SVG icon (without the
fa-prefix.)
If an icon is not provided, the fallback is check. - weightstringregular | solid | light | thin (default is regular)
- classesstringappends/adds additional classes to
svg class=“icon”, i.e.icon-16 icon-danger - idstringappends an
id=""to thesvg
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';import { faCheck } from '@fortawesome/pro-regular-svg-icons/faCheck';
function () { return ( <FontAwesomeIcon icon={faCheck} /> );}By default, icons size according to their inline content. Set icons to a specific size with these tokens.
VisualREMPXClassCopy
- 1.524
.icon-24 - 1.2520
.icon-20 - 1.12518
.icon-18 - 116
.icon-16 - .87514
.icon-14 - 0.7512
.icon-12 - 0.68811
.icon-11
Condensed color palette
Section titled “Condensed color palette”By default, icons inherit colors from their parent context including pseudo states like :hover, :active, and :focus. Set a specific color by including one of these classes with icon. For example, class="icon icon-brand"
If there are interactive pseudo states that effect a change of text color (:hover, :active, :focus, etc.), this will cascade down into the SVG icon fill.
VisualValueClassCopy
Neutral gray-800.icon-neutralNeutral subtle gray-500.icon-neutral-subtleNeutral subtler gray-400.icon-neutral-subtlerBrand brand-700.icon-brandInverse white.icon-inverseSuccess success-700.icon-successDanger danger-700.icon-dangerInfo info-700.icon-infoWarning warning-800.icon-warningAccent orange orange-600.icon-accent-orangeAccent cyan cyan-600.icon-cyan-orangeAccent olive olive-700.icon-accent-oliveAccent magenta magenta-600.icon-accent-magenta