Agent skill UI design
UI Styling
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/mrgoonie/claudekit-skills/tree/main/.claude/skills/ui-styling --skill ui-styling --agent claude-code --yesCheck this file in your project.claude/skills/ui-styling/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/mrgoonie/claudekit-skills/tree/main/.claude/skills/ui-styling --skill ui-stylingSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use an existing React project initialized for Radix-backed shadcn and Tailwind v4. The specimen used the shadcn 4.23.1 registry and Tailwind 4.3.5 with the official Vite plugin. The Skill installs as `ui-styling` from mrgoonie/claudekit-skills.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Skill name
- ui-styling
- Scenario
- Style an editable settings dialog with Tailwind v4
- Deliverable
- One named settings dialog with semantic colors, a bounded narrow-screen layout and a verified save action.
- Skill name
ui-styling- Repository
mrgoonie/claudekit-skills
Define a component task with an observable result
A request with an unclear outcome
Reinitialize shadcn and overwrite the theme just to style one dialog.
Initialization can replace project configuration and changes move beyond the approved dialog.
A workflow with observable results
- Read the local registry and theme setup
- Add the scoped responsive styles
- Test mobile sizing, theme and save
ClaudeKit UI Styling operation manual
Use the approved project-owned shadcn wrappers and apply responsive, theme-aware styles at the dialog call site.
Replace the bracketed details with your own project and target.
Read the local registry and theme setup
Confirm the base library and existing wrappers.
Prompt · Step 1Use the mrgoonie `ui-styling` skill for [edit project name dialog]. Read the bundled shadcn component and Tailwind guidance. Check components.json, theme CSS and the existing Dialog and Button. Identify the actual Radix or Base UI variant. For a missing Dialog use the project CLI’s `shadcn add dialog --dry-run` and report files and dependencies before approval.Add the scoped responsive styles
Give panel and text roles a clear theme source.
Prompt · Step 2Use mrgoonie `ui-styling` to build [approved Radix dialog]. Reuse the local Dialog, Button and its actual Radix trigger API, add a visible title and description, and connect the form label to the name field. Use the existing Tailwind v4 theme tokens for foreground and surface. Constrain the panel width and height on small viewports while keeping the save action reachable, and show the changed call-site styles.Test mobile sizing, theme and save
Use actual browser state and the resulting saved name.
- The mobile panel stays in its viewport and preserves access to the name and save controls.
- The themed surface changes and saved state is visible after closing.
Prompt · Step 3Use mrgoonie `ui-styling` to verify [local project dialog] at [mobile and desktop widths]. Confirm it stays within the viewport and opens with a reachable name field. Check the computed surface in light and dark modes. Edit with the keyboard, save and verify the updated name outside the dialog. Reopen and check Escape returns focus to the original trigger.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
The project has a different primitive variantReference
- Command or reference
references/shadcn-components.md · Dialog- Examples
- Use the local project wrapper and its matching Radix or Base UI trigger API.
ClaudeKit UI Styling troubleshooting
How does Tailwind v4 load in this Vite flow?
Use the project’s installed `@tailwindcss/vite` plugin and `@import "tailwindcss"` in its main CSS entry. Keep the existing theme bridge when extending a dialog.