# Radix tailwind component patterns

> Radix tailwind component patterns is an open-source agent skill for developer tools. Build design-system components on Radix primitives styled with Tailwind v4 tokens. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/radix-tailwind-component-patterns
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** radix-tailwind-component-patterns
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/radix-tailwind-component-patterns)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/radix-tailwind-component-patterns)

## Features

- **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

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/radix-tailwind-component-patterns`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/radix-tailwind-component-patterns` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/radix-tailwind-component-patterns` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/radix-tailwind-component-patterns
```

Or copy the folder to `~/.gemini/skills/radix-tailwind-component-patterns` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/radix-tailwind-component-patterns`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then 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.

## 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.

## Alternatives

- [Frontend patterns](https://ai-powered.com/skills/frontend-patterns-fmarzochi): Frontend patterns is an open-source agent skill for developer tools.
- [Tailwindcss4](https://ai-powered.com/skills/tailwindcss4): Tailwindcss4 is an open-source agent skill for developer tools.
- [Component design](https://ai-powered.com/skills/component-design): Component design is an open-source agent skill for design and media.
- [Setting up charcoal tailwind](https://ai-powered.com/skills/setting-up-charcoal-tailwind): Setting up charcoal tailwind is an open-source agent skill for developer tools.
- [Design kit](https://ai-powered.com/skills/design-kit): Design kit is an open-source agent skill for design and media.
- [Expo design system](https://ai-powered.com/skills/expo-design-system-scaledockhq): Expo design system is an open-source agent skill for developer tools.
- [Setting up charcoal CSS variables](https://ai-powered.com/skills/setting-up-charcoal-css-variables): Setting up charcoal CSS variables is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering-ajyadav013-2): Frontend UI engineering is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/radix-tailwind-component-patterns-ajyadav013
