Use this skill when the user wants to optimize and minify CSS for production — reduce file size, merge rules, drop duplicates, and compress colors via PostCSS.
58 stars
0 votes
0 copies
2 views
Added September 6, 2026
toolsbash
Security analysis
A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Quickstart?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/javimosch-quickstart-cdc0ec84)
---
name: cssnano
description: Use this skill when the user wants to optimize and minify CSS for production — reduce file size, merge rules, drop duplicates, and compress colors via PostCSS.
---
# cssnano Plugin
cssnano minifies and optimizes CSS using PostCSS plugins. Reduces file size by removing whitespace, merging rules, and normalizing values.
## Commands
- `cssnano _ _ <args>` — Passthrough
## Usage Examples
- "minify styles.css to styles.min.css"
- "optimize all CSS files in a directory"
- "preview optimization results without writing"
- "merge multiple CSS files and optimize"
## Installation
```bash
npm install -g cssnano
```
## Key Features
- Whitespace and comment removal
- Rule merging and consolidation
- Duplicate selector elimination
- Color compression and normalization
- Value optimization (z-index, calc, etc.)
- Font-face and keyframe deduplication
- PostCSS plugin ecosystem support
- Configurable optimization presets