added nord bluish theme

This commit is contained in:
Chad Baxter 2024-06-30 18:52:31 -04:00
parent f98e3c68f0
commit 6993542674
No known key found for this signature in database
GPG Key ID: FE5FA57E02944FB5
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,29 @@
:root {
/* body background */
--bg-1: #2e3440;
/* background of the content */
--bg-2: #3b4252;
/* input suggestions background */
--bg-3: #434c5e;
/* mostly borders */
--bg-4: #5e81ac;
/* main text color */
--fg-1: #eceff4;
/* search result description */
--fg-2: #e5e9f0;
--fg-3: #d8dee9;
/* focus outline */
--accent: #88c0d0;
--link: #88c0d0;
--link-visited: #5e81ac;
--positive: #a3be8c;
--syntax-string: #8fbcbb;
--syntax-special: #5e81ac;
--syntax-constant: #b48ead;
--syntax-comment: #d8dee9;
}

View File

@ -67,6 +67,13 @@ pub async fn run(config: Config) {
"text/css; charset=utf-8",
),
)
.route(
"/themes/nord-bluish.css",
static_route(
include_str!("assets/themes/nord-bluish.css"),
"text/css; charset=utf-8",
),
)
.route("/opensearch.xml", get(opensearch::route))
.route("/autocomplete", get(autocomplete::route))
.route("/image-proxy", get(image_proxy::route))

View File

@ -32,6 +32,7 @@ pub async fn get(
select name="stylesheet-url" selected=(config.ui.stylesheet_url) {
{ (theme_option("", "Ayu Dark")) }
{ (theme_option("/themes/catppuccin-mocha.css", "Catppuccin Mocha")) }
{ (theme_option("/themes/nord-bluish.css", "Nord Bluish"))}
}
br;