Skip to content

Commit d17432f

Browse files
committed
docs: add note about classes and variables in css
1 parent d99560a commit d17432f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

THEMING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,11 @@ If you use the bare CSS, you can set a subset of the theme options with CSS vari
146146
--mdc-layout-grid-column-width-phone: 72px;
147147
}
148148
```
149+
150+
## Adding Classes and Variables
151+
152+
If you want to use MDC's classes and variables (like `var(--mdc-theme-primary)` and `class="mdc-theme--primary-bg"`), you can add the following line somewhere in your Sass files. A great place to add it is in your `_smui-theme.scss` file.
153+
154+
```sass
155+
@use '@material/theme/styles';
156+
```

0 commit comments

Comments
 (0)