Skip to content

Typography ​

Baklava typography tokens control font family, sizes, and weights.

Live Preview ​

Title Text

Body text using Baklava typography tokens. The font family, size, and weight are controlled by design tokens.

Button

Reference ​

Font Family ​

TokenCSS VariableDefault
fontFamily--bl-font-family"Rubik Variable", sans-serif

Font Sizes ​

TokenCSS VariableDefault
2xs--bl-font-size-2xs0.5rem
xs--bl-font-size-xs0.625rem
s--bl-font-size-s0.75rem
m--bl-font-size-m0.875rem
l--bl-font-size-l1rem
xl--bl-font-size-xl1.25rem
2xl--bl-font-size-2xl1.5rem
3xl--bl-font-size-3xl1.75rem
4xl--bl-font-size-4xl2rem
5xl--bl-font-size-5xl3rem
6xl--bl-font-size-6xl4rem

Font Weights ​

TokenCSS VariableDefault
light--bl-font-weight-light300
regular--bl-font-weight-regular400
medium--bl-font-weight-medium500
semibold--bl-font-weight-semibold600
bold--bl-font-weight-bold700

Usage ​

vue
<script setup>
import { useBaklavaTheme } from "@baklavue/composables";

useBaklavaTheme().applyTheme({
  typography: {
    fontFamily: "'Inter', sans-serif",
    fontSize: { s: "0.75rem", m: "0.875rem", l: "1rem" },
  },
});
</script>