unocss
antfu/skills
UnoCSSの設定と使用。プリセット、ルール、ショートカット、ViteおよびNuxt用のインテグレーションを備えた即時アトミックCSSエンジン。
...すべて拡張します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 Wind3 | Tailwind 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 Attributify | classではなくHTML属性にユーティリティをグループ化 | preset-attributify |
| Preset Typography | タイポグラフィのデフォルトのためのProseクラス | preset-typography |
| Preset Web Fonts | Google 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 |
| 属性JSX | JSX/TSXでの値なし属性のサポート | transformer-attributify-jsx |
統合
| トピック | 説明 | 参照 |
|---|---|---|
| Vite統合 | Viteおよびフレームワーク固有のヒントとのUnoCSSセットアップ | integrations-vite |
| Nuxt統合 | Nuxtアプリケーション用のUnoCSSモジュール | integrations-nuxt |
---
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
コピー





家
