preline-theme-generator

Installation
Summary

Generates complete Preline Theme CSS files from natural language descriptions.

  • Interprets user requests to determine theme configuration (hue, style, palette mood) and automatically creates a JSON config file
  • Runs the theme generator script silently and outputs a ready-to-use CSS file with coherent light and dark modes
  • Generates comprehensive token coverage including surfaces, borders, primary/secondary/destructive color ramps, and component-specific tokens (navbar, sidebar, card, dropdown, etc.)
  • Theme activation requires only a CSS import and data-theme attribute on the HTML element; no HTML utility class changes needed
  • Supports custom color palettes, typography tokens, and optional behavior overrides, all scoped to prevent affecting non-theme pages
SKILL.md

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

  1. Read docs/workflow.md.
  2. Read docs/palette-guidance.md.
  3. Read docs/final-output-style.md before writing a final theme file.
  4. Read docs/validation-checklist.md before closing the task.
  5. Read examples.md only if the user wants stylistic guidance or sample outputs.
  6. Read docs/token-reference.md only if you need to inspect token coverage in detail.

Workflow

Follow docs/workflow.md for the full operating path.

Key requirements:

Installs
552
GitHub Stars
6.3K
First Seen
Jan 28, 2026