Agent skill

Preline Theme Generator

by htmlstreamofficial in htmlstreamofficial/preline

Generates light and dark Preline theme CSS from a brand color or mood, previews it, and validates token coverage through bundled local scripts.

Custom licenceAuto-check: warningsFrontend & Design

Install Preline Theme Generator

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add htmlstreamofficial/preline --skill preline-theme-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install htmlstreamofficial/preline preline-theme-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/htmlstreamofficial/preline.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/theme-generator .claude/skills/preline-theme-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
preline-theme-generator
GitHub stars
6.5k
Token cost
~619 tokens
SKILL.md length
258 words
Files
10 (incl. scripts)
Skills in repo
2
Repo updated
First seen
Licence
Custom licence

At a glance

Generates light and dark Preline theme CSS from a brand color or mood, previews it, and validates token coverage through bundled local scripts.

  • Works in 6 steps: Read docs/workflow.md. → Read docs/palette-guidance.md. → Read docs/final-output-style.md before… → …
  • Generating a new Preline theme that matches a brand color
  • SKILL.md covers Read Order, Workflow, Security Constraints and Common Prompts, plus 1 more section
  • Runs JavaScript scripts from its folder

What it does

This skill produces Preline UI theme CSS by reading a fixed set of docs in order - a workflow guide, palette guidance, final output style rules, and a validation checklist - and then generating the actual CSS only through a bundled generator script, after resolving the target theme directory with a separate lookup script.

It handles three modes: previewing generated CSS without writing a file, writing a new theme file, or validating and fixing an already-generated theme's token coverage against a reference document. Typical requests include matching a specific brand hex color, turning a mood like cyberpunk or sunset into a light and dark theme pair, or reviewing an existing theme file against the validation checklist.

It is deliberately locked down: no npx or network-fetched packages, no interpolating raw user text into shell commands, no broad directory traversal for locating the themes folder, and no writing outside a confirmed theme directory or creating extra project files beyond the theme itself.

When your agent uses it

  • Generating a new Preline theme that matches a brand color
  • Turning a mood or style into a light and dark Preline theme pair
  • Reviewing a generated Preline theme for missing tokens

Example prompts

  • “Create a sunset-themed Preline CSS file with matching dark mode.”
  • “Match this brand color to a new Preline theme: #2F6BFF.”
  • “Preview a cyberpunk dark theme before writing any files.”

Requirements

  • The skill's bundled theme-generator scripts

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 05ca599. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Preline Theme Generator loads about 619 tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 258 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~619

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningContains instruction-override wording (e.g. “without asking the user”)SKILL.md:8
    se shell with raw user text, and do not bypass safety or approval prompts.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 258 words (~619 tokens).

“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.”

— opening of SKILL.md by htmlstreamofficial, Custom licence
name
preline-theme-generator

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files (scripts) in skills/theme-generator of htmlstreamofficial/preline.

  • SKILL.md
  • docs/final-output-style.md
  • docs/palette-guidance.md
  • docs/token-reference.md
  • docs/validation-checklist.md
  • docs/workflow.md
  • examples.md
  • scripts/find-themes-dir.js
  • scripts/generate-theme.js
  • scripts/run-theme-generator.js

Open the folder on GitHubat commit 05ca599

Compare with similar skills

Preline Theme Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Preline Theme Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Preline Theme Generator this skillhtmlstreamofficial/preline6.5k—~619Automated safety check: WarnCustom licence
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Tailwind Theme Builderjezweb/claude-skills1.1k1 repos~3.2kAutomated safety check: PassMIT
Tailwind V4 Shadcnever-works/ever-works1582 repos~3.8kAutomated safety check: PassMIT
Frontend UI Foundryjiushiwon/wg-skills110—~1.4kAutomated safety check: PassApache-2.0
Design Token Generatordylanfeltus/skills179—~2.9kAutomated safety check: PassMIT

Similar skills

  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Tailwind Theme Builder

    jezweb/claude-skills

    Set up Tailwind v4 + shadcn/ui themed UI with dark mode. An agent skill from jezweb/claude-skills.

    1.1k GitHub starsUsed in 1 repo~3.2k tokens
    Frontend & DesignAuto-check passed
  • Tailwind V4 Shadcn

    ever-works/ever-works

    Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.

    158 GitHub starsUsed in 2 repos~3.8k tokens
    Frontend & DesignAuto-check passed
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    110 GitHub stars~1.4k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Design Token Generator

    dylanfeltus/skills

    Generates type scales, color palettes, spacing systems, WCAG contrast checks and dark mode palettes from formulas, as CSS custom properties, a Tailwind config or JSON tokens.

    179 GitHub stars~2.9k tokensUpdated 19 days ago
    Frontend & DesignAuto-check passed
  • UI Design Styling

    ryokun6/ryos

    Design and style ryOS UI using the current OS theme token system, Tailwind variants, shared primitives, Aqua Glass, dark mode, and accent conventions.

    1.3k GitHub stars~3.1k tokensUpdated today
    Frontend & DesignAuto-check passed

More from htmlstreamofficial/preline

  • Preline UI Components via MCP

    htmlstreamofficial/preline

    Adds Preline UI components and blocks to HTML files by querying the Preline MCP server, with rules for exact slugs and for clarifying vague requests.

    6.5k GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Preline Theme Generator

What does Preline Theme Generator do?

Generates light and dark Preline theme CSS from a brand color or mood, previews it, and validates token coverage through bundled local scripts. This skill produces Preline UI theme CSS by reading a fixed set of docs in order - a workflow guide, palette guidance, final output style rules, and a validation checklist - and then generating the actual CSS only through a bundled generator script, after resolving the target theme directory with a separate lookup script.

When should I use Preline Theme Generator?

Preline Theme Generator fits situations like: generating a new Preline theme that matches a brand color; turning a mood or style into a light and dark Preline theme pair; reviewing a generated Preline theme for missing tokens.

How do I install Preline Theme Generator in Claude Code?

Run `npx skills add htmlstreamofficial/preline --skill preline-theme-generator -a claude-code`. Or copy the skill folder (skills/theme-generator in htmlstreamofficial/preline) into .claude/skills/preline-theme-generator in your project. Claude Code loads it when a task matches its description.

How do I install Preline Theme Generator in Codex?

Run `npx skills add htmlstreamofficial/preline --skill preline-theme-generator -a codex`. Or copy the skill folder (skills/theme-generator in htmlstreamofficial/preline) into .agents/skills/preline-theme-generator in your project. Codex loads it when a task matches its description.

Can I use Preline Theme Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add htmlstreamofficial/preline --skill preline-theme-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/preline-theme-generator, .gemini/skills/preline-theme-generator, .github/skills/preline-theme-generator and .opencode/skills/preline-theme-generator in your project.

What does Preline Theme Generator need to run?

Going by SKILL.md and its folder, Preline Theme Generator needs JavaScript for the scripts in its folder. Our summary lists: The skill's bundled theme-generator scripts.

Does Preline Theme Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Preline Theme Generator safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): contains instruction-override wording (e.g. “without asking the user”). Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Preline Theme Generator use?

Preline Theme Generator has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Preline Theme Generator use?

About 619 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Preline Theme Generator?

Skills that share tags, products or a category with Preline Theme Generator: MCP Development (coollabsio/coolify, 63k stars), Tailwind Theme Builder (jezweb/claude-skills, 1.1k stars), Tailwind V4 Shadcn (ever-works/ever-works, 158 stars) and Frontend UI Foundry (jiushiwon/wg-skills, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Preline Theme Generator?

htmlstreamofficial (a GitHub organization) maintains it in htmlstreamofficial/preline, which has 6,473 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 31, 2026.

Source: htmlstreamofficial/preline on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.