Componentsv2.189.1
Iconsv1.19.0
MCPv0.8.62
Tokensv0.34.3

Icons are scalable graphics used to visually enhance a user interface.

Anatomy

  1. SVG container: Renders at a preset size or scales dynamically within its container.
  2. Glyph: The icon SVG path itself. Inherits color from its parent unless overridden.

Guidelines

When to use

Icons are visual elements used to enhance the meaning of surrounding text or represent an action a user may take. While Icons may be standalone within icon-only Buttons, they're best used with supplementary text. When adding Icons to a UI, be sure to use them consistently to preserve the look and feel of the layout. For example, if one item in a list includes an Icon, then all should include one.

Best practices

Color use

Icon color may be changed if necessary, but be sure to use colors to convey a common semantic meaning. Avoid updating colors to meet the needs of a particular color scheme or theme.

For more information regarding Icon color accessibility, see Color and meaning in the Accessibility tab.

Delivered
Failed
Do: Use semantic colors for their intended meaning.
Delivered
Failed
Don't: Use colors to fit an application theme.

Sizing consistency

Visual clarity and consistency is important to the user experience. When using Icons, be sure to keep Icon sizes consistent across the page, especially within close groups. Mixing Icon sizes not only disrupts visual clarity, it creates an inconsistent layout flow that increases a user's cognitive load.

Do: Use the same size for icons that appear in the same context.
Don't: Mix icon sizes in the same group.

Appearance

Colors

By default, Icon color will match the surrounding text, and these colors were carefully chosen from Pluma's semantic color token palette. While we recommend sticking to this default, Icon color can still be overridden with another available color value.

base
bold
subtle
accent
success
caution
critical
information
feature
disabled
Available colors

Icon colors map to Pluma tokens to maintain semantic meaning and proper contrast.

Custom icons

If the available Pluma icons don't fit a particular use case, custom icons can be added with the Pluma Image component. Custom icons are subject to the same size styles that Pluma Icons are.

SlackSalesforce
Custom icon

Custom icons can be used in place of a Pluma icon if necessary.

Filled style

Most of Pluma's icons are outlined, but there are a select few that have filled counterparts. Use filled Icons to show a change in state, such as within an active sidebar navigation link.

Outline

Outlined Icons are default.

Filled

Filled icons provide stronger visual weight and are used for active or selected states.

Sizes

Icons are available in four preset sizes: small, medium, large, and extra large.

sm
md
lg
xl
Sizes

Icons are available in four preset sizes created to feel comfortable within tighter layouts.

Fill mode

An Icon's size can be set to fill 100% of its parent container, allowing it to scale dynamically within a responsive layout.

Fill

An Icon size set to fill scales to match the dimensions of its parent container.

Behaviors

Inline icons

Icons that are used with inline text adjust their vertical position to better visually align with the surrounding text. This behavior is automatically based on whether the Icon is next to an uppercase or lowercase letter but can be changed manually.

Campaign status: delivered successfully
Inline with text

Icon alignment will adjust based on its surrounding text.

Content

Icon labels

When an Icon appears without visible supporting text, provide a label that describes its meaning or purpose, not its visual appearance. For more information about creating more accessible Icons, see the Decorative and non-decorative icons section under the Accessibility tab.

Note: Icon labels are not visible to the user. Text below is for example only.
Delete campaign
Do: Describe the Icon's meaning in context.
Trash can icon
Don't: Describe the Icon's visual appearance.