Design Systems in JavaScript: Spacing, Type Scales, Grids

LearnCoachAssistWatch on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Systems5 min

About this video

The video shows how to build a spacing scale on 4 and 8 point grids, snap stray mockup values to it, and compute a modular type scale from a ratio. It also covers fluid heading sizes with clamp() and switching between compact and spacious density modes, all in JavaScript.

What you’ll learn

  • Build a spacing scale on 4 and 8 point grids in JavaScript
  • Compute a modular type scale from a ratio
  • Create fluid clamp() heading sizes and switch density modes