vanilla-hugo/assets/scss/variables.scss

48 lines
1.5 KiB
SCSS
Raw Normal View History

$container-width: 45rem;
$container-min-padding: 1rem;
$container-width-threshold: $container-width + 2 * $container-min-padding;
$standard-border-width: .075rem;
$primary-color: #36e281;
$border-color: #bfbfbf;
2023-03-11 11:52:49 -08:00
$background-color: white;
$background-color-dark: #1b1d1f;
$code-color: #f0f0f0;
2023-03-11 11:52:49 -08:00
$code-color-dark: lighten($background-color-dark, 10%);
$code-border-color: darken($code-color, 10%);
$font-heading: "Lora", serif;
$font-body: "Raleway", serif;
$font-code: "Inconsolata", monospace;
2023-03-11 11:52:49 -08:00
$warning-background-color: #ffee99;
$warning-border-color: #f5c827;
$warning-background-color-dark: #75640a;
$warning-border-color-dark: $warning-background-color;
$target-background-color: lighten(yellow, 30%);
$target-background-color-dark: #55511c;
$standard-border: $standard-border-width solid $border-color;
$code-border: $standard-border-width solid $code-border-color;
2023-03-11 11:52:49 -08:00
:root {
--background-color: #{$background-color};
--text-color: black;
--code-color: #{$code-color};
--warning-background-color: #{$warning-background-color};
--warning-border-color: #{$warning-border-color};
--target-background-color: #{$target-background-color};
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #{$background-color-dark};
--text-color: white;
--code-color: #{$code-color-dark};
--warning-background-color: #{$warning-background-color-dark};
--warning-border-color: #{$warning-border-color-dark};
--target-background-color: #{$target-background-color-dark};
}
}