1.2 KiB
StackEdit theming guide
In StackEdit, a theme is pretty much a CSS file that overrides the default look and feel.
Create your special theme very quickly by following these steps:
-
Fork StackEdit on GitHub.
-
In the
themesfolder, create a sub-folder containing your resources (CSS, images...).The CSS file should have the same name as the sub-folder.
Example:
themes/cool-theme/cool-theme.css -
Add an entry in
THEME_LISTat the end ofconfig.jswith the folder name as a key and the name of your theme as a value.Example:
"cool-theme": "The coolest ever" -
Run the application on your machine, go to
Settings -> Editor -> Themeand select your theme. Check that everything is marvelous (don't forget to test theviewer.html). -
List your resource files in
cache.manifest, commit, push, create a pull request and wait for publishing...
That's it!
Please, keep in mind these simple rules
- Avoid using gradients, shadows and other effects as much as possible (for performance concern).
- Try to create something at least as nice as the default theme...
Written with StackEdit.