Thank you for your interest in contributing to this project. Contributions are welcome whether you want to add new color schemes, improve existing themes, fix bugs, or enhance documentation.
If you find a bug or have a suggestion, open an issue at github.com/xscriptor/opencode/issues. Include as much detail as possible:
- A clear description of the issue
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
- Define your ANSI color palette (16 colors) in
colors.mdfollowing the existing format - Create a corresponding JSON file in
themes/xscriptor-themes/colors/using the OpenCode theme specification - Add the theme name to the
THEMESarray ininstall.sh - Update the tables in
README.mdandthemes/xscriptor-themes/README.md
- Theme JSON files must be valid JSON and pass
python3 -c "import json; json.load(open('file.json'))" - Follow the existing structure:
defsfor color references,themefor semantic mappings - Include the
$schemafield pointing tohttps://opencode.ai/theme.json - Shell scripts must be POSIX-compatible and pass
shellcheck
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-theme - Commit your changes with clear messages
- Push to your fork and open a pull request
- Ensure all checks pass (JSON validation, shellcheck)
All contributors must adhere to the Code of Conduct. Be respectful, constructive, and collaborative.
Maintainer: x@xscriptor