charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
2.98k stars 50 forks source link

feat(colors): matching the theme from editor colorscheme #94

Closed AlejandroSuero closed 2 months ago

AlejandroSuero commented 2 months ago

Motivation

I am using freeze with the rose-pine-moon colour scheme because is what I use on Neovim, but the colours don't seem to match.

Examples

image generated by freeze

image from screenshot

Additional context

meowgorithm commented 2 months ago

It can be a such a bummer when theme implementations differ! The color scheme is defined upstream in Chroma, so I'd file an issue (or PR) upstream. Here's the definition:

https://github.com/alecthomas/chroma/blob/master/styles/rose-pine-moon.xml

caarlos0 commented 2 months ago

just fwiw: if you have semantic tokens enabled in your LSP, that might change colors as well

AlejandroSuero commented 2 months ago

@caarlos0 I know, but at least with rose-pine default options doesn't seem to have them.

AlejandroSuero commented 2 months ago

@meowgorithm I will do that then.