
Preline Theme Generator
If you're working with Preline UI and need to spin up custom themes fast, this handles the CSS generation without you touching npx or composing shell commands by hand. It bundles its own local scripts and walks you through palette decisions, light and dark mode pairs, and token validation before writing files. You give it a brand color or a vibe like "sunset" or "cyberpunk," and it normalizes that into generator inputs, resolves your themes directory, and outputs valid CSS. The workflow docs and validation checklist keep you from shipping incomplete token sets. It won't do arbitrary CSS work outside Preline, which is the right call for a focused tool.
- GitHub stars
- 6.3K
- last updated
- May 10, 2026
Install
$ npx -y skills add htmlstreamofficial/preline --skill preline-theme-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Preline Theme Generator
Use the bundled local scripts. Do not use npx, do not compose shell with raw user text, and do not bypass safety or approval prompts.
Read Order
- Read
docs/workflow.md. - Read
docs/palette-guidance.md. - Read
docs/final-output-style.mdbefore writing a final theme file. - Read
docs/validation-checklist.mdbefore closing the task. - Read
examples.mdonly if the user wants stylistic guidance or sample outputs. - Read
docs/token-reference.mdonly if you need to inspect token coverage in detail.
Workflow
Follow docs/workflow.md for the full operating path.
Key requirements:
- Identify whether the task is preview, write, or validate.
- Normalize the request into explicit generator inputs.
- Resolve the target directory with
scripts/find-themes-dir.js. - Generate CSS only through
scripts/run-theme-generator.js. - Create or edit only the new theme file.
- Validate with
docs/validation-checklist.md. - Return the result in the mode-appropriate format.
Security Constraints
Sponsors
Details
- Repository
- github.com/htmlstreamofficial/preline
- Categories
- Frontend Development, Git & Pull Requests, Documentation, Code Review & Quality, Debugging, Automation & Workflows, Marketing & SEO, Design & UI/UX
- First seen
- Jun 11, 2026