From f9af1e709c8b4f22b0f5562ef209d75fdfd7cd8d Mon Sep 17 00:00:00 2001 From: Inhji Date: Fri, 31 Mar 2023 22:56:34 +0200 Subject: [PATCH] add gruvbox theme --- assets/css/app.css | 18 ++++++++++++++++++ lib/chiya/site/setting.ex | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/assets/css/app.css b/assets/css/app.css index caf81fd..128449d 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -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; + } } /* diff --git a/lib/chiya/site/setting.ex b/lib/chiya/site/setting.ex index d6b5bd3..f90a108 100644 --- a/lib/chiya/site/setting.ex +++ b/lib/chiya/site/setting.ex @@ -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"