.cursor/skills/shadcn-v3/SKILL.md
Set up Tailwind v4 with shadcn/ui using @theme inline pattern and CSS variable architecture. Includes component composition patterns, accessibility guidelines, and React Hook Form integration. Use when: initializing React projects with Tailwind v4, setting up shadcn/ui dark mode, composing/extending components, implementing forms, ensuring accessibility, or fixing colors not working, theme not applying, CSS variables broken, tw-animate-css errors, or migrating from v3.
npx skillsauth add blockmatic-icebox/basilic-old Tailwind v4 + shadcn/uiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@tailwindcss/vite plugin)@theme inline to map CSS variables to Tailwind tokenshsl() wrapper for color values in :root and .dark"tailwind.config": "" in components.json (empty for v4)tailwind.config.ts if it exists (v4 uses CSS-based config)@tailwindcss/vite plugin (not PostCSS)cn() utility for conditional classesdark: variants needed)@plugin directive for plugins (not @import or require())forwardRef for form-compatible componentshsl() in :root and .dark@theme inline to map all CSS variables"tailwind.config": "" in components.jsontailwind.config.ts if it exists@tailwindcss/vite plugin--background, --foreground, etc.)cn() utility for conditional classes@plugin directive for pluginsforwardRef for components that need ref forwarding:root or .dark inside @layer base.dark { @theme { } } pattern (v4 doesn't support nested @theme)hsl(var(--background)) in body)tailwind.config.ts for theme colors@apply directive (deprecated in v4)dark: variants for semantic colors@import or require() for plugins (use @plugin)/* src/index.css */
@import "tailwindcss";
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
}
:root {
--background: hsl(0 0% 100%);
--foreground: hsl(222.2 84% 4.9%);
}
.dark {
--background: hsl(222.2 84% 4.9%);
--foreground: hsl(210 40% 98%);
}
// vite.config.ts
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
})
{
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true
}
}
See Templates (including Component Extension) and Architecture for complete setup.
development
# Skill: wagmi ## Scope - React/Next.js wallet integration with Wagmi v3 for EVM chains - Contract interactions using viem v2 for address validation and transaction building - Transaction state management and error handling - Custom hooks wrapping wagmi for contract-specific interactions Does NOT cover: - Solana frontend development - Backend RPC interactions - Smart contract development ## Assumptions - Wagmi v3.3.2+ - viem v2.44.4 - React 18+ or Next.js 14+ - TypeScript v5+ with strict mo
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Advanced TypeScript patterns for type-safe, maintainable code using sophisticated type system features. Use when building type-safe APIs, implementing complex domain models, or leveraging TypeScript's advanced type capabilities.
development
TanStack Query (React Query) for async operations, data fetching, caching, and state management. Use when: fetching server data, managing async operations, caching responses, handling mutations, or any operation that benefits from automatic state management and caching.