style: customize the color palletes

also makes the theme togglable for maximum accesiblity
This commit is contained in:
Timothy DeHerrera
2024-12-27 16:09:57 -07:00
parent e1e58833db
commit 1b3ccbdd9b
2 changed files with 43 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ highlight_code = true
highlight_theme = "ayu-light" highlight_theme = "ayu-light"
[extra] [extra]
theme = "auto" theme = "toggle"
socials = [ socials = [
{ name = "rss", url = "/atom.xml", icon = "rss" }, { name = "rss", url = "/atom.xml", icon = "rss" },
{ name = "github", url = "https://github.com/nrdxp", icon = "github" }, { name = "github", url = "https://github.com/nrdxp", icon = "github" },
@@ -39,5 +39,6 @@ repo_view = true
repo_url = "https://github.com/nrdxp/nrd.sh/tree/main/content/" repo_url = "https://github.com/nrdxp/nrd.sh/tree/main/content/"
favicon = "/icon/favicon.png" favicon = "/icon/favicon.png"
stylesheets = [ stylesheets = [
"fira.css" "fira.css",
"colors.css"
] ]

40
sass/colors.scss Normal file
View File

@@ -0,0 +1,40 @@
$bg-0: #212A37;
$bg-1: lighten($bg-0, 5%);
$bg-2: lighten($bg-1, 10%);
:root.dark {
--meta-color: #92A3A0;
--bg-0: #{$bg-0};
--bg-1: #{$bg-1};
--bg-2: #{$bg-2};
--text-0: #EFEBEA;
--primary-color: #BD7A52;
}
.meta {
color: var(--meta-color);
}
time {
color: var(--meta-color);
}
$bg-0-light: #F5F4F2;
$bg-1-light: darken($bg-0-light, 2%);
$bg-2-light: darken($bg-1-light, 8%);
:root.light {
--meta-color: #5A6160;
--bg-0: #{$bg-0-light};
--bg-1: #{$bg-1-light};
--bg-2: #{$bg-2-light};
--text-0: #2A2624;
--primary-color: #BD7A52;
}