
Radix tailwind component patterns
Build design-system components on Radix primitives styled with Tailwind v4 tokens
Radix tailwind component patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 13
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Radix tailwind component patterns
This skill guides an agent through building a hand-rolled component library on Radix UI headless primitives, styled directly with Tailwind rather than through the shadcn CLI. It covers how to structure variant-driven APIs with style maps, merge class names with a cn() helper built on clsx and tailwind-merge, and define brand colors, radii and fonts as Tailwind v4 @theme tokens in the global CSS.
The guidance also covers wrapping primitives such as Dialog, Select, Switch and Tabs with forwardRef components, rendering polymorphic elements through asChild and Slot, and styling Radix data-state attributes. It adds accessibility details like focus-visible rings, reduced-motion handling, portal usage and safe-area padding for mobile sheets. Code samples for a Button, a Dialog and a Switch are included.
The skill expects a React and TypeScript project using Tailwind v4 and the relevant Radix packages. It is instruction-only, with no scripts, and it does not set a list of allowed tools.
When your agent uses it
Design-system components from Radix UI primitives with custom Tailwind styling (manual, not shadcn). Covers variant APIs, the cn() helper, Tailwind v4 @theme tokens, and asChild/Slot polymorphism.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 5 files (43 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the claude-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kitOr copy only this skill to ~/.claude/skills/radix-tailwind-component-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/radix-tailwind-component-patterns &&
cp -R "$tmp/skills/radix-tailwind-component-patterns" ~/.claude/skills/radix-tailwind-component-patterns &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/radix-tailwind-component-patterns inside it instead.
Copy the skill folder to ~/.agents/skills/radix-tailwind-component-patterns to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/radix-tailwind-component-patterns &&
cp -R "$tmp/skills/radix-tailwind-component-patterns" ~/.agents/skills/radix-tailwind-component-patterns &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/radix-tailwind-component-patterns inside it instead.
Copy the skill folder to ~/.cursor/skills/radix-tailwind-component-patterns to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/radix-tailwind-component-patterns &&
cp -R "$tmp/skills/radix-tailwind-component-patterns" ~/.cursor/skills/radix-tailwind-component-patterns &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/radix-tailwind-component-patterns inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/radix-tailwind-component-patternsOr copy the folder to ~/.gemini/skills/radix-tailwind-component-patterns yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/radix-tailwind-component-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/radix-tailwind-component-patterns &&
cp -R "$tmp/skills/radix-tailwind-component-patterns" ~/.copilot/skills/radix-tailwind-component-patterns &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/radix-tailwind-component-patterns inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ajyadav013/claude-kit.gitThen copy claude-kit/skills/radix-tailwind-component-patterns into your agent's skills folder as radix-tailwind-component-patterns. Agents that support SKILL.md read one folder per skill.
What it does
- Variant-based component APIs
- Shows how to define variant and size style maps and merge them with base and user classes.
- Tailwind v4 theme tokens
- Covers defining colors, radii and fonts in an @theme block instead of a config file.
- Radix primitive wrappers
- Explains forwarding refs and spreading props when wrapping Dialog, Switch and similar primitives.
- Polymorphic rendering with asChild
- Describes using Radix Slot so a component can render as a custom child element.
- Accessible motion and focus
- Covers focus-visible rings, reduced-motion rules and data-state animation classes.
- Mobile sheet patterns
- Describes swapping selects to a bottom sheet on mobile and adding safe-area padding.
Good for
- Create a Button component with primary, outline and ghost variants
- Set up a cn() helper that merges Tailwind classes safely
- Wrap a Radix Dialog with custom overlay and close button styling
- Move brand colors and radii into Tailwind v4 @theme tokens
- Make a Select render as a bottom sheet on phones and a popover on desktop
Radix tailwind component patterns FAQ
Does Radix tailwind component patterns use shadcn?
No. It describes building the components manually on Radix primitives with custom Tailwind styling, without the shadcn CLI.
What packages does Radix tailwind component patterns rely on?
The examples use clsx, tailwind-merge, the Radix primitives such as Dialog, Switch and Slot, and lucide-react for icons.
Does Radix tailwind component patterns run any scripts?
No. The skill contains instructions and reference files only, with no scripts.
Where should the components live in a project?
The guidance places one file per primitive wrapper in src/components/ui/ with a barrel index file.
How do I install Radix tailwind component patterns in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/radix-tailwind-component-patterns to use it in all your projects, or to .claude/skills/radix-tailwind-component-patterns in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.
Does Radix tailwind component patterns run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Radix tailwind component patterns?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Radix tailwind component patterns?
The closest alternatives to Radix tailwind component patterns are Frontend patterns, Tailwindcss4, Component design, Setting up charcoal tailwind and Design kit.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ajyadav013/claude-kit

Guides an agent through pytest, async fixtures and security-regression tests for FastAPI
- Open source
- 13 GitHub stars
- Developer tools

Lets your agent inspect and debug live browser pages via Chrome DevTools MCP
- Open source
- 13 GitHub stars
- Browser automation

Runs concurrent load and stress tests against API endpoints to find latency and throughput
- Open source
- 13 GitHub stars
- Developer tools

Lets an agent click through a feature in a real browser and check how it behaves
- Open source
- 13 GitHub stars
- Developer tools

Runs quick health checks on backend, frontend and login to catch obvious breakage
- Open source
- 13 GitHub stars
- Developer tools

Guides an agent through red-green-refactor, bug reproduction tests and test pyramid
- Open source
- 13 GitHub stars
- Developer tools




