Skip to content

Commit

Permalink
docs: add media atRule example
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed May 8, 2019
1 parent 2eacc3a commit e2ae777
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,24 @@ for specific values in a css file that can be used in another.
/* theme.css */
@value primary: #BF4040;
@value secondary: #1F4F7F;

@value large: (min-width: 960px);
```

Values are automatically exported and can be imported like so:

```css
@value primary from './theme.css';
@value primary, large from './theme.css';

.text-primary {
.header {
color: primary;
padding: 0 10px;
}

@media large {
.header {
padding: 0 20px;
}
}
```

Expand Down

0 comments on commit e2ae777

Please sign in to comment.