Font Size
You can set the components font size globally for all Vueless components.
If you define only the text
(medium
) value, tiny
, small
and large
sizes will be automatically calculated. The expected values are listed in the table below:
8
10
12
14
9
11
13
15
10
12
14
16
11
13
15
17
12
14
16
18
If you want to use custom values for tiny
, small
and large
font-sizes, you can define them manually.
Custom tailwind class
To implement global font size stylings, Vueless provides custom Tailwind CSS classes and corresponding CSS variables. Feel free to use these classes in your components whenever you need consistent rounding across your project.
You can also use the corresponding CSS variables directly:
text-tiny
text-(--vl-text-xs)
text-small
text-(--vl-text-sm)
text-medium
text-(--vl-text)
text-large
text-(--vl-text-lg)
Last updated