Agent skill

Visual Design Foundations Skill: Type, Color, Spacing

The visual-design-foundations skill gives an AI coding agent a modular type scale, an 8 point spacing grid, semantic colour tokens and icon guidance, with three reference files behind them.

Install
gh skill install wshobson/agents visual-design-foundations
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the visual-design-foundations skill?

The visual-design-foundations skill is a SKILL.md in the ui-design plugin of the wshobson/agents repository. It teaches an AI coding agent typography scales, an 8 point spacing grid, semantic colour tokens and iconography, so generated interfaces share one cohesive and accessible visual system.

A 0.75rem to 3rem type scale opens the SKILL.md of visual-design-foundations, a skill in the wshobson/agents ui-design plugin. Its description covers typography, colour theory, spacing and iconography for cohesive designs.

The intent is to give an agent constraints before it writes CSS. Limited choices keep generated screens consistent, which the skill lists as its first best practice.

The three core systems

  • Typography: a modular scale from xs at 12px to 5xl at 48px, with line heights of 1.1 to 1.3 for headings, 1.5 to 1.7 for body and 1.2 to 1.4 for labels.
  • Spacing: an 8 point grid with steps from 4px up to 64px, written as CSS custom properties.
  • Colour: semantic tokens for brand, success, warning, error and info, plus a gray ramp from 50 to 900.

A Tailwind quick start

The file also shows the same tokens inside a tailwind.config.js, with Inter and JetBrains Mono as the example font families. Treat those as sample values, because the skill is about the structure and not those choices.

Who the visual-design-foundations skill is for

Best for

  • New projects that need a spacing, type and colour baseline before components exist.
  • Cleaning up magic numbers, inconsistent spacing and font overload in an existing stylesheet.
  • Related: typeset and polish.

Not for

  • Deciding what to emphasise on a page. Related: high-end-visual-design.
  • Full token pipelines with theming and Figma sync, which design-system-patterns covers.
  • WCAG audits. The skill says to test contrast but does not run one.

Use it with UiChemy

Foundations decided up front carry through conversion. UiChemy Figma to WordPress converts a finished Figma design into Elementor or Gutenberg pages, and Composer then edits spacing and type visually in the builder. Click Get Started on uichemy.com.