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

feat: configurable colours #406

Open
justdan96 opened this issue Sep 26, 2024 · 0 comments
Open

feat: configurable colours #406

justdan96 opened this issue Sep 26, 2024 · 0 comments

Comments

@justdan96
Copy link

I have been using dyff for a while and really like it but the default colours are not particularly friendly for people with a colour vision deficiency (such as myself). It would be nice if this could be configured somehow, even if it is just through some environment variables that I can define. To give you an idea of what I mean for delta I can configure the style like so:

# Fabio Crameri, Glasgow palette, 5 colours, 2 for plus and 4 for minus
minus-style                   = syntax "#702d06"
minus-non-emph-style          = syntax "#702d06"
minus-emph-style              = syntax bold "#702d06"
plus-style                    = syntax "#6aa3a5"
plus-non-emph-style           = syntax "#6aa3a5"
plus-emph-style               = syntax bold "#6aa3a5"
line-numbers-minus-style      = "#702d06"
line-numbers-plus-style       = "#6aa3a5"
line-numbers-zero-style       = "#eeeeee"
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

1 participant