ESLint plugin

The essential plugin for use with the Atlassian Design System.

no-margin

Using margins to define spacing results in components that can't be readily reused in other contexts breaking the composition model. Instead defining spacing in parents with flex and grid using the gap property will result in more resilient experiences.

Examples

This rule will mark all margin use as violations.

Incorrect

css({ margin: '10px' });

Correct

css({ gap: token('spacing.100') });
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