image

Design System

Props

nametypedefault
fontmontserrat | barlow-condensedmontserrat
variantcaptionM | captionL | bodyM | bodyL | h6 | h5 | h4 | h3 | h2 | h1bodyM
weightnormal | medium | semibold | boldnormal
classNamestring""
childrenReactNode

How to use typographyVariants in Astro

import { typographyVariants } from "@/components/ui/typography";

<span
  class={typographyVariants({
    font: "montserrat",
    variant: "bodyM",
    weight: "medium",
    className: "",
  })}
>
  Hello There
</span>

How to use Typography component in ReactJS

import { Typography } from "@/components/ui/typography";

<Typography font="montserrat" variant="bodyM" weight="medium">
  Hello There
</Typography>

Example Available Font Variants

MontserratBarlow Condensed
captionMcaptionLbodyMbodyLh6h5h4h3h2h1
12141620243240486480
normal
Hello There
Hello There
Hello There
Hello There
medium
Hello There
Hello There
Hello There
Hello There
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
semibold
Hello There
Hello There
Hello There
Hello There
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
HELLO THERE
bold
Hello There
Hello There
Hello There
Hello There