css-clamp-calculation
CommunityDerive responsive clamp scales in minutes
Authortnunamak
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: css-clamp-calculation Download link: https://github.com/tnunamak/dotfiles/archive/main.zip#css-clamp-calculation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.