diff --git a/src/web/assets/themes/nord-bluish.css b/src/web/assets/themes/nord-bluish.css new file mode 100644 index 0000000..4c101c5 --- /dev/null +++ b/src/web/assets/themes/nord-bluish.css @@ -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; +} diff --git a/src/web/mod.rs b/src/web/mod.rs index 34ad5f5..9cca871 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -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)) diff --git a/src/web/settings.rs b/src/web/settings.rs index 1a4a466..62d0cf6 100644 --- a/src/web/settings.rs +++ b/src/web/settings.rs @@ -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;