hugo-theme-paradox/assets/styles/common/colors.scss

59 lines
958 B
SCSS
Raw Permalink Normal View History

2022-12-18 14:10:54 +00:00
@mixin light {
--link-color: #3371cf;
--link-visited: #594288;
--primary-accent: rgb(0, 123, 255);
--primary-accent-transparent: rgba(0, 123, 255,0.25);
--primary-accent-text: #fff;
--ui-background: #fff;
--ui-text: #111;
--ui-text-muted: #666;
--ui-text-bold: #000;
--ui-overlay: #ddd;
--ui-overlay-text: var(--ui-text);
2022-12-19 15:10:26 +00:00
--ui-border: #ddd;
--ui-error: hsl(0, 80%, 50%);
}
2022-12-18 14:10:54 +00:00
@mixin dark {
--link-color: #8fb1df;
--link-visited: #a089d4;
2022-12-18 14:10:54 +00:00
--primary-accent: rgb(0, 123, 255);
--primary-accent-transparent: rgba(64, 156, 255, 0.45);
--primary-accent-text: #fff;
2022-12-18 14:10:54 +00:00
--ui-background: #212121;
--ui-text: #eee;
--ui-text-muted: #999;
--ui-text-bold: #fff;
2022-12-18 14:10:54 +00:00
--ui-overlay: #333;
--ui-overlay-text: var(--ui-text);
2022-12-19 15:10:26 +00:00
--ui-border: #ddd;
--ui-error: hsl(0, 80%, 50%);
2022-12-18 14:10:54 +00:00
}
:root {
@include light;
}
@media (prefers-color-scheme: dark) {
:root {
@include dark;
}
2022-12-18 14:10:54 +00:00
}
body.dark-mode {
@include dark;
}
body.light-mode {
@include light;
}