Change less colors with a hot key


Hello all,

I’m new here so please be gentle. I have recently started customizing my style sheet and I want to make a package that lets me change less color variables with a key press. For example, I want to make comments white when I press a key and grey when I press it again. Any tips on how I would get started would be greatly appreciate.



The simplest way would probably be to programmatically change the contents of your ~/.atom/styles.less file. Have you taken a look at the Atom Flight Manual section on building packages?