Using Number Variables for Responsive Desktop and Mobile TypeUsing Number Variables for Responsive Desktop and Mobile Type
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I used to keep two sets of text styles, one for desktop and one for mobile. Now one set of number variables does both.
• Each font size is a number variable.
• One collection holds Desktop and Mobile modes.
• Text styles are bound to those variables.
• Switching the frame's mode changes every bound size.
Do you design mobile type first or desktop first?
Follow for more videos: instagram.com/sellwrightstudio · youtube.com/@sellwrightstudio
Iftiak's avatar
Mobile first usually forces the hard choices early, since the small sizes are where line height breaks first. Do you bind line height to variables too, or only the font size?
Raja's avatar
Agreed, the small sizes are where line height breaks first. Line height can sit in the same collection as its own number variable with Desktop and Mobile values, so one mode switch updates both size and spacing together.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started