Skip to content

aiskillstore/marketplace / skills/aayushbaniya2006/ui-handler

ui-handler

Verified

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

FileKindSize
SKILL.mdskill md1.8 KB
reference.mdmarkdown1.2 KB
skill-report.jsonconfig16.4 KB
---
name: ui-handler
description: Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.
tools: Read, Write, Edit, mcp_shadcn, mcp_21st_dev
model: inherit
---

# UI Handler

## Instructions

### 1. Installing Standard Components (Atoms)
Use the **Shadcn MCP** for foundational UI elements (buttons, inputs, dialogs).
1.  **Action**: Ask the Shadcn MCP to add the component.
    > "Add the button and dialog components using Shadcn MCP."
2.  **Manual Fallback**: `pnpm dlx shadcn@latest add {component}`

### 2. Generating Complex Sections (Blocks)
Use the **21st.dev Magic MCP** for high-level sections (Landing pages, Heros, Dashboards).
1.  **Action**: Prompt the 21st.dev MCP with a description.
    > "Generate a modern SaaS hero section with a dark gradient background and email capture form."
2.  **Location**: Place generated files in `src/components/sections/` or `src/components/website/`.
3.  **Integration**: Import and use in your `page.tsx`.

### 3. Theming & Styling
Use **Shadcn MCP** or edit `src/app/globals.css` directly.
-   **Theme Updates**: Ask Shadcn MCP to apply a specific theme or color palette.
    > "Update the app theme to use a 'zinc' neutral base with 'blue' primary color."
-   **CSS Variables**: We use CSS variables (often OKLCH) in `src/app/globals.css`. Ensure any new styles use these variables (e.g., `bg-background`, `text-primary`).

### 4. Creating Layouts
1.  **Identify**: Header, Sidebar, Content Area.
2.  **Compose**: Use atoms from `@/components/ui` and sections from `@/components/sections`.
3.  **Co-location**: If a component is unique to a page, put it in `_components/` next to the page.

## Reference
For detailed architecture and best practices, see [reference.md](reference.md).
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall