2021-06-02 18:37:13 +02:00
|
|
|
@use 'sass:map';
|
2021-03-08 23:27:16 -05:00
|
|
|
@use '../constants';
|
|
|
|
|
|
|
|
@mixin theme($theme) {
|
2021-06-02 18:37:13 +02:00
|
|
|
$is-dark-theme: map.get($theme, is-dark);
|
2021-03-08 23:27:16 -05:00
|
|
|
|
|
|
|
body {
|
|
|
|
color: if($is-dark-theme, constants.$offwhite, constants.$darkgray);
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
color: if($is-dark-theme, constants.$offwhite, constants.$deepgray);
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
border-top: 1px solid if($is-dark-theme, constants.$mediumgray, constants.$lightgray);
|
|
|
|
}
|
|
|
|
|
2021-05-30 22:11:25 +03:00
|
|
|
h6 {
|
|
|
|
color: if($is-dark-theme, constants.$offwhite, constants.$mediumgray);
|
|
|
|
}
|
|
|
|
|
2021-03-08 23:27:16 -05:00
|
|
|
p,
|
|
|
|
ol,
|
|
|
|
ul,
|
|
|
|
li,
|
|
|
|
input,
|
|
|
|
a {
|
|
|
|
color: if($is-dark-theme, constants.$white, constants.$darkgray);
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-toolbar a {
|
|
|
|
color: constants.$white;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
color: if($is-dark-theme, constants.$white, constants.$darkgray);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-content a {
|
|
|
|
color: if($is-dark-theme, constants.$lightblue, constants.$blue);
|
|
|
|
}
|
|
|
|
|
|
|
|
.error-text {
|
|
|
|
color: constants.$brightred;
|
|
|
|
}
|
2021-03-08 21:10:25 -05:00
|
|
|
}
|