本文へ移動
cccskills
無料GitHub で公開

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

インストール方法を見る

含まれるファイル(98)

  • SKILL.md10.4 KB
  • canvas-fonts/ArsenalSC-OFL.txt4.3 KB
  • canvas-fonts/ArsenalSC-Regular.ttf162.0 KB
  • canvas-fonts/BigShoulders-Bold.ttf92.3 KB
  • canvas-fonts/BigShoulders-OFL.txt4.3 KB
  • canvas-fonts/BigShoulders-Regular.ttf92.2 KB
  • canvas-fonts/Boldonse-OFL.txt4.3 KB
  • canvas-fonts/Boldonse-Regular.ttf75.4 KB
  • canvas-fonts/BricolageGrotesque-Bold.ttf88.8 KB
  • canvas-fonts/BricolageGrotesque-OFL.txt4.3 KB
  • canvas-fonts/BricolageGrotesque-Regular.ttf88.8 KB
  • canvas-fonts/CrimsonPro-Bold.ttf104.8 KB
  • canvas-fonts/CrimsonPro-Italic.ttf106.3 KB
  • canvas-fonts/CrimsonPro-OFL.txt4.3 KB
  • canvas-fonts/CrimsonPro-Regular.ttf104.2 KB
  • canvas-fonts/DMMono-OFL.txt4.3 KB
  • canvas-fonts/DMMono-Regular.ttf47.7 KB
  • canvas-fonts/EricaOne-OFL.txt4.3 KB
  • canvas-fonts/EricaOne-Regular.ttf24.3 KB
  • canvas-fonts/GeistMono-Bold.ttf76.5 KB
  • canvas-fonts/GeistMono-OFL.txt4.3 KB
  • canvas-fonts/GeistMono-Regular.ttf76.4 KB
  • canvas-fonts/Gloock-OFL.txt4.3 KB
  • canvas-fonts/Gloock-Regular.ttf92.9 KB
  • canvas-fonts/IBMPlexMono-Bold.ttf132.8 KB
  • canvas-fonts/IBMPlexMono-OFL.txt4.3 KB
  • canvas-fonts/IBMPlexMono-Regular.ttf130.7 KB
  • canvas-fonts/IBMPlexSerif-Bold.ttf157.2 KB
  • canvas-fonts/IBMPlexSerif-BoldItalic.ttf165.9 KB
  • canvas-fonts/IBMPlexSerif-Italic.ttf166.0 KB
  • canvas-fonts/IBMPlexSerif-Regular.ttf156.6 KB
  • canvas-fonts/InstrumentSans-Bold.ttf66.5 KB
  • canvas-fonts/InstrumentSans-BoldItalic.ttf68.4 KB
  • canvas-fonts/InstrumentSans-Italic.ttf68.3 KB
  • canvas-fonts/InstrumentSans-OFL.txt4.3 KB
  • canvas-fonts/InstrumentSans-Regular.ttf66.4 KB
  • canvas-fonts/InstrumentSerif-Italic.ttf69.2 KB
  • canvas-fonts/InstrumentSerif-Regular.ttf67.7 KB
  • canvas-fonts/Italiana-OFL.txt4.3 KB
  • canvas-fonts/Italiana-Regular.ttf26.5 KB
  • canvas-fonts/JetBrainsMono-Bold.ttf112.1 KB
  • canvas-fonts/JetBrainsMono-OFL.txt4.3 KB
  • canvas-fonts/JetBrainsMono-Regular.ttf112.2 KB
  • canvas-fonts/Jura-Light.ttf150.7 KB
  • canvas-fonts/Jura-Medium.ttf150.9 KB
  • canvas-fonts/Jura-OFL.txt4.3 KB
  • canvas-fonts/LibreBaskerville-OFL.txt4.3 KB
  • canvas-fonts/LibreBaskerville-Regular.ttf144.1 KB
  • canvas-fonts/Lora-Bold.ttf130.7 KB
  • canvas-fonts/Lora-BoldItalic.ttf137.0 KB
  • canvas-fonts/Lora-Italic.ttf136.1 KB
  • canvas-fonts/Lora-OFL.txt4.3 KB
  • canvas-fonts/Lora-Regular.ttf130.8 KB
  • canvas-fonts/NationalPark-Bold.ttf77.4 KB
  • canvas-fonts/NationalPark-OFL.txt4.3 KB
  • canvas-fonts/NationalPark-Regular.ttf74.6 KB
  • canvas-fonts/NothingYouCouldDo-OFL.txt4.3 KB
  • canvas-fonts/NothingYouCouldDo-Regular.ttf31.3 KB
  • canvas-fonts/Outfit-Bold.ttf54.1 KB
  • canvas-fonts/Outfit-OFL.txt4.3 KB
  • canvas-fonts/Outfit-Regular.ttf53.6 KB
  • canvas-fonts/PixelifySans-Medium.ttf49.9 KB
  • canvas-fonts/PixelifySans-OFL.txt4.3 KB
  • canvas-fonts/PoiretOne-OFL.txt4.3 KB
  • canvas-fonts/PoiretOne-Regular.ttf44.2 KB
  • canvas-fonts/RedHatMono-Bold.ttf33.6 KB
  • canvas-fonts/RedHatMono-OFL.txt4.3 KB
  • canvas-fonts/RedHatMono-Regular.ttf33.7 KB
  • canvas-fonts/Silkscreen-OFL.txt4.3 KB
  • canvas-fonts/Silkscreen-Regular.ttf31.2 KB
  • canvas-fonts/SmoochSans-Medium.ttf58.3 KB
  • canvas-fonts/SmoochSans-OFL.txt4.3 KB
  • canvas-fonts/Tektur-Medium.ttf74.5 KB
  • canvas-fonts/Tektur-OFL.txt4.3 KB
  • canvas-fonts/Tektur-Regular.ttf73.8 KB
  • canvas-fonts/WorkSans-Bold.ttf186.8 KB
  • canvas-fonts/WorkSans-BoldItalic.ttf171.7 KB
  • canvas-fonts/WorkSans-Italic.ttf170.2 KB
  • canvas-fonts/WorkSans-OFL.txt4.3 KB
  • canvas-fonts/WorkSans-Regular.ttf184.5 KB
  • canvas-fonts/YoungSerif-OFL.txt4.3 KB
  • canvas-fonts/YoungSerif-Regular.ttf102.7 KB
  • LICENSE.txt11.1 KB
  • references/canvas-design-system.md7.7 KB
  • references/shadcn-accessibility.md9.7 KB
  • references/shadcn-components.md10.9 KB
  • references/shadcn-theming.md8.5 KB
  • references/tailwind-customization.md9.9 KB
  • references/tailwind-responsive.md8.1 KB
  • references/tailwind-utilities.md9.7 KB
  • scripts/.coverage52.0 KB
  • scripts/requirements.txt444 B
  • scripts/shadcn_add.py8.6 KB
  • scripts/tailwind_config_gen.py14.1 KB
  • scripts/tests/coverage-ui.json34.3 KB
  • scripts/tests/requirements.txt52 B
  • scripts/tests/test_shadcn_add.py9.7 KB
  • scripts/tests/test_tailwind_config_gen.py14.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

Script Paths

Script paths in this skill and its references/ are relative to the directory that contains this SKILL.md, not to the project: scripts/<file> is this skill's own scripts/ folder, and ../<skill>/scripts/<file> is a sibling sub-skill installed alongside it. Build the full path from that directory (Claude Code reports it as the skill's base directory when the skill loads) and keep the working directory at the project root — the scripts read and write project files such as docs/brand-guidelines.md, assets/design-tokens.json or src/ relative to it.

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audits and implements web accessibility (a11y) following WCAG 2.1 guidelines with ARIA patterns, keyboard navigation, screen reader support, and contrast checking. Use when users request "accessibility audit", "a11y review", "WCAG compliance", "screen reader support", or "keyboard navigation".

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

Creates Architecture Decision Records documenting key technical decisions with context, alternatives considered, tradeoffs, consequences, and decision owners. Use when documenting "architecture decisions", "technical choices", "design decisions", or "ADRs".

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

Designs multi-step agent workflows with tool usage, retry logic, state management, and budget controls. Provides orchestration diagrams, tool execution order, fallback strategies, and cost limits. Use for "AI agents", "agentic workflows", "multi-step AI", or "autonomous systems".

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X / 搜搜 X / 看看大家怎么评价 X / X 上有什么讨论 / research this topic。 Also MUST USE when user mentions any platform or shares any URL/链接: 小红书/xiaohongshu/xhs, Twitter/推特/X, B站/bilibili, Reddit, Facebook, Instagram, V2EX, LinkedIn/领英/招聘/求职/jobs, YouTube, GitHub code search, 小宇宙播客, 雪球/股票行情, RSS feeds, or any web URL. 15 platforms, multi-backend routing (OpenCLI / per-platform CLIs / APIs). Zero config for 6 channels. Run `agent-reach doctor --json` to see which backend serves each platform right now. NOT for: 写报告/数据分析/翻译等内容加工(本 skill 只负责从互联网获取内容); 发帖/评论/点赞等写操作;已有专门 skill 的平台(先用专门 skill)。 【路由方式】SKILL.md 包含路由表和常用命令,复杂场景需按需阅读对应分类的 references/*.md。 分类:search / social (小红书/推特/B站/V2EX/Reddit/Facebook/Instagram) / career(LinkedIn) / dev(github) / web(网页/文章/RSS) / video(YouTube/B站/播客) / finance(雪球/股票)。

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

Orchestrates multi-agent AI systems with task delegation, agent communication, shared memory, and workflow coordination. Use when users request "multi-agent system", "agent orchestration", "AI agents", "agent coordination", or "autonomous agents".

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

Creates SLO-based alerts and operational dashboards with key charts, alert thresholds, and runbook links. Use for "alerting", "dashboards", "SLO", or "monitoring".

日本語の概要は準備中です。原文の説明を表示しています。

sathishssj3/Stereix-Engine22026年10月4日 更新

sathishssj3 のスキルをすべて見る

このスキルの問題を報告する