From 0fcf134f36ac3c63a329d4f5d6365063cc190432 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Tue, 27 Mar 2018 23:11:43 +0200 Subject: [PATCH] change theme colours to hsl --- webcontroller/style.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webcontroller/style.go b/webcontroller/style.go index 94ce896..7fb4bc0 100644 --- a/webcontroller/style.go +++ b/webcontroller/style.go @@ -11,11 +11,11 @@ import ( func GlobalCSSHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { w.Header().Add("Content-Type", "text/css; charset=utf-8") - var textColor = "c0c0c0" + var textColor = "hsl(0, 0%, 75%)" // Originals - var highlightColor = "9FCF6C" - var highlightColorDark = "729749" + var highlightColor = "hsl(89, 51%, 62%)" + var highlightColorDark = "hsl(89, 51%, 50%)" // Purple scheme // var highlightColor = "843384" @@ -23,9 +23,9 @@ func GlobalCSSHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Param var response = fmt.Sprintf( `:root { - --text_color: #%s; - --highlight_color: #%s; - --highlight_color_dark: #%s; + --text_color: %s; + --highlight_color: %s; + --highlight_color_dark: %s; } `, textColor,