1 | @import 'theme-functions';
|
2 | @import 'palette';
|
3 |
|
4 |
|
5 | // Person creating a theme writes variables like this:
|
6 | $md-is-dark-theme: false;
|
7 |
|
8 |
|
9 | $md-primary: md-palette($md-teal, 500, 100, 700, $md-contrast-palettes);
|
10 | $md-accent: md-palette($md-purple, 500, 300, 800, $md-contrast-palettes);
|
11 | $md-warn: md-palette($md-red, 500, 300, 900, $md-contrast-palettes);
|
12 | $md-foreground: if($md-is-dark-theme, $md-dark-theme-foreground, $md-light-theme-foreground);
|
13 | $md-background: if($md-is-dark-theme, $md-dark-theme-background, $md-light-theme-background);
|