Adaptive themes for Sublime Text
Go to file
Pradyun 9763a87807 Add markupsafe as a direct dependency
I thought jinja2 gave you this.
2016-09-20 19:31:27 +05:30
assets/soda [CHECKIN] Checkin the first working version! 2016-07-20 12:20:49 +05:30
rainbow_lib 🆕 Optimize theme regeneration 2016-09-09 11:42:31 +05:30
templates Stop oversaturation 2016-08-03 12:22:12 +05:30
.dirname [CHECKIN] Checkin the first working version! 2016-07-20 12:20:49 +05:30
.gitignore [CHECKIN] Checkin the first working version! 2016-07-20 12:20:49 +05:30
.no-sublime-package Ask Package Control to not put this in an archive 2016-09-16 10:37:45 +05:30
1_reloader.py Don't use reloader hacks on newer versions 2016-09-16 00:22:40 +05:30
Default.sublime-commands [CHECKIN] Checkin the first working version! 2016-07-20 12:20:49 +05:30
dependencies.json Add markupsafe as a direct dependency 2016-09-20 19:31:27 +05:30
main.py Trigger on tab change 2016-09-09 11:37:09 +05:30
Main.sublime-menu 🆕 Settings and Menu items! 2016-09-09 11:37:03 +05:30
NOTES.md 📝 Update to provide current state of affairs. 2016-07-20 12:43:54 +05:30
README.md Change to CC BY-SA license (#1) 2016-09-15 14:06:13 +05:30
reloader_command.py [CHECKIN] Checkin the first working version! 2016-07-20 12:20:49 +05:30
screencast.gif Add the screencast 2016-08-03 12:10:45 +05:30
Theme - Rainbow.sublime-settings 🆕 Settings and Menu items! 2016-09-09 11:37:03 +05:30

Theme - Rainbow

Light and Dark Sublime Text UI themes that adapts to your active colour scheme. Based on [Soda Theme] by Ian Hill.

PR with better screencast more than welcome!

Screencast

WOW! How do I get this?

Via Package Control (not active yet)

Install the themes using Sublime Package Control, it's listed as Theme - Rainbow. You're ready for activating the package!

Manually

Clone the package in Sublime's Packages directory:

git clone https://github.com/pradyunsg/Sublime-Rainbow-Theme

After cloning, open Sublime Text and in the Command Palette run Package Control: Satisfy Dependencies. This second step is necessary since this package has a dependency on jinja2, which is provided as a dependency by Package Control. Restart Sublime Text and you're ready for activating the package!

Activate the theme

This theme is activated as simply as any other theme. Open your Preferences file (via menu: Preferences -> Settings - User) and add/modify the theme key to one of the following variants of the theme:

  • Rainbow Soda Light.sublime-theme
  • Rainbow Soda Dark.sublime-theme

Example:

{
    "theme": "Rainbow Soda Light.sublime-theme"
}

I plan on adding flat variants of the same after fixing some quirks in the current theme generation code.

How does it work?

The themes are re-generated on the fly when you change the colour scheme. These changes are picked up by Sublime Text and become visible.

This package uses the same algorithms to determine the base-colours for the UI elements as one-light-ui and one-dark-ui from Atom, ported to pure-Python. These base-colours are used when generating the themes.

Issues faced while trying make this?

  • ST does not acknowledge changes to Widget Schemes on the fly.
    • If support for modification and re-loading of Widget Schemes on the fly is added, it'll be awesome! That'll make this package a tiny bit simpler but more importantly, it'll make ST's behaviour more consistent.

License

Theme - Rainbow is licensed under the [Creative Commons Attribution-ShareAlike 3.0 License]. [Creative Commons Attribution-ShareAlike 3.0 License]: https://creativecommons.org/licenses/by-sa/3.0/ [Soda Theme]: http://buymeasoda.com/