hamvocke / root-loops

A color scheme generator for cereal lovers
https://rootloops.sh
MIT License
53 stars 3 forks source link

[Feature Request] Ability to export all colors at once in at least one format #1

Closed rlabrecque closed 3 weeks ago

rlabrecque commented 2 months ago

I enjoyed creating my color scheme with root loops; but after doing so I realized that I have to do the work to manually recreate these in my various tools by copying one color at a time which left me with some dread. What I'd love is to be able to export to a couple different common formats for things like VSCode, or Windows Terminal.

hamvocke commented 2 months ago

Thanks, @rlabrecque!

An export function is indeed the thing that's top of mind for me. I'm planning to add an export button that generates the right configuration for your terminal emulator of choice.

Adding export functionality for syntax highlighting, code editors, and IDEs will be a little more tricky, since syntax highlighting schemes often don't follow the simple ANSI standard used for terminal emulators, but instead often use TextMate's theme language. Not impossible to solve, but it'll take a little more time.

I expect to add different export formats over time, starting with the most popular terminal emulators. I'll keep you posted!

cdhunt commented 1 month ago

I would be happy with a simple JSON list to clipboard button so I don't have to click each individual color. I'm probably never going to copy and paste just one.

hamvocke commented 1 month ago

I like @cdhunt's idea of having a generic JSON export. I think that can be a solid starting point while I'm working on better support for common terminals -- and syntax highlighters after that.

I just published a first version of a simple JSON export. Maybe that makes things a little easier for now. I'll continue working on this, but wanted to give everyone a heads up that this little button here is now a thing.

Screenshot from 2024-06-28 19-50-00

hamvocke commented 3 weeks ago

I've iterated on this some more and added an export section to the bottom of the page. I'm looking to grow the exportable formats over time. As of today we've got:

export section on root loops

I'm going to close this issue as resolved. I know there's more work to do. Let's track that work separately, if you miss support for your favorite terminal/editor/CLI tool, don't hesitate to open a new issue and let me know that there's demand :)