Skip to content

Commit

Permalink
add gruvbox dark hard & windows 95 base16 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Nov 28, 2023
1 parent dd93215 commit 4046c48
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gobin/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"log/slog"
"net/http"
"net/url"
"strconv"
"strings"

Expand Down Expand Up @@ -242,7 +243,7 @@ func (s *Server) styleCSS(style *chroma.Style) string {
func getStyle(r *http.Request) *chroma.Style {
var styleName string
if styleCookie, err := r.Cookie("style"); err == nil {
styleName = styleCookie.Value
styleName, _ = url.QueryUnescape(styleCookie.Value)
}
queryStyle := r.URL.Query().Get("style")
if queryStyle != "" {
Expand Down
19 changes: 19 additions & 0 deletions styles/gruvbox-dark-hard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
scheme: "gruvbox-dark-hard"
author: "Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)"
theme: "dark"
base00: "1d2021" # ----
base01: "3c3836" # ---
base02: "504945" # --
base03: "665c54" # -
base04: "bdae93" # +
base05: "d5c4a1" # ++
base06: "ebdbb2" # +++
base07: "fbf1c7" # ++++
base08: "fb4934" # red
base09: "fe8019" # orange
base0A: "fabd2f" # yellow
base0B: "b8bb26" # green
base0C: "8ec07c" # aqua/cyan
base0D: "83a598" # blue
base0E: "d3869b" # purple
base0F: "d65d0e" # brown
19 changes: 19 additions & 0 deletions styles/windows-95.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
scheme: "windows-95"
author: "Fergus Collins (https://github.com/C-Fergus)"
theme: "dark"
base00: "000000" # black
base01: "1C1C1C" # darkish black
base02: "383838" # brightish black
base03: "545454" # bright black
base04: "7e7e7e" # darker white
base05: "a8a8a8" # white
base06: "d2d2d2" # middle white
base07: "fcfcfc" # bright white
base08: "fc5454" # bright red
base09: "a85400" # yellow
base0A: "fcfc54" # bright yellow
base0B: "54fc54" # bright green
base0C: "54fcfc" # bright cyan
base0D: "5454fc" # bright blue
base0E: "fc54fc" # bright magenta
base0F: "00a800" # green

0 comments on commit 4046c48

Please sign in to comment.