TheUniversalColorSchemeGenerator
Whatisthis?Whenyou'rewritingacolorschemeyouenduphavingsomeconcerns:
Therearemanyeditorstosupport.FortunatelyVisualStudioCode,SublimeTextandTextMatehaveasharedformattmThemethatisalsosupportedbyAtomthroughaconvertor.HoweveritstillremainssupportformajortoolslikeVisualStudio,Xcode,XamarinStudio,IDEsbyJetbrains,LightTable,QtCreatorandmanymanymanyother...
YouhavetodevelopbothforLightandDark.Theproblemisyoualwayshaveacolorthemeandyouspecifywhatcolorforwhatscope.Nowtheonlydifferentbetweenlightanddarkisthetoneofthosecolors.Whycantyoujustcreateacolortonefordarkandlightandthenletthesoftwaregeneratethemesbasedonsharedscopedefinitions?
Colorsdefinedbyyouarenotdisplayedintheresultcorrectly.AfterhavinganinterestingissuewithVisualStudioCodeandSublimeText,wefoundoutthattheeditorstendtochangeyourcolors.Wehadtohaveawaytobypasstheircolorfiltersbychangingthecolorsofyourschemeintheresultfilessoaftertheyapplytheircolorchanges,yourcolorsremainthesame.
NowwhatthemeXis?It'sprettymuchwhatwetoldyou.Youdefineyourthemeonce,usingit'sadaptors;themeXgeneratesthemesformanyofthesupportededitors,YoualsodefinebothdarkandlightversionsofyourthemeatoneplaceandthemeXtakescareoftherestandalsoitmakessureyourcolorsarebeingrenderedjustrightintheruntime.
Howtohaveit?npminstall-gthemexCreateafolderforyourfiletheme.andthenuse:
themexinitTomakethefolderintoathemeXproject.
评论