add gruvbox theme

This commit is contained in:
Inhji 2023-03-31 22:56:34 +02:00
parent c9bf01d80f
commit f9af1e709c
2 changed files with 19 additions and 1 deletions

View file

@ -41,6 +41,24 @@
--color-text-muted: 76 87 111;
--color-text-dim: 57 65 83;
}
:root[data-theme=gruvbox] {
--color-primary: 175 58 3;
--color-background: 251 241 199;
--color-text-base :40 40 40;
--color-text-heading: 66 123 88;
--color-text-muted: 60 56 54;
--color-text-dim: 102 92 84;
}
:root[data-theme=gruvbox][data-mode=dark] {
--color-primary: 214 93 14;
--color-background: 40 40 40;
--color-text-base: 251 241 199;
--color-text-heading: 104 157 106;
--color-text-muted: 235 219 178;
--color-text-dim: 189 174 147;
}
}
/*

View file

@ -9,7 +9,7 @@ defmodule Chiya.Site.Setting do
field :custom_css, :string, default: ""
field :custom_html, :string, default: ""
field :theme, Ecto.Enum, values: [:default, :frame], default: :default
field :theme, Ecto.Enum, values: [:default, :frame, :gruvbox], default: :default
field :user_agent, :string, default: "Chiya/0.x +https://inhji.de"