Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contributing Default Theme from Kitty - Need Assistance Mapping to iTerm2 Colors #502

Open
francoposa opened this issue Jan 5, 2025 · 3 comments

Comments

@francoposa
Copy link

I have been manually porting the default Kitty theme (dumped with the get-colors) as well as a lower-contrast custom version to Wezterm and now Ghostty.

I attempted last night to set the colors manually in iTerm2 on an old macbook in order to generate a scheme and contribute here, but I could not figure out the exact mappings to iTerm2 as it seems to have several more options than a basic theme layout used by other terminals.

The Kitty Default color dump converted to wezterm TOML format is in my dotfiles repo as well as below. The ghostty key-value version can be found there as well.

[metadata]
name = "Kitty Default"

[colors]
background = "#000000"
foreground = "#dddddd"

cursor_bg = "#cccccc"
cursor_fg = "#111111"
cursor_border = "#cccccc"

selection_bg = "#fffacd"
selection_fg = "#000000"

ansi = [
    "#000000",  # color0
    "#cc0403",  # color1
    "#19cb00",  # color2
    "#cecb00",  # color3
    "#0d73cc",  # color4
    "#cb1ed1",  # color5
    "#0dcdcd",  # color6
    "#dddddd",  # color7
]

brights = [
    "#767676",  # color8
    "#f2201f",  # color9
    "#23fd00",  # color10
    "#fffd00",  # color11
    "#1a8fff",  # color12
    "#fd28ff",  # color13
    "#14ffff",  # color14
    "#ffffff",  # color15
]

The Low Contrast version only changes the background and foreground to be less harshly contrasted:

background = "#333333"
foreground = "#ffffff"

Would love any assistance so that I can contribute it here, thanks!

@akx
Copy link
Contributor

akx commented Jan 7, 2025

I actually have a PR in the works that PR #512 will make this work without having to port to the iTerm format!

@Limero
Copy link

Limero commented Feb 7, 2025

I'd like to use the default Kitty theme in Ghostty as well, I'm currently using the same theme in foot.

Comparing the kitty theme in foot: https://codeberg.org/dnkl/foot/src/branch/master/themes/kitty
With another theme, like catppuccin-latte: https://codeberg.org/dnkl/foot/src/branch/master/themes/catppuccin-latte

The extra fields seems optional, maybe it's the same case here? @mbadolato could you clarify?

@mbadolato
Copy link
Owner

@Limero I'm not able to comment on if they're optional or not. I don't know enough about any of the theme formats

@akx I know you're still awaiting merge on your PR; haven't been available to review still. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants