diff options
Diffstat (limited to 'modules/colors')
| -rw-r--r-- | modules/colors/default.nix | 2 | ||||
| -rw-r--r-- | modules/colors/google-dark.nix | 35 | ||||
| -rw-r--r-- | modules/colors/tomorrow.nix | 36 |
3 files changed, 73 insertions, 0 deletions
diff --git a/modules/colors/default.nix b/modules/colors/default.nix index 954e743..8bf8a33 100644 --- a/modules/colors/default.nix +++ b/modules/colors/default.nix @@ -3,5 +3,7 @@ imports = [ ./mountain.nix ./default-dark.nix + ./tomorrow.nix + ./google-dark.nix ]; } diff --git a/modules/colors/google-dark.nix b/modules/colors/google-dark.nix new file mode 100644 index 0000000..850ca8b --- /dev/null +++ b/modules/colors/google-dark.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.google-dark; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.google-dark = { + enable = lib.mkEnableOption "google-dark theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + name = "base16-google-dark"; + base00 = "#1d1f21"; + base01 = "#282a2e"; + base02 = "#373b41"; + base03 = "#969896"; + base04 = "#b4b7b4"; + base05 = "#c5c8c6"; + base06 = "#e0e0e0"; + base07 = "#ffffff"; + base08 = "#CC342B"; + base09 = "#F96A38"; + base0A = "#FBA922"; + base0B = "#198844"; + base0C = "#3971ED"; + base0D = "#3971ED"; + base0E = "#A36AC7"; + base0F = "#3971ED"; + }; + }; +} diff --git a/modules/colors/tomorrow.nix b/modules/colors/tomorrow.nix new file mode 100644 index 0000000..9cfcb25 --- /dev/null +++ b/modules/colors/tomorrow.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.tomorrow; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.tomorrow = { + enable = lib.mkEnableOption "tomorrow theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + light = true; + name = "base16-tomorrow"; + base00 = "#ffffff"; + base01 = "#e0e0e0"; + base02 = "#d6d6d6"; + base03 = "#8e908c"; + base04 = "#969896"; + base05 = "#4d4d4c"; + base06 = "#282a2e"; + base07 = "#1d1f21"; + base08 = "#c82829"; + base09 = "#f5871f"; + base0A = "#eab700"; + base0B = "#718c00"; + base0C = "#3e999f"; + base0D = "#4271ae"; + base0E = "#8959a8"; + base0F = "#a3685a"; + }; + }; +} |