You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Master CSS, the [screen sizes](/guide/screens) are simultaneously used as *responsive breakpoints*, *screen size variables*, and *container query sizes*.
4
+
<Overview />
5
+
6
+
---
7
+
8
+
## Basic usage
9
+
### Add a screen size
10
+
Add a screen size token to `config.screens`.
11
+
```js name=master.css.js
12
+
exportdefault {
13
+
screens: {
14
+
md:1024, // [!code highlight]
15
+
}
16
+
}
17
+
```
18
+
Apply the screen size `screen-md` as a variable:
19
+
```html
20
+
<!-- @MARK @screen-md -->
21
+
<divclass="w:screen-md">…</div>
22
+
```
23
+
Apply the screen size `@md` as a responsive breakpoint:
24
+
```html
25
+
<!-- @MARK @md -->
26
+
<divclass="font:32@md">…</div>
27
+
```
28
+
Apply the screen size `(md)` as a container query:
0 commit comments