visual-design-foundations

Create design tokens for typography, color, spacing, and iconography systems.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill visual-design-foundations-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visual-design-foundations
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/visual-design-foundations
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill visual-design-foundations-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building consistent visual interfaces requires coordinated decisions about typography scales, color palettes, spacing systems, and icon sizing, which often results in inconsistent magic numbers, poor contrast, and missing dark mode support. ## Core Features & Use Cases - Design Token Systems: Define modular typography scales, 8-point spacing grids, and semantic color tokens as CSS custom properties or Tailwind configuration. - Accessibility Compliance: Apply WCAG contrast ratio requirements with programmatic contrast checking utilities and accessible color pair generation. - Dark Mode & Theming: Implement theme switching with CSS custom properties, React theme context, and system preference detection. - Use Case: When starting a new React project, use this Skill to generate a complete Tailwind config with font scales, brand colors, and spacing tokens, then build an accessible dark mode toggle. ## Quick Start Ask the AI to generate a Tailwind design token configuration with an accessible color palette and dark mode support 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 typography scale for my website?

Use a modular scale by multiplying a base font size (typically 16px) by a ratio like 1.25 (major third) or 1.333 (perfect fourth) for each step. Define the results as CSS custom properties or Tailwind fontSize entries with paired line heights.

What contrast ratio is required for WCAG accessibility?

WCAG AA requires 4.5:1 for body text, 3:1 for large text (18px+) and UI components, while AAA requires 7:1 for normal text. You can verify ratios programmatically by computing relative luminance from hex colors and comparing foreground against background.

How do I implement dark mode with CSS custom properties?

Define semantic color tokens on :root for the light theme, then override them under a [data-theme="dark"] selector. A React theme context can toggle the attribute and respect the prefers-color-scheme media query for system-based switching.

What is the 8-point grid system for spacing?

The 8-point grid defines all spacing values as multiples of 8px (with 4px for fine adjustments), creating consistent vertical rhythm and alignment. It is implemented as a spacing token scale like --space-1 through --space-16 in CSS custom properties.

Why use OKLCH instead of HSL for color palettes?

OKLCH provides perceptual uniformity, meaning equal lightness steps look equally different to the human eye, unlike HSL where perceived brightness varies by hue. This makes generated color scales more consistent across different hues.

How do I prevent layout shift when loading custom fonts?

Use font-display: swap in @font-face rules so fallback text renders immediately, and preload critical woff2 files with a link preload tag. You can also define a fallback font with size-adjust and ascent-override to match the custom font's metrics.