Fonts
The default font for the UI Framework is Rubik. This typeface is versatile, offering a range of weights and styles that can be easily applied to UI elements. You can explore the Rubik font family here: Rubik on Google Fonts.
Default classes and variables
Changing the Default Font
If you'd like to use a custom font instead of Rubik, you can override the default font definitions by setting new font asset paths in the :root
CSS block. Here’s how to change the default --font-medium
to a new font:
Font Size
Format: text-{variant}
Class Name
Size
text-xs
12px
text-s
14px
text-m
16px
text-l
18px
text-xl
20px
text-2xl
24px
text-3xl
30px
text-4xl
36px
text-5xl
48px
text-6xl
60px
text-7xl
72px
text-8xl
96px
text-9xl
128px
Last updated