unocss

Configure UnoCSS atomic CSS with presets, shortcuts, and attributify mode.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/newkub/skills --skill unocss-newkub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unocss
Source: https://github.com/newkub/skills/tree/main/lib-unocss
Command: npx skills add https://github.com/newkub/skills --skill unocss-newkub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on developing with UnoCSS, ensuring efficient and consistent implementation across projects.

Core Features & Use Cases

  • Setup & Configuration: Guides through installation and configuration of UnoCSS.
  • Usage & Best Practices: Demonstrates how to effectively use UnoCSS classes, attributify mode, and shortcuts, along with best practices for maintainability and performance.
  • Use Case: Integrate UnoCSS into a new frontend project or refactor an existing one to leverage its powerful utility-first styling capabilities.

Quick Start

Follow the setup guide to install UnoCSS and its essential presets in your project.

Frequently Asked Questions about unocss

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is UnoCSS and how does atomic CSS styling work?

UnoCSS is a high-performance, configurable atomic CSS engine that generates styling on-demand. Atomic CSS works by creating single-purpose utility classes, allowing developers to style elements directly in markup without writing custom CSS files.

How do I configure UnoCSS with Vite or Webpack?

You can configure UnoCSS by installing the engine and its essential presets, then integrating the corresponding plugin into your build tool. This Skill provides setup guides for both Vite and Webpack to enable on-demand atomic CSS generation.

Can I use UnoCSS attributify mode for attribute-based styling?

Yes, UnoCSS supports attributify mode for attribute-based styling. This feature allows you to apply utility classes directly as HTML attributes, improving markup readability while maintaining the same atomic CSS output.

How do I create custom shortcuts and theme configurations in UnoCSS?

UnoCSS allows theme customization and the creation of custom shortcuts to group multiple utilities into single classes. These advanced features help enforce consistent design tokens and simplify complex styling patterns across your project.

What are the best practices for organizing UnoCSS in a frontend project?

Best practices for UnoCSS involve leveraging presets for modularity, utilizing shortcuts for reusable component patterns, and configuring the engine for optimal performance to maintain a clean and efficient frontend styling architecture.

Does UnoCSS work as a framework-agnostic CSS engine?

Yes, UnoCSS is a framework-agnostic atomic CSS engine. It can be integrated into various frontend environments and build tools, providing flexible utility-first styling capabilities without locking you into a specific framework.