How warpdotdev/themes works
Project type and purpose
• It organizes hundreds of .yaml theme definitions into logical feature sets (Base16, standard, holiday/special, bundled, etc.) and provides a Python script to auto-generate preview images.
File structure
• Top‐level directories:
• base16/, standard/, special_edition/, warp_bundled/, stradicat/ – each holds a set of .yaml theme files plus its own previews/ subfolder.
• scripts/ – contains gen_theme_previews.py and its requirements.txt.
• Configuration & tooling:
• .github/ – pull-request template.
• .warp/workflows/ – GitHub Actions workflow to run the theme generator.
• .trunk/ – trunk CLI config for versioning/release.
• Every theme directory follows the same pattern: [some_theme].yaml definitions → previews/ where generated PNGs land.
README for additional insights
• Describes the use of gen_theme_previews.py to generate preview images on contribution.
• Describes how Warp loads YAML theme files at runtime.
• Mentions external dependencies: PyYAML, GitHub Actions, Warp CLI.
• Calls out upstream theme sources (e.g., base16, Alacritty-theme).
Detail
• Directory as its own module, even if structurally identical, to underscore maintainability and separation of concerns.
• How configuration files (.warp/workflows, .trunk/trunk.yaml) drive automated processes.
• Don’t omit the user‐consumption flow—this is how themes reach real‐world usage in the Warp app.
• Optional background‐image feature in the YAML parsing block.