Design Variables

Screens

Customizing screens and breakpoints or starting with the official design system.

Default

TokenPixelsREMDescription
screen-4xs360px22.5remiPhone 6, 7, 8, X, 11, 12 / Galaxy S8 / HTC One…
screen-3xs480px30remBlackberry Passport / Amazon Kindle Fire HD 7…
screen-2xs600px37.5remLG G Pad 8.3 / Amazon Kindle Fire …
screen-xs768px48remMicrosoft Surface / iPad Pro 9.7 / iPad Mini …
screen-sm834px52.125remiPad Air 10.5 / iPad Pro 11 …
screen-md1024px64remiPad Pro 12.9 / Microsoft Surface Pro 3 …
screen-lg1280px80remGoogle Chromebook Pixel / Samsung Chromebook …
screen-xl1440px90remMacbook Air 2020 M1 / MacBook Pro 15 …
screen-2xl1600px100remDell Inspiron 14 series …
screen-3xl1920px120remDell UltraSharp U2412M / Dell S2340M / Apple iMac 21.5-inch …
screen-4xl2560px160remDell UltraSharp U2711 / Apple iMac 27-inch …
View the default variables
export default {
variables: {
screen: {
"4xs": 360,
"3xs": 480,
"2xs": 600,
"xs": 768,
"sm": 834,
"md": 1024,
"lg": 1280,
"xl": 1440,
"2xl": 1600,
"3xl": 1920,
"4xl": 2560
}
}
}

Apply the default screen variables using any syntax:

<div class="w:screen-sm max-w:screen-lg"></div>

Basic usage

Add a screen size

Customize your screen size tokens by defining variables.

export default {
variables: {
screen: {
desktop: 1280
}
}
}

Apply the defined screen variables anywhere:

<div class="max-w:screen-desktop mx:auto"></div>

Create a responsive container

Fixed element width to a screen size as a responsive container.

<div class="max-w:screen-sm@sm max-w:screen-md@md max-w:screen-lg@lg "></div>

To customize the responsive breakpoints, like @sm, define media queries.

Design Variables
Fonts

Customizing fonts for your design system.

Design Variables
Spacing and Sizing

Apply consistent sizes across your application.

© Aoyue Design LLC.