Skip to content
Back to skills

Simple Design

ASecurity

Set up, follow, or refresh a project's visual design system (a DESIGN.md plus code tokens) and apply UI craft rules when building or restyling screens. Use when the user asks for a design direction, a DESIGN.md, a new screen's look, a restyle, a theme, or "make it look better".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 2, 2026
ai-agentsgonodegit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add denniemok/simple-skills --skill simple-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simple Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Simple Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/denniemok-simple-design/badge)](https://www.skillsdirectory.com/skills/denniemok-simple-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: simple-design
description: Set up, follow, or refresh a project's visual design system (a DESIGN.md plus code tokens) and apply UI craft rules when building or restyling screens. Use when the user asks for a design direction, a DESIGN.md, a new screen's look, a restyle, a theme, or "make it look better".
metadata:
  author: denniemok
  version: "1.2.0"
license: MIT
---

# Simple Design

Give every screen one consistent, deliberate look, written down once so people and agents build from the same rules. Research first, decide tokens second, build third, check last.

## Scope

Work on what the user points at: the whole design system, one screen, or one component. Small edits inside an existing system skip straight to step 4.

## 1. Find the source of truth

Look before deciding anything:

- `DESIGN.md` (repo root or `docs/`), design or UI specs, brand guides.
- Token files: CSS custom properties, Tailwind theme, a theme object, design-token JSON.
- Shared components and an existing screen that already looks right.

Code tokens win over documents. If a DESIGN.md disagrees with the code, fix the DESIGN.md (or ask, if the code looks wrong). If there is no DESIGN.md, offer to write one from what the code already does (step 5).

## 2. Brief

Write a short brief, and ask only about gaps that would change the result:

- Product, platform, and the main screens.
- Users: age, skill, how long they stay, devices and screen sizes, languages (CJK needs its own font stack).
- Density: airy (consumer, occasional use), calm (all-day office tools, older or non-technical users), or compact (power users, developers).
- Brand: existing colours, fonts, logo; the tone in a few words.

## 3. References

Study 3 to 5 real products that solve the same problem before designing: their own sites, galleries such as Refero (refero.design, styles.refero.design for ready DESIGN.md examples) or Mobbin, or a design MCP if one is connected. Then:

- Pick one primary direction for mood, density and structure, and borrow at most one or two details from the others. Don't copy one product, and don't average several into a bland middle.
- Write a two-line "reference lock": the direction, and what is borrowed from where. Every big decision should trace back to the brief, a reference or a craft rule below.

## 4. Tokens first

Decide or reuse tokens before touching screens, and put any new value in the code token file first:

- **Colour roles:** text (ink, body, soft), surfaces (page, panel, band, input), lines, one accent, status set (success, warning, danger, info), plus any special ramps (stages, tags, people). Each colour has one role and is never reused for another.
- **Type scale:** families with fallbacks, and 6 to 9 named steps with size, weight and line height.
- **Spacing, radius, elevation, motion:** a small scale for each.

## 5. DESIGN.md

Follow the Google DESIGN.md format (alpha, github.com/google-labs-code/design.md), which most tools and galleries now read:

- YAML front matter with the tokens: `name`, `colors` (must include `primary`), `typography`, `rounded`, `spacing`, `components` (values may reference tokens, such as `{colors.primary}`).
- Then `##` sections in this order, leaving out what doesn't apply: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts. Extra sections (Responsive, Agent prompt guide) may follow.
- Overview names a north star and the 3 to 5 traits that decide unclear cases. Colors is a table of role, token, hex and use. Typography is a table of step, size and weight, class and use. Do's and Don'ts are short and concrete.
- State at the top that code tokens are the source of truth and where they live, and point to any fuller spec for the reasons.
- Keep it short (about 150 to 250 lines). It is a summary to build from, not the spec.

If Node is available and the user agrees, `npx @google/design.md lint DESIGN.md` checks structure, broken references and contrast.

## 6. Craft rules for app UI

Defaults to start from; the project's own rules win.

- **Colour:** 6 to 9 neutral steps, tinted slightly towards the brand rather than pure grey. One saturated accent on under about 10% of a screen, for the primary action, selection, focus and links. Status colours as a soft tint with dark text, always with a word. Off-white panels on a slightly deeper page rather than large pure-white areas. Text contrast at least 4.5:1. Don't default to indigo or violet.
- **Type:** one UI family (a second only for titles), with a CJK fallback stack where needed (for example Inter, then PingFang TC or Noto Sans TC, then Microsoft JhengHei). Base 14 to 16 px, 15 to 16 px for older users. Real jumps between steps so each screen has one focal point. Weights by role: 700 titles, 600 section titles, names and buttons, 500 labels, 400 body. Tabular figures for numbers. Nothing below 12 px. Line height about 1.5 for body text, 1.3 for titles, a little more for Chinese.
- **Spacing and layout:** 4 px grid with a scale such as 4, 8, 12, 16, 24, 32, 48. One control height per context (32 to 36 px on desktop). Table rows 40 px compact, 44 to 48 px comfortable, more for two-line rows. Lists use the full width; forms use a grid of equal columns, with fields sized by content.
- **Shape and depth:** small radius for work tools (4 to 8 px); pills only if the brand calls for them. Borders carry structure; shadows only for floating layers (menus, dialogs, drawers, drag).
- **Components:** define every state, not just the resting one: hover, focus, active, selected, disabled (with a reason), loading, error and empty. One primary button per area, then secondary, then quiet. One chip system: neutral facts as outline or plain text, states as meaning-colour tints, a small fixed size. Choices: a short flat list is a plain select; grouped options show group headings in the list and "Group · Value" once picked; a long or multi-group list is a searchable picker with a group switch. Pick one control per kind of value and reuse it.
- **Behaviour:** one job per screen. Show the next decision and put the rest one click away, so daily actions are visible and rare ones sit in a menu. Lists show about 6 columns by default, with the rest in a column chooser. Screens that are alike offer the same actions, filters, words and order. One word means one thing everywhere, and internal names (ids, code names, "draft") never reach the screen. An icon keeps its word unless the row truly has no room. Cheap actions happen at once, with Undo where it helps. Confirm only what cannot be undone.
- **Motion:** 120 to 250 ms ease-out, only to show cause and effect. With reduced motion on, tone down large movement but keep spinners and progress moving.
- **Not generic, not bare:** no decorative gradients, glassmorphism, sparkle icons, cards in cards or filler copy. But no wall of same-size text either: give every screen a focal point, a visible hierarchy and at least one deliberate, memorable detail that fits the brand.

## 7. Build and check

- Build with the tokens and shared components only. A value that isn't a token is a finding, not a shortcut.
- One component per thing: before building, search for the one that already shows this thing (a person, a status, a date, a menu) and use it. If it doesn't fit, change it for everyone. A shared component owns its own box, fill and padding, so it looks the same in every place.
- When a screen looks raw, name why (hierarchy, spacing, alignment, density, colour), find the shared component or token that causes it, and fix it there. Show before and after screenshots.
- Render at the target sizes (for example 1366 × 768 and 1920 × 1080, plus phone if used) in the default theme, and compare against the DESIGN.md and the reference lock. Fix any drift.

## Rules

- One source of truth for values; keep the DESIGN.md in step with the code in the same change.
- Change the system on purpose, not screen by screen: a new rule goes into tokens and the DESIGN.md, then into the screens.
- Write files in the project's language and conventions.

## Output

- What was created or changed: DESIGN.md, token file, components, screens.
- The reference lock and a short list of decisions, each with its reason (brief, reference or craft rule).
- What was not checked, such as dark mode or a screen size.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.