옵션
집 Skill 기타 antfu-design

antfu-design

antfu/skills antfu/skills

UnoCSS를 사용하여 시맨틱 토큰, 다크 모드 일관성, 그리고 개발 도구 및 랜딩 페이지를 위한 디자인 다듬기를 통해 인터페이스를 구축하세요.

...모든 것을 확장하십시오
7
업데이트 된 시간 2026년 9월 7일

UnoCSS를 사용하여 어떤 프레임워크(React, Vue, Svelte, Solid 또는 일반 HTML)에서 인터페이스를 구축할 때 사용하십시오. 밀집된 개발 도구 패널부터 랜딩 페이지에 이르기까지 적용 가능합니다. 방향성을 설정하려면 먼저 core-design-read를 읽은 후, 토큰 시스템과 다듬기 및 부실 방지 규칙을 적용하십시오.

핵심 규칙

  • 마크업에서 원시 유틸리티 체인 대신 시맨틱 단축키(bg-base, border-base, color-active, btn-action)를 사용하십시오.
  • 라이트 모드와 다크 모드를 함께 설계하십시오. 핵심 토큰은 두 테마 모두에서 작동해야 합니다.
  • z-index 레이어를 명명하십시오(z-top-nav, z-panel-content, z-drawer-content). 템플릿에서 원시 z 값을 사용하지 마십시오.
  • 클래스 기반 유틸리티만 생성하십시오 (class="..."). 생성된 코드에서 속성명 구문(Attributify)을 피하십시오.
  • UnoCSS가 정적으로 추출할 수 있도록 아이콘/상태 클래스 문자열을 리터럴로 유지하십시오 (필요한 경우 // @unocss-include 사용).
  • 기술적 값(경로, SHA, 카운터, 타임스탬프, 백분율)에는 font-mono + tabular-nums를 사용하십시오.
  • 긴 경로와 ID의 경우 시각적으로 잘리되, 전체 값은 title에 유지하십시오.
  • 간략한 설명을 읽고 외관 선택 전에 세 가지 다이얼을 설정하십시오 (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
클래스 우선생성된 코드에서 클래스 유틸리티를 사용하는 이유 및 변환 방법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

관련 스킬

multica-creating-agents
업데이트 된 시간 2026년 8월 12일
tilemaps
업데이트 된 시간 2026년 8월 4일
v4-new-features
업데이트 된 시간 2026년 8월 4일
agent-github-pr-manager
업데이트 된 시간 2026년 8월 3일
OR