riccardoperra / codeimage

A tool to beautify your code screenshots. Built with SolidJS and Fastify.
https://codeimage.dev
MIT License
1.34k stars 72 forks source link

πŸš€ - Support for custom color for text #640

Open juraj-hrivnak opened 1 month ago

juraj-hrivnak commented 1 month ago

Which @codeimage/* package(s) are relevant/releated to the feature request?

config

Description

This app would be great for generating images for CLIs, but they often require custom colour styles. Being able to configure colour would fix the issue.

riccardoperra commented 4 weeks ago

Hi, what do you mean about custom color style? It’s not clear

juraj-hrivnak commented 4 weeks ago

For example, I created this image from a screenshot from my terminal:

As you can see different texts have different colours. With this suggestion, I mean that you could be able to select text and set its colour individually.

riccardoperra commented 2 weeks ago

I don't think this will be supported in the near future, CodeImage relies on codemirror6 and themes/colors are statically defined.

Customizable text decorations (color, bold, italic) needs a "text editor ui" which currently isn't in my plan