frontend-design

Installation
SKILL.md

Frontend Design — Technical Spacing & Color Science


Mandatory Pre-Flight Context Inspection

Before implementing front-end designs or CSS layout systems, you MUST inspect:

  1. Relative Color Syntax (Section 16) → Derive hover/active states dynamically with oklch(from var(--color-primary) calc(l - 0.08) c h)
  2. Nested Radius Math (Section 54) → Enforce outer_radius = inner_radius + padding_inner for nested card containers
  3. APCA Contrast Thresholds (Section 81) → Ensure Lc > 75 for body text, Lc > 60 for headings, and Lc > 45 for borders and labels

This skill guides the implementation of responsive layout systems, color science, and spatial tokens.

Activation Boundaries

  • Activate when: Operating in tasks requiring Design engineering principles for React/Next.js. Relative color syntax (OKLCH), spatial grid math, fluid container queries, and contrast validation..
  • DO NOT activate when: The task falls strictly outside frontend-design domain or belongs to a different dedicated specialist.
Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026