visual-design-foundations

Apply typography, color, spacing, and iconography systems to build cohesive design tokens.

3|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/firstsun-dev/skills --skill visual-design-foundations-firstsun-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: visual-design-foundations
Source: https://github.com/firstsun-dev/skills/tree/main/plugins/frontend-product-design/skills/visual-design-foundations
Command: npx skills add https://github.com/firstsun-dev/skills --skill visual-design-foundations-firstsun-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Inconsistent visual design—arbitrary spacing values, poor color contrast, mismatched fonts, and ad-hoc icon sizing—leads to unpolished interfaces and accessibility failures. This Skill provides structured systems for typography, color, spacing, and iconography so designs stay consistent and WCAG-compliant. ## Core Features & Use Cases - Design Token Systems: Establish modular type scales, 8-point spacing grids, and semantic color tokens as CSS custom properties or Tailwind config. - Accessibility Compliance: Verify WCAG contrast ratios programmatically, plan dark mode theming, and account for color blindness. - Icon Systems: Implement sized SVG icon components, sprite generation, and icon button patterns with proper touch targets. - Use Case: When starting a new React project, use this Skill to generate a complete Tailwind theme with fluid typography, a two-tier semantic color system, and a dark mode strategy before writing any component code. ## Quick Start Ask the agent to create a design token system with a modular type scale, 8-point spacing grid, and accessible color palette for your 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 design token system with CSS custom properties?▼

Define primitive tokens for raw values like colors and spacing, then create semantic tokens that reference them by purpose, such as --color-text-primary or --spacing-md. This two-tier approach lets you retheme by changing primitives without touching component code.

How to check WCAG color contrast ratios programmatically?▼

Compute relative luminance from RGB values using the WCAG formula, then divide the lighter luminance plus 0.05 by the darker plus 0.05. Body text requires 4.5:1 for AA compliance, while large text and UI components need 3:1.

What is the best spacing scale for web design?▼

The 8-point grid is the industry standard, using multiples of 4px or 8px for all margins and padding. Define the scale as CSS custom properties like --space-4 for 16px, then add semantic aliases such as --spacing-stack for consistent component gaps.

How do I implement dark mode with CSS variables?▼

Define theme values as custom properties on :root for light mode, then override them under a [data-theme="dark"] attribute selector. A React theme context can toggle the attribute and respect the prefers-color-scheme media query for system defaults.

Does fluid typography work without media queries?▼

Yes, the CSS clamp() function scales font sizes smoothly between a minimum and maximum based on viewport width, such as clamp(2rem, 5vw + 1rem, 4rem) for headings. This removes the need for breakpoint-specific font size overrides.

What are common mistakes when building a color palette?▼

Common issues include relying on color alone to convey meaning, failing contrast requirements, and using arbitrary hex values instead of a generated scale. Use perceptually uniform scales like OKLCH and test palettes with color blindness simulators.