pico/scss/themes/default.scss

38 lines
665 B
SCSS
Raw Normal View History

/**
* Theme: default
*/
2021-07-02 16:54:41 +07:00
// Variables
@import "../variables";
@import "default/colors";
2021-07-02 16:54:41 +07:00
// Commons styles
2020-09-29 08:38:35 +07:00
@import "default/styles";
2021-07-02 16:54:41 +07:00
// Light theme (Default)
// Can be forced with data-theme="light"
@import "default/light";
2021-07-02 16:54:41 +07:00
// Dark theme (Auto)
// Automatically enabled if user has Dark mode enabled
@import "default/dark";
2021-07-02 16:54:41 +07:00
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
@include dark;
}
2021-07-02 16:54:41 +07:00
}
// Dark theme (Forced)
// Enabled if forced with data-theme="dark"
[data-theme="dark"] {
@include dark;
2021-07-02 16:54:41 +07:00
}
2022-09-11 18:57:24 +07:00
// Accent-color
progress,
[type="checkbox"],
[type="radio"],
[type="range"] {
accent-color: var(--primary);
2022-10-15 23:22:12 +07:00
}