Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
heroui-inc avatar

Heroui React

  • 9.1k installs
  • 30.3k repo stars
  • Updated August 4, 2026
  • heroui-inc/heroui

heroui-react is an agent skill that HeroUI v3 React component library (Tailwind CSS v4 + React Aria). Use when building UIs with HeroUI — creating Buttons, Modals, Forms, Cards; installing @heroui.

About

HeroUI v3 React component library Tailwind CSS v4 React Aria Use when building UIs with HeroUI creating Buttons Modals Forms Cards installing heroui react configuring dark light themes with oklch variables or fetching component docs Keywords HeroUI Hero UI heroui heroui react heroui styles name heroui-react description HeroUI v3 React component library Tailwind CSS v4 React Aria Use when building UIs with HeroUI creating Buttons Modals Forms Cards installing heroui react configuring dark light themes with oklch variables or fetching component docs Keywords HeroUI Hero UI heroui heroui react heroui styles metadata author heroui version 3 0 1 HeroUI v3 React Development Guide HeroUI v3 is a component library built on Tailwind CSS v4 and React Aria Components providing accessible customizable UI components for React applications Installation bash curl fsSL https heroui com install bash s heroui-react CRITICAL v3 Only Ignore v2 Knowledge This guide is for HeroUI v3 ONLY Do NOT apply v2 patterns the provider styling and component API all changed Feature v2 DO NOT USE v3 USE

  • HeroUI v3 React Development Guide
  • Semantic variants (`primary`, `secondary`, `tertiary`) over visual descriptions
  • Composition over configuration (compound components)
  • CSS variable-based theming with `oklch` color space
  • BEM naming convention for predictable styling

Heroui React by the numbers

  • 9,120 all-time installs (skills.sh)
  • +304 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #75 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

heroui-react capabilities & compatibility

Capabilities
heroui v3 react development guide · semantic variants (`primary`, `secondary`, `tert · composition over configuration (compound compone · css variable based theming with `oklch` color sp · bem naming convention for predictable styling
Use cases
documentation
From the docs

What heroui-react says it does

--- name: heroui-react description: "HeroUI v3 React component library (Tailwind CSS v4 + React Aria).
SKILL.md
Use when building UIs with HeroUI — creating Buttons, Modals, Forms, Cards; installing @heroui/react; configuring dark/light themes with oklch variables; or fetching component docs.
SKILL.md
The MDX docs include complete examples, props, anatomy, and API references.
SKILL.md
--- ## Installation Essentials ### Quick Install ```bash npm i @heroui/styles @heroui/react tailwind-variants ``` ### Framework Setup (Next.js App Router - Recommended) 1.
SKILL.md
npx skills add https://github.com/heroui-inc/heroui --skill heroui-react

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9.1k
repo stars30.3k
Security audit1 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryheroui-inc/heroui

What problem does heroui-react solve for developers using this skill?

HeroUI v3 React component library (Tailwind CSS v4 + React Aria). Use when building UIs with HeroUI - creating Buttons, Modals, Forms, Cards; installing @heroui/react; configuring dark/light themes.

Who is it for?

Developers who need heroui-react patterns described in the cached skill documentation.

Skip if: Skip when docs are empty or the task is outside the skill's documented scope.

When should I use this skill?

HeroUI v3 React component library (Tailwind CSS v4 + React Aria). Use when building UIs with HeroUI — creating Buttons, Modals, Forms, Cards; installing @heroui/react; configuring dark/light themes wi

What you get

Actionable workflows and conventions from SKILL.md for heroui-react.

  • HeroUI component JSX
  • Tailwind v4 theme configuration

By the numbers

  • Skill metadata version 3.0.1
  • Built on Tailwind CSS v4 and React Aria Components

Files

SKILL.mdMarkdownGitHub ↗

HeroUI v3 React Development Guide

HeroUI v3 is a component library built on Tailwind CSS v4 and React Aria Components, providing accessible, customizable UI components for React applications.

---

Installation

curl -fsSL https://heroui.com/install | bash -s heroui-react

---

CRITICAL: v3 Only - Ignore v2 Knowledge

This guide is for HeroUI v3 ONLY. Do NOT apply v2 patterns — the provider, styling, and component API all changed:

Featurev2 (DO NOT USE)v3 (USE THIS)
Provider<HeroUIProvider> requiredNo Provider needed
Animationsframer-motion packageCSS-based, no extra deps
Component APIFlat props: <Card title="x">Compound: <Card><Card.Header>
StylingTailwind v3 + @heroui/themeTailwind v4 + @heroui/styles
Packages@heroui/system, @heroui/theme@heroui/react, @heroui/styles
// DO NOT DO THIS - v2 pattern
import { HeroUIProvider } from "@heroui/react";
import { motion } from "framer-motion";

<HeroUIProvider>
	<Card title="Product" description="A great product" />
</HeroUIProvider>;

CORRECT (v3 patterns)

// DO THIS - v3 pattern (no provider, compound components)
import { Card } from "@heroui/react";

<Card>
	<Card.Header>
		<Card.Title>Product</Card.Title>
		<Card.Description>A great product</Card.Description>
	</Card.Header>
</Card>;

Always fetch v3 docs before implementing.

---

Core Principles

  • Semantic variants (primary, secondary, tertiary) over visual descriptions
  • Composition over configuration (compound components)
  • CSS variable-based theming with oklch color space
  • BEM naming convention for predictable styling

---

Accessing Documentation & Component Information

For component details, examples, props, and implementation patterns, always fetch documentation:

Using Scripts

# List all available components
node scripts/list_components.mjs

# Get component documentation (MDX)
node scripts/get_component_docs.mjs Button
node scripts/get_component_docs.mjs Button Card TextField

# Get component source code
node scripts/get_source.mjs Button

# Get component CSS styles (BEM classes)
node scripts/get_styles.mjs Button

# Get theme variables
node scripts/get_theme.mjs

# Get non-component docs (guides, releases)
node scripts/get_docs.mjs /docs/react/getting-started/theming

Direct MDX URLs

Component docs: https://heroui.com/docs/react/components/{component-name}.mdx

Examples:

  • Button: https://heroui.com/docs/react/components/button.mdx
  • Modal: https://heroui.com/docs/react/components/modal.mdx
  • Form: https://heroui.com/docs/react/components/form.mdx

Getting started guides: https://heroui.com/docs/react/getting-started/{topic}.mdx

Important: Always fetch component docs before implementing. The MDX docs include complete examples, props, anatomy, and API references.

---

Installation Essentials

Quick Install

npm i @heroui/styles @heroui/react tailwind-variants

Framework Setup (Next.js App Router - Recommended)

1. Install dependencies:

npm i @heroui/styles @heroui/react tailwind-variants tailwindcss @tailwindcss/postcss postcss

2. Create/update `app/globals.css`:

/* Tailwind CSS v4 - Must be first */
@import "tailwindcss";

/* HeroUI v3 styles - Must be after Tailwind */
@import "@heroui/styles";

3. Import in `app/layout.tsx`:

import "./globals.css";

export default function RootLayout({
	children,
}: {
	children: React.ReactNode;
}) {
	return (
		<html lang="en" suppressHydrationWarning>
			<body>
				{/* No Provider needed in HeroUI v3! */}
				{children}
			</body>
		</html>
	);
}

4. Configure PostCSS (`postcss.config.mjs`):

export default {
	plugins: {
		"@tailwindcss/postcss": {},
	},
};

Critical Setup Requirements

1. Tailwind CSS v4 is MANDATORY - HeroUI v3 will NOT work with Tailwind CSS v3 2. Use Compound Components - Components use compound structure (e.g., Card.Header, Card.Content) 3. Use onPress, not onClick - For better accessibility, use onPress event handlers 4. Import Order Matters - Always import Tailwind CSS before HeroUI styles

---

Component Patterns

All components use the compound pattern shown above (dot-notation subcomponents like Card.Header, Card.Content). Don't flatten to props — always compose with subcomponents. Fetch component docs for complete anatomy and examples.

---

Semantic Variants

HeroUI uses semantic naming to communicate functional intent:

VariantPurposeUsage
primaryMain action to move forward1 per context
secondaryAlternative actionsMultiple
tertiaryDismissive actions (cancel, skip)Sparingly
dangerDestructive actionsWhen needed
ghostLow-emphasis actionsMinimal weight
outlineSecondary actionsBordered style

Don't use raw colors - semantic variants adapt to themes and accessibility.

---

Theming

HeroUI v3 uses CSS variables with oklch color space:

:root {
	--accent: oklch(0.6204 0.195 253.83);
	--accent-foreground: var(--snow);
	--background: oklch(0.9702 0 0);
	--foreground: var(--eclipse);
}

Get current theme variables:

node scripts/get_theme.mjs

Color naming:

  • Without suffix = background (e.g., --accent)
  • With -foreground = text color (e.g., --accent-foreground)

Theme switching:

<html class="dark" data-theme="dark"></html>

For detailed theming, fetch: https://heroui.com/docs/react/getting-started/theming.mdx

Related skills

How it compares

Use heroui-react when standardizing on HeroUI v3 with React Aria accessibility and Tailwind v4 theming instead of generic React UI prompts.

FAQ

What does heroui-react do?

HeroUI v3 React component library (Tailwind CSS v4 + React Aria). Use when building UIs with HeroUI — creating Buttons, Modals, Forms, Cards; installing @heroui/react; configuring dark/light themes with oklch variables;

When should I use heroui-react?

HeroUI v3 React component library (Tailwind CSS v4 + React Aria). Use when building UIs with HeroUI — creating Buttons, Modals, Forms, Cards; installing @heroui/react; configuring dark/light themes with oklch variables;

Is heroui-react safe to install?

Review the Security Audits panel on this page before installing in production.

Marketing & SEOseocontent

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.