What problem does it solve?
This Skill helps you derive accurate CSS clamp() values that scale linearly between two viewport widths, avoiding trial-and-error when converting design intent into responsive sizing.
Core Features & Use Cases
- Linear 2-point clamp math: Calculates the slope and intercept needed to match exact min/max sizes at specified minVW and maxVW.
- Worked examples for design tokens: Produces ready-to-paste clamp() expressions (e.g., 500 → 1200 viewport mapping) for spacing or font sizing.
- Programmatic utility generation: Converts input numbers into a correct TypeScript function output string for consistent token generation across a codebase.
- Use case: Create responsive size tokens (font sizes, spacing) that hit exact values at mobile and desktop breakpoints for design system consistency.
Quick Start
Ask the AI to generate a clamp() expression for your chosen min/max viewport widths and minimum/maximum sizes so you can paste the result into CSS immediately.