Spacegray
Spacegray copied to clipboard
Integration with Base16 builder
Would it be possible to create a Base16 template so the whole theme can be generated using the Base16 color schemes? This way we would have a general flat ST theme with multiple matching color schemes.
Do you know how to do this? :) I have no idea, but it would be so great to have such thing.
On 31 Dec 2013, at 02:21, Nick Dima [email protected] wrote:
Would it be possible to create a Base16 template so the whole theme can be generated using the Base16 color schemes? This way we would have a general flat ST theme with multiple matching color schemes.
— Reply to this email directly or view it on GitHub.
I just checked it out and it doesn't seem difficult. It works with ruby .erb templates. So instead of "hard-coding" the color values we just put some placeholders for the base64 colors and the builder script will generate all the variations. https://github.com/chriskempson/base16-builder
All base-16 themes are in output/textmate/ after you run the base16-builder since SublimeText can use TextMate themes. Is this what you mean?

No, we're talking about the UI theme of ST, not color scheme.
On Tue, Dec 31, 2013 at 11:18 AM, James Zhang [email protected] wrote:
All base-16 themes are in
output/textmate/after you run the base16-builder since SublimeText can use TextMate themes. Is this what you mean?
Reply to this email directly or view it on GitHub: https://github.com/kkga/spacegray/issues/32#issuecomment-31386299
@kkga I could try to implement this
@nickdima It would be great. Anything I can help you with to do this?
OK, I have something ready. I forked the base16-builder, added some needed features to it and then created templates for the Spacegray dark and light themes. Your code comments with the base16 colors used were very handy. So, to check it out download or clone the repo from here: https://github.com/nickdima/base16-builder and just run ./base16 in the terminal. It will build all the templates using all the base16 color schemes and afterwards you can just get the themes from output/sublime-text/ and drop them in sublime text's packages folder. It might have some bugs for now (I think the search panel looks a bit strange) and a few color might be off, but with your help we'll fix it.
@nickdima
This is so cool! Could you please fix it so it generates camel case theme names consistent with Spacegray naming (e.g. Spacegray Twilight Dark, not Spacegray base16-twilight.dark)?
@nickdima Great idea!
Thanks guys, glad you like it!
@gaearon not sure if we should keep the same naming convention. For referencing back to the base16 color schemes it could be handy to keep base16 in the name.
Anyway let's see what @kkga thinks and how we can use the builder for further development of the Spacegray theme.
The really cool thing is that with the builder we can generate whole new themes by just creating a color scheme file with 16 colors like this: https://github.com/nickdima/base16-builder/blob/master/schemes/default.yml