Icon

Icons communicate messages, enhance interactivity, and highlight critical information. Use them as visual representations of concepts, objects, or actions efficiently.

UsageCodeAccessibility
<sl-icon name="angle-down" size="2xs"></sl-icon>
<sl-icon name="face-smile"></sl-icon>
<sl-icon name="triangle-exclamation-solid" size="xl" style="color:red"></sl-icon>
<sl-icon name="pinata" size="4xl"></sl-icon>

When to Use

Icons are important for user understanding and interaction

Intuitive Content

Icons enhance usability, facilitating a quick understanding by providing a visual representation of information. They can communicate complex messages to the user effectively in a simple and concise manner, resulting in a more intuitive and user-friendly experience.

Labeling Icons

It is challenging to find icons that are universally understood without some form of textual explanation. Therefore, it is best practice to add a label in combination with an icon. Incorporating labels can enhance usability, and a larger clickable area reduces interaction costs. Some icons, such as the save iconor the close iconare so common that they can be used without a label if there is no space for one.

When not to Use

Our focus is on functionality and accessibility, ensuring icons convey meaningful information and enhance usability.

Not for Decoration

Avoid using the icon component for purely decorative purposes. The main objective is to enhance the user's understanding of the actions within the interactive elements. When icons are utilized solely for ornamentation without contributing to the clarity or functionality of the interface, it can lead to visual clutter and detract from the overall usability of the interface. Use icons to convey meaningful information or facilitate user interactions to maintain usability and effectiveness.

Variants

We use the icons library Font Awesome to ensure that all the icons look similar and are easy to use. However, it is possible to implement custom icons.

  • Font Awesome: By default, we provide the Font Awesome icons library to choose the icons from them. You only need to check and copy the icon name to the icon layer.

  • Custom: You can also create specific SVG icons, but we encourage using Font Awesome. If it is necessary to have a custom icon because it's mandatory for your app, contact us to tell you the next steps.

Figma Options

With these options, you can tweak the appearance of the icon in Figma. They are available in the Design Panel so you can compose the icon to exactly fit the user experience need for the use case you are working on.

ItemOptionsDescription
Icon'fa', 'svg'Choose the variant of the icon, Font Awesome or Custom (SVG).
FontAwesome'Icon Name'Write down the name of the icon from Font Awesome.
Interactive example