htmlstreamofficial/preline / skills/theme-generator
preline-theme-generator
VerifiedGenerate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated theme tokens. Do not use for generic non-Preline CSS work or arbitrary command execution.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.4 KB |
| docs/final-output-style.md | markdown | 2.8 KB |
| docs/palette-guidance.md | markdown | 10.3 KB |
| docs/token-reference.md | markdown | 20.9 KB |
| docs/validation-checklist.md | markdown | 2.2 KB |
| docs/workflow.md | markdown | 5.8 KB |
| examples.md | markdown | 5.9 KB |
| scripts/find-themes-dir.js | script | 1.7 KB |
| scripts/generate-theme.js | script | 36.9 KB |
| scripts/run-theme-generator.js | script | 3.5 KB |
docs/validation-checklist.md
View on GitHub# Validation checklist (must self-check before returning)
## Final source style
- [ ] Only one project file is created or edited: `<name>.css`
- [ ] The final file is a production-style `<name>.css` file
- [ ] `@theme theme-<name> inline { }` is present
- [ ] Any custom brand/gray palette lives inside `@theme theme-<name> inline { }` in the new theme file
- [ ] Semantic tokens prefer assigned vars such as `--color-primary-*`, `--background-*`, `--foreground`, `--border`, `--surface-*`, or shared palette vars when available
- [ ] The custom theme does not redefine shared aliases like `--color-primary-*` inside `@theme` when the repo base theme already owns them
- [ ] No raw `oklch(...)` or literal hex values remain in semantic, chart, or map token assignments in the final theme file
## Structure
- [ ] Theme key consistent: `theme-<name>` everywhere
- [ ] Light selector uses `:root[data-theme=...]`, `[data-theme=...]`
- [ ] Dark selector is `[data-theme="theme-<name>"].dark`
- [ ] Semantic token definitions are in selector blocks (NOT inside @theme block)
- [ ] No requirement to change HTML utility classes (only `data-theme`, optional `.dark`)
## Palette strategy
- [ ] Primary ramp maps `--primary-*` directly to theme-local palette vars
- [ ] Neutral/background tokens use assigned palette vars
- [ ] If a new custom palette is needed, it is declared inside the new theme file's `@theme` block, not by editing another file
## Token coverage
- [ ] Full coverage present across global tokens, states, and major component groups
- [ ] CSS syntax valid (balanced braces, no broken comments)
- [ ] If behavior overrides exist, they are theme-scoped only
- [ ] Chart/map tokens use variable references matching shipped theme patterns
## Dark mode consistency
- [ ] Dark mode uses CSS variables (`var(--color-*)`) not hardcoded color literals
- [ ] Dark mode uses one consistent grayscale family unless there is a deliberate, reference-backed reason not to
- [ ] Hover/focus/active states remain readable and distinguishable
- [ ] `--foreground-inverse` remains readable on vivid utility colors in dark mode (for example red badges/chips)
- [ ] Dark-mode chart/decorative tokens avoid very deep brand steps when those tokens are used in gradient text or accent UI
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |