CSS: Variable Fonts
1h 3mIntermediate2019-12-10
Authors

Morten Rand-Hendriksen
Senior Staff Instructor, Speaker, Web Designer, and Software Developer
Course details
Digital typography has long promised dramatic flexibility, but only delivered it in part. Yes, fonts that change size have become ordinary, and we've learned to expect multiple variations in a family, but precisely specifying blends has remained difficult. New fonts and a new CSS specification are changing this, though, letting developers specify many axes beyond font size. It's now much easier to create attractive and varied pages, using only a single font as the base. In this course, Morten Rand-Hendriksen demonstrates how to use variable fonts to make designs pop while preserving efficient use of bandwidth. Explore the basics of variable fonts—which allow you to download one font file and vary it as required—as well as how to use them in practice and support backwards compatibility.
Learning objectives
What are variable fonts?
The weight, width, slant, and italic variation axes
Creating custom variation axes for variable fonts
Adding a variable font
Using the font-variation-settings property
Using custom properties for easier styling
Designing typography in the browser
Providing fallback fonts for older browsers
Learning objectives
What are variable fonts?
The weight, width, slant, and italic variation axes
Creating custom variation axes for variable fonts
Adding a variable font
Using the font-variation-settings property
Using custom properties for easier styling
Designing typography in the browser
Providing fallback fonts for older browsers
Skills covered
CSSWeb StandardsWeb DesignFront-End Web DevelopmentWeb DevelopmentOpen SourceDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Variable fonts - An introduction
1. Variable Fonts - The Big Picture
- 02 - What are variable fonts
- 03 - Some examples of variable fonts
2. Variable Fonts - The Basics
- 04 - The variation axis
- 05 - Variation - Weight
- 06 - Variation - Width
- 07 - Variation - Optical size
- 08 - Variation - Slant
- 09 - Variation - Italic
- 10 - Use browser tools to discover axis
- 11 - Custom variation axes
2. Variable Fonts in Practice
- 12 - Add a variable font
- 13 - Style variable fonts using old properties
- 14 - Use the font-variation-settings property
- 15 - Interplay between variation axes
- 16 - Use custom properties for easier styling
- 17 - Design typography in the browser
3. Backward Compatibility
- 18 - Current browser support
- 19 - Providing proper fallbacks
Conclusion
- 20 - Thanks, that was fun
Related courses
- CSS: Variables and Fluid Layouts
- CSS Toolkit: Tips and Techniques for Layout and Styling
- CSS to Sass: Converting an Existing Site
- Design the Web: CSS-Controlled SVG with PHP
- Building a Responsive Single-Page Design with PostCSS
- Sass Essential Training
- Advanced Scripting with Axure RP
- Robot Framework Test Automation: Level 2