Skip to content

Typography

Bamboo ships with a set of typographic styles like font-size, font-weight, and font-family. To access these predefined styles, use the bo-text component.

These values can be overridden by supplying a custom CSS class or inline style to the component.

Below is a table of the available custom properties used to influence the typography.

Font sizes

SizeValue
xs0.625rem
sm0.75rem
lg1rem
xl1.125rem
2xl1.25rem
3xl1.5rem
4xl1.875rem
5xl2.25rem
6xl3rem
7xl3.75rem
vue
<bo-text value="Hello, World!" size="3xl" />

Font weights

WeightValue
thin100
extra-light200
light300
medium500
semibold600
bold700
extra-bold800
black900
vue
<bo-text value="Hello, World!" weight="semibold" />

Font families

The following font families are available:

  • sans
  • mono
  • serif
vue
<bo-text value="Hello, World!" font-family="sans" />

Reference

To see the full list of available custom properties view the bo-text documentation.