mirror of
https://github.com/picocss/pico.git
synced 2025-02-24 00:39:20 -05:00
26 lines
518 B
SCSS
26 lines
518 B
SCSS
/**
|
|
* Theme: Additions for docs
|
|
*/
|
|
|
|
@import "../../../scss/themes/default/colors";
|
|
@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;
|
|
}
|