How spicetify/spicetify-themes works
Project type and purpose
• This repository is a collection of _themes_ for an open-source CLI tool called spicetify-cli, which customizes the Spotify desktop client.
File structure
• Top-level directories: one folder per theme (e.g., Dribbblish, Blackout, Flow, …), plus special folders like _Extra for additional tweaks.
• Each theme directory typically contains:
• user.css (theme overrides)
• optional assets/images/theme.js/install.ps1/uninstall.ps1 for advanced themes
• Root‐level manifest.json and THEMES.md serve to list available themes and provide previews.
• There are GitHub meta‐files (LICENSE, CONTRIBUTING.md, CODE_OF_CONDUCT.md) but no build scripts or backend code.
Key insights from the README
• Some themes require special install/uninstall scripts.
Main components
a. GitHub Repository (spicetify-themes)
• Hosts theme directories, README, manifest.json, THEMES.md.
b. Developer/User Local Environment
• Git client, local clone folder.
• File system path: ~/.config/spicetify/Themes (Linux/Mac) or the Spicetify config path on Windows.
c. spicetify-cli
• Reads theme folders, config commands, copies files, patches Spotify.
d. Spotify Desktop Client
• Receives CSS/JS injections from spicetify, renders the customized UI.
e. External Services (optional)
• GitHub (for PRs), Reddit/Discord (support), AUR (Arch package).
Relationships and data flows
1. User runs git clone → local theme repository.
2. User executes copy command → themes copied into spicetify config folder.
4. spicetify patches Spotify’s resource files or injects CSS/JS at runtime.
5. Spotify restarts or reloads → UI reflects the chosen theme.
Architectural patterns & design principles
• Plug-in architecture: Each theme is a self-contained plugin.
• Separation of concerns: Themes are purely static assets; CLI logic is in spicetify-cli, and Spotify is unmodified.