We welcome contributions to improve the theme generator and add new palettes.
- Fork the repository.
- Create a feature branch:
git checkout -b feature/my-feature. - Make your changes.
- Run the generator to verify the output is valid:
cd labs && python3 generate_themes.py. - Commit and push your branch.
- Open a pull request describing the change.
- Add your ANSI 16-color palette to
colors.mdusing the existing format (JSON block withcolor0throughcolor15,background, andforeground). - Add the corresponding entry to the
THEMESdict inlabs/generate_themes.py. - Run the generator to produce the
.xccolorthemefile. - Commit both the updated
colors.mdand the new file inthemes/.
The ANSI-to-Xcode syntax mapping is defined in the SYNTAX_MAP list inside labs/generate_themes.py. Adjust it if you believe a different token assignment produces better highlighting.
- Python: follow PEP 8.
- Shell scripts: use
#!/bin/bashand shellcheck-clean code. - Documentation: all text in English, no emojis, use HTML
<div align="center">for centered titles.
All pull requests are reviewed for correctness, visual quality of the generated themes, and adherence to the project conventions.