Skip to content
Agentmart
Submit a tool

antfu-design

Use when building or restyling devtools-style Vue 3 UIs with @antfu/design — wiring the composable UnoCSS preset, using the semantic token vocabulary…

Skill by antfu

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying antfu-design?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/liangmiqwq-antfu-design

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when building or restyling devtools-style Vue 3 UIs with @antfu/design — wiring the composable UnoCSS preset, using the semantic token vocabulary (bg-base, color-base, badge-color-*, color-scale-*), choosing prefixed primitives (DisplayBadge, ActionButton, DisplayFilePath, OverlayModal, …), and keeping light/dark contrast and the "anti-slop" rules. Reach for it whenever generating or reviewing UI in a project that depends on @antfu/design.

Use cases: design, frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/antfu-design

What's inside

Skill name
antfu-design
Description
Use when building or restyling devtools-style Vue 3 UIs with @antfu/design — wiring the composable UnoCSS preset, using the semantic token vocabulary (bg-base, color-base, badge-color-*, color-scale-*), choosing prefixed primitives (DisplayBadge, ActionButton, DisplayFilePath, OverlayModal, …), and keeping light/dark contrast and the "anti-slop" rules. Reach for it whenever generating or reviewing UI in a project that depends on @antfu/design.
License
MIT
Metadata
author: antfu · version: 2026.06.26
Instructions
78 lines in SKILL.md · view on GitHub

Files (9)

  • SKILL.md
  • advanced-patterns.md · references/
  • best-practices.md · references/
  • core-components.md · references/
  • core-setup.md · references/
  • core-tokens.md · references/
  • features-data-presentation.md · references/
  • recipes.md · references/
  • storybook.md · references/

SKILL.md (first lines)

# Doing good design with `@antfu/design`

`@antfu/design` is a shared design layer for devtools-style Vue apps: a
**composable UnoCSS preset** (`presetAnthonyDesign`), a set of **token-driven Vue
primitives**, and a **color-contrast a11y check**. This skill is how to use it
*well* — the vocabulary, the defaults, and the taste.

## The three rules that matter most

1. **Own the tokens, not the colors.** Never hard-code a hex or a raw Tailwind
   color in app UI. Reach for the semantic layer first: `bg-base`, `color-base`,
   `color-muted`, `border-base`, `op-fade`, `btn-action`, `badge`. They are
   defined once (in the preset) and adapt to light/dark automatically. See
   [references/core-tokens.md](references/core-tokens.md).

2. **Light/dark parity is not optional.** Every surface and text token has a dark
   variant baked in. If you write a one-off color, you have just created a
   dark-mode bug. The standing contrast scan (`@antfu/design/a11y`) will catch the
   worst of it — don't rely on it as a substitute for using the tokens.

3. **No slop.** Technical values are `font-mono tabular-nums`. No em-dash–laden
   prose in UI copy (the **dash ban**). Prefer one obvious affordance over three
   competing ones. See [references/best-practices.md](references/best-practices.md).

4. **Reuse before you build.** When making UI or using components, always check
   if components from `@antfu/design` can be reused, before making new components
   or creating inline DOM elements. Skim the catalog first
   ([references/core-components.md](references/core-components.md)).

## Persist the reuse rule to AGENTS.md

Make rule 4 stick for future agents in the consuming project: if the project's
`AGENTS.md` does not already say so, append this instruction to it:

```md
When making UI or using components, always check if components from
`@antfu/design` can be reused, before making new components or creating
inline DOM elements.
```

## When to reach for what

- Showing a count, size, duration, or date → a **display component**
  (`DisplayNumber`, `DisplayBytes`, `DisplayDuration`, `DisplayDate`), not raw text.
- A status, type, or tag → `DisplayBadge` (hash- or palette-colored) or `DisplayLabel`.
- A file/module path → `DisplayFilePath` (truncates, dims directories, links).
- An overlay → `OverlayModal` / `OverlayDrawer` (reka-ui), a popover → `OverlayTooltip` / `OverlayDropdown`.
- A severity (fresh→stale, fast→slow, small→large) → the `color-scale-*` ramp via
  the display components' `colorize` prop, never ad-hoc red/green.

Components are categorized and prefixed by category (`Display*`, `Form*`,
`Overlay*`, `Layout*`, `Action*`, `Feedback*`). Dark mode is the app's to own —
the package ships no `isDark`/`toggleDark` (nor a dark-toggle component); components
that vary by scheme take a `colorScheme: 'light' | 'dark'` prop. For a toggle, compose
`ActionIconButton` with VueUse's `useDark`.

Full catalog: [references/core-components.md](references/core-components.md).

## Setup

It's a **single preset, not self-contained** — it bundles no base preset,
icons, fonts, or reset. You add those. See
[references/core-setup.md](references/core-setup.md) for wiring the preset,
importing styles, and pointing UnoCSS at the package so the components' classes
get generated.

## References

- [core-setup.md](references/core-setup.md) — install + wire the preset, import styles.
- [core-tokens.md](references/core-tokens.md) — the canonical token table (generated from the preset).
- [core-components.md](references/core-components.md) — the component catalog with import paths.
- [recipes.md](references/recipes.md) — small compositions the package doesn't ship (e.g. a dark-mode toggle).
- [best-practices.md](references/best-practices.md) — class-over-attributify, parity, mono values, the dash ban, the "three dials".
- [features-data-presentation.md](references/features-data-presentation.md) — presenting numbers, sizes, durations, paths.
- [advanced-patterns.md](references/advanced-patterns.md) — composition patterns and a redesign protocol.
- [storybook.md](references/storybook.md) — Storybook setup: theme-synced manager+preview, autodocs, a generated Overview.

From liangmiQwQ/skills, MIT.

More from liangmiQwQ/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 1, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
2026.06.26
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get antfu-design running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying antfu-design?

CallGet help
Cite this page

antfu-design skill. Agent Mart. https://agentmart.dev/skills/liangmiqwq-antfu-design (last updated 2026-10-24)