Viewport Sized Typography Visualizer

At work we are exploring the potential use of Viewport Sized Typography with Minimum and Maximum Sizes . As part of this exploration we realized that the "fluid" portion of a given min/fluid/max set of sizes would be different for each combination. I wanted to make a visual reprsentation of how each set of sizes would overlap so we could make educated adjustments to the fluid portions and their overlaps to have the best experience possible.

Size properties

Provide the min/fluid/max settings for as many size combinations as you would like to see how their ranges will overlap. You can easily adjust the fluid portion via the slider for each size and then see how the combined sets of numbers will overlap.

If you need a custom font that isn't installed, you can fork this pen, add custom fonts following these instructions and then use the new font name in the font fields below.

View Size Instructions
Name:
Min: px
Fluid: ( )
Max: px
Font(s): Weight: X
Add additional size set

Example

Move your mouse over the colored example row(s) below. Where your cursor is denotes the width of the browser. Below the colored row(s) will show an example of what the text sizes of each set would be at that width. This allows you to see the hierarchy of the text against other sizes at any width. Why show this via weird mousemove "width" instead of just resizing your browser? This gives a better visual representation of where sizes will shift amongst your different fluid type.

The left is the range of width where the min-font size will apply. The middle is the range where the fluid font size will apply (sometimes missing if min/max is the same). The right is the range where the max font size will apply.

Red lines denote where there is overlap of the same size across multiple examples. If there are multiple instances of the same size having an overlap on the same example, it shows as an incorrect single line between the multiple instances. It is a hopefully rare condition so since I barely got this working in the first place, I won't tackle unless it becomes a bigger thing.

View Example Instructions
Good example - 4 sets of sizes that overlap well.
Bad example - Same min/max as above, only the fluid portion changed from the good example and now sizes overlap poorly.



Sizes at mouse location

Loading Preset Data

Any change you make is saved into localStorage to persist through editor changes and refreshes. If you want to send the current state to others, use the URL below.

URL to copy:

Experimental

Custom Font Code (css only)

While there is a way to load custom fonts in a forked pen, this will allow you to load some custom font styling that is shareable and uses the original pen to get potential updates. This has the potential to add a LOT of data to the URL for the shareable version. Not sure where the limits will be reached, so be careful.

View Experimental Stuff

All font sizes

A visualization of all fixed (min/max) font sizes defined above.