Start adding mustache template for nyxt theme

This commit is contained in:
Evie Litherland-Smith 2024-02-08 22:06:48 +00:00
parent 0abf095999
commit 570b10682c
3 changed files with 48 additions and 44 deletions

View file

@ -54,48 +54,6 @@
;; %slot-default%))))
(define-configuration browser
((restore-session-on-startup-p nil)
(theme
(make-instance
'theme:theme
:dark-p t
:font-family "Iosevka Nerd Font"
:monospace-font-family "Iosevka Nerd Font"
:text-color "#ffffff"
:text-color+ "#ffffff"
:text-color- "#ffffff"
:contrast-text-color "#000000"
:background-color "#0d0e1c"
:background-color+ "#0d0e1c"
:background-color- "#0d0e1c"
:on-background-color "#ffffff"
:accent-color "#c6daff"
:accent-color+ "#c6daff"
:accent-color- "#c6daff"
:on-accent-color "#000000"
:primary-color "#b4befe"
:primary-color+ "#b4befe"
:primary-color- "#b4befe"
:on-primary-color "#000000"
:secondary-color "#61647a"
:secondary-color+ "#61647a"
:secondary-color- "#61647a"
:on-secondary-color "#ffffff"
:warning-color "#f38ba8"
:warning-color+ "#f38ba8"
:warning-color- "#f38ba8"
:on-warning-color "#000000"
:highlight-color "#f9e2af"
:highlight-color+ "#f9e2af"
:highlight-color- "#f9e2af"
:on-highlight-color "#000000"
:action-color "#89b4fa"
:action-color+ "#89b4fa"
:action-color- "#89b4fa"
:on-action-color "#000000"
:codeblock-color "#1d2235"
:codeblock-color+ "#1d2235"
:codeblock-color- "#1d2235"
:on-codeblock-color "#ffffff"))))
((restore-session-on-startup-p nil)))
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:dark")

View file

@ -0,0 +1,43 @@
(define-configuration browser
((theme
(make-instance
'theme:theme
:dark-p t
:font-family "Iosevka Nerd Font"
:monospace-font-family "Iosevka Nerd Font"
:text-color "#{{base05-hex}}"
:text-color+ "#{{base05-hex}}"
:text-color- "#{{base05-hex}}"
:contrast-text-color "#{{base00-hex}}"
:background-color "#{{base00-hex}}"
:background-color+ "#{{base00-hex}}"
:background-color- "#{{base00-hex}}"
:on-background-color "#{{base05-hex}}"
:accent-color "#c6daff"
:accent-color+ "#c6daff"
:accent-color- "#c6daff"
:on-accent-color "#{{base00-hex}}"
:primary-color "#b4befe"
:primary-color+ "#b4befe"
:primary-color- "#b4befe"
:on-primary-color "#{{base00-hex}}"
:secondary-color "#61647a"
:secondary-color+ "#61647a"
:secondary-color- "#61647a"
:on-secondary-color "#{{base05-hex}}"
:warning-color "#f38ba8"
:warning-color+ "#f38ba8"
:warning-color- "#f38ba8"
:on-warning-color "#{{base00-hex}}"
:highlight-color "#f9e2af"
:highlight-color+ "#f9e2af"
:highlight-color- "#f9e2af"
:on-highlight-color "#{{base00-hex}}"
:action-color "#89b4fa"
:action-color+ "#89b4fa"
:action-color- "#89b4fa"
:on-action-color "#{{base00-hex}}"
:codeblock-color "#1d2235"
:codeblock-color+ "#1d2235"
:codeblock-color- "#1d2235"
:on-codeblock-color "#{{base05-hex}}"))))

View file

@ -1,7 +1,10 @@
{pkgs, ...}: {
home.packages = [pkgs.nyxt];
xdg = {
configFile."nyxt/config.lisp".source = ./config.lisp;
configFile = {
"nyxt/config.lisp".source = ./config.lisp;
"nyxt/theme.lisp".source = ./default.mustache;
};
dataFile."nyxt/bookmarks.lisp".source = ./bookmarks.lisp;
};
}