Logo van Shadcn Theme

Shadcn Theme

Community
ronykax
shadcn-theme

Generate shadcn/ui OKLCH color themes for light and dark mode. Use when the user asks for a shadcn theme, palette, or color system.

Overzicht

Uitgeverronykax
Repositoryskills
Skillnaamshadcn-theme
Sterren
386
Forks
6
Meegeleverde bestanden
6
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 6

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door ronykax op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Shadcn Theme in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/ronykax/skills/tree/main/skills/shadcn-theme
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ronykax/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/shadcn-theme .claude/skills/shadcn-theme
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Shadcn Theme in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Shadcn Theme automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Shadcn Theme niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

shadcn Theme

Create a coherent color system, not a bag of attractive swatches. Produce every resolved semantic token in both light and dark modes, with each value justified by its role, surrounding surface, and relationship to the theme identity.

This skill is self-contained. Do not assume any sibling skill, sample theme folder, authoring repository, or external palette exists. Do not defer the color design to another skill.

Required references

Read these files from this skill before generating values:

  1. references/token-inventory.md — the only definition of the built-in canonical token list, plus how to reconcile a project inventory and the CSS shape.
  2. references/oklch-reasoning.md — read it before selecting any L, C, or H value.
  3. references/aesthetic-strategies.md — read it when the request names a product, brand, mood, or visual style.

Examples and existing themes can inform relationships, but they are never the schema and never a source to copy. The active project's semantic token contract is authoritative; the built-in inventory in token-inventory.md is the fallback.

Workflow

1. Capture the intent

Extract what the user already supplied:

  • theme name
  • brand, mood, or aesthetic
  • reference product or “like X” direction
  • supplied colors, base hues, or neutral temperature
  • contrast/accessibility requirement
  • constraints such as restrained chroma, pure black, warm paper, or P3
  • whether they want a preview or an explicit installation

Proceed when there is at least one useful visual anchor: a color, hue family, brand/reference, or sufficiently specific mood. Infer a concise theme name when the name alone is missing. If every visual anchor is missing, ask one compact question that requests the mood/reference and preferred hue; do not conduct a long preference interview.

Treat “generate,” “make,” “design,” or “show me” as a preview request. Only phrases such as “apply,” “install,” “write this into,” or an equally explicit instruction authorize editing a project stylesheet.

2. Inspect the project read-only

When project files are available:

  1. Inspect components.json for the configured global CSS path.
  2. Otherwise locate the active stylesheet by looking for @theme inline, --background, and the light/dark theme selectors.
  3. Read the semantic mappings plus both mode blocks.
  4. Note selector style, token order, formatting, alpha convention, and custom semantic tokens.

Do not edit anything during inspection. If no project theme exists, continue with the built-in inventory in token-inventory.md instead of asking the user to create one.

3. Resolve the complete token set

Follow references/token-inventory.md.

  • With project context, use the union of mapped runtime tokens, light declarations, dark declarations, and relevant project semantic colors.
  • Without project context, use every built-in color token from references/token-inventory.md in both modes.
  • Fill tokens that exist in only one project mode; do not reproduce a partial inventory.
  • Include project-specific foreground partners and semantic status colors when they exist.
  • Keep derived --color-* mappings out of the mode blocks unless the user asks for a full integration scaffold.
  • Treat --radius, fonts, shadows, spacing, and tracking as separate design dimensions. Preserve them unless the request explicitly includes them.

Before designing, write an internal checklist of every resolved token. The light and dark name sets must end up identical. Verify that checklist yourself against token-inventory.md or the project — do not rely on a script for coverage.

4. Design the OKLCH system

Follow references/oklch-reasoning.md rather than improvising numbers.

First choose a small set of anchors:

  • one neutral hue/temperature and neutral chroma discipline
  • one primary hue and target vividness
  • one accent strategy
  • one destructive family
  • one chart strategy

Then reason through every token using this internal worksheet:

token role → hue source → lightness tier → chroma level → foreground/surface pair

Do not emit the worksheet unless the user asks for detailed rationale, but do not skip it. A value is justified only when its role and relationships explain why its L, C, and H belong there.

Build in this order:

  1. Light page, card, popover, muted, secondary, accent, border, and input surfaces.
  2. Light foregrounds paired to those surfaces.
  3. Light primary, destructive, and ring.
  4. Light charts and the nested sidebar system.
  5. Dark neutral/surface ladder derived by role from the light identity.
  6. Dark foreground pairs, then brand/semantic colors, charts, and sidebar.

Repeated values are acceptable when roles are intentionally equivalent. Unexamined duplication is not. Preserve recognizable hue families across modes, but retune lightness and chroma for the new canvas. Never make dark mode an unrelated palette, a mechanical inversion, or a copy of light mode.

When the user provides a color (hex, rgb, hsl, named, etc.), convert it with the bundled converter instead of eyeballing it:

bash
python3 <path-to-this-skill>/scripts/to_oklch.py "#1d9bf0"

Use the converted color as an anchor, then derive role-appropriate variants.

5. Verify before presenting

Perform all of these checks:

  1. Coverage: every resolved token appears exactly once in each mode (compare against token-inventory.md or the project inventory yourself).
  2. OKLCH values: every color token is a concrete oklch() value; alpha uses slash syntax. Do this yourself — the bundled scripts do not check CSS/OKLCH syntax.
  3. Pair contrast: check every semantic foreground on its own surface, including muted text and all sidebar pairs.
  4. Hierarchy: surfaces, borders, and controls remain distinguishable in each mode.
  5. Gamut: reduce C, while preserving L/H, when a value clips the intended gamut.
  6. Identity: primary, accent, ring, charts, and sidebar choices form a deliberate hue system.
  7. Mode adaptation: light and dark share an identity but have independently usable surface and foreground ladders.

Manually review relationships the contrast script cannot infer:

  • ring against page, card, input, and sidebar surfaces
  • border and input against every adjacent surface where the boundary matters
  • every chart color on page and card backgrounds, plus neighboring series
  • destructive in its actual component treatment when the project has no destructive-foreground token

When command execution is available, install script deps once (pip install -r <path-to-this-skill>/scripts/requirements.txt), then run the contrast checker on the preview through stdin so review does not create or modify project CSS:

bash
python3 <path-to-this-skill>/scripts/check_contrast.py - <<'CSS'
<complete theme preview>
CSS

Only two scripts exist:

  • to_oklch.py — any CSS color → OKLCH
  • check_contrast.py — semantic text-pair WCAG contrast only

Neither validates OKLCH syntax, token coverage, or light/dark name parity. Those are your job using token-inventory.md (or the project). Treat every warning as a design review item: fix it or briefly explain why the user's explicit constraint requires it. Use check_contrast.py --strict when every checked text pair must meet WCAG 2.x AA (4.5:1).

The contrast script is a deterministic safety net, not a substitute for semantic reasoning. It cannot know whether five chart colors suit the user's data or whether an accent is too loud for the intended mood.

6. Emit a reviewable theme

Default output:

  1. A short title containing the inferred or supplied theme name.
  2. One complete CSS block for light mode and one complete CSS block for dark mode, matching project selectors and token order when known.
  3. At most a few concise rationale bullets when they help explain the neutral temperature, primary/accent relationship, dark adaptation, or chart strategy.

When no project conventions are known, use :root and .dark, the inventory order from references/token-inventory.md, three decimals for L/C and up to three for H, with unnecessary trailing zeros removed.

Return actual CSS, never a token sample, ellipses, placeholders, or “continue similarly.” Do not include unrelated component, layout, or API changes.

7. Apply only with explicit authorization

If the user explicitly asks to install or apply the theme:

  1. Re-read the target stylesheet immediately before editing.
  2. Replace only the relevant runtime theme declarations.
  3. Preserve imports, @theme inline mappings, @custom-variant, base layers, custom selectors, comments, and unrelated variables.
  4. Add a missing mapping only when the requested project-specific color needs it and the user asked for integration, not merely a preview.
  5. Re-run check_contrast.py after the edit.

If the user did not explicitly authorize installation, stop after the preview. Do not write to globals.css, another CSS file, or component source.

Pre-finish checklist

  • Theme intent is sufficiently clear; only critical missing information was requested.
  • Project inventory was reconciled when available; otherwise every built-in color token from references/token-inventory.md is present.
  • Light and dark token sets match and are both complete.
  • Every color is concrete oklch() (agent-checked; scripts do not verify syntax) and has a role-based L/C/H rationale.
  • Neutrals share a disciplined temperature and low-chroma strategy.
  • Foreground/background, action, muted, overlay, and sidebar pairs pass a contrast sanity check.
  • Borders are not accidental neon accents; rings remain visible.
  • Destructive and chart colors fit their semantics and intended gamut.
  • Dark mode is a coherent adaptation rather than an inversion or duplicate.
  • The output contains no references to unavailable files, examples, or other skills.
  • No project file was written without an explicit apply/install request.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Shadcn Theme?

Generate shadcn/ui OKLCH color themes for light and dark mode. Use when the user asks for a shadcn theme, palette, or color system.

Waarom Shadcn Theme gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Shadcn Theme bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Shadcn Theme in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/ronykax/skills/tree/main/skills/shadcn-theme. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Shadcn Theme gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Shadcn Theme gebruiken?

Zoveel als je wilt. Je kunt Shadcn Theme gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Shadcn Theme gratis?

Ja. Deze skill is door ronykax op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇