オプション
家 Skill その他 antfu-design

antfu-design

antfu/skills antfu/skills

UnoCSS を使用して、セマンティックトークン、ダークモードの同等性、および開発者ツールやランディングページのデザイン磨きを施したインターフェースを構築します。

...すべて拡張します
12
更新された時間 2026年9月7日

UnoCSS を使用してインターフェースを構築する際に、このガイドラインを使用してください。対象フレームワークは React、Vue、Svelte、Solid、またはプレーンな HTML のいずれでも構いません。密度の高い開発者ツールパネルからランディングページまで幅広く適用できます。まず core-design-read を参照して方向性を設定し、その後、トークンシステムおよび磨き上げと不要な装飾排除のルールを適用してください。

コアルール

  • マークアップにおいて生のユーティリティチェーンの代わりに、セマンティックショートカット(bg-baseborder-basecolor-activebtn-action)を使用してください。
  • ライトモードとダークモードを同時に設計してください。コアトークンは両方のテーマで機能する必要があります。
  • z-index レイヤーには名前を付けてください(z-top-navz-panel-contentz-drawer-content)。テンプレート内で生の z 値を使用しないでください。
  • 生成されるコードではクラスベースのユーティリティのみを生成してください(class="...")。Attributify 構文は避けてください。
  • アイコンやステータスのクラス文字列はリテラルとして保持し、UnoCSS が静的に抽出できるようにしてください(必要に応じて // @unocss-include を使用)。
  • 技術的な値(パス、SHAs、カウンター、タイムスタンプ、パーセンテージ)には font-monotabular-nums を使用してください。
  • 長いパスや ID については、視覚的に切り詰めても、title 属性には完全な値を保持してください。
  • 要件を読み取り、外観を選択する前に 3 つのダイヤルを設定してください(core-design-read)。
  • 密度の高いまたは構造的な表面にはボーダーを、浮き上がった要素には階層的なシャドウを使用してください(features-micro-interactions)。
  • ユーザー向けテキストには、任意の em-dash(—)および en-dash(–)文字を含めないでください(best-practices-anti-slop)。

スターターショートカット

最小限のセマンティックコアです。完全な uno.config.ts と基本スタイルについては core-starter-kit を参照してください。

shortcuts: [
  {
    'color-base': 'color-neutral-800 dark:color-neutral-200',
    'bg-base': 'bg-white dark:bg-#111',
    'bg-secondary': 'bg-#eee dark:bg-#222',
    'border-base': 'border-#8882',

    'bg-active': 'bg-#8881',
    'color-active': 'color-primary-600 dark:color-primary-300',
    'border-active': 'border-primary-600/25 dark:border-primary-400/25',

    'btn-action': 'inline-flex items-center gap-2 rounded border border-base px2 py1 op75 hover:op100 hover:bg-active disabled:pointer-events-none disabled:op30!',
    'op-fade': 'op65 dark:op55',
    'op-mute': 'op30 dark:op25',

    'z-top-nav': 'z-60',
    'z-panel-content': 'z-70',
    'z-drawer-content': 'z-100',
  },
]

コアリファレンス

トピック説明参照
コア原則セマンティックトークン、ダークモードの同等性、z-index の命名、クラスファースト出力core-principles
スターターキットコピー&ペースト可能な UnoCSS 初期設定ファイルと基本のライト/ダークスタイルcore-starter-kit
トークンと組み合わせトークンファミリー、再利用可能なクラスの組み合わせ、モバイル対応シェルトークンcore-tokens-and-combinations
デザインリードとダイヤル要件の読み取り、デザインリードの宣言、分散/モーション/密度ダイヤルの設定core-design-read

ベストプラクティス

トピック説明参照
厳格なルールと事前チェック実施/禁止チェックリストおよび統合された事前チェックbest-practices-strict-rules
クラスを Attributify より優先生成コードがクラスユーティリティを使用する理由と変換方法best-practices-class-utilities-over-attributify
不要な装飾排除の衛生管理ダッシュの禁止と AI 特有の禁止パターンbest-practices-anti-slop
バイアス補正上書きするためのタイポグラフィ、カラー、レイアウト、素材感のデフォルトbest-practices-bias-correction

機能

トピック説明参照
データ表示パス、アイコン、時間、日付、数値、バッジ、ボタンfeatures-data-presentation
マイクロインタラクション半径、配置、シャドウ、アニメーション、数値、アウトライン、ヒットエリアfeatures-micro-interactions
Floating Vue の上書き共有の Floating Vue 設定と popper スタイルfeatures-floating-vue-overrides

高度な機能

トピック説明参照
パターン語彙認識して適用する名前付き UI パターンadvanced-pattern-vocabulary
リデザインプロトコルモードの検出、最初の監査、IA と SEO の保持advanced-redesign-protocol
GitHubで見る
---
name: antfu-design
description: Build interfaces with UnoCSS using semantic tokens, dark mode parity, and design polish for devtools and landing pages.
---

Use this when building interfaces with UnoCSS in any framework (React, Vue, Svelte, Solid, or plain HTML), from dense devtools panels to landing pages. Read core-design-read first to set the direction, then apply the token system plus the polish and anti-slop rules.

## Core Rules

- Use semantic shortcuts (`bg-base`, `border-base`, `color-active`, `btn-action`) instead of raw utility chains in markup.
- Design light and dark mode together. Core tokens must work in both themes.
- Name z-index layers (`z-top-nav`, `z-panel-content`, `z-drawer-content`). Do not use raw z values in templates.
- Generate class-based utilities only (`class="..."`). Avoid Attributify syntax in generated code.
- Keep icon/status class strings literal so UnoCSS can statically extract them (`// @unocss-include` when needed).
- Use `font-mono` + `tabular-nums` for technical values (paths, SHAs, counters, timestamps, percentages).
- For long paths and IDs, truncate visually but keep the full value in `title`.
- Read the brief and set the three dials before choosing a look (core-design-read).
- Borders for dense or structural surfaces, layered shadows for elevated ones (features-micro-interactions).
- Zero em-dash and en-dash characters in any user-facing text (best-practices-anti-slop).

## Starter shortcuts

A minimal semantic core. See core-starter-kit for the full `uno.config.ts` and base styles.

```ts
shortcuts: [
  {
    'color-base': 'color-neutral-800 dark:color-neutral-200',
    'bg-base': 'bg-white dark:bg-#111',
    'bg-secondary': 'bg-#eee dark:bg-#222',
    'border-base': 'border-#8882',

    'bg-active': 'bg-#8881',
    'color-active': 'color-primary-600 dark:color-primary-300',
    'border-active': 'border-primary-600/25 dark:border-primary-400/25',

    'btn-action': 'inline-flex items-center gap-2 rounded border border-base px2 py1 op75 hover:op100 hover:bg-active disabled:pointer-events-none disabled:op30!',
    'op-fade': 'op65 dark:op55',
    'op-mute': 'op30 dark:op25',

    'z-top-nav': 'z-60',
    'z-panel-content': 'z-70',
    'z-drawer-content': 'z-100',
  },
]
```

## Core References

| Topic | Description | Reference |
|-------|-------------|-----------|
| Core Principles | Semantic tokens, dark mode parity, z-index naming, class-first output | [core-principles](references/core-principles.md) |
| Starter Kit | Copy-paste UnoCSS starter config and base light/dark styles | [core-starter-kit](references/core-starter-kit.md) |
| Tokens and Combos | Token families, reusable class combinations, mobile-safe shell tokens | [core-tokens-and-combinations](references/core-tokens-and-combinations.md) |
| Design Read and Dials | Read the brief, declare a design read, set variance/motion/density dials | [core-design-read](references/core-design-read.md) |

## Best Practices

| Topic | Description | Reference |
|-------|-------------|-----------|
| Strict Rules and Pre-Flight | Do/don't checklist and the consolidated pre-flight | [best-practices-strict-rules](references/best-practices-strict-rules.md) |
| Class over Attributify | Why generated code uses class utilities, with conversions | [best-practices-class-utilities-over-attributify](references/best-practices-class-utilities-over-attributify.md) |
| Anti-Slop Hygiene | The dash ban and the AI-tell forbidden patterns | [best-practices-anti-slop](references/best-practices-anti-slop.md) |
| Bias Correction | Typography, color, layout, and materiality defaults to override | [best-practices-bias-correction](references/best-practices-bias-correction.md) |

## Features

| Topic | Description | Reference |
|-------|-------------|-----------|
| Data Presentation | Paths, icons, time, date, numbers, badges, buttons | [features-data-presentation](references/features-data-presentation.md) |
| Micro-Interactions | Radius, alignment, shadows, animation, numbers, outlines, hit areas | [features-micro-interactions](references/features-micro-interactions.md) |
| Floating Vue Overrides | Shared Floating Vue setup and popper styling | [features-floating-vue-overrides](references/features-floating-vue-overrides.md) |

## Advanced

| Topic | Description | Reference |
|-------|-------------|-----------|
| Pattern Vocabulary | Named UI patterns to recognize and reach for | [advanced-pattern-vocabulary](references/advanced-pattern-vocabulary.md) |
| Redesign Protocol | Detect mode, audit first, preserve IA and SEO | [advanced-redesign-protocol](references/advanced-redesign-protocol.md) |

<!--
Source references:
- https://github.com/antfu/node-modules-inspector
- https://github.com/vitejs/devtools/tree/main/packages/rolldown
- https://github.com/eslint/config-inspector
- https://github.com/antfu/vite-plugin-inspect
- https://github.com/antfu/agent-container
- https://github.com/Leonxlnx/taste-skill
- https://github.com/jakubkrehel/make-interfaces-feel-better
-->

すべてのファイル

0件のファイル

antfu-designをインストール

スキルファイルをダウンロードして、.claude/skills/ ディレクトリに展開してください。

ZIPをダウンロード

リポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。

git clone https://github.com/antfu/skills/tree/main/skills/antfu-design # Copy SKILL.md to your .claude/skills/ directory

コピー コピー
クイックセットアップ: スキルフォルダを .claude/skills/ にコピーしてください。Claude はそのスキルを自動的に検出し、使用します。
リポジトリ antfu/skills

関連スキル

tilemaps
更新された時間 2026年8月4日
multica-creating-agents
更新された時間 2026年8月12日
v4-new-features
更新された時間 2026年8月4日
agent-github-pr-manager
更新された時間 2026年8月3日
OR