pico/scss/themes/default.scss
Lucas Larroche 537f5008c2 Small fixes
- @mixin and @include for dark scheme
- unset `--font-weight` in `hgroup`
2021-07-03 00:22:17 +07:00

30 lines
552 B
SCSS

/**
* Theme: default
*/
// Variables
@import "../variables";
@import "default/colors";
// Commons styles
@import "default/styles";
// Light theme (Default)
// Can be forced with data-theme="light"
@import "default/light";
// Dark theme (Auto)
// Automatically enabled if user has Dark mode enabled
@import "default/dark";
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
@include dark;
}
}
// Dark theme (Forced)
// Enabled if forced with data-theme="dark"
[data-theme="dark"] {
@include dark;
}