pico/scss/themes/_default.scss

35 lines
655 B
SCSS
Raw Normal View History

2022-10-22 11:44:10 +07:00
@use "../settings";
@use "default/light" as *;
@use "default/dark" as *;
2021-07-02 16:54:41 +07:00
// Commons styles
2022-10-22 11:44:10 +07:00
@use "default/styles";
2021-07-02 16:54:41 +07:00
// Light theme (Default)
// Can be forced with data-theme="light"
2022-10-22 11:44:10 +07:00
[data-theme="light"],
:root:not([data-theme="dark"]) {
@include light;
}
2021-07-02 16:54:41 +07:00
// Dark theme (Auto)
// Automatically enabled if user has Dark mode enabled
@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
progress,
[type="checkbox"],
[type="radio"],
[type="range"] {
accent-color: var(--primary);
2022-10-15 23:22:12 +07:00
}