Spacegray icon indicating copy to clipboard operation
Spacegray copied to clipboard

Integration with Base16 builder

Open nickdima opened this issue 11 years ago • 10 comments

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.

nickdima avatar Dec 30 '13 22:12 nickdima

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.

kkga avatar Dec 30 '13 22:12 kkga

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

nickdima avatar Dec 30 '13 22:12 nickdima

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?

screen shot 2013-12-31 at 2 17 58 am

jamesfzhang avatar Dec 31 '13 07:12 jamesfzhang

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?

screen shot 2013-12-31 at 2 17 58 am

Reply to this email directly or view it on GitHub: https://github.com/kkga/spacegray/issues/32#issuecomment-31386299

kkga avatar Dec 31 '13 07:12 kkga

@kkga I could try to implement this

nickdima avatar Dec 31 '13 13:12 nickdima

@nickdima It would be great. Anything I can help you with to do this?

kkga avatar Dec 31 '13 14:12 kkga

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 avatar Jan 03 '14 20:01 nickdima

@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)?

gaearon avatar Jan 03 '14 20:01 gaearon

@nickdima Great idea!

danielbayerlein avatar Jan 04 '14 13:01 danielbayerlein

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

nickdima avatar Jan 04 '14 16:01 nickdima