pico/docs/scss/themes/_docs.scss

26 lines
518 B
SCSS
Raw Normal View History

/**
* Theme: Additions for docs
*/
@import "../../../scss/themes/default/colors";
2020-09-29 08:38:35 +07:00
@import "docs/icons";
// Light theme (Default)
// Can be forced with data-theme="light"
@import "docs/light";
// Dark theme (Auto)
// Automatically enabled if user has Dark mode enabled
@import "docs/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;
}