ESLint plugin

The essential plugin for use with the Atlassian Design System.

ensure-icon-color

In an upcoming release of @atlaskit/icon, new icon components in @atlaskit/icon/core, @atlaskit/icon/utility and @atlaskit/icon-lab are being updated so the default value of color is currentColor.

To assist with migration, this lint rule requires the color prop to be set.

Examples

This rule will find violations when an icon doesn't have the color prop set explicitly.

Incorrect

import AddIcon from '@atlaskit/icon/core/add'

<AddIcon label="">
^^^^^^^^^^^^^^ missing `color` prop

Correct

import AddIcon from '@atlaskit/icon/core/add';
import {token} from '@atlaskit/token';

<AddIcon label="" color={token('color.icon', '#44546F')} >
Was this page helpful?
We use this feedback to improve our documentation.
  • Design system
    • Get started
    • Foundations
    • Components
    • Rovo UI
    • Tools
    • Release phases
    • Contact us
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License