Skip to content

Commit e2ae777

Browse files
committed
docs: add media atRule example
1 parent 2eacc3a commit e2ae777

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,24 @@ for specific values in a css file that can be used in another.
446446
/* theme.css */
447447
@value primary: #BF4040;
448448
@value secondary: #1F4F7F;
449+
450+
@value large: (min-width: 960px);
449451
```
450452

451453
Values are automatically exported and can be imported like so:
452454

453455
```css
454-
@value primary from './theme.css';
456+
@value primary, large from './theme.css';
455457

456-
.text-primary {
458+
.header {
457459
color: primary;
460+
padding: 0 10px;
461+
}
462+
463+
@media large {
464+
.header {
465+
padding: 0 20px;
466+
}
458467
}
459468
```
460469

0 commit comments

Comments
 (0)