본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)6.0k · #14444

unocss

하는 일

이 스킬은 클래스 이름에 직접 스타일을 쓰는 빠른 방법인 UnoCSS로 웹사이트를 꾸미는 방법을 설명합니다. Tailwind를 아는 개발자나 더 유연한 대안을 찾는 개발자를 위한 것입니다.

사용하는 경우

  • ✓웹 프로젝트에 UnoCSS를 설정하거나 설정 파일을 바꿀 때.
  • ✓자주 쓰는 클래스 조합을 위해 사용자 지정 스타일 규칙이나 숏컷을 추가하고 싶을 때.
  • ✓테마 색상, 브레이크포인트, hover나 다크 모드 변형을 쓰고 싶을 때.

스킬 링크

https://github.com/antfu/skills/blob/main/skills/unocss/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/antfu/skills/blob/main/skills/unocss/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 프로젝트에 UnoCSS를 설정하고, 표준 버튼 스타일을 위한 숏컷을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 프로젝트의 UnoCSS 설정을 확인합니다. 그다음 이미 있는 프리셋, 숏컷, 테마를 사용해 유틸리티 클래스로 스타일을 작성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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
자주 묻는 질문

UnoCSS는 Tailwind와 같은가요?

아니요, 하지만 비슷합니다. Tailwind의 상위집합으로 설명되어 있어서 대부분의 Tailwind 클래스 이름이 그대로 작동합니다.

프로젝트 설정이 불분명하면 어떻게 하나요?

설정이 분명해질 때까지 단순한 클래스 이름을 쓰고 고급 기능은 피합니다.

프리셋이란 무엇인가요?

프리셋은 Tailwind 스타일 클래스를 위한 Wind나 아이콘 클래스를 위한 Icons처럼, 미리 만들어진 스타일 유틸리티 묶음입니다.

상세 정보

작성자의 원본 설명

UnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Icons, Attributify.

repo: antfu/skills

인기도

GitHub 스타
6.0k
순위
#14444
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬