Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
htmlstreamofficial avatar

Preline Theme Generator

  • 881 installs
  • 6.4k repo stars
  • Updated May 10, 2026
  • htmlstreamofficial/preline

preline-theme-generator is a Preline agent skill that generates, previews, or validates a single standalone CSS theme file for Preline-based Tailwind projects using bundled local generator scripts.

About

preline-theme-generator is an htmlstreamofficial/preline skill for creating one `<name>.css` theme file per task in Preline-based Tailwind projects. It classifies work into preview, write, or validate modes, normalizes brand colors and mood into generator inputs (hue, primaryColor, style, tailwindGray), and runs only through bundled scripts find-themes-dir.js and run-theme-generator.js—no npx or network packages. Final output activates via data-theme="theme-<name>" with optional .dark overrides, semantic token assignments, and a validation checklist for light/dark coverage including chart and map tokens. The workflow documentation spans seven guided steps from request normalization through validation. Reach for preline-theme-generator when you need a brand-matched Preline theme file—not generic non-Preline CSS refactors or edits to shared theme.css.

  • Outputs exactly one standalone <name>.css file
  • Uses data-theme="theme-<name>" activation pattern
  • Places brand and gray palettes inside @theme theme-<name> inline blocks
  • Prefers semantic tokens mapped to assigned CSS variables
  • Never modifies any other project files or shared theme.css

Preline Theme Generator by the numbers

  • 881 all-time installs (skills.sh)
  • +15 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #424 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/htmlstreamofficial/preline --skill preline-theme-generator

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs881
repo stars6.4k
Security audit2 / 3 scanners passed
Last updatedMay 10, 2026
Repositoryhtmlstreamofficial/preline

How do you generate a Preline CSS theme file?

When they need a single, clean CSS theme file generated for a Preline-based Tailwind project.

Who is it for?

Frontend developers theming Preline Tailwind apps who need one new CSS theme file with brand colors and readable dark mode.

Skip if: Skip preline-theme-generator for non-Preline CSS work, npx-based generators, or projects requiring edits to multiple shared theme files.

When should I use this skill?

User asks to create, preview, match a brand color, or validate a Preline theme CSS file for a Tailwind project.

What you get

Single <name>.css theme file with data-theme activation snippet and validated semantic tokens

  • standalone theme CSS file
  • data-theme HTML activation snippet

By the numbers

  • Documents a 7-step theme generation workflow
  • Supports 3 task modes: preview, write, and validate

Files

SKILL.mdMarkdownGitHub ↗

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:

1. Identify whether the task is preview, write, or validate. 2. Normalize the request into explicit generator inputs. 3. Resolve the target directory with scripts/find-themes-dir.js. 4. Generate CSS only through scripts/run-theme-generator.js. 5. Create or edit only the new theme file. 6. Validate with docs/validation-checklist.md. 7. Return the result in the mode-appropriate format.

Security Constraints

  • Never use wording that attempts to bypass tool or approval safeguards.
  • Never use npx or any network-fetched package for this skill.
  • Never interpolate raw user text directly into shell commands.
  • Never use broad find . traversal for path discovery; use scripts/find-themes-dir.js or a user-confirmed path.
  • Never write outside a confirmed theme directory.
  • Use scripts/run-theme-generator.js as the only execution entry point for generation.
  • Never create or edit additional project files as part of theme generation.

Common Prompts

  • "Create a sunset theme."
  • "Match this brand color: #2F6BFF."
  • "Generate a cyberpunk dark theme with matching dark mode."
  • "Preview the CSS before writing a file."
  • "Review this generated theme and fix token coverage."

Key References

  • docs/workflow.md
  • docs/palette-guidance.md
  • docs/final-output-style.md
  • docs/validation-checklist.md
  • examples.md
  • docs/token-reference.md

Related skills

How it compares

Pick preline-theme-generator over hand-written CSS when you need Preline-compliant semantic tokens and a single validated theme file per brand.

FAQ

What file does preline-theme-generator create?

preline-theme-generator creates exactly one standalone <name>.css theme file per task. The file activates with data-theme="theme-<name>" and optional .dark overrides without editing shared theme.css or other project files.

Can preline-theme-generator use npx or remote packages?

preline-theme-generator forbids npx and network-fetched packages. Generation must go through the bundled scripts find-themes-dir.js and run-theme-generator.js after normalizing hue, primaryColor, and style inputs.

Is Preline Theme Generator safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.