change theme colours to hsl
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
|||||||
func GlobalCSSHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
func GlobalCSSHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
||||||
w.Header().Add("Content-Type", "text/css; charset=utf-8")
|
w.Header().Add("Content-Type", "text/css; charset=utf-8")
|
||||||
|
|
||||||
var textColor = "c0c0c0"
|
var textColor = "hsl(0, 0%, 75%)"
|
||||||
|
|
||||||
// Originals
|
// Originals
|
||||||
var highlightColor = "9FCF6C"
|
var highlightColor = "hsl(89, 51%, 62%)"
|
||||||
var highlightColorDark = "729749"
|
var highlightColorDark = "hsl(89, 51%, 50%)"
|
||||||
|
|
||||||
// Purple scheme
|
// Purple scheme
|
||||||
// var highlightColor = "843384"
|
// var highlightColor = "843384"
|
||||||
@@ -23,9 +23,9 @@ func GlobalCSSHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Param
|
|||||||
|
|
||||||
var response = fmt.Sprintf(
|
var response = fmt.Sprintf(
|
||||||
`:root {
|
`:root {
|
||||||
--text_color: #%s;
|
--text_color: %s;
|
||||||
--highlight_color: #%s;
|
--highlight_color: %s;
|
||||||
--highlight_color_dark: #%s;
|
--highlight_color_dark: %s;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
textColor,
|
textColor,
|
||||||
|
Reference in New Issue
Block a user