unocss

antfu/skills · Agent Skill

Guida al motore CSS atomico UnoCSS per regole, abbreviazioni e preset come Wind, Icons e Attributify

Vai all'installazione ↓

Panoramica

AutoreantfuCommunity
Repositoryantfu/skills ↗
Cartella dello skillunocss
Stelle6011
Fork338
File inclusi26
LicenzaMIT
Aggiornato23 ottobre 2026
LinkSorgente dello skill ↗ · Repository ↗

Verifica Mozgi

Cosa abbiamo trovato nei file dello skill. I dettagli con l’abbonamento.

Sicurezza
rischio basso · nessun rischio evidente — il report completo mostra i dettagli
Compatibilità
solo istruzioni — funziona con la maggior parte degli agenti
Skill simili
139 skill simili trovati
Inoltre con l’abbonamento

Installazione

Uno skill è una cartella con un file SKILL.md. Scegli il tuo agente ed esegui i comandi in un terminale (macOS, Linux o Git Bash su Windows) dalla radice del progetto.

Incolla il prompt in Claude, Codex o un altro assistente: controllerà lo skill e lo installerà.

Install the “unocss” skill from mozgi.io (https://mozgi.io/skills/antfu-unocss/) for me.

1. Download the archive: https://mozgi.io/skills/antfu-unocss/download
   If it fails, take the skill folder from the source: https://github.com/antfu/skills/tree/main/skills/unocss
2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me.
3. Put the “unocss” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.).
4. Make sure <skills folder>/unocss/SKILL.md exists.
5. Briefly tell me what this skill does and offer to try it on my task.

If you cannot do a step yourself, tell me what to click or type.

File dello skill

26 file Scarica ZIP

Leggi SKILL.md e i file correlati prima di installare. Clicca un file per l'anteprima.

Contenuto di SKILL.md

Testo originale dell'autore · sola lettura

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 v66.10.5, generated at 2026-09-25.

Core

| Topic | Description | Reference |

|-------|-------------|-----------|

| Configuration | Config file setup and all configuration options | core-config ↗ |

| Rules | Static and dynamic rules for generating CSS utilities | core-rules ↗ |

| Shortcuts | Combine multiple rules into single shorthands | core-shortcuts ↗ |

| Theme | Theming system for colors, breakpoints, and design tokens | core-theme ↗ |

| Variants | Apply variations like hover:, dark:, responsive to rules | core-variants ↗ |

| Extracting | How UnoCSS extracts utilities from source code | core-extracting ↗ |

| Safelist & Blocklist | Force include or exclude specific utilities | core-safelist ↗ |

| Layers & Preflights | CSS layer ordering and raw CSS injection | core-layers ↗ |

| Processors | Transform generated CSS layers (incl. Lightning CSS) | core-processors ↗ |

Presets

Main Presets

| Topic | Description | Reference |

|-------|-------------|-----------|

| Preset Wind3 | Tailwind CSS v3 / Windi CSS compatible preset (most common) | preset-wind3 ↗ |

| Preset Wind4 | Tailwind CSS v4 compatible preset with modern CSS features | preset-wind4 ↗ |

| Preset Mini | Minimal preset with essential utilities for custom builds | preset-mini ↗ |

Feature Presets

| Topic | Description | Reference |

|-------|-------------|-----------|

| Preset Icons | Pure CSS icons using Iconify with any icon set | preset-icons ↗ |

| Preset Attributify | Group utilities in HTML attributes instead of class | preset-attributify ↗ |

| Preset Typography | Prose classes for typographic defaults | preset-typography ↗ |

| Preset Web Fonts | Easy Google Fonts and other web fonts integration | preset-web-fonts ↗ |

| Preset Tagify | Use utilities as HTML tag names | preset-tagify ↗ |

| Preset Rem to Px | Convert rem units to px for utilities | preset-rem-to-px ↗ |

Transformers

| Topic | Description | Reference |

|-------|-------------|-----------|

| Variant Group | Shorthand for grouping utilities with common prefixes | transformer-variant-group ↗ |

| Directives | CSS directives: @apply, @screen, theme(), icon() | transformer-directives ↗ |

| Compile Class | Compile multiple classes into one hashed class | transformer-compile-class ↗ |

| Attributify JSX | Support valueless attributify in JSX/TSX | transformer-attributify-jsx ↗ |

Integrations

| Topic | Description | Reference |

|-------|-------------|-----------|

| Vite Integration | Setting up UnoCSS with Vite and framework-specific tips | integrations-vite ↗ |

| Nuxt Integration | UnoCSS module for Nuxt applications | integrations-nuxt ↗ |

Domande frequenti

Che cosa fa lo skill unocss?

Guida al motore CSS atomico UnoCSS per regole, abbreviazioni e preset come Wind, Icons e Attributify

Come si installa unocss?

Apri il blocco “Installazione” in questa pagina e scegli il tuo agente — Claude Code, Codex, Cursor o Gemini CLI — per i comandi pronti che copiano la cartella dello skill nel posto giusto. Oppure copia il prompt dalla scheda “Con l'assistente” e lascia che sia l'assistente a controllare e installare lo skill.

Con quali modelli AI funziona unocss?

Gli skill sono semplici istruzioni in Markdown (formato Agent Skills), quindi unocss funziona con qualsiasi agente che legge SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode e altri. Il modello carica le istruzioni solo quando il compito corrisponde alla descrizione dello skill.

unocss è gratuito?

Lo skill è pubblicato apertamente da antfu con licenza MIT. Lo skill in sé non costa nulla: paghi solo il tuo fornitore AI per i token usati.

È sicuro installare gli skill?

Uno skill è un insieme di istruzioni che il tuo agente seguirà: leggi SKILL.md e i file correlati prima di installarlo. Gli script nella cartella dello skill vengono eseguiti solo se li esegue l'agente: controlla cosa fa e non concedere permessi superflui.

In cosa differisce uno skill da un server MCP o da un plugin?

Un server MCP o un plugin danno al modello nuovi strumenti: codice che viene eseguito e restituisce un risultato. Uno skill fornisce conoscenza e metodo: come affrontare il compito, quali passi seguire e com'è un buon risultato. Non servono server né chiavi API.

Skill correlati

Tutti gli skill →