Breakpoints

Breakpoints can be accessed through the media object for use in styles

Installation

Package installation information
Installyarn add @atlaskit/primitives
SourceBitbucket.org, (opens new window)
npm@atlaskit/primitives, (opens new window)
Bundleunpkg.com, (opens new window)

Media Queries

The primitives media object is deprecated for styling. Use the canonical typed media-query entrypoints from @atlaskit/css instead. The CSS overview contains the canonical styling guidance.

import { css } from '@atlaskit/css';
import type MediaAboveXs from '@atlaskit/css/at-rules/media-above-xs';
import { token } from '@atlaskit/tokens';

const styles = css({
    padding: token('space.100'),
    ['@media (min-width: 30rem)' satisfies MediaAboveXs]: {
        padding: token('space.200'),
    },
});
MediaBreakpointQueryPixel Value
media.above.xxsxxs@media all0px
media.above.xsxs@media (min-width: 30rem)480px
media.above.smsm@media (min-width: 48rem)768px
media.above.mdmd@media (min-width: 64rem)1024px
media.above.lglg@media (min-width: 90rem)1440px
media.above.xlxl@media (min-width: 110.5rem)1768px
media.only.xxsxxs@media (min-width: 0rem) and (max-width: 29.99rem)0px
media.only.xsxs@media (min-width: 30rem) and (max-width: 47.99rem)480px
media.only.smsm@media (min-width: 48rem) and (max-width: 63.99rem)768px
media.only.mdmd@media (min-width: 64rem) and (max-width: 89.99rem)1024px
media.only.lglg@media (min-width: 90rem) and (max-width: 110.49rem)1440px
media.only.xlxl@media (min-width: 110.5rem)1768px
media.below.xsxs@media not all and (min-width: 30rem)480px
media.below.smsm@media not all and (min-width: 48rem)768px
media.below.mdmd@media not all and (min-width: 64rem)1024px
media.below.lglg@media not all and (min-width: 90rem)1440px
media.below.xlxl@media not all and (min-width: 110.5rem)1768px
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License