Move theme related things into its own subfolder

This will make contributions easier and less prone to conflicts.
This commit is contained in:
Martin Fournier
2022-01-19 07:02:58 -05:00
parent aae3851d59
commit a9e2e35446
26 changed files with 685 additions and 622 deletions
+17
View File
@@ -0,0 +1,17 @@
# Themes
Feel free to contribute a new theme by submitting a pull request to the game!
See [CONTRIBUTING.md](/CONTRIBUTING.md) for details.
## How create a new theme
1. Duplicate one of the folders in `/src/Themes/data` and give it a new name (keep the hyphenated format)
2. Modify the data in the new `/src/Themes/data/new-folder/index.ts` file
3. Add the import/export into the `/src/Themes/data/index.ts` file
The themes are ordered according to the export order in `index.ts`
## Other resources
There is an external script called `theme-browser` which may include more themes than those shown here. Head over the [bitpacker](https://github.com/davidsiems/bitpacker) repository for details.