Communitygithub.com

ランディングページ・フォト・リタッチ

shadcn/ui(Radix UI + Tailwind ベース)のコンポーネント、Tailwind CSS のユーティリティファーストなスタイリング、およびキャンバスベースのビジュアルデザインを使用して、美しくアクセシブルなユーザーインターフェースを作成します。ユーザーインターフェースの構築、デザインシステムの実装、レスポンシブレイアウトの作成、アクセシブルなコンポーネント(ダイアログ、ドロップダウン、フォーム、テーブル)の追加、テーマとカラーのカスタマイズ、ダークモードの実装、ビジュアルデザインやポスターの生成、アプリケーション全体での一貫したスタイリングパターンの確立に使用します。

ランディングページ・フォト・リタッチ とは?

このスキルは、shadcn/ui コンポーネント、Tailwind CSS、およびキャンバスベースのビジュアルデザインシステムを組み合わせて、美しくアクセシブルなユーザーインターフェースを作成するための包括的なガイドです。shadcn/ui は Radix UI 上に構築されたアクセシブルなコンポーネントライブラリで、コードベースに直接コピー&ペーストして使用でき、TypeScript による完全な型安全性と CLI ベースの管理を提供します。Tailwind CSS はユーティリティファーストのアプローチで、ビルド時に処理されランタイムオーバーヘッドがなく、モバイルファーストのレスポンシブデザインと一貫したデザイントークンを実現します。キャンバスベースのビジュアルデザインは、ミュージアム品質のビジュアルコンポジション、哲学に基づくデザインアプローチ、最小限のテキストで最大の視覚的インパクトを提供します。Next.js、Vite、Remix、Astro などの React ベースのフレームワークと組み合わせて使用でき、フォームのバリデーション、ダークモード、レスポンシブレイアウトなどの一般的なパターンもカバーしています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tmnhutwork/Landingpage-Photo-Retouch/tree/HEAD/.agents/skills/ui-styling

お気に入りの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フレームワーク
  • ビルド時処理でランタイムオーバーヘッドゼロ
  • モバイルファーストのレスポンシブデザイン
  • 一貫性のあるデザイントークン(色、スペーシング、タイポグラフィ)
  • 自動デッドコード除去

ビジュアルデザインレイヤー: キャンバス

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

クイックスタート

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

shadcn/uiをTailwindと共にインストール:

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、フォームバリデーション)
  • レイアウトおよびナビゲーション(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

ベストプラクティス

  1. コンポーネント構成: シンプルで合成可能なプリミティブから複雑なUIを構築する
  2. ユーティリティファーストスタイリング: Tailwindクラスを直接使用し、真に繰り返しがある場合のみコンポーネントを抽出する
  3. モバイルファーストレスポンシブ: モバイルスタイルから始め、レスポンシブバリアントを重ねる
  4. アクセシビリティファースト: Radix UIプリミティブを活用し、フォーカス状態を追加し、セマンティックHTMLを使用する
  5. デザイントークン: 一貫性のあるスペーシングスケール、カラーパレット、タイポグラフィシステムを使用する
  6. ダークモードの一貫性: テーマ設定されたすべての要素にダークバリアントを適用する
  7. パフォーマンス: 自動CSSパージを活用し、動的クラス名を避ける
  8. TypeScript: より良い開発者体験のために完全な型安全性を使用する
  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>Email</FormLabel>
            <FormControl>
              <Input type="email" {...field} />
            </FormControl>
            <FormMessage />
          </FormItem>
        )} />
        <Button type="submit" className="w-full">Sign In</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">
            Content
          </h3>
        </CardContent>
      </Card>
    </div>
  </div>
</div>

リソース

Individual skills in this repo

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

tmnhutwork/Landingpage-Photo-Retouch

Run a WCAG 2.1 AA accessibility audit on a design or page. Trigger with "audit accessibility", "check a11y", "is this accessible?", or when reviewing a design for color contrast, keyboard navigation, touch target size, or screen reader behavior before handoff.

tmnhutwork/Landingpage-Photo-Retouch

Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

tmnhutwork/Landingpage-Photo-Retouch

Generate developer handoff specs from a design. Use when a design is ready for engineering and needs a spec sheet covering layout, design tokens, component props, interaction states, responsive breakpoints, edge cases, and animation details.

tmnhutwork/Landingpage-Photo-Retouch

Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

tmnhutwork/Landingpage-Photo-Retouch

Synthesize user research into themes, insights, and recommendations. Use when you have interview transcripts, survey results, usability test notes, support tickets, or NPS responses that need to be distilled into patterns, user segments, and prioritized next steps.

tmnhutwork/Landingpage-Photo-Retouch

Plan, conduct, and synthesize user research. Trigger with "user research plan", "interview guide", "usability test", "survey design", "research questions", or when the user needs help with any aspect of understanding their users through research.

tmnhutwork/Landingpage-Photo-Retouch

Write or review UX copy — microcopy, error messages, empty states, CTAs. Trigger with "write copy for", "what should this button say?", "review this error message", or when naming a CTA, wording a confirmation dialog, filling an empty state, or writing onboarding text.

tmnhutwork/Landingpage-Photo-Retouch

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated 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. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.

tmnhutwork/Landingpage-Photo-Retouch

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

tmnhutwork/Landingpage-Photo-Retouch

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini 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.

tmnhutwork/Landingpage-Photo-Retouch

Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

tmnhutwork/Landingpage-Photo-Retouch

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.

tmnhutwork/Landingpage-Photo-Retouch

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

tmnhutwork/Landingpage-Photo-Retouch

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

tmnhutwork/Landingpage-Photo-Retouch

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: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.

関連スキル