carbon-now-cli icon indicating copy to clipboard operation
carbon-now-cli copied to clipboard

Allow configuring "theme colors" in presets

Open nikolasburk opened this issue 5 years ago • 2 comments

The Carbon CLI is really awesome and I love that it's possible to store and reuse a configuration as preset. One thing I'd love to add to the config though is the actual "theme colors" (i.e. what color e.g. variables, operators, keywords, comments, ...).

Basically these options from the Carbon web UI:

Screenshot 2019-03-26 at 10 39 45

nikolasburk avatar Mar 26 '19 09:03 nikolasburk

Hey @nikolasburk, thanks for chiming in and the nice words, much appreciated. Big fan of your work! :)

I’ve briefly dabbled with this idea since first seeing that these things are now configurable in the web UI.

First thought it might not be possible without doing some disgusting DOM traversing through Puppeteer, but just noticed all these values are stored in localStorage. :)

You’d likely lose the state/visuals by doing --open, but it should fully work through the CLI. 🤔

I’ll try and get to this soon. Quite swamped with work and conf season, but I’m eager to have it as part of the CLI. :)

mixn avatar Mar 26 '19 20:03 mixn

+1 🙇

raveling avatar Jul 15 '21 03:07 raveling

This feature ships with the official v2 release. 🙂

Documentation 🚀 for custom theme colors can be found here. 🙂

Happy testing and using! Looking forward to your feedback! @nikolasburk @raveling

P. S: I’m almost embarrassed about how long it took me to start working on v2, but at least once I did, I shipped it quite fast. 🙃 No more activity slumps in the future, though. 🤞

mixn avatar May 12 '23 13:05 mixn