experiment with themes and colors

This commit is contained in:
Noah Masur
2022-05-03 20:32:47 -04:00
parent ec0b1c4e04
commit 67f8a8b08d
10 changed files with 186 additions and 63 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

View File

@ -0,0 +1,35 @@
{
name = "carbonfiber";
colors = {
primary = {
background = "#282828";
foreground = "#d5c4a1";
};
cursor = {
text = "#1d2021";
cursor = "#d5c4a1";
};
normal = {
black = "#1d2021";
red = "#fb4934";
green = "#b8bb26";
yellow = "#fabd2f";
blue = "#83a598";
magenta = "#d3869b";
cyan = "#8ec07c";
white = "#d5c4a1";
};
bright = {
black = "#665c54";
red = "#fe8019";
green = "#3c3836";
yellow = "#504945";
blue = "#bdae93";
magenta = "#ebdbb2";
cyan = "#d65d0e";
white = "#fbf1c7";
};
};
wallpaper = ./carbon-fiber.jpg;
opacity = 0.8;
}

38
modules/theme/default.nix Normal file
View File

@ -0,0 +1,38 @@
{ config, lib, gui, ... }:
let
themes = {
"carbonfiber" = ./carbonfiber;
"gruvbox" = ./gruvbox;
"nord" = ./nord;
};
in {
options.theme = {
name = lib.mkOption {
type = lib.types.str;
default = "";
description = "Name of the theme";
};
colors = lib.mkOption {
type = lib.types.attrs;
default = { };
description = "Set of colors";
};
wallpaper = lib.mkOption {
type = lib.types.path;
default = ./.;
description = "Path to wallpaper image";
};
opacity = lib.mkOption {
type = lib.types.float;
default = 1.0;
description = "Opacity of certain windows";
};
};
config.theme = (import themes.${gui.theme});
}

View File

@ -0,0 +1,35 @@
{
name = "gruvbox";
colors = {
primary = {
background = "#282828";
foreground = "#d5c4a1";
};
cursor = {
text = "#1d2021";
cursor = "#d5c4a1";
};
normal = {
black = "#1d2021";
red = "#fb4934";
green = "#b8bb26";
yellow = "#fabd2f";
blue = "#83a598";
magenta = "#d3869b";
cyan = "#8ec07c";
white = "#d5c4a1";
};
bright = {
black = "#665c54";
red = "#fe8019";
green = "#3c3836";
yellow = "#504945";
blue = "#bdae93";
magenta = "#ebdbb2";
cyan = "#d65d0e";
white = "#fbf1c7";
};
};
wallpaper = ./gray-forest.jpg;
opacity = 1.0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB