about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 09:23:53 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 09:23:53 -0700
commit893be1fa19b3497556c0a34c02882b39ad265199 (patch)
treef89fc5880fa3fb8489aeb319cc6b6b9e68ba57df
parentaptos: consume the new profiles (diff)
downloadworld-893be1fa19b3497556c0a34c02882b39ad265199.tar.gz
alacritty: use light colors
Diffstat (limited to '')
-rw-r--r--home/terminal/alacritty/default.nix6
-rw-r--r--home/terminal/alacritty/theme.nix30
2 files changed, 34 insertions, 2 deletions
diff --git a/home/terminal/alacritty/default.nix b/home/terminal/alacritty/default.nix
index 72a6d33..00e9ca4 100644
--- a/home/terminal/alacritty/default.nix
+++ b/home/terminal/alacritty/default.nix
@@ -1,5 +1,7 @@
 { config, lib, pkgs, ... }:
-let cfg = config.my.home.terminal;
+let
+  cfg = config.my.home.terminal;
+  colors = import ./theme.nix;
 in {
   config = lib.mkIf (cfg.program == "alacritty") {
     programs.alacritty = {
@@ -15,7 +17,7 @@ in {
           style.blinking = "Never";
           unfocused_hollow = true;
         };
-      };
+      } // colors;
     };
   };
 }
diff --git a/home/terminal/alacritty/theme.nix b/home/terminal/alacritty/theme.nix
new file mode 100644
index 0000000..90c1abf
--- /dev/null
+++ b/home/terminal/alacritty/theme.nix
@@ -0,0 +1,30 @@
+{
+  colors = {
+    primary = {
+      background = "0xffffff";
+      foreground = "0x000000";
+    };
+
+    normal = {
+      black = "0xfbf1c7";
+      red = "0xcc241d";
+      green = "0x98971a";
+      yellow = "0xd79921";
+      blue = "0x458588";
+      magenta = "0xb16286";
+      cyan = "0x689d6a";
+      white = "0x7c6f64";
+    };
+
+    bright = {
+      black = "0x928374";
+      red = "0x9d0006";
+      green = "0x79740e";
+      yellow = "0xb57614";
+      blue = "0x076678";
+      magenta = "0x8f3f71";
+      cyan = "0x427b58";
+      white = "0x3c3836";
+    };
+  };
+}