frontend-dev-guidelines-tailwind

Provides React 18+ patterns with Tailwind CSS and Shadcn/ui component guidelines.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/dallascrilley/dowser --skill frontend-dev-guidelines-tailwind-dallascrilley
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines-tailwind
Source: https://github.com/dallascrilley/dowser/tree/main/skills/frontend-dev-guidelines-tailwind
Command: npx skills add https://github.com/dallascrilley/dowser --skill frontend-dev-guidelines-tailwind-dallascrilley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building modern React applications requires consistent decisions about component architecture, styling, state management, performance, and accessibility, and this Skill provides a single reference of proven patterns so you avoid reinventing solutions or making common mistakes. ## Core Features & Use Cases - React 18+ Patterns: Functional components, Suspense for data fetching, error boundaries, custom hooks, and code splitting with lazy loading. - Tailwind CSS & Shadcn/ui: Utility-first styling, responsive grids, dark mode, the cn() class-merging helper, and ready-to-use Shadcn/ui component examples like Button, Card, and Dialog. - Forms, State & Performance: React Hook Form with Zod validation, Context-based shared state, memoization with useMemo/useCallback, and virtual scrolling for large lists. - Use Case: When building a new dashboard page, apply the recommended file structure, typed component props, accessible dialog patterns, and a validated form without researching each pattern separately. ## Quick Start Ask the assistant to build a React component using Tailwind CSS and Shadcn/ui following these frontend development guidelines.

Frequently Asked Questions about frontend-dev-guidelines-tailwind

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

FAQPage Schema
How do I structure React components with Tailwind CSS?▼

Use functional components with typed props and apply Tailwind utility classes directly in JSX. For repeated patterns, extract classes with @apply or use the cn() helper combining clsx and tailwind-merge for conditional class names.

How to handle forms in React with validation?▼

Use React Hook Form with the zodResolver to validate inputs against a Zod schema. Define the schema with z.object(), infer the TypeScript type with z.infer, and display errors from formState.errors next to each field.

What is the cn() helper in Shadcn/ui projects?▼

The cn() helper combines clsx and tailwind-merge to conditionally join class names while resolving Tailwind class conflicts. It lets you write cn("rounded-lg p-4", isActive && "bg-blue-100") without duplicate or overriding utilities.

Does Shadcn/ui work with dark mode in Tailwind?▼

Yes, Shadcn/ui components support dark mode through Tailwind's dark: variant and CSS variables. Toggle a theme class on a parent element, typically via a Context provider, and components styled with dark: utilities update automatically.

When should I use memoization in React?▼

Use useMemo for expensive computations that depend on stable inputs, useCallback for callbacks passed to memoized children, and memo() for components that re-render often with identical props. Avoid memoizing everything since it adds overhead.

How do I render large lists efficiently in React?▼

Use virtual scrolling with @tanstack/react-virtual to render only visible items. The useVirtualizer hook calculates item positions and sizes, so a list of thousands of rows only mounts the DOM nodes currently in the viewport.