add-storybook-heroui

Configure Storybook for HeroUI projects with Tailwind, dark mode, and decorators.

1|Updated Nov 26, 2014
One-click install
npx skills add https://github.com/tianhuil/dotfiles --skill add-storybook-heroui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-storybook-heroui
Source: https://github.com/tianhuil/dotfiles/tree/main/home/.config/opencode/skills/add-storybook-heroui
Command: npx skills add https://github.com/tianhuil/dotfiles --skill add-storybook-heroui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configures Storybook for HeroUI projects, enabling seamless Tailwind integration, dark mode support, and global decorators to streamline UI development.

Core Features & Use Cases

  • Internal Storybook architecture guidance for HeroUI monorepos and apps
  • Tailwind + HeroUI plugin integration, dark mode with class-based theming
  • Global decorators and environment provisioning for consistent story rendering
  • Step-by-step setup for projects using HeroUI dependencies

Quick Start

Install Storybook for a React project and apply the Tailwind + HeroUI integration steps described here.

Frequently Asked Questions about add-storybook-heroui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Storybook for HeroUI with Tailwind and dark mode?

To configure Storybook for HeroUI, you need to integrate the Tailwind plugin, enable dark mode using a class strategy, and apply a global preview decorator to wrap your stories for consistent rendering.

What is the best way to add a global decorator to Storybook for HeroUI components?

Adding a global decorator to Storybook involves configuring the preview environment to automatically wrap HeroUI stories, ensuring that Tailwind styles and dark mode theming are consistently applied across all components.

Does Storybook with Vite support HeroUI and Tailwind integration?

Yes, Storybook with Vite supports HeroUI and Tailwind integration by configuring the internal Storybook architecture to include the HeroUI plugin in the Tailwind content layer and enabling MDX support.

How do I enable class-based dark mode in Storybook for a Tailwind project?

Enabling class-based dark mode in Storybook requires enforcing a Tailwind setup that toggles dark mode via a class strategy, paired with a global decorator that switches the theme class for your HeroUI stories.

Why are my HeroUI styles not rendering correctly in Storybook?

HeroUI styles may not render in Storybook if the Tailwind content configuration does not include the HeroUI plugin, or if a global preview decorator is missing to properly inject the necessary Tailwind and dark mode environment.

Do I need MDX support to use Storybook with HeroUI and Tailwind?

Configuring Storybook with MDX support and relevant addons is part of the setup process for HeroUI projects, allowing you to document component behaviors and Tailwind styling interactions effectively.