diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-07 15:50:45 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-07 15:50:45 -0400 |
| commit | 3be52f10d1ed9844da116ad9364099d72cb6ded4 (patch) | |
| tree | 092b460f8c065396c7bd9dbcb808f0e9d46f2ca4 /modules/colors | |
| parent | 993ee553170d01d3d0e7bcef7afc05b80f15b10a (diff) | |
| download | home-3be52f10d1ed9844da116ad9364099d72cb6ded4.tar.gz | |
added colorscheme modularity
Diffstat (limited to 'modules/colors')
| -rw-r--r-- | modules/colors/default-dark.nix | 35 | ||||
| -rw-r--r-- | modules/colors/default.nix | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/modules/colors/default-dark.nix b/modules/colors/default-dark.nix new file mode 100644 index 0000000..725ccd3 --- /dev/null +++ b/modules/colors/default-dark.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.default-dark; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.default-dark = { + enable = lib.mkEnableOption "default-dark theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + name = "base16-default-dark"; + base00 = "#181818"; + base01 = "#282828"; + base02 = "#383838"; + base03 = "#585858"; + base04 = "#b8b8b8"; + base05 = "#d8d8d8"; + base06 = "#e8e8e8"; + base07 = "#f8f8f8"; + base08 = "#ab4642"; + base09 = "#dc9656"; + base0A = "#f7ca88"; + base0B = "#a1b56c"; + base0C = "#86c1b9"; + base0D = "#7cafc2"; + base0E = "#ba8baf"; + base0F = "#a16946"; + }; + }; +} diff --git a/modules/colors/default.nix b/modules/colors/default.nix index 07e47d4..954e743 100644 --- a/modules/colors/default.nix +++ b/modules/colors/default.nix @@ -2,5 +2,6 @@ { imports = [ ./mountain.nix + ./default-dark.nix ]; } |