visual-design-foundations

Create cohesive design systems using typography scales, color tokens, spacing grids, and iconography.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/scoots31/engineering-playbook --skill visual-design-foundations-scoots31
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visual-design-foundations
Source: https://github.com/scoots31/engineering-playbook/tree/main/references/visual-design-foundations
Command: npx skills add https://github.com/scoots31/engineering-playbook --skill visual-design-foundations-scoots31

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing consistent, accessible interfaces without a defined system leads to inconsistent spacing, poor contrast, and arbitrary values that are hard to maintain. This Skill provides ready-to-use foundations for typography, color, spacing, and iconography so every visual decision follows a coherent system. ## Core Features & Use Cases - Design Token Systems: Pre-built CSS custom properties and Tailwind configuration for modular type scales, 8-point spacing grids, and semantic color palettes. - Accessibility Guidance: WCAG contrast ratio requirements, a programmatic contrast-checking function, and dark mode theming strategies using CSS variables. - Use Case: When starting a new web project, use this Skill to establish a complete set of design tokens in Tailwind, pair fonts correctly, implement fluid responsive typography with clamp(), and verify that all text meets WCAG AA contrast requirements. ## Quick Start Set up a design token system with a typography scale, 8-point spacing grid, and accessible color palette for my new web project.

Frequently Asked Questions about visual-design-foundations

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

FAQPage Schema
How do I create a typography scale for web design?

Use a modular scale with ratio-based sizing, defining CSS custom properties from 0.75rem up to 3rem. Pair sizes with appropriate line heights: 1.1-1.3 for headings and 1.5-1.7 for body text, and use clamp() for fluid responsive sizing.

How to set up design tokens in Tailwind CSS?

Extend the Tailwind theme configuration with custom fontFamily, fontSize with line heights, color palettes, and spacing values. Map semantic token names like brand colors to hex values so utilities stay consistent across the project.

What contrast ratio is required for WCAG accessibility?

WCAG AA requires 4.5:1 for body text, 3:1 for large text of 18px or more, and 3:1 for UI components. The enhanced AAA level requires 7:1. You can verify ratios programmatically by computing relative luminance of foreground and background colors.

How do I implement dark mode with CSS variables?

Define semantic tokens like background, text, and border colors as CSS custom properties on :root, then override them under a [data-theme="dark"] selector. This lets components reference purpose-based tokens that switch values automatically with the theme.

Why does my design look inconsistent across pages?

Inconsistency usually comes from arbitrary magic numbers instead of a defined spacing scale, too many font families or weights, and missing semantic tokens. Adopt an 8-point spacing grid, limit fonts to 2-3 weights, and name tokens by purpose rather than appearance.