オプション

UnoCSSの設定と使用。プリセット、ルール、ショートカット、ViteおよびNuxt用のインテグレーションを備えた即時アトミックCSSエンジン。

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

UnoCSSは、柔軟性と拡張性を備えるように設計された即時生成の原子性CSSエンジンです。コアは意見中立であり、すべてのCSSユーティリティはプリセットを通じて提供されます。Tailwind CSSのスーパーセットであるため、基本的な構文の使用にはTailwindの知識を再利用できます。

重要: UnoCSSのコードを書く前に、エージェントはプロジェクトルートに uno.config.* または unocss.config.* ファイルが存在するか確認し、利用可能なプリセット、ルール、ショートカットを理解する必要があります。プロジェクトのセットアップが不明確な場合は、属性モードやその他の高度な機能の使用を避け、基本的な class の使用に徹してください。

このスキルはUnoCSS 66.xに基づいており、2026-01-28に生成されました。

コア

トピック説明参照
設定設定ファイルのセットアップとすべての設定オプションcore-config
ルールCSSユーティリティを生成するための静的および動的ルールcore-rules
ショートカット複数のルールを単一の省略形に結合core-shortcuts
テーマ色、ブレークポイント、デザイントークンのためのテーマシステムcore-theme
バリアントhover:、dark:、レスポンシブなどのバリエーションをルールに適用core-variants
抽出ソースコードからユーティリティを抽出する方法core-extracting
安全リスト & ブロックリスト特定のユーティリティの強制含意または除外core-safelist
レイヤー & プリフライトCSSレイヤーの順序付けと生CSSの注入core-layers

プリセット

メインプリセット

トピック説明参照
Preset Wind3Tailwind CSS v3 / Windi CSS互換プリセット(最も一般的)preset-wind3
Preset Wind4モダンなCSS機能を持つTailwind CSS v4互換プリセットpreset-wind4
Preset Miniカスタムビルドに必要な最小限のユーティリティを含むミニマルプリセットpreset-mini

機能プリセット

トピック説明参照
Preset Icons任意のアイコンセットを使用したIconifyによる純粋なCSSアイコンpreset-icons
Preset AttributifyclassではなくHTML属性にユーティリティをグループ化preset-attributify
Preset TypographyタイポグラフィのデフォルトのためのProseクラスpreset-typography
Preset Web FontsGoogle Fontsおよびその他のウェブフォントの簡単な統合preset-web-fonts
Preset TagifyユーティリティをHTMLタグ名として使用preset-tagify
Preset Rem to Pxユーティリティのためにrem単位をpxに変換preset-rem-to-px

トランスフォーマー

トピック説明参照
バリアントグループ共通プレフィックスを持つユーティリティのグループ化の省略形transformer-variant-group
ディレクティブCSSディレクティブ: @apply、@screen、theme()、icon()transformer-directives
クラスコンパイル複数のクラスを1つのハッシュ化されたクラスにコンパイルtransformer-compile-class
属性JSXJSX/TSXでの値なし属性のサポートtransformer-attributify-jsx

統合

トピック説明参照
Vite統合Viteおよびフレームワーク固有のヒントとのUnoCSSセットアップintegrations-vite
Nuxt統合Nuxtアプリケーション用のUnoCSSモジュールintegrations-nuxt
GitHubで見る
---
name: unocss
description: Configure and use UnoCSS, an instant atomic CSS engine with presets, rules, shortcuts, and integrations for Vite and Nuxt.
---

UnoCSS is an instant atomic CSS engine designed to be flexible and extensible. The core is un-opinionated - all CSS utilities are provided via presets. It's a superset of Tailwind CSS, so you can reuse your Tailwind knowledge for basic syntax usage.

**Important:** Before writing UnoCSS code, agents should check for `uno.config.*` or `unocss.config.*` files in the project root to understand what presets, rules, and shortcuts are available. If the project setup is unclear, avoid using attributify mode and other advanced features - stick to basic `class` usage.

> The skill is based on UnoCSS 66.x, generated at 2026-01-28.

## Core

| Topic | Description | Reference |
|-------|-------------|-----------|
| Configuration | Config file setup and all configuration options | [core-config](references/core-config.md) |
| Rules | Static and dynamic rules for generating CSS utilities | [core-rules](references/core-rules.md) |
| Shortcuts | Combine multiple rules into single shorthands | [core-shortcuts](references/core-shortcuts.md) |
| Theme | Theming system for colors, breakpoints, and design tokens | [core-theme](references/core-theme.md) |
| Variants | Apply variations like hover:, dark:, responsive to rules | [core-variants](references/core-variants.md) |
| Extracting | How UnoCSS extracts utilities from source code | [core-extracting](references/core-extracting.md) |
| Safelist & Blocklist | Force include or exclude specific utilities | [core-safelist](references/core-safelist.md) |
| Layers & Preflights | CSS layer ordering and raw CSS injection | [core-layers](references/core-layers.md) |

## Presets

### Main Presets

| Topic | Description | Reference |
|-------|-------------|-----------|
| Preset Wind3 | Tailwind CSS v3 / Windi CSS compatible preset (most common) | [preset-wind3](references/preset-wind3.md) |
| Preset Wind4 | Tailwind CSS v4 compatible preset with modern CSS features | [preset-wind4](references/preset-wind4.md) |
| Preset Mini | Minimal preset with essential utilities for custom builds | [preset-mini](references/preset-mini.md) |

### Feature Presets

| Topic | Description | Reference |
|-------|-------------|-----------|
| Preset Icons | Pure CSS icons using Iconify with any icon set | [preset-icons](references/preset-icons.md) |
| Preset Attributify | Group utilities in HTML attributes instead of class | [preset-attributify](references/preset-attributify.md) |
| Preset Typography | Prose classes for typographic defaults | [preset-typography](references/preset-typography.md) |
| Preset Web Fonts | Easy Google Fonts and other web fonts integration | [preset-web-fonts](references/preset-web-fonts.md) |
| Preset Tagify | Use utilities as HTML tag names | [preset-tagify](references/preset-tagify.md) |
| Preset Rem to Px | Convert rem units to px for utilities | [preset-rem-to-px](references/preset-rem-to-px.md) |

## Transformers

| Topic | Description | Reference |
|-------|-------------|-----------|
| Variant Group | Shorthand for grouping utilities with common prefixes | [transformer-variant-group](references/transformer-variant-group.md) |
| Directives | CSS directives: @apply, @screen, theme(), icon() | [transformer-directives](references/transformer-directives.md) |
| Compile Class | Compile multiple classes into one hashed class | [transformer-compile-class](references/transformer-compile-class.md) |
| Attributify JSX | Support valueless attributify in JSX/TSX | [transformer-attributify-jsx](references/transformer-attributify-jsx.md) |

## Integrations

| Topic | Description | Reference |
|-------|-------------|-----------|
| Vite Integration | Setting up UnoCSS with Vite and framework-specific tips | [integrations-vite](references/integrations-vite.md) |
| Nuxt Integration | UnoCSS module for Nuxt applications | [integrations-nuxt](references/integrations-nuxt.md) |

すべてのファイル

0件のファイル

unocssをインストール

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

ZIPをダウンロード

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

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

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

関連スキル

github-code-search
更新された時間 2026年6月29日
drizzle-orm
更新された時間 2026年6月29日
clickhouse-io
更新された時間 2026年6月29日
prisma-client-api
更新された時間 2026年6月29日
OR