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

Terminal Colors Issue #451

Closed
UnknownHiker opened this issue Jun 24, 2024 · 6 comments
Closed

Terminal Colors Issue #451

UnknownHiker opened this issue Jun 24, 2024 · 6 comments

Comments

@UnknownHiker
Copy link

UnknownHiker commented Jun 24, 2024

When typing a variable e.g. $HOME, the color is almost same like background, no matter which theme i use.
Only when the Variable is fully typed and gets recognized, it will turn red.
Tried a light or dark variation of catppucccin base16.
Also having the same issue in nvim-neotree, when opening the popup to create a new file. Cant read the heading in the popup there.

Id like to understand which base color gets assigned to which of those, so i know which one i could change to get a better result.

Screenshot_20240625_001048
Screenshot_20240625_001355

This is what ends up in kitty configuration:

background #24273a
foreground #cad3f5
selection_background #cad3f5
selection_foreground #24273a
url_color #939ab7
cursor #cad3f5
active_border_color #8087a2
inactive_border_color #1e2030
active_tab_background #24273a
active_tab_foreground #cad3f5
inactive_tab_background #1e2030
inactive_tab_foreground #939ab7
tab_bar_background #1e2030

# normal
color0 #24273a
color1 #ed8796
color2 #a6da95
color3 #eed49f
color4 #8aadf4
color5 #c6a0f6
color6 #8bd5ca
color7 #cad3f5

# bright
color8 #8087a2
color9 #f5a97f
color10 #1e2030
color11 #6e738d
color12 #939ab7
color13 #f4dbd6
color14 #f0c6c6
color15 #b7bdf8

And here what i specified in Stylix

 stylix.base16Scheme = {
    base00 = "24273a"; # base
    base01 = "1e2030"; # mantle
    base02 = "363a4f"; # surface0
    base03 = "494d64"; # surface1
    base04 = "5b6078"; # surface2
    base05 = "cad3f5"; # text
    base06 = "f4dbd6"; # rosewater
    base07 = "b7bdf8"; # lavender
    base08 = "ed8796"; # red
    base09 = "f5a97f"; # peach
    base0A = "eed49f"; # yellow
    base0B = "a6da95"; # green
    base0C = "8bd5ca"; # teal
    base0D = "8aadf4"; # blue
    base0E = "c6a0f6"; # mauve
    base0F = "f0c6c6"; # flamingo
  };

So it seems there are some colors which i havent specified, so there might be some issue on applying the colors?

@trueNAHO
Copy link
Collaborator

Cant read the heading in the popup there.

In the future, #249 should resolve such inconsistencies.

Id like to understand which base color gets assigned to which of those, so i know which one i could change to get a better result.

The theme is generated based on https://github.com/kdrag0n/base16-kitty:

variant256Colors = lib.mkOption {
description = ''
Whether to use the [256-color variant](https://github.com/kdrag0n/base16-kitty#256-color-variants)
rather than the default combination of colors.
'';
type = lib.types.bool;
default = false;
};

@UnknownHiker
Copy link
Author

@trueNAHO Sounds good, going to try using the 256-Option for kitty as a workaround for now :)

@UnknownHiker
Copy link
Author

For some reason enabling stylix.targets.kitty.variant256Colors = true; within home-manager doesnt change anything....

@danth
Copy link
Owner

danth commented Jun 26, 2024

This may be related to the specific program you're running in addition to the terminal itself, since programs can choose their own default colors which may not necessarily match the theme

@niksingh710
Copy link

stylix colors the terminal application.
That requires an application restart to get the colors.

Whereas other programs like pywal used to generate a sequence file, where we do cat ~/file/path/of/sequence and it changes the terminal color.

e.g of sequence

@UnknownHiker
Copy link
Author

I tried installing the usual Catppuccin Theme for Kitty and disabled Stylix for kitty however.
Variables are still quite dark but readable. But the Popup in Neotree is still too dark, but i guess that means its not caused by Stylix in that case, so id close this. Thanks for your input, everyone :)

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