Development · Prompt

Component Re-skin Prompt

Agent prompt to strip default styling from UI component libraries

A targeted prompt for AI coding agents to avoid the generic look of default component libraries like shadcn/ui. It forces the agent to map design tokens from a custom style guide, outline layout specs first, and visually critique screenshots against default styling conventions until all generic traits are removed.

The prompt

"fetch button, input, card, nav and dialog from the libraries. read style.md. replace every default token (font, color, radius, shadow, spacing) with the values in it before placing anything. write the layout spec in words first, build second, screenshot third. then list 5 things in the screenshot a default shadcn page also has, fix each, repeat until the list is empty"

What it's for

  • Reskin boilerplate UI components using a custom style guide
  • Prevent AI coding agents from generating generic-looking landing pages and dashboards
  • Enforce visual audit loops to eliminate default UI library aesthetics

Key points

  • Instructs the agent to fetch core components (button, input, card, nav, dialog) upfront
  • Requires token replacement (font, color, radius, shadow, spacing) from a style file before layout placement
  • Mandates writing a verbal layout spec before code generation
  • Incorporates a screenshot-based visual feedback loop
  • Iteratively identifies and fixes five traits typical of default UI pages until clean

Pricing

Free

Details

Type
Prompt
Category
Development
Topic
AI Prompts
Open source
No
Platforms
other
For
Front-end developers and designers using AI agents to build interfaces
Tags
prompt, shadcn, ui design, tailwind, design tokens, coding agents

Why it was saved

  • @DeRonin_, 29 November 2026: It can be pasted straight into an agent to get a non-default UI out of standard component libraries.

Related

All 49 in AI Prompts →

Updated