proton icon indicating copy to clipboard operation
proton copied to clipboard

Manage stylesheet from .proton

Open mythmon opened this issue 8 years ago • 2 comments

As far as I can tell, there isn't a way to manage styles.less from .proton, unlike all the other configuration options for Atom. One of the main things I like about Proton is that all the configuration happens from a single file, which makes it dotfile friendly.

mythmon avatar May 23 '16 23:05 mythmon

yes it is currently not possible to manage stylesheets. One idea we had was to generate collect all css files and do something like:

var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.cssClass { color: #F00; }';
document.getElementsByTagName('head')[0].appendChild(style);

PRs are as always welcome 😄

dvcrn avatar May 24 '16 01:05 dvcrn

Then the same thing should go for snippets.cson and init.coffee. But I would vote against it.

I just happen to have an Atom folder in my dotfiles repo containing .proton and I've simply added styles.less, snippets.cson and init.coffee to it. You already can edit them with SPC f e s, SPC f e p and SPC f e i respectively. Let Atom handle those files. In case you remove Proton, you won't end up with your custom styles removed along with it.

richarddewit avatar Jun 07 '16 09:06 richarddewit