ESLint plugin

The essential plugin for use with the Atlassian Design System.

use-tokens-space

Examples

This rule marks code as violations when a space token should be used. It will auto-fix values that can be mapped 1:1 with an ADS space token. Values that can't be mapped to a token will still be reported, however no auto-fix will happen.

Incorrect

const someStyles = css({
  padding: '8px';
           ^^^^^
})

Correct

import { token } from '@atlaskit/tokens'

const someStyles = css({
  padding: token('space.100');
})

See the list of available space tokens on the ADS website, (opens new window).

For Atlassians:

Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License