Skip to content

How to make a theme

redstone edited this page Aug 29, 2023 · 8 revisions

A Snazzle theme, for now, is just a basic CSS file with the name format styles-*.css. Whatever is between styles- and .css is the theme's name in the theme picker.

Instructions

  1. Fork the repo.

  2. Then, all you have to do is copy either styles-choco.css or template-theme.css into a new file and rename it using the naming convention and tweak the colours and whatnot.

  3. You also need to add your background colour to the main.py file (around line 260) as an elif to the if theme == "choco": statement as a new elif. (See the code comments for more details.)

  4. Finally, create a pull request on the main repo, and most likely your theme will get accepted.

This may change in the future (but that will be like a year or something), however legacy themes will still be compatible.