AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Generate Shadcn Theme

skill-realmpastai-web-claude-design-suite-generate-shadcn-theme · by realmpastai-web

Convert a DESIGN.md or tokens.json into shadcn/ui-compatible CSS variables — emits a theme.css with :root and .dark blocks for all shadcn role variables (primary, secondary, accent, background, foreground, card, muted, border, destructive, ring) plus the tailwind.config.ts wrapper. Use when a team is on shadcn and wants to swap the default slate theme for their brand in one file.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-realmpastai-web-claude-design-suite-generate-shadcn-theme

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-realmpastai-web-claude-design-suite-generate-shadcn-theme)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Generate Shadcn Theme? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Generate shadcn Theme

Context

You are generating a shadcn/ui theme from $ARGUMENTS. shadcn uses CSS custom properties in HSL space referenced by tailwind.config.ts via hsl(var(--primary)).

Domain Context

  • Shadcn's theme is in HSL, not RGB — hues are expressed as H S% L% (no commas). This is intentional: it lets you tweak saturation/lightness with CSS math.
  • The variable set: --background, --foreground, --card, --card-foreground, --popover, --popover-foreground, --primary, --primary-foreground, --secondary, --secondary-foreground, --muted, --muted-foreground, --accent, --accent-foreground, --destructive, --destructive-foreground, --border, --input, --ring, --radius.
  • Dark mode goes under .dark { ... }.

Instructions

  1. Read source DESIGN.md / tokens.json.
  2. Run:

``bash python scripts/generate_tokens.py --out app/globals.css --format shadcn ``

  1. The script:
  • Converts hex palette to HSL
  • Emits :root { --primary: 221 83% 53%; ... } (light)
  • Emits .dark { --primary: 221 83% 63%; ... } (adjusted for dark)
  • Appends the @layer base block shadcn expects
  • Also writes a companion tailwind.config.ts that wires CSS vars into Tailwind's colors + a borderRadius that uses var(--radius)
  1. Ensure WCAG: for each foreground / background pair, contrast ≥ 4.5:1 for normal text, 3:1 for large text. Flag any pair that falls short.
  2. Print a test checklist:
  • Buttons render correctly in both modes
  • Inputs, cards, popovers all consume the vars
  • A dark: variant works via html.dark toggle

Further Reading

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.