sainnhe / sonokai

High Contrast & Vivid Color Scheme based on Monokai Pro
MIT License
1.65k stars 119 forks source link

xresources, base16-snazy #99

Closed vlappa closed 4 months ago

vlappa commented 4 months ago

Nice theme, thanks.

1) Any idea how this color scheme can be ported to Xresources for use in terminal?

2) I liked base16-snazzy by @chawyehsu a lot, especially for it's background I think. But there is to much red in the syntax colors (with treesitter). So now I choosed sonokai instead. Maybe it can be a inspiration for a variant. https://github.com/chawyehsu/base16-snazzy-scheme

antoineco commented 4 months ago

Regarding XResources I haven't seen any port of Sonokai, however it should be easy to adapt one of the existing ports: https://github.com/sainnhe/sonokai/wiki/Related-Projects#terminal-emulators

Regarding base16, usually the abundance of red comes from the base16 spec itself, and it is often difficult to convey the semantics of the original colorscheme through a base16 conversion. I think I did a decent job porting Everforest (another of sainnhe's colorschemes) a while ago, maybe you can take a look for inspiration:

vlappa commented 4 months ago

Thanks for your reply. And how do I change the background of sonokai to that from snazzy? I'm curious, I think it would be better for my eyes.

I use the 'maia' variant by the way.

antoineco commented 4 months ago

snazzy uses the following color as background: https://github.com/chawyehsu/base16-snazzy-scheme/blob/6e64c88288270c9b6baf9cc7f9eb7496c39fbd0b/snazzy.yaml#L3

antoineco commented 4 months ago

The Vim palette can be overridden as follows: https://github.com/sainnhe/sonokai/blob/da5b10020b9ca960f5a0296ab59ccc44f0d7718e/doc/sonokai.txt#L497-L506

vlappa commented 4 months ago

Thanks. This comes really close to my snazy color of my terminal: let g:sonokai_colors_override = {'bg0': ['#1e1l1a', '235'], 'bg2': ['#282c34', '236']}

Just by chance, this seems to work quite well for my eyes to: let g:sonokai_colors_override = {'bg0': ['#1e191a', '235'], 'bg2': ['#282c34', '236']} Which I could match pretty close in my terminal with bg #1c181b

vlappa commented 4 months ago

Does the vim theme also determine the colors of the tabs? I'm not a fan of the tabs color (red like). To prominent and red is a 'alarming' color, which doesn't fit well for tabs IMHO.

chawyehsu commented 4 months ago

Hi @vlappa , for question of my color scheme, as @antoineco mentioned above, it is limited by the base16 spec itself that the red color is used widely. From the preview, you can see the red color is used for both variables and diff deleted. If you think it's acceptable for getting .diff files being rendered with colors other than red and green, you may switch them with colors you would like to use.

image

chawyehsu commented 4 months ago

it is often difficult to convey the semantics of the original colorscheme through a base16 conversion

@antoineco What I believe it is The Art of Compromise, the 16 colors constraint, I absolutely agree with you though!

antoineco commented 4 months ago

I've used base16 for about 3 years, mostly because it was fun at the beginning to change colorschemes in both the terminal and Vim with a single command. I eventually settled for one colorscheme which I really like, and used a "proper" version of the colorscheme where appropriate.

If you like snazzy, I couldn't recommend you more to just use proper terminal + Vim themes for snazzy. If you arrived at the point where you need to use Sonokai with a partially modified palette, you're most likely going to end up creating your own colorscheme in the end.

antoineco commented 4 months ago

I'm closing this because the original question was answered, but feel free to keep discussing!