Skip to main content

iterm: change cursor and selection colours

ID
709c219
date
2026-01-06 08:10:59+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
e4fe067
message
iterm: change cursor and selection colours
changed files
3 files, 5 additions, 20 deletions

Changed files

generate_palette_files.py (18632) → generate_palette_files.py (18181)

diff --git a/generate_palette_files.py b/generate_palette_files.py
index 46c693c..1913ac3 100755
--- a/generate_palette_files.py
+++ b/generate_palette_files.py
@@ -180,6 +180,9 @@ def generate_iterm2_theme(palette: Palette) -> bytes:
         "Ansi 6 Color (Light)": to_iterm2_colour(palette["light"]["cyan"]),
         "Ansi 7 Color (Dark)": to_iterm2_colour(palette["dark"]["background"]),
         "Ansi 7 Color (Light)": to_iterm2_colour(palette["light"]["background"]),
+        "Cursor Color (Light)": to_iterm2_colour(palette["light"]["text"]),
+        "Cursor Text Color (Light)": to_iterm2_colour(palette["light"]["highlight"]),
+        "Selection Color (Light)": to_iterm2_colour(palette["light"]["highlight"]),
         "Ansi 10 Color": {
             "Alpha Component": 1.0,
             "Blue Component": 0.45524293184280396,
@@ -385,12 +388,6 @@ def generate_iterm2_theme(palette: Palette) -> bytes:
             "Green Component": 0.5803921568627451,
             "Red Component": 0.5137254901960784,
         },
-        "Cursor Color (Light)": {
-            "Blue Component": 0.5137254901960784,
-            "Color Space": "sRGB",
-            "Green Component": 0.4823529411764706,
-            "Red Component": 0.396078431372549,
-        },
         "Cursor Guide Color": {
             "Alpha Component": 0.25,
             "Blue Component": 0.9907825589179993,
@@ -425,12 +422,6 @@ def generate_iterm2_theme(palette: Palette) -> bytes:
             "Green Component": 0.21176470588235294,
             "Red Component": 0.027450980392156862,
         },
-        "Cursor Text Color (Light)": {
-            "Blue Component": 0.8352941176470589,
-            "Color Space": "sRGB",
-            "Green Component": 0.9098039215686274,
-            "Red Component": 0.9333333333333333,
-        },
         "Match Background Color": {
             "Alpha Component": 1.0,
             "Blue Component": 0.32116127014160156,
@@ -484,12 +475,6 @@ def generate_iterm2_theme(palette: Palette) -> bytes:
             "Green Component": 0.21176470588235294,
             "Red Component": 0.027450980392156862,
         },
-        "Selection Color (Light)": {
-            "Blue Component": 0.8352941176470589,
-            "Color Space": "sRGB",
-            "Green Component": 0.9098039215686274,
-            "Red Component": 0.9333333333333333,
-        },
     }
 
     buffer = io.BytesIO()

out/alexwlchan.itermcolors (3964) → out/alexwlchan.itermcolors (3876)

diff --git a/out/alexwlchan.itermcolors b/out/alexwlchan.itermcolors
index b281fab..edfb486 100644
Binary files a/out/alexwlchan.itermcolors and b/out/alexwlchan.itermcolors differ

vendor_css_files.py (4561) → vendor_css_files.py (4561)

diff --git a/vendor_css_files.py b/vendor_css_files.py
index 8ad6a78..66abe60 100755
--- a/vendor_css_files.py
+++ b/vendor_css_files.py
@@ -89,7 +89,7 @@ if __name__ == "__main__":
         "magenta": get_colour_variable(syntax_css, name="--magenta"),
         "yellow": get_colour_variable(syntax_css, name="--yellow"),
         "highlight": get_colour_variable(syntax_css, name="--highlight"),
-        "cyan": "#2dceb7",
+        "cyan": "#38c2ab",
     }
 
     # Get the first block of dark theme colours from the syntax highlighting
@@ -105,7 +105,7 @@ if __name__ == "__main__":
         "magenta": get_colour_variable(dark_syntax_css, name="--magenta"),
         "yellow": get_colour_variable(dark_syntax_css, name="--yellow"),
         "highlight": get_colour_variable(dark_syntax_css, name="--highlight"),
-        "cyan": "#41f1df",
+        "cyan": "#4ee6d6",
     }
 
     # When I do <mark> highlights on my blog, I keep the text black in