diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-08 19:08:18 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-08 19:08:18 -0400 |
| commit | 8d1e930ce093cf03beef8b03aa32b2c1cde8a432 (patch) | |
| tree | 3c3f83b4f96a29a7c8dbdf9af8715811c29ee263 | |
| parent | 2ddf877c6cb78a10bfcb5b33142195b47232d622 (diff) | |
| download | home-8d1e930ce093cf03beef8b03aa32b2c1cde8a432.tar.gz | |
colors: grayscale-{light-dark}
| -rw-r--r-- | modules/colors/default.nix | 2 | ||||
| -rw-r--r-- | modules/colors/grayscale-dark.nix | 35 | ||||
| -rw-r--r-- | modules/colors/grayscale-light.nix | 36 | ||||
| -rw-r--r-- | void/home.nix | 3 |
4 files changed, 75 insertions, 1 deletions
diff --git a/modules/colors/default.nix b/modules/colors/default.nix index 8bf8a33..428600f 100644 --- a/modules/colors/default.nix +++ b/modules/colors/default.nix @@ -5,5 +5,7 @@ ./default-dark.nix ./tomorrow.nix ./google-dark.nix + ./grayscale-light.nix + ./grayscale-dark.nix ]; } diff --git a/modules/colors/grayscale-dark.nix b/modules/colors/grayscale-dark.nix new file mode 100644 index 0000000..081bd43 --- /dev/null +++ b/modules/colors/grayscale-dark.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.grayscale-dark; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.grayscale-dark = { + enable = lib.mkEnableOption "grayscale-dark theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + name = "base16-grayscale-dark"; + base00 = "#101010"; + base01 = "#252525"; + base02 = "#464646"; + base03 = "#525252"; + base04 = "#ababab"; + base05 = "#b9b9b9"; + base06 = "#e3e3e3"; + base07 = "#f7f7f7"; + base08 = "#7c7c7c"; + base09 = "#999999"; + base0A = "#a0a0a0"; + base0B = "#8e8e8e"; + base0C = "#868686"; + base0D = "#686868"; + base0E = "#747474"; + base0F = "#5e5e5e"; + }; + }; +} diff --git a/modules/colors/grayscale-light.nix b/modules/colors/grayscale-light.nix new file mode 100644 index 0000000..959e2d2 --- /dev/null +++ b/modules/colors/grayscale-light.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.grayscale-light; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.grayscale-light = { + enable = lib.mkEnableOption "grayscale-light theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + light = true; + name = "base16-grayscale-light"; + base00 = "#f7f7f7"; + base01 = "#e3e3e3"; + base02 = "#b9b9b9"; + base03 = "#ababab"; + base04 = "#525252"; + base05 = "#464646"; + base06 = "#252525"; + base07 = "#101010"; + base08 = "#7c7c7c"; + base09 = "#999999"; + base0A = "#a0a0a0"; + base0B = "#8e8e8e"; + base0C = "#868686"; + base0D = "#686868"; + base0E = "#747474"; + base0F = "#5e5e5e"; + }; + }; +} diff --git a/void/home.nix b/void/home.nix index 548a92d..44717d0 100644 --- a/void/home.nix +++ b/void/home.nix @@ -18,9 +18,10 @@ foot.enable = true; # colors.mountain.enable = true; - colors.default-dark.enable = true; + # colors.default-dark.enable = true; # colors.tomorrow.enable = true; # colors.google-dark.enable = true; + colors.grayscale-dark.enable = true; gpg.enable = true; pass = { |