In this short guide, you will learn how to create a new typography style using variables from the theme collection.
Styles in Figma represent Typography and Effect classes from Tailwind CSS. These Figma styles utilize variables from our Theme collection, mirroring how Tailwind CSS classes reference variables from the theme configuration file.
You can easily create new Typography or Effect styles using either variables or custom values. The example demonstrates how to create a new typography style and how developers can translate it to code.
Developers can then implement this style in code using Tailwind CSS classes:
<h1 class= "font-sans text-4xl font-extrabold line-height-text-4xl">Heading Example</h1>