building-shadcn-flutter-ui · git:20260316.3713587 · 2026-03-16 · sha256 ec8ee25660d23366

building-shadcn-flutter-ui git:20260316.3713587A

Immutable. This exact content never changes and is served at /api/v1/blob/ec8ee25660d23366.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_wbylohla7fwdpw67/ec8ee25660d23366075d05956646349e0b168f952b81b74a8c713d0ef16a71c2.json

Then /plugin install building-shadcn-flutter-ui@markdownregistry-wbylohla7fwdpw67 in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: "shadcn-flutter"
description: "When app UI needs professional polish, component consistency is critical, or design system implementation is urgent. Apply when visual quality matters or Shadcn components need integration for accessible UI."
metadata:
  last_modified: "2026-03-12 11:18:17 (GMT+8)"
---

# Shadcn UI Architecture Guide

## Goal
Build beautiful, accessible, and highly customizable user interfaces in Flutter using the Shadcn UI design system. This skill ensures proper framework integration (Pure, Material, or Cupertino), consistent theming, and effective use of the 30+ responsive components available in the library.

## Process

### 🚀 High-Level Workflow
Implementing Shadcn UI involves setting up the design tokens first, then consuming specific components for layout and logic.

### Phase 1: Foundation & Theming
- **Install**: Add `shadcn_ui` to dependencies.
- **Initialize**: Choose between `ShadApp` (Standalone) or `ShadApp.custom` (Material/Cupertino bridge).
- **Configure**: Define `ShadColorScheme` and customize `ShadThemeData`.

### Phase 2: Component Implementation
- **Typography**: Strictly use `ShadTextTheme` styles for consistent font scaling and semantics.
- **Forms**: Use `ShadForm` and specialized `Shad*FormField` widgets for unified validation.
- **Interactions**: Leverage `Sonner`, `Dialog`, and `Sheet` for standardized overlays and user feedback.

---

## 📚 Documentation Library
Refer to these detailed guides for implementation:

- [🎨 Setup & Theming Guide](./references/setup-and-theming.md) - Framework integration, dynamic color schemes, and responsive breakpoints.
- [🧱 Component Reference](./references/components.md) - Detailed API and code examples for all 30+ Shadcn UI components.

## Constraints
- **Theme Integrity**: Never bypass the `ShadTheme` variables by hardcoding magic colors or spacing values.
- **Form Safety**: Always use `ShadForm` and unique `id`s for form fields to ensure reliable state management and validation.
- **Accessibility**: Provide proper labels and descriptions for all interactive elements using built-in properties.
- **Native Alignment**: When using Material/Cupertino integration, always wrap with `ShadAppBuilder` to ensure overlays (Toasts/Dialogs) render correctly.