codipry.

Keyboard shortcuts

Use Ctrl on Windows/Linux or Command on macOS. Shortcuts respect focused text fields.

Ctrl/⌘ K
Open or close tool search
?
Open this reference outside text inputs
Escape
Close the active dialog
Ctrl/⌘ S
Save the current Playground project
Ctrl/⌘ Enter
Run the Playground preview
Tab
Move between controls; inside code typing, insert two spaces
Shift Tab
Move to the previous control

Monaco also provides its own command palette. Browser and operating-system shortcuts can take priority.

Start creating
Frontend PlaygroundcodeResponsive LabcodeGradient GeneratordesignBox Shadow GeneratordesignText Shadow GeneratordesignBorder Radius GeneratordesignFlexbox GeneratordesignCSS Grid GeneratordesignAnimation GeneratordesignGlassmorphism GeneratordesignClip Path GeneratordesignFluid Type GeneratordesignColor StudiodesignGit Command BuildergitGit VisualizergitMerge vs. RebasegitSQL Joins VisualizerdatabaseSQL Clause ExplorerdatabaseDatabase RelationshipsdatabaseSQL FormatterdatabaseSQL PlaygrounddatabaseTyping TestpracticeCode Typing TestpracticeJSON FormattercodeCSV / JSON ConvertercodeText DiffcodeRegex TestercodeEncoding ToolscodeHash GeneratorcodeTimestamp ConvertercodeCSS Transform GeneratordesignCSS Filter GeneratordesignDesign Token ExporterdesignGit Conflict TrainergitSQL Schema Explorerdatabase
Design / CSS Studio

Fluid Type Generator

Scale type smoothly between minimum and maximum sizes with CSS clamp.

Opening CSS Studio…

How to use Fluid Type Generator

A fluid value interpolates between two viewport widths, while clamp() enforces lower and upper size limits. This works well for type scales and spacing that should grow gradually.

  1. Choose minimum and maximum sizes in pixels, then the viewport widths at which those sizes should be reached. The maximum viewport must exceed the minimum.
  2. Select font-size, padding, gap or margin. All use the same interpolation equation, but apply to different layout properties.
  3. Use the simulated viewport slider to inspect intermediate values. The generated CSS uses real viewport width through vw; it is not tied to the preview panel width.

A practical starting point

A heading can grow from 24px at 360px wide to 48px at 1200px wide, while staying within those bounds.

font-size: clamp(24px, 13.7143px + 2.8571vw, 48px);

Common mistakes

  • Do not choose the same minimum and maximum viewport: the interpolation slope would be undefined.
  • Pixel-based limits do not automatically respect a user’s preferred text size as well as rem-based limits. Consider adapting the output to your project’s accessible type scale.

Frequently asked questions

What happens outside the chosen viewport range?

Below the minimum width, the size stays at its minimum. Above the maximum width, it stays at its maximum.