antfu-design

Generates UnoCSS interfaces using semantic class tokens with dual light and dark themes.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/jeje-it/template-projet --skill antfu-design-jeje-it
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: antfu-design
Source: https://github.com/jeje-it/template-projet/tree/main/.agents/skills/antfu-design
Command: npx skills add https://github.com/jeje-it/template-projet --skill antfu-design-jeje-it

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building interfaces with UnoCSS often produces inconsistent styling, raw utility chains scattered across markup, broken dark mode, and generic AI-looking output. This Skill enforces a semantic token system and design discipline so generated UI code stays consistent, themeable, and free of common AI-slop patterns. ## Core Features & Use Cases - Semantic Token System: Provides copy-paste UnoCSS shortcuts (bg-base, border-base, btn-action, named z-layers) that work in both light and dark mode across React, Vue, Svelte, Solid, and plain HTML. - Design Read and Dials: Guides the agent to declare a design read and set variance, motion, and density dials before choosing a look, with separate baselines for tooling UIs and marketing pages. - Anti-Slop and Polish Rules: Enforces hard bans on em-dashes, generic placeholder content, and AI-purple defaults, plus micro-interaction polish like concentric radius, tabular numbers, and staggered enters. - Use Case: When asked to build a devtools panel or landing page in a Vue 3 + UnoCSS project, the agent applies the starter config, uses semantic shortcuts in markup, and passes a pre-flight checklist before returning code. ## Quick Start Ask the agent to build a settings panel or landing section for your UnoCSS project and it will apply the antfu-design token system and polish rules automatically.

Frequently Asked Questions about antfu-design

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

FAQPage Schema
How do I set up semantic design tokens in UnoCSS?▼

Define shortcuts in uno.config.ts such as bg-base, border-base, color-active, and btn-action, each with light and dark variants. The skill provides a copy-paste starter config with presetWind4, presetIcons, and presetWebFonts using DM Sans and DM Mono.

Should I use Attributify or class utilities in UnoCSS?▼

Use normal class utilities for generated code. Class strings are easier to compose, diff, and refactor across JSX, templates, and markdown. Keep presetAttributify only for compatibility with existing codebases, not for new components.

Does this design system work with frameworks other than Vue?▼

Yes, the token system is framework-agnostic and works in React, Vue, Svelte, Solid, and plain HTML. Shared class combinations can be stored as string constants and reused identically across frameworks.

How do I handle light and dark mode in UnoCSS components?▼

Define every core token with both light and dark behavior, such as bg-white dark:bg-#111 for surfaces. Build neutral primitives first, then layer accent tokens on top, and never design for only one theme.

Why does my AI-generated UI look generic and templated?▼

Common tells include em-dashes, generic names like Jane Doe, fake-perfect numbers, AI-purple gradients, and div-based fake screenshots. The anti-slop rules ban these patterns and require a copy self-audit of every visible string before shipping.

When should I use shadows versus borders for cards?▼

Use border-base hairlines for dense devtools and structural surfaces where flat is correct. Use layered, background-tinted shadows like shadow-card for elevated, floating, or marketing surfaces, and never animate box-shadow on large lists.