@antfu/design: a Vue design system guide for agents
antfu/design
A design guide for your AI assistant that comes with a ready Vue component kit. It is for screens of developer tools built in Vue. Your assistant uses the kit's named colours, its ready parts for badges, buttons, file paths and dialogs, and a few strict taste rules. The aim is a calm, dense look that works in light and dark.
Pack description by its author: “A design guide for your AI assistant that comes with a ready Vue component kit. It is for screens of developer tools built in Vue. Your assistant uses the kit's named colours, its ready parts for badges, buttons, file paths and dialogs, and a few strict taste rules. The aim is a calm, dense look that works in light and dark.”
Design and frontendKnowledge and rules for your assistant
1. Changes your files
Skills that write or edit files: antfu-design.
github.com/antfu/design/blob/2df66b0/2. Runs code on your machine
Install: One SKILL.md and eight reference markdown files. No hooks, no scripts in the skill folder. Installing the cloned repository (contributors only): The root prepare script points git hooks at .githooks, sets up a pre-commit hook that runs the linter with fixes, and runs skills-npm.
github.com/antfu/design/blob/2df66b0/3. Sends data
github.com/antfu/design/blob/2df66b0/Checked against the pack's files at commit 2df66b0, on Nov 22, 2026. Tap a verdict to see its source.How we checkedReport an error
Good for you if
- You build developer tool screens (dashboards, inspectors, panels) in Vue 3
- Your project uses, or will use, the @antfu/design kit and UnoCSS
- You want your assistant to reuse ready parts instead of inventing new buttons and colours each time
Probably not for you if
- Your app is in React, Svelte or plain HTML: the guide is about this Vue kit
- You want a marketing or landing page look: the kit is made for devtools style screens
What you'll notice
- Named colours instead of raw ones: bg-base, color-muted, border-base, the same in light and dark
- Ready parts first: numbers, sizes, dates and paths shown with the kit's display parts
- Numbers and paths in a monospace font with aligned digits
- Short labels with no long dashes in the text (the author calls it the dash ban)
What you need
- Any assistant that reads skill folders
- Free, MIT license
- Add the @antfu/design package to your project, then share its skill with skills-npm
- The guide only pays off in a Vue 3 project that uses the @antfu/design package with UnoCSS
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- Repository
- A project folder on GitHub with its files and history.
| Repository | antfu/design |
|---|---|
| GitHub stars | 89 |
| Skills | 1 |
| Category | Design and frontend |
| License | MIT |
| Last updated | Nov 18, 2026 · card checked Nov 22, 2026 at commit 2df66b0 |
| Install counts | antfu/design on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
antfu/design popularity over time
What @antfu/design does
- Own the tokens, not the colors: use the named colour and surface classes, never a raw hex value
- Light and dark parity: every surface and text token has a dark version, so one-off colours count as dark mode bugs
- No slop: technical values in mono with aligned digits, no em dash prose, one obvious action per screen
- Reuse before you build: check the kit's catalog of parts before making a new one
- Redesign protocol for old screens: map colours to tokens, swap raw elements for kit parts, run the contrast scan, tune density, hierarchy and affordance
From the pack's SKILL.md files, summarised by AgentGid.
The skill, explained
antfu-design
Guides your assistant to build or restyle Vue devtools screens with the kit's tokens and parts
You give
- A Vue 3 project with @antfu/design and UnoCSS
- The screen to build or the existing screen to restyle
- Your primary colour, if not the default green
You get
- Screens made of the kit's parts (Display, Form, Overlay, Layout, Action, Feedback)
- Colours through named tokens that work in light and dark
- A setup for the UnoCSS preset, styles and named z-index layers
- A line added to your project's AGENTS.md about reusing kit parts
- For restyles: a step by step move onto the kit with a contrast scan
Its rules, in pictures
The page it plans
Fonts it uses
Default primary green and the dark background in the setup example
Each visual acts out what it does
| In your design | The story it plays |
|---|---|
| A count, size, duration or date | Shown with a display part, in mono with aligned digits |
| Fresh to stale, fast to slow, small to large | One five step colour ramp: neutral, low, medium, high, critical |
| A file or module path | Truncated, folders dimmed, full path on hover |
| A nested card or input | A see-through raised surface, so layers stay visible inside glass panels |
Drawn by AgentGid from the values in the skill's files. This is not output of the skill; sample text is ours.
See it in action
The skill defines what its answer looks like. Its own example:
Compose `ActionIconButton` with VueUse's `useDark`/`useToggle`:
When to reach for it
| You want | Use |
|---|---|
| Show a count, size, duration or date | DisplayNumber, DisplayBytes, DisplayDuration, DisplayDate |
| A status, type or tag | DisplayBadge or DisplayLabel |
| A file or module path | DisplayFilePath |
| A dialog or side panel | OverlayModal or OverlayDrawer |
| Move an old screen onto the kit | The redesign protocol in references/advanced-patterns.md |
Skills in antfu/design
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| antfu-design | Guides your assistant to build or restyle Vue devtools screens with the kit's tokens and parts | Yes | 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, …),…npx skills add antfu/design --skill antfu-design |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- It edits a file outside the screen you asked about: the skill tells your assistant to add a reuse rule to your project's AGENTS.md if it is not there yet.
- It is tied to one kit: the guide assumes the @antfu/design package is in your project.
- The kit is not self-contained: you add the base UnoCSS preset, icons, fonts and a style reset yourself.
- Dark mode is yours to wire: the kit ships no dark mode switch; the guide shows how to build one with VueUse.
- The author calls the whole thing an experiment in steering agents toward one person's design taste.
Before you start
Works in
- Any assistant that reads skill folders: skills folder via skills-npm
- Any assistant that reads skill folders: skills folder via the skills CLI
You will need
- Vue 3: The kit's parts are Vue components
- UnoCSS with a base preset and transformer-directives: The design layer is a UnoCSS preset that is not self-contained
- Playwright and @axe-core/playwright (optional): Only for the contrast scan
Mistakes to avoid
Install the skill in a React or plain HTML project
Use it in a Vue 3 project that depends on @antfu/design
Every rule refers to this kit's tokens and Vue partsAdd only presetAnthonyDesign to uno.config.ts
Also add a base preset (presetWind4, presetWind3 or presetMini) and the directives transformer
Without a base preset the shortcuts have nothing to expand into, and without the transformer overlay styles are droppedWrite plain z-50 on an overlay
Define named layers (z-nav, z-dropdown, z-modal-content …) in your own UnoCSS shortcuts
The preset blocks plain z-index and ships no z-index valuesUse bg-base on a card nested in a glass panel
Use bg-raised or bg-sunken for nested layers; bg-base only for things that must hide what is behind
The opaque surfaces punch a solid rectangle through a translucent parent
Which one to pick
| If you need | Pick |
|---|---|
| You build Vue devtools screens on the @antfu/design kit and want the agent to reuse its parts and tokens | This pack |
| You want design vocabulary and review commands for any interface, not tied to one component kit | pbakaus/impeccable |
| You want art direction and taste rules for any stack, checked in a browser | Leonxlnx/taste-skill |
| You only want rules that filter out generic AI looking UI and text | miqdadbadjuber/anti-slop |
Works well with
- unocss: The kit is a UnoCSS preset; the skill wires it into uno.config.ts
- vueuse-core: The skill's dark mode recipe uses VueUse's useDark and useToggle
- storybook: references/storybook.md documents the kit's parts in Storybook with a theme synced toggle
- axe-core-playwright: The contrast scan in the redesign protocol runs axe-core through Playwright
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT |
| Work for clients | Yes | MIT |
| Passing the files on | With conditions | MIT: keep the copyright and permission notice in copies |
| Shipped inside your app | Yes | MIT: keep the notice |
What leaves your machine
- The page at the URL you scan → A local headless Playwright browser (the URL you pass), Only when the contrast scan is run during the redesign protocol. Opt out: Skip the scan
- Icon names requested by your app's users → api.iconify.design, Only if your app uses DisplayIconifyRemoteIcon. Opt out: Use UnoCSS icon classes from an installed icon set instead
Install @antfu/design
Official commands from the repository
pnpm add @antfu/design unocss
Then share the package's bundled skill with your assistant through skills-npm (see that tool's own docs). The published package ships the skills folder.
Remove: remove the @antfu/design package and the shared skill folder
The repository's skills folder is the source the skills CLI reads; copy skills/antfu-design into your assistant's skills folder.
Or with the open-source skills CLI: npx skills add antfu/design. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 2df66b0, Nov 22, 2026
| When | What happens |
|---|---|
| Install | One SKILL.md and eight reference markdown files. No hooks, no scripts in the skill folder. |
| Installing the cloned repository (contributors only) | The root prepare script points git hooks at .githooks, sets up a pre-commit hook that runs the linter with fixes, and runs skills-npm. |
| Setup | The guide tells your assistant to add the package from the npm registry and wire it into uno.config.ts. |
| First use in a project | Your assistant appends a reuse rule to the project's AGENTS.md if it is missing. |
| Redesign protocol | A contrast scan opens a URL you give in a headless Playwright browser, in light and dark, and prints violations. |
| Your app shows DisplayIconifyRemoteIcon | That one component fetches icon SVGs from api.iconify.design at run time. |
Settings
primary: Primary colour, a string or a full colour scale (default antfu green)darkBackground: Near black for dark surfacesblocklists.plainZIndex: Set to false to allow plain z-index utilities
Quick answers
- Does it work without the @antfu/design package?
- Only as reading material. The guide is about this kit's tokens and parts and expects the package in your project.
- Does it work with React?
- No. The kit and the guide are for Vue 3 devtools style apps.
- Will it change my brand colour?
- No. The primary colour is a setting; the default is a green, and you pass your own.
- Does it pick my fonts?
- No. The preset has no font option; the repository's own apps use DM Sans and DM Mono through UnoCSS web fonts.
- Can I use it in a paid product?
- Yes. MIT license; keep the copyright notice in copies.
Checked by AgentGid on Nov 22, 2026 against commit 2df66b0 of the pack's own files. Related: antfu/skills-npm. agent.md for AI agents · Report a mistake
More design and frontend skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a local design library: UI styles, colour palettes, font pairings and UX rules for many product types. Before it builds a page, it looks up a matching style, colours and fonts and follows a checklist. Extra skills make logos, banners, slides and brand files; logos, mockups and icons need your own key for an outside image service. |
153K | +13.9K | 7 | ||
| 2 |
Stops building the average landing page. It picks one of 20 researched design directions, finds real, credited pictures in open archives, then checks the page in a real browser and fixes what looks wrong. Dashboards and app screens get their own set of rules. |
120K | +18.7K | 1 | ||
| 3 |
Turns a description, a Mermaid sketch or your project's code into an interactive diagram saved as one HTML file. It can also answer a question as a one-page explainer, with the conclusion first. The pack's own tools check every file before handing it to you. |
98.7K | +12.7K | 5 | ||
| 4 |
Draws clean, editorial diagrams in your brand colours and fonts. You describe the diagram in plain words and get one HTML file you open with a double click. It can also redraw old draw.io, Mermaid or Excalidraw diagrams and export them as SVG or PNG. |
70K | +11.4K | 1 | ||
| 5 |
Builds web pages that look designed, not machine-made. It asks once for your real material and picks one of fifty visual themes. Then it builds the page and checks it against common AI design habits. Name it and it will also redesign or review a page you already have. |
59.2K | +25.2K | 1 | ||
| 6 |
alchaincyf/huashu-design
Checked
One large design playbook for your AI assistant, written in Chinese. It makes clickable app prototypes, web pages, slide decks, infographics and short animated videos as HTML, then exports them to PDF, PowerPoint, MP4 or GIF. Before any new design it shows you three real drafts to choose from and stops until you pick one. |
30.3K | +4,613 | 1 |
No pack matches.