jpskill.com
💬 コミュニケーション コミュニティ

ck:ui-styling

shadcn/uiコンポーネント(Radix UIとTailwind CSS)を活用し、アクセシブルなUI、テーマ、ダークモード、レスポンシブなレイアウト、デザインシステム、カラーカスタマイズなど、洗練されたUIを構築するSkill。

📜 元の英語説明(参考)

Style UIs with shadcn/ui components (Radix UI + Tailwind CSS). Use for accessible components, themes, dark mode, responsive layouts, design systems, color customization.

🇯🇵 日本人クリエイター向け解説

一言でいうと

shadcn/uiコンポーネント(Radix UIとTailwind CSS)を活用し、アクセシブルなUI、テーマ、ダークモード、レスポンシブなレイアウト、デザインシステム、カラーカスタマイズなど、洗練されたUIを構築するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ck-ui-styling.zip https://jpskill.com/download/23661.zip && unzip -o ck-ui-styling.zip && rm ck-ui-styling.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23661.zip -OutFile "$d\ck-ui-styling.zip"; Expand-Archive "$d\ck-ui-styling.zip" -DestinationPath $d -Force; ri "$d\ck-ui-styling.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して ck-ui-styling.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → ck-ui-styling フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
17

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

UI スタイリングスキル

shadcn/ui コンポーネント、Tailwind CSS ユーティリティスタイリング、およびキャンバスベースのビジュアルデザインシステムを組み合わせ、美しくアクセスしやすいユーザーインターフェースを作成するための包括的なスキルです。

リファレンス

このスキルを使用するタイミング

以下の状況で使用してください。

  • React ベースのフレームワーク (Next.js, Vite, Remix, Astro) で UI を構築する場合
  • アクセシブルなコンポーネント (ダイアログ、フォーム、テーブル、ナビゲーション) を実装する場合
  • ユーティリティファーストの CSS アプローチでスタイリングする場合
  • レスポンシブでモバイルファーストなレイアウトを作成する場合
  • ダークモードとテーマのカスタマイズを実装する場合
  • 一貫したトークンでデザインシステムを構築する場合
  • ビジュアルデザイン、ポスター、またはブランド素材を生成する場合
  • 即座の視覚的フィードバックで迅速なプロトタイピングを行う場合
  • 複雑な UI パターン (データテーブル、チャート、コマンドパレット) を追加する場合

コアスタック

コンポーネントレイヤー: shadcn/ui

  • Radix UI プリミティブを介した、事前に構築されたアクセシブルなコンポーネント
  • コピー&ペースト配布モデル (コンポーネントはコードベース内に存在します)
  • 完全な型安全性を備えた TypeScript ファースト
  • 複雑な UI のための構成可能なプリミティブ
  • CLI ベースのインストールと管理

スタイリングレイヤー: Tailwind CSS

  • ユーティリティファーストの CSS フレームワーク
  • ビルド時の処理でランタイムオーバーヘッドはゼロ
  • モバイルファーストのレスポンシブデザイン
  • 一貫したデザインのトークン (色、間隔、タイポグラフィ)
  • 自動的なデッドコード削除

ビジュアルデザインレイヤー: Canvas

  • 美術館品質のビジュアルコンポジション
  • 哲学に基づいたデザインアプローチ
  • 洗練されたビジュアルコミュニケーション
  • 最小限のテキスト、最大限の視覚的インパクト
  • 体系的なパターンと洗練された美学

クイックスタート

コンポーネント + スタイリングのセットアップ

Tailwind を使用して shadcn/ui をインストールします。

npx shadcn@latest init

CLI がフレームワーク、TypeScript、パス、テーマの好みについてプロンプトを表示します。これにより、shadcn/ui と Tailwind CSS の両方が設定されます。

コンポーネントを追加します。

npx shadcn@latest add button card dialog form

ユーティリティスタイリングでコンポーネントを使用します。

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>
  )
}

代替: Tailwind のみのセットアップ

Vite プロジェクト:

npm install -D tailwindcss @tailwindcss/vite
// vite.config.ts
import tailwindcss from '@tailwindcss/vite'
export default { plugins: [tailwindcss()] }
/* src/index.css */
@import "tailwindcss";

コンポーネントライブラリガイド

使用パターン、インストール、および構成例を含む包括的なコンポーネントカタログです。

参照: references/shadcn-components.md

内容は以下の通りです。

  • フォーム&入力コンポーネント (Button, Input, Select, Checkbox, Date Picker, Form validation)
  • レイアウト&ナビゲーション (Card, Tabs, Accordion, Navigation Menu)
  • オーバーレイ&ダイアログ (Dialog, Drawer, Popover, Toast, Command)
  • フィードバック&ステータス (Alert, Progress, Skeleton)
  • 表示コンポーネント (Table, Data Table, Avatar, Badge)

テーマとカスタマイズ

テーマ設定、CSS 変数、ダークモードの実装、およびコンポーネントのカスタマイズです。

参照: references/shadcn-theming.md

内容は以下の通りです。

  • next-themes を使用したダークモードのセットアップ
  • CSS 変数システム
  • 色のカスタマイズとパレット
  • コンポーネントバリアントのカスタマイズ
  • テーマ切り替えの実装

アクセシビリティパターン

ARIA パターン、キーボードナビゲーション、スクリーンリーダーサポート、およびアクセシブルなコンポーネントの使用法です。

参照: references/shadcn-accessibility.md

内容は以下の通りです。

  • Radix UI のアクセシビリティ機能
  • キーボードナビゲーションパターン
  • フォーカス管理
  • スクリーンリーダーのアナウンス
  • フォームバリデーションのアクセシビリティ

Tailwind ユーティリティ

レイアウト、間隔、タイポグラフィ、色、境界線、影のためのコアユーティリティクラスです。

参照: references/tailwind-utilities.md

内容は以下の通りです。

  • レイアウトユーティリティ (Flexbox, Grid, positioning)
  • 間隔システム (padding, margin, gap)
  • タイポグラフィ (フォントサイズ、ウェイト、配置、行の高さ)
  • 色と背景
  • 境界線と影
  • カスタムスタイリングのための任意の値

レスポンシブデザイン

モバイルファーストのブレークポイント、レスポンシブユーティリティ、およびアダプティブレイアウトです。

参照: references/tailwind-responsive.md

内容は以下の通りです。

  • モバイルファーストのアプローチ
  • ブレークポイントシステム (sm, md, lg, xl, 2xl)
  • レスポンシブユーティリティパターン
  • コンテナクエリ
  • 最大幅クエリ
  • カスタムブレークポイント

Tailwind のカスタマイズ

設定ファイルの構造、カスタムユーティリティ、プラグイン、およびテーマの拡張です。

参照: references/tailwind-customization.md

内容は以下の通りです。

  • カスタムトークンのための @theme ディレクティブ
  • カスタムの色とフォント
  • 間隔とブレークポイントの拡張
  • カスタムユーティリティの作成
  • カスタムバリアント
  • レイヤーの整理 (@layer base, components, utilities)
  • コンポーネント抽出のための apply ディレクティブ

ビジュアルデザインシステム

キャンバスベースのデザイン哲学、ビジュアルコミュニケーションの原則、および洗練されたコンポジションです。

参照: references/canvas-design-system.md

内容は以下の通りです。

  • デザイン哲学のアプローチ
  • テキストよりもビジュアルコミュニケーション
  • 体系的なパターンとコンポジション
  • 色、形、空間デザイン
  • 最小限のテキスト統合
  • 美術館品質の実行
  • マルチページデザインシステム

ユーティリティスクリプト

コンポーネントのインストールと設定生成のための Python 自動化です。

shadcn_add.py

依存関係処理を伴う shadcn/ui コンポーネントを追加します。

python scripts/shadcn_add.py button card dialog

tailwind_config_gen.py

カスタムテーマで tailwind.config.js を生成します。

python scripts/tailwind_config_gen.py --colors brand:blue --fonts display:Inter
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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

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

  1. Component Composition: Build complex UIs from simple, composable primitives
  2. Utility-First Styling: Use Tailwind classes directly; extract components only for true repetition
  3. Mobile-First Responsive: Start with mobile styles, layer responsive variants
  4. Accessibility-First: Leverage Radix UI primitives, add focus states, use semantic HTML
  5. Design Tokens: Use consistent spacing scale, color palettes, typography system
  6. Dark Mode Consistency: Apply dark variants to all themed elements
  7. Performance: Leverage automatic CSS purging, avoid dynamic class names
  8. TypeScript: Use full type safety for better DX
  9. Visual Hierarchy: Let composition guide attention, use spacing and color intentionally
  10. Expert Craftsmanship: Every detail matters - treat UI as a craft

Reference Navigation

Component Library

  • references/shadcn-components.md - Complete component catalog
  • references/shadcn-theming.md - Theming and customization
  • references/shadcn-accessibility.md - Accessibility patterns

Styling System

  • references/tailwind-utilities.md - Core utility classes
  • references/tailwind-responsive.md - Responsive design
  • references/tailwind-customization.md - Configuration and extensions

Visual Design

  • references/canvas-design-system.md - Design philosophy and canvas workflows

Automation

  • scripts/shadcn_add.py - Component installation
  • scripts/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

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。