Agent skill

UI Modernizer Skill: Restyle Tailwind UIs Safely

The ui-modernizer skill has your AI coding agent restyle a React, Vue or Svelte plus Tailwind UI from one prompt, touching only the visual layer with a backup and rollback.

Install
npx ui-modernizer
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the ui-modernizer skill?

The ui-modernizer skill restyles a React, Vue or Svelte plus Tailwind UI when you tell your AI coding agent to modernize this UI. It edits only the visual layer, plans the change first, backs up every file, writes a diff report and can be rolled back with one command.

The ui-modernizer skill turns a React, Vue or Svelte plus Tailwind UI into a modern one from one prompt. You tell your agent to modernize this UI, and it follows an eight step workflow from config to report.

It supports Next.js with the App Router and Pages Router, Nuxt 3, Vite and SvelteKit, on Tailwind CSS v3 and v4. Files that use styled-components or CSS Modules are out of scope.

Safe by design

The skill touches only the visual layer: className strings, additive wrapper divs, globals.css, tailwind.config and design token files. Event handlers, state, effects, fetches, server actions and props are left alone.

Every run is planned first, backed up to .ui-modernizer-backup/<timestamp>/, diffed in a report.md with file by file counts, and reversible with one command, npx ui-modernizer rollback.

Style profiles and shadcn components

Seven built-in profiles set the look: Linear, Vercel, Stripe, shadcn, Notion, Raycast and Apple. You can also point at your own Markdown file, as in modernize this UI using ./design/our-brand.md.

Component substitution is opt-in. Ask to use shadcn components and the skill scans for hand-rolled buttons, inputs, badges and cards, runs npx shadcn@latest add for what it needs, and rewrites them while preserving event handlers, refs and aria attributes.

Visual regression check

With Playwright installed, the skill captures a structural and computed style snapshot before and after, then lists risks such as missing interactive elements, lost aria labels and WCAG contrast drops below 4.5:1. Without Playwright that part is skipped.

Who the ui-modernizer skill is for

Best for

  • Restyling an existing React, Vue or Svelte plus Tailwind project without touching business logic.
  • Moving a UI toward a Linear, Vercel, Stripe, shadcn, Notion, Raycast or Apple look, or toward your own profile.
  • Previewing candidate changes by file and rule with a read only dry run before editing.

Not for

  • New feature work, bug fixes or business logic changes, which the skill is told not to touch.
  • Projects that use styled-components or CSS Modules, which are out of scope.