Customization

Customizing Screen Sizes

A guide to adding custom screen sizes for breakpoints, containers, and variables.

Overview

AtVariableValueDescription
@4xsscreen-4xs360(22.5rem)iPhone 6, 7, 8, X, 11, 12 / Galaxy S8 / HTC One…
@3xsscreen-3xs480(30rem)Blackberry Passport / Amazon Kindle Fire HD 7…
@2xsscreen-2xs600(37.5rem)LG G Pad 8.3 / Amazon Kindle Fire …
@xsscreen-xs768(48rem)Microsoft Surface / iPad Pro 9.7 / iPad Mini …
@smscreen-sm834(52.125rem)iPad Air 10.5 / iPad Pro 11 …
@mdscreen-md1024(64rem)iPad Pro 12.9 / Microsoft Surface Pro 3 …
@lgscreen-lg1280(80rem)Google Chromebook Pixel / Samsung Chromebook …
@xlscreen-xl1440(90rem)Macbook Air 2020 M1 / MacBook Pro 15 …
@2xlscreen-2xl1600(100rem)Dell Inspiron 14 series …
@3xlscreen-3xl1920(120rem)Dell UltraSharp U2412M / Dell S2340M / Apple iMac 21.5-inch …
@4xlscreen-4xl2560(160rem)Dell UltraSharp U2711 / Apple iMac 27-inch …

In Master CSS, the screen sizes are simultaneously used as responsive breakpoints, screen size variables, and container query sizes.

export default {    screens: {        md: 1024,         lg: 1280,     }}

For example, a screen size token can be used in the following ways:

<div class="font:32@md">…</div><div class="max-w:screen-md">…</div><div class="hidden@container(md)">…</div>

Basic usage

Add a screen size

Add a screen size token to config.screens.

export default {    screens: {        md: 1024,     }}

Apply the screen size screen-md as a variable:

<div class="w:screen-md">…</div>

Apply the screen size @md as a responsive breakpoint:

<div class="font:32@md">…</div>

Apply the screen size (md) as a container query:

<div class="hidden@container(md)">…</div>
Customization
Customizing Functions

A guide to adding custom functions and aliases.

Customization
Customizing Selectors

A guide to adding custom selector tokens and aliases.

© Aoyue Design LLC.