AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Shadcn Ui — Скилл для ИИ-агентов | AI Рассвет

    Shadcn Ui

    Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind theme builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.

    Скиллы для операций#GitHub#jezweb/claude-skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add jezweb/claude-skills --skill shadcn-ui
    Скачать ZIP
    Версия
    1.0.0+e875a6bfff80
    Автор
    Владимир Ломтев
    Репозиторий
    jezweb/claude-skills
    GitHub: jezweb/claude-skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    shadcn/ui Components

    Add shadcn/ui components to a themed React project. This skill runs AFTER tailwind-theme-builder has set up CSS variables, ThemeProvider, and dark mode. It handles component installation, customisation, and combining components into working patterns.

    Prerequisite: Theme infrastructure must exist (CSS variables, components.json, cn() utility). Use tailwind-theme-builder first if not set up.

    Installation Order

    Install components in dependency order. Foundation components first, then feature components:

    Foundation (install first)

    pnpm dlx shadcn@latest add button
    pnpm dlx shadcn@latest add input label
    pnpm dlx shadcn@latest add card
    

    Feature Components (install as needed)

    ## Forms
    pnpm dlx shadcn@latest add form        # needs: react-hook-form, zod, @hookform/resolvers
    pnpm dlx shadcn@latest add textarea select checkbox switch
    
    ## Feedback
    pnpm dlx shadcn@latest add toast        # needs: sonner
    pnpm dlx shadcn@latest add alert badge
    
    ## Overlay
    pnpm dlx shadcn@latest add dialog sheet popover dropdown-menu
    
    ## Data Display
    pnpm dlx shadcn@latest add table        # for data tables, also: @tanstack/react-table
    pnpm dlx shadcn@latest add tabs separator avatar
    
    ## Navigation
    pnpm dlx shadcn@latest add navigation-menu command
    

    External Dependencies

    Component Requires
    Form react-hook-form, zod, @hookform/resolvers
    Toast sonner
    Data Table @tanstack/react-table
    Command cmdk
    Date Picker date-fns (optional)

    Install external deps separately: pnpm add react-hook-form zod @hookform/resolvers

    Known Gotchas

    These are documented corrections that prevent common bugs:

    Radix Select — No Empty Strings

    // Don't use empty string values
    <SelectItem value="">All</SelectItem>           // BREAKS
    
    // Use sentinel value
    <SelectItem value="__any__">All</SelectItem>    // WORKS
    const actual = value === "__any__" ? "" : value
    

    React Hook Form — Null Values

    // Don't spread {...field} — it passes null which Input rejects
    <Input
      value={field.value ?? ''}
      onChange={field.onChange}
      onBlur={field.onBlur}
      name={field.name}
      ref={field.ref}
    />
    

    Lucide Icons — Tree-Shaking

    // Don't use dynamic import — icons get tree-shaken in production
    import * as LucideIcons from 'lucide-react'
    const Icon = LucideIcons[iconName]  // BREAKS in prod
    
    // Use explicit map
    import { Home, Users, Settings, type LucideIcon } from 'lucide-react'
    const ICON_MAP: Record<string, LucideIcon> = { Home, Users, Settings }
    const Icon = ICON_MAP[iconName]
    

    Dialog Width Override

    // Default sm:max-w-lg won't be overridden by max-w-6xl
    <DialogContent className="max-w-6xl">       // DOESN'T WORK
    
    // Use same breakpoint prefix
    <DialogContent className="sm:max-w-6xl">    // WORKS
    

    Customising Components

    shadcn components use semantic CSS tokens from your theme. To customise:

    Variant extension

    Add custom variants by editing the component file in src/components/ui/:

    // button.tsx — add a "brand" variant
    const buttonVariants = cva("...", {
      variants: {
        variant: {
          default: "bg-primary text-primary-foreground",
          brand: "bg-brand text-brand-foreground hover:bg-brand/90",
          // ... existing variants
        },
      },
    })
    

    Colour overrides

    Use semantic tokens from your theme — never raw Tailwind colours:

    // Don't use raw colours
    <Button className="bg-blue-500">             // WRONG
    
    // Use semantic tokens
    <Button className="bg-primary">              // RIGHT
    <Card className="bg-card text-card-foreground">  // RIGHT
    

    Workflow

    Step 1: Assess Needs

    Determine what UI patterns the project needs:

    Need Components
    Forms with validation Form, Input, Label, Select, Textarea, Button, Toast
    Data display with sorting Table, Badge, Pagination
    Admin CRUD interface Dialog, Form, Table, Button, Toast
    Marketing/landing page Card, Button, Badge, Separator
    Settings/preferences Tabs, Form, Switch, Select, Toast
    Navigation NavigationMenu (desktop), Sheet (mobile), ModeToggle

    Step 2: Install Components

    Install foundation first, then feature components for the identified needs. Use the commands above.

    Step 3: Build Recipes

    Combine components into working patterns. See references/recipes.md for complete working examples:

    • Contact Form — Form + Input + Textarea + Button + Toast
    • Data Table — Table + Column sorting + Pagination + Search
    • Modal CRUD — Dialog + Form + Button
    • Navigation — Sheet + NavigationMenu + ModeToggle
    • Settings Page — Tabs + Form + Switch + Select + Toast

    Step 4: Customise

    Apply project-specific colours and variants using semantic tokens from the theme.

    Reference Files

    When Read
    Choosing components, install commands, props references/component-catalogue.md
    Building complete UI patterns references/recipes.md

    Требования и возможности

    Источник пакета
    https://github.com/jezweb/claude-skills/tree/e875a6bfff809e5d42c584104031e36e1f014f18/plugins/frontend/skills/shadcn-ui

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md5614496172176a69a3cc...
    references/component-catalogue.md5542e0043acb6f624052...
    references/recipes.md1183907b045a267d21ed7...

    Частые вопросы

    Как установить Shadcn Ui?
    Используйте команду npx skills add jezweb/claude-skills --skill shadcn-ui или скачайте ZIP-архив.
    Можно ли скачать Shadcn Ui бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    Story Long Write长篇网文写作。从大纲到正文,辅助长篇网络小说的创作,包括世界观、人物、情节线管理。触发方式:/story-long-write、/写长篇、「帮我开书」「写大纲」「日更」「续写」「继续写」「修改第X章」「回炉」「重写第X章」。Parallel Deep ResearchONLY use when user explicitly says 'deep research', 'exhaustive', 'comprehensive report', or 'thorough investigation'. Slower and more expensive than parallel-web-search. For normal research/lookup requests, use parallel-web-search instead. Supports multi-turn: pass --previous-interaction-id from a prior research or enrichment to continue with context.LangfuseInteract with Langfuse and access its documentation: tracing, monitoring, creating datasets, running experiments, and evaluating AI applications. Use when needing to (1) query or modify Langfuse data, (2) look up Langfuse documentation, concepts, integration guides, a feature or SDK usage, or (3) do any AI engineering task (AI observability, prompt engineering/management, evaluation and evaluator management, experimentation, dataset management, evaluation-driven CI/CD, feedback collection). Invoke it for tasks in this scope even when Langfuse is not configured or explicitly mentioned.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add jezweb/claude-skills --skill shadcn-ui
    Скачать ZIP
    Версия
    1.0.0+e875a6bfff80
    Автор
    Владимир Ломтев
    Репозиторий
    jezweb/claude-skills
    GitHub: jezweb/claude-skills
    Excel Automation>