2022-10-22 13:11:51 +07:00
|
|
|
@use "../settings" as *;
|
|
|
|
@use "default/light";
|
|
|
|
@use "default/dark";
|
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"]) {
|
2022-10-22 13:11:51 +07:00
|
|
|
@include light.theme;
|
2022-10-22 11:44:10 +07:00
|
|
|
}
|
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) {
|
2021-07-03 00:22:17 +07:00
|
|
|
:root:not([data-theme="light"]) {
|
2022-10-22 13:11:51 +07:00
|
|
|
@include dark.theme;
|
2021-07-03 00:22:17 +07:00
|
|
|
}
|
2021-07-02 16:54:41 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Dark theme (Forced)
|
|
|
|
// Enabled if forced with data-theme="dark"
|
|
|
|
[data-theme="dark"] {
|
2022-10-22 13:11:51 +07:00
|
|
|
@include dark.theme;
|
2021-07-02 16:54:41 +07:00
|
|
|
}
|
2022-09-11 18:57:24 +07:00
|
|
|
|
|
|
|
progress,
|
|
|
|
[type="checkbox"],
|
|
|
|
[type="radio"],
|
|
|
|
[type="range"] {
|
2022-10-22 13:11:51 +07:00
|
|
|
accent-color: var(#{$✨}primary);
|
2022-10-15 23:22:12 +07:00
|
|
|
}
|