ui-styling
Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- ui-styling
- license
- MIT
- metadata
- { "author": "claudekit", "version": "1.0.0" }
- description
- Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.
- argument-hint
- [component or layout]
02 资源文件 97
- 参考文档canvas-fonts/ArsenalSC-OFL.txt4.3 KB
- 资产文件canvas-fonts/ArsenalSC-Regular.ttf162.0 KB
- 资产文件canvas-fonts/BigShoulders-Bold.ttf92.3 KB
- 参考文档canvas-fonts/BigShoulders-OFL.txt4.3 KB
- 资产文件canvas-fonts/BigShoulders-Regular.ttf92.2 KB
- 参考文档canvas-fonts/Boldonse-OFL.txt4.3 KB
- 资产文件canvas-fonts/Boldonse-Regular.ttf75.4 KB
- 资产文件canvas-fonts/BricolageGrotesque-Bold.ttf88.8 KB
- 参考文档canvas-fonts/BricolageGrotesque-OFL.txt4.3 KB
- 资产文件canvas-fonts/BricolageGrotesque-Regular.ttf88.8 KB
- 资产文件canvas-fonts/CrimsonPro-Bold.ttf104.8 KB
- 资产文件canvas-fonts/CrimsonPro-Italic.ttf106.3 KB
- 参考文档canvas-fonts/CrimsonPro-OFL.txt4.3 KB
- 资产文件canvas-fonts/CrimsonPro-Regular.ttf104.2 KB
- 参考文档canvas-fonts/DMMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/DMMono-Regular.ttf47.7 KB
- 参考文档canvas-fonts/EricaOne-OFL.txt4.3 KB
- 资产文件canvas-fonts/EricaOne-Regular.ttf24.3 KB
- 资产文件canvas-fonts/GeistMono-Bold.ttf76.5 KB
- 参考文档canvas-fonts/GeistMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/GeistMono-Regular.ttf76.4 KB
- 参考文档canvas-fonts/Gloock-OFL.txt4.3 KB
- 资产文件canvas-fonts/Gloock-Regular.ttf92.9 KB
- 资产文件canvas-fonts/IBMPlexMono-Bold.ttf132.8 KB
- 参考文档canvas-fonts/IBMPlexMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/IBMPlexMono-Regular.ttf130.7 KB
- 资产文件canvas-fonts/IBMPlexSerif-Bold.ttf157.2 KB
- 资产文件canvas-fonts/IBMPlexSerif-BoldItalic.ttf165.9 KB
- 资产文件canvas-fonts/IBMPlexSerif-Italic.ttf166.0 KB
- 资产文件canvas-fonts/IBMPlexSerif-Regular.ttf156.6 KB
- 资产文件canvas-fonts/InstrumentSans-Bold.ttf66.5 KB
- 资产文件canvas-fonts/InstrumentSans-BoldItalic.ttf68.4 KB
- 资产文件canvas-fonts/InstrumentSans-Italic.ttf68.3 KB
- 参考文档canvas-fonts/InstrumentSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/InstrumentSans-Regular.ttf66.4 KB
- 资产文件canvas-fonts/InstrumentSerif-Italic.ttf69.2 KB
- 资产文件canvas-fonts/InstrumentSerif-Regular.ttf67.7 KB
- 参考文档canvas-fonts/Italiana-OFL.txt4.3 KB
- 资产文件canvas-fonts/Italiana-Regular.ttf26.5 KB
- 资产文件canvas-fonts/JetBrainsMono-Bold.ttf112.1 KB
- 参考文档canvas-fonts/JetBrainsMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/JetBrainsMono-Regular.ttf112.2 KB
- 资产文件canvas-fonts/Jura-Light.ttf150.7 KB
- 资产文件canvas-fonts/Jura-Medium.ttf150.9 KB
- 参考文档canvas-fonts/Jura-OFL.txt4.3 KB
- 参考文档canvas-fonts/LibreBaskerville-OFL.txt4.3 KB
- 资产文件canvas-fonts/LibreBaskerville-Regular.ttf144.1 KB
- 资产文件canvas-fonts/Lora-Bold.ttf130.7 KB
- 资产文件canvas-fonts/Lora-BoldItalic.ttf137.0 KB
- 资产文件canvas-fonts/Lora-Italic.ttf136.1 KB
- 参考文档canvas-fonts/Lora-OFL.txt4.3 KB
- 资产文件canvas-fonts/Lora-Regular.ttf130.8 KB
- 资产文件canvas-fonts/NationalPark-Bold.ttf77.4 KB
- 参考文档canvas-fonts/NationalPark-OFL.txt4.3 KB
- 资产文件canvas-fonts/NationalPark-Regular.ttf74.6 KB
- 参考文档canvas-fonts/NothingYouCouldDo-OFL.txt4.3 KB
- 资产文件canvas-fonts/NothingYouCouldDo-Regular.ttf31.3 KB
- 资产文件canvas-fonts/Outfit-Bold.ttf54.1 KB
- 参考文档canvas-fonts/Outfit-OFL.txt4.3 KB
- 资产文件canvas-fonts/Outfit-Regular.ttf53.6 KB
- 资产文件canvas-fonts/PixelifySans-Medium.ttf49.9 KB
- 参考文档canvas-fonts/PixelifySans-OFL.txt4.3 KB
- 参考文档canvas-fonts/PoiretOne-OFL.txt4.3 KB
- 资产文件canvas-fonts/PoiretOne-Regular.ttf44.2 KB
- 资产文件canvas-fonts/RedHatMono-Bold.ttf33.6 KB
- 参考文档canvas-fonts/RedHatMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/RedHatMono-Regular.ttf33.7 KB
- 参考文档canvas-fonts/Silkscreen-OFL.txt4.3 KB
- 资产文件canvas-fonts/Silkscreen-Regular.ttf31.2 KB
- 资产文件canvas-fonts/SmoochSans-Medium.ttf58.3 KB
- 参考文档canvas-fonts/SmoochSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/Tektur-Medium.ttf74.5 KB
- 参考文档canvas-fonts/Tektur-OFL.txt4.3 KB
- 资产文件canvas-fonts/Tektur-Regular.ttf73.8 KB
- 资产文件canvas-fonts/WorkSans-Bold.ttf186.8 KB
- 资产文件canvas-fonts/WorkSans-BoldItalic.ttf171.7 KB
- 资产文件canvas-fonts/WorkSans-Italic.ttf170.2 KB
- 参考文档canvas-fonts/WorkSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/WorkSans-Regular.ttf184.5 KB
- 参考文档canvas-fonts/YoungSerif-OFL.txt4.3 KB
- 资产文件canvas-fonts/YoungSerif-Regular.ttf102.7 KB
- 许可证LICENSE.txt11.1 KB
- 参考文档references/canvas-design-system.md7.7 KB
- 参考文档references/shadcn-accessibility.md9.7 KB
- 参考文档references/shadcn-components.md10.9 KB
- 参考文档references/shadcn-theming.md8.5 KB
- 参考文档references/tailwind-customization.md9.9 KB
- 参考文档references/tailwind-responsive.md8.1 KB
- 参考文档references/tailwind-utilities.md9.7 KB
- 脚本scripts/.coverage52.0 KB
- 脚本scripts/requirements.txt444 B
- 脚本scripts/shadcn_add.py8.6 KB
- 脚本scripts/tailwind_config_gen.py14.1 KB
- 脚本scripts/tests/coverage-ui.json34.3 KB
- 脚本scripts/tests/requirements.txt52 B
- 脚本scripts/tests/test_shadcn_add.py9.7 KB
- 脚本scripts/tests/test_tailwind_config_gen.py14.3 KB
03 SKILL.md 正文
UI Styling Skill
Comprehensive skill for creating beautiful, accessible user interfaces combining shadcn/ui components, Tailwind CSS utility styling, and canvas-based visual design systems.
Reference
- shadcn/ui: https://ui.shadcn.com/llms.txt
- Tailwind CSS: https://tailwindcss.com/docs
When to Use This Skill
Use when:
- Building UI with React-based frameworks (Next.js, Vite, Remix, Astro)
- Implementing accessible components (dialogs, forms, tables, navigation)
- Styling with utility-first CSS approach
- Creating responsive, mobile-first layouts
- Implementing dark mode and theme customization
- Building design systems with consistent tokens
- Generating visual designs, posters, or brand materials
- Rapid prototyping with immediate visual feedback
- Adding complex UI patterns (data tables, charts, command palettes)
Core Stack
Component Layer: shadcn/ui
- Pre-built accessible components via Radix UI primitives
- Copy-paste distribution model (components live in your codebase)
- TypeScript-first with full type safety
- Composable primitives for complex UIs
- CLI-based installation and management
Styling Layer: Tailwind CSS
- Utility-first CSS framework
- Build-time processing with zero runtime overhead
- Mobile-first responsive design
- Consistent design tokens (colors, spacing, typography)
- Automatic dead code elimination
Visual Design Layer: Canvas
- Museum-quality visual compositions
- Philosophy-driven design approach
- Sophisticated visual communication
- Minimal text, maximum visual impact
- Systematic patterns and refined aesthetics
Quick Start
Component + Styling Setup
Install shadcn/ui with Tailwind:
npx shadcn@latest init
CLI prompts for framework, TypeScript, paths, and theme preferences. This configures both shadcn/ui and Tailwind CSS.
Add components:
npx shadcn@latest add button card dialog form
Use components with utility styling:
import { Button } from "@/components/ui/button"
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
export function Dashboard() {
return (
<div className="container mx-auto p-6 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<Card className="hover:shadow-lg transition-shadow">
<CardHeader>
<CardTitle className="text-2xl font-bold">Analytics</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<p className="text-muted-foreground">View your metrics</p>
<Button variant="default" className="w-full">
View Details
</Button>
</CardContent>
</Card>
</div>
)
}
Alternative: Tailwind-Only Setup
Vite projects:
npm install -D tailwindcss @tailwindcss/vite
// vite.config.ts
import tailwindcss from '@tailwindcss/vite'
export default { plugins: [tailwindcss()] }
/* src/index.css */
@import "tailwindcss";
Component Library Guide
Comprehensive component catalog with usage patterns, installation, and composition examples.
See: references/shadcn-components.md
Covers:
- Form & input components (Button, Input, Select, Checkbox, Date Picker, Form validation)
- Layout & navigation (Card, Tabs, Accordion, Navigation Menu)
- Overlays & dialogs (Dialog, Drawer, Popover, Toast, Command)
- Feedback & status (Alert, Progress, Skeleton)
- Display components (Table, Data Table, Avatar, Badge)
Theme & Customization
Theme configuration, CSS variables, dark mode implementation, and component customization.
See: references/shadcn-theming.md
Covers:
- Dark mode setup with next-themes
- CSS variable system
- Color customization and palettes
- Component variant customization
- Theme toggle implementation
Accessibility Patterns
ARIA patterns, keyboard navigation, screen reader support, and accessible component usage.
See: references/shadcn-accessibility.md
Covers:
- Radix UI accessibility features
- Keyboard navigation patterns
- Focus management
- Screen reader announcements
- Form validation accessibility
Tailwind Utilities
Core utility classes for layout, spacing, typography, colors, borders, and shadows.
See: references/tailwind-utilities.md
Covers:
- Layout utilities (Flexbox, Grid, positioning)
- Spacing system (padding, margin, gap)
- Typography (font sizes, weights, alignment, line height)
- Colors and backgrounds
- Borders and shadows
- Arbitrary values for custom styling
Responsive Design
Mobile-first breakpoints, responsive utilities, and adaptive layouts.
See: references/tailwind-responsive.md
Covers:
- Mobile-first approach
- Breakpoint system (sm, md, lg, xl, 2xl)
- Responsive utility patterns
- Container queries
- Max-width queries
- Custom breakpoints
Tailwind Customization
Config file structure, custom utilities, plugins, and theme extensions.
See: references/tailwind-customization.md
Covers:
- @theme directive for custom tokens
- Custom colors and fonts
- Spacing and breakpoint extensions
- Custom utility creation
- Custom variants
- Layer organization (@layer base, components, utilities)
- Apply directive for component extraction
Visual Design System
Canvas-based design philosophy, visual communication principles, and sophisticated compositions.
See: references/canvas-design-system.md
Covers:
- Design philosophy approach
- Visual communication over text
- Systematic patterns and composition
- Color, form, and spatial design
- Minimal text integration
- Museum-quality execution
- Multi-page design systems
Utility Scripts
Python automation for component installation and configuration generation.
shadcn_add.py
Add shadcn/ui components with dependency handling:
python scripts/shadcn_add.py button card dialog
tailwind_config_gen.py
Generate tailwind.config.js with custom theme:
python scripts/tailwind_config_gen.py --colors brand:blue --fonts display:Inter
Best Practices
- Component Composition: Build complex UIs from simple, composable primitives
- Utility-First Styling: Use Tailwind classes directly; extract components only for true repetition
- Mobile-First Responsive: Start with mobile styles, layer responsive variants
- Accessibility-First: Leverage Radix UI primitives, add focus states, use semantic HTML
- Design Tokens: Use consistent spacing scale, color palettes, typography system
- Dark Mode Consistency: Apply dark variants to all themed elements
- Performance: Leverage automatic CSS purging, avoid dynamic class names
- TypeScript: Use full type safety for better DX
- Visual Hierarchy: Let composition guide attention, use spacing and color intentionally
- Expert Craftsmanship: Every detail matters - treat UI as a craft
Reference Navigation
Component Library
references/shadcn-components.md- Complete component catalogreferences/shadcn-theming.md- Theming and customizationreferences/shadcn-accessibility.md- Accessibility patterns
Styling System
references/tailwind-utilities.md- Core utility classesreferences/tailwind-responsive.md- Responsive designreferences/tailwind-customization.md- Configuration and extensions
Visual Design
references/canvas-design-system.md- Design philosophy and canvas workflows
Automation
scripts/shadcn_add.py- Component installationscripts/tailwind_config_gen.py- Config generation
Common Patterns
Form with validation:
import { useForm } from "react-hook-form"
import { zodResolver } from "@hookform/resolvers/zod"
import * as z from "zod"
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from "@/components/ui/form"
import { Input } from "@/components/ui/input"
import { Button } from "@/components/ui/button"
const schema = z.object({
email: z.string().email(),
password: z.string().min(8)
})
export function LoginForm() {
const form = useForm({
resolver: zodResolver(schema),
defaultValues: { email: "", password: "" }
})
return (
<Form {...form}>
<form onSubmit={form.handleSubmit(console.log)} className="space-y-6">
<FormField control={form.control} name="email" render={({ field }) => (
<FormItem>
<FormLabel>Email</FormLabel>
<FormControl>
<Input type="email" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} />
<Button type="submit" className="w-full">Sign In</Button>
</form>
</Form>
)
}
Responsive layout with dark mode:
<div className="min-h-screen bg-white dark:bg-gray-900">
<div className="container mx-auto px-4 py-8">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<Card className="bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700">
<CardContent className="p-6">
<h3 className="text-xl font-semibold text-gray-900 dark:text-white">
Content
</h3>
</CardContent>
</Card>
</div>
</div>
</div>
Resources
- shadcn/ui Docs: https://ui.shadcn.com
- Tailwind CSS Docs: https://tailwindcss.com
- Radix UI: https://radix-ui.com
- Tailwind UI: https://tailwindui.com
- Headless UI: https://headlessui.com
- v0 (AI UI Generator): https://v0.dev
04 同仓库更多 Skills
testing-best-practices
Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.
tailwindcss-development
Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3/v4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML/CSS component, CSS file audits, build tool configuration, and vanilla CSS.
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
infer-conventions
Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai/rules`, resolve mixed or conflicting patterns (e.g. "are we using Form Requests or inline validation?"), or onboard agents and teammates to "how we do things here". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai/rules` files by hand.
inertia-react-development
Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using <Link>, <Form>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.
deploying-to-cloud
Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.