---
stable_id: skills/skills-sh-antfu-skills-unocss
type: skills
title: skills-sh-antfu-skills-unocss
summary: >-
  ---

  name: unocss-configuration

  description: Config file setup and all configuration options for UnoCSS

  ---

  # UnoCSS Configuration

  UnoCSS is configured via a dedicated config file in your project root.

  ## Config File

  **Recommended:** Use a dedicated `uno.config.ts` file for best IDE support and
  HMR.

  ```ts

  // uno.config.ts
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/antfu/skills/HEAD/skills/unocss/references/core-config.md
license: ""
upstream_ref: https://skills.sh/antfu/skills/unocss
github_stars: 3597
github_forks: 169
github_is_organization: false
retrieved_at: 2026-06-11T08:32:09.988Z
content_sha256: 35e235ec861299b63b95ba9e16fcab170c231204071dd902a24fa27c81ec431e
---
