Skip to content
Back to skills

Shadcn Ui

ASecurity

> Copy-paste component library built on Radix UI + Tailwind CSS.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 26, 2026
toolsbashreact

Security analysis

A100/100

Scanned October 26, 2026

npx -y skills add nhan03bit/ultrathink --skill shadcn-ui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shadcn Ui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shadcn Ui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nhan03bit-shadcn-ui/badge)](https://www.skillsdirectory.com/skills/nhan03bit-shadcn-ui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# shadcn/ui

> Copy-paste component library built on Radix UI + Tailwind CSS.

## When to Use
- Building UI with pre-styled, accessible components
- Extending or customizing component primitives
- Setting up a component system with Tailwind

## Core Concepts

### Installation
```bash
npx shadcn@latest init     # Setup project
npx shadcn@latest add button card dialog  # Add components
```

### Architecture
- Components copied to `components/ui/` — you own the code
- Built on Radix UI primitives (accessible, unstyled)
- Styled with Tailwind + `cn()` utility (clsx + tailwind-merge)
- Theme via CSS variables in `globals.css`

### Key Patterns
- `cn()` for conditional class merging: `cn("base", condition && "extra")`
- All components use `forwardRef` for ref forwarding
- Variants via `cva()` (class-variance-authority)
- Theme tokens: `--background`, `--foreground`, `--primary`, `--muted`, etc.
- Dark mode: `class` strategy with `.dark` class on `<html>`

### Common Components
Button, Card, Dialog, Sheet, Dropdown, Select, Input, Textarea,
Tabs, Accordion, Avatar, Badge, Toast, Tooltip, Popover, Command,
Table, Form (react-hook-form + zod), Calendar, Sidebar, Chart

### Integration
- Forms: `<Form>` component wraps react-hook-form with zod validation
- Data tables: `@tanstack/react-table` + shadcn Table component
- Charts: built on Recharts with shadcn wrapper

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.