Skip to content
Back to skills

Unocss

ASecurity

The instant on-demand atomic CSS engine

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
documentationbashvuedocumentation

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add belos-street/skill-kit --skill unocss --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unocss?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unocss
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/belos-street-unocss/badge)](https://www.skillsdirectory.com/skills/belos-street-unocss)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unocss
title: UnoCSS
description: The instant on-demand atomic CSS engine
icon: ⚡
tags: [css, atomic-css, unocss, tailwind]
---

UnoCSS - The instant on-demand atomic CSS engine

### Configuration
- Installation and basic setup → See [configuration](reference/configuration.md)
- Custom rules and shortcuts → See [configuration](reference/configuration.md)
- Theme configuration (colors, breakpoints, fonts) → See [configuration](reference/configuration.md)
- Class writing order → See [configuration](reference/configuration.md)

### Presets
- preset-uno, preset-mini, preset-wind → See [presets](reference/presets.md)
- preset-icons for icon system → See [presets](reference/presets.md)
- preset-attributify for attribute syntax → See [presets](reference/presets.md)
- Custom presets → See [presets](reference/presets.md)

### Shortcuts & Transformers
- Creating reusable shortcuts → See [shortcuts-transformers](reference/shortcuts-transformers.md)
- Dynamic shortcuts → See [shortcuts-transformers](reference/shortcuts-transformers.md)
- transformer-directives for @apply → See [shortcuts-transformers](reference/shortcuts-transformers.md)
- transformer-variant-group → See [shortcuts-transformers](reference/shortcuts-transformers.md)

## Quick Start

```bash
pnpm install -D unocss
```

```ts
// uno.config.ts
import { defineConfig, presetUno, presetIcons, presetAttributify } from 'unocss'

export default defineConfig({
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons({
      scale: 1.2,
      cdn: 'https://esm.sh/'
    }),
  ],
})
```

```ts
// main.ts
import 'virtual:uno.css'
import { createApp } from 'vue'
import App from './App.vue'

createApp(App).mount('#app')
```

## Key Features

- **Instant**: No scanning, generate on-demand
- **Flexible**: Fully customizable
- **Powerful**: Built-in presets for common patterns
- **Lightweight**: Only generate what you use
- **Compatible**: Works with any framework

## Common Patterns

### Basic Classes

```html
<div class="flex items-center justify-between p-4 bg-white shadow-md rounded-lg">
  <h1 class="text-2xl font-bold text-gray-800">Hello UnoCSS</h1>
</div>
```

### Responsive Design

```html
<div class="flex flex-col md:flex-row gap-4">
  <div class="w-full md:w-1/2">Left</div>
  <div class="w-full md:w-1/2">Right</div>
</div>
```

### Dark Mode

```html
<div class="bg-white dark:bg-gray-800 text-gray-900 dark:text-white">
  Content
</div>
```

## Best Practices

1. **Use presets**: Start with preset-uno
2. **Use shortcuts**: Create reusable class combinations
3. **Use transformers**: For directives and variant groups
4. **Organize config**: Keep config modular for large projects

## Resources

- [Official Documentation](https://unocss.dev/)
- [Playground](https://unocss.dev/play)
- [Presets](https://unocss.dev/presets)

Files in this skill

  • reference/configuration.md4.2 KB
  • reference/presets.md3.5 KB
  • reference/shortcuts-transformers.md5.3 KB
  • skill.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.