From 8d1e930ce093cf03beef8b03aa32b2c1cde8a432 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Tue, 8 Apr 2025 19:08:18 -0400 Subject: colors: grayscale-{light-dark} --- modules/colors/grayscale-dark.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 modules/colors/grayscale-dark.nix (limited to 'modules/colors/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"; + }; + }; +} -- cgit v1.2.3