utopia-fluid-scales

Generate fluid type and space scale tokens using Utopia and cqi units.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/matthewharwood/fantasy-phonics --skill utopia-fluid-scales
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: utopia-fluid-scales
Source: https://github.com/matthewharwood/fantasy-phonics/tree/main/.claude/skills/utopia-fluid-scales
Command: npx skills add https://github.com/matthewharwood/fantasy-phonics --skill utopia-fluid-scales

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fluid scales for type and space using Utopia tokens, with cqi units requiring container context.

Core Features & Use Cases

  • Type Scale: CSS variable steps from --step--2 to --step-5
  • Space Scale: Space tokens from --space-3xs to --space-3xl
  • Applied Styles: body typography and heading sizing guidance
  • Container Requirement: container-type: inline-size on a parent

Quick Start

Define root typography and space tokens and apply var(--step-0) to body text.

Frequently Asked Questions about utopia-fluid-scales

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement fluid typography that scales responsively across different viewport sizes?▼

Fluid typography uses CSS clamp() to scale type smoothly between minimum and maximum sizes across viewports. This Skill provides pre-configured type scale tokens (--step--2 through --step-5) that automatically adjust sizing from 360px to 1240px viewports, eliminating the need for multiple breakpoints.

What are container queries and why do I need them for responsive spacing?▼

Container queries (cqi units) let elements respond to their container's width rather than viewport width. This Skill applies container-type: inline-size to enable fluid spacing and typography tokens that adapt based on their immediate parent's size, not the window.

Can I use CSS custom properties to maintain consistent spacing across component libraries?▼

Yes. This Skill exposes space scale tokens from --space-3xs to --space-3xl as CSS variables, enabling consistent, fluid spacing across all components. Values scale automatically between 360px and 1240px without hardcoding breakpoints.

How do I set up a design token system for dashboards and content pages?▼

Define root typography and space tokens, apply var(--step-0) to body text, and set container-type: inline-size on a parent element. The Skill provides the complete token structure; you configure initial scale values and apply variables throughout your layout.

What's the difference between viewport-based and container-based fluid sizing?▼

Viewport-based sizing scales with window width, affecting all elements uniformly. Container-based sizing (cqi) scales elements relative to their parent container, enabling independent scaling within nested components—useful for flexible dashboards and modular component libraries.

Do I need to maintain separate breakpoints when using fluid scales?▼

No. Fluid scales with CSS clamp() eliminate discrete breakpoints by creating smooth transitions across the entire range. This Skill's token system covers 360px to 1240px continuously, reducing or removing the need for media queries for sizing.