본문으로 건너뛰기
cccskills
무료GitHub에 공개

kanpeki

Use Kanpeki component library in React projects. Activate when user wants to add, use, customize, or compose accessible UI components from Kanpeki (@kanpeki/*). Covers installation, component patterns, forms, theming, and dark mode with React Aria Components + Tailwind CSS 4.1 + CVA.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md7.5 KB
  • references/component-patterns.md6.9 KB
  • references/form-system.md7.2 KB
  • references/installation-setup.md5.7 KB
  • references/styling-and-theming.md4.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Kanpeki

Kanpeki is a copy-paste component library for React. Components are copied into your project (not installed as npm packages) via the shadcn CLI. Built on React Aria Components (accessibility), CVA beta (variants), and Tailwind CSS 4.1 (styling).

Docs: https://kanpeki.vercel.app

Quick Start

1. Install Dependencies

npm install cva@beta tailwind-merge tailwindcss-motion tailwindcss-react-aria-components react-aria-components -D

Remove shadcn defaults if present:

npm remove class-variance-authority clsx tw-animate-css

2. Create CVA Utility

src/lib/cva.ts:

import { defineConfig } from "cva";
import { twMerge } from "tailwind-merge";

export const { cva, cx: cn, compose } = defineConfig({
  hooks: {
    onComplete: (className) => twMerge(className),
  },
});

3. Configure Styles

Add to globals.css: Tailwind imports, plugins (tailwindcss-react-aria-components, tailwindcss-motion), @custom-variant dark, and OKLCH color tokens via @theme inline.

See references/installation-setup.md for full CSS.

4. Add Components

npx shadcn@latest add @kanpeki/button
npx shadcn@latest add @kanpeki/dialog
npx shadcn@latest add @kanpeki/field

Components are copied to ~/components/ui/<name>/. You own the code.

Component Architecture

Each component has: index.ts (exports), <name>.tsx (implementation), styles.ts (CVA variants).

Simple Components

Single export. Example:

import { Button } from "~/components/ui/button";

<Button variant="outline" size="lg">Click me</Button>

Multi-Part Components

Namespace exports for compound components:

import { Dialog } from "~/components/ui/dialog";

<Dialog.Root>
  <Button>Open</Button>
  <Dialog.Overlay>
    <Dialog.Modal>
      <Dialog.Content>
        <Dialog.Header>
          <Dialog.Title>Title</Dialog.Title>
          <Dialog.Description>Description</Dialog.Description>
        </Dialog.Header>
        <Dialog.Footer>
          <Button>Save</Button>
        </Dialog.Footer>
        <Dialog.Close />
      </Dialog.Content>
    </Dialog.Modal>
  </Dialog.Overlay>
</Dialog.Root>

Multi-part components with namespace exports: Accordion, Breadcrumb, ButtonGroup, Calendar, Card, Carousel, Chart, Combobox, DateField, DatePicker, Dialog, Drawer, Field, InputGroup, ListBox, Menu, NumberField, Pagination, Popover, RadioGroup, Resizable, ScrollArea, SearchField, Select, Sheet, Sidebar, Slider, Table, Tabs, Toast, ToggleGroup, Tooltip.

See references/component-patterns.md for full examples.

Key Pattern: composeRenderProps

Always use composeRenderProps from react-aria-components when wrapping React Aria primitives. This ensures state-based selectors (pressed:, selected:, etc.) work.

import { composeRenderProps } from "react-aria-components";

className={composeRenderProps(className, (className) =>
  Styles({ className, variant })
)}

For plain HTML elements (div, p), call CVA directly: className={Styles({ className })}.

Form System

3-layer architecture: Form > Field > Input component.

Field Composition

import { Field } from "~/components/ui/field";
import { Input } from "~/components/ui/input";
import { TextField } from "~/components/ui/text-field";

<Field.Root render={<TextField type="email" isRequired />}>
  <Field.Label>Email</Field.Label>
  <Input placeholder="john@example.com" />
  <Field.Description>Help text</Field.Description>
  <Field.Error />
</Field.Root>

Field.Root's render prop connects to a React Aria form primitive (TextField, Select, NumberField, etc.) for automatic label association and validation.

InputGroup

import { InputGroup } from "~/components/ui/input-group";

<InputGroup.Root>
  <InputGroup.Addon><SearchIcon /></InputGroup.Addon>
  <InputGroup.Input placeholder="Search..." />
</InputGroup.Root>

TanStack Form

<form.Field name="title">
  {(field) => (
    <Field.Root
      render={
        <TextField
          isInvalid={field.state.meta.isTouched && !field.state.meta.isValid}
          onChange={field.handleChange}
          onBlur={field.handleBlur}
          value={field.state.value}
        />
      }
    >
      <Field.Label>Title</Field.Label>
      <Input />
      <Field.Error errors={field.state.meta.errors} />
    </Field.Root>
  )}
</form.Field>

See references/form-system.md for full TanStack Form example with Zod validation.

Styling & Theming

  • CVA — variant definitions in styles.ts. Import cva from ~/lib/cva (not cva directly).
  • cn() — class merging utility from ~/lib/cva. Wraps twMerge.
  • OKLCH colors — defined in globals.css via @theme inline. Use light-dark() for automatic dark mode.
  • Dark mode — next-themes (class strategy) + CSS light-dark(). Components auto-switch.
  • React Aria selectors — pressed:, selected:, disabled:, entering:, exiting:, focus-visible:.
  • Animations — tailwindcss-motion plugin: motion-opacity-in, motion-scale-in-95, motion-duration-200.

Override styles by passing className (twMerge resolves conflicts) or editing styles.ts directly.

See references/styling-and-theming.md for full token reference and CVA deep dive.

Common Pitfalls

PitfallFix
Using className={Styles(...)} on React Aria componentsUse composeRenderProps — required for state selectors
Missing "use client" directiveAll interactive components need it (React Aria is client-only)
Importing cva from "cva"Import from ~/lib/cva — includes twMerge hook
Old shadcn deps installed (class-variance-authority, clsx)Remove them, use cva@beta + tailwind-merge
Using active: for press stateUse pressed: — React Aria prefix
Using @/ path aliasKanpeki uses ~/

Component List

Install any component: npx shadcn@latest add @kanpeki/<name>

Layout & Structure: card, separator, aspect-ratio, resizable, scroll-area, sidebar, collapsible, carousel

Form Inputs: input, textarea, text-field, number-field, search-field, checkbox, radio-group, select, combobox, autocomplete, switch, slider, date-field, date-picker, calendar, input-otp, dropzone, field, form, input-group

Buttons & Actions: button, button-group, link, link-button, toggle, toggle-group

Overlays: dialog, drawer, sheet, popover, tooltip, menu

Data Display: table, list-box, accordion, tabs, avatar, badge, keyboard, chart

Feedback: alert, toast, progress, spinner, skeleton

Navigation: breadcrumb, pagination

Utilities: label

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

Set up and optimize repositories for AI coding agents. Creates minimal AGENTS.md, CLAUDE.md symlink, docs/REQUIREMENTS.md, docs/BUSINESS-RULES.md, feedback loops, and deterministic enforcement (Claude Code hooks, OpenCode plugins). Use when user wants to make a repo AI-friendly, set up AGENTS.md/CLAUDE.md, document requirements/business rules for AI, add pre-commit hooks for AI workflows, or optimize codebase structure for coding agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

bun

무료

Bun runtime, package manager, bundler, and test runner. Use when running scripts with bun, managing packages, serving HTTP with Bun.serve, querying databases with Bun.sql/bun:sqlite/Bun.redis, shell scripting with $, using S3/file I/O, writing tests with bun:test, bundling or compiling to executable, or using any Bun-specific API (spawn, glob, semver, FFI, workers, plugins, HTMLRewriter).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

Write clean, readable, and maintainable code following principles from Robert C. Martin's "Clean Code" and Object Calisthenics. Use when writing, reviewing, or refactoring code to improve naming, function design, formatting, error handling, and class structure. Includes code smell detection and refactoring guidance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

denji

무료

Manage SVG icons as framework components using Denji CLI. Use when the user needs to add, remove, list, or manage SVG icons in React, Preact, Solid, Qwik, Vue, or Svelte projects. Triggers include requests to "add an icon", "set up icons", "manage SVG icons", "remove an icon", "list icons", or any task involving Iconify icons as framework components.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/website122026년 3월 11일 업데이트

fellipeutaka의 스킬 모두 보기

이 스킬의 문제 신고