Communityコーディング&開発github.com

UIスタイリングスキル

shadcn/uiコンポーネント(Radix UI + Tailwindベース)、Tailwind CSSのユーティリティファーストスタイリング、キャンバスベースのビジュアルデザインを用いて、美しくアクセシブルなユーザーインターフェースを作成します。

UIスタイリングスキル とは?

このスキルは、Reactベースのフレームワーク(Next.js、Vite、Remix、Astro)でUIを構築するための包括的なツールです。shadcn/uiの事前構築されたアクセシブルコンポーネント、Tailwind CSSのユーティリティファーストスタイリング、そしてキャンバスベースのビジュアルデザインシステムを統合しています。コンポーネントのインストールとテーマ設定を自動化するPythonスクリプトが含まれており、開発ワークフローを効率化します。レスポンシブデザイン、ダークモード、アクセシビリティパターン、カスタムテーマ設定をサポートし、プロフェッショナルなインターフェースを迅速に構築できます。また、視覚的なコミュニケーション原則と体系的なパターンに焦点を当てた、キャンバスベースのデザイン哲学も取り入れています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/tree/main/.claude/skills/ui-styling

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

UIスタイリングスキル は何をしますか?

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

参考

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

以下の場合に使用します:

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

コアスタック

コンポーネント層: shadcn/ui

  • Radix UIプリミティブによる事前構築済みアクセシブルコンポーネント
  • コピー&ペースト配布モデル(コンポーネントはコードベース内に存在)
  • TypeScriptファーストで完全な型安全性
  • 複雑なUIのためのコンポーザブルなプリミティブ
  • CLIベースのインストールと管理

スタイリング層: Tailwind CSS

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

ビジュアルデザイン層: キャンバス

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

スクリプトパス

このスキルとそのreferences/内のスクリプトパスは、プロジェクトではなく、このSKILL.mdを含むディレクトリからの相対パスです。scripts/<file>はこのスキル自身のscripts/フォルダを指し、../<skill>/scripts/<file>はこのスキルと一緒にインストールされた兄弟サブスキルを指します。そのディレクトリ(Claude Codeはスキル読み込み時にそのベースディレクトリとして報告します)からフルパスを構築し、ワーキングディレクトリをプロジェクトルートに維持してください。スクリプトはdocs/brand-guidelines.md、assets/design-tokens.json、src/などのプロジェクトファイルを相対パスで読み書きします。

クイックスタート

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

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">アナリティクス</CardTitle>
        </CardHeader>
        <CardContent className="space-y-4">
          <p className="text-muted-foreground">メトリクスを表示</p>
          <Button variant="default" className="w-full">
            詳細を見る
          </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検証)
  • レイアウトとナビゲーション (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, 位置指定)
  • スペーシングシステム (パディング、マージン、ギャップ)
  • タイポグラフィ (フォントサイズ、ウェイト、配置、行間)
  • 色と背景
  • ボーダーとシャドウ
  • カスタムスタイリングのための任意値

レスポンシブデザイン

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

参照: 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

ジェネレータは、兄弟のtailwind.config.js、.cjs、.mjs、または.tsファイルがすでに存在する場合、設定の作成または置き換えを拒否します。まず報告された設定を確認し、競合する出力が意図的である場合にのみ --force を渡してください:

python scripts/tailwind_config_gen.py --colors brand:blue --force

ベストプラクティス

  1. コンポーネント構成: シンプルでコンポーザブルなプリミティブから複雑なUIを構築する
  2. ユーティリティファーストスタイリング: Tailwindクラスを直接使用し、本当に繰り返しがある場合のみコンポーネントを抽出する
  3. モバイルファーストレスポンシブ: モバイルスタイルから始め、レスポンシブバリアントをレイヤリングする
  4. アクセシビリティファースト: Radix UIプリミティブを活用し、フォーカス状態を追加し、セマンティックHTMLを使用する
  5. デザイントークン: 一貫したスペーシングスケール、カラーパレット、タイポグラフィシステムを使用する
  6. ダークモードの一貫性: すべてのテーマ要素にダークバリアントを適用する
  7. パフォーマンス: 自動CSSパージを活用し、動的なクラス名を避ける
  8. TypeScript: 優れたDXのために完全な型安全性を使用する
  9. 視覚的階層: 構成が注意を誘導するようにし、スペーシングと色を意図的に使用する
  10. 専門的な職人技: すべての細部が重要 - UIをクラフトとして扱う

参照ナビゲーション

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

  • references/shadcn-components.md - 完全なコンポーネントカタログ
  • references/shadcn-theming.md - テーマ設定とカスタマイズ
  • references/shadcn-accessibility.md - アクセシビリティパターン

スタイリングシステム

  • references/tailwind-utilities.md - コアユーティリティクラス
  • references/tailwind-responsive.md - レスポンシブデザイン
  • references/tailwind-customization.md - 設定と拡張

ビジュアルデザイン

  • references/canvas-design-system.md - デザイン哲学とキャンバスワークフロー

自動化

  • scripts/shadcn_add.py - コンポーネントインストール
  • scripts/tailwind_config_gen.py - 設定生成

共通パターン

検証付きフォーム:

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>メールアドレス</FormLabel>
            <FormControl>
              <Input type="email" {...field} />
            </FormControl>
            <FormMessage />
          </FormItem>
        )} />
        <Button type="submit" className="w-full">サインイン</Button>
      </form>
    </Form>
  )
}

ダークモード対応レスポンシブレイアウト:

<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">
            コンテンツ
          </h3>
        </CardContent>
      </Card>
    </div>
  </div>
</div>

リソース

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

banner-design

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional generated or supplied visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage.

brand

Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

design

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.

design-system

Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing/typography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.

nextlevelbuilder/ui-ux-pro-max

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.

slides

Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.

ui-ux-pro-max

UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 80 searchable styles (51 active), 192 product palettes and reasoning profiles, 74 font pairings, 120 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.

関連スキル