ayungavis / turborepo-nextjs-tailwind-trpc

The boilerplate Turborepo + Next.js + Tailwind + tRPC provides a starting point for building modern, fast, and responsive web applications.
https://turborepo-nextjs-tailwind-trpc-app.vercel.app/
MIT License
59 stars 8 forks source link

DS – Create a typography component #6

Closed ayungavis closed 1 year ago

ayungavis commented 1 year ago

Description

There is a lot of typography variant in the design system, we need to create a reusable component for easier using it in every app. Here is the list of the variants:

  1. Display
  2. Text

Each variant has sizes. The display variant has 6 sizes and the text variant has 5 sizes.

Please create a component named Typography with two props variant and size, here is the example:

<Typography size="display-sm">Hello world</Typography>

Acceptance Criteria

Reference

Image

ayungavis commented 1 year ago

Update

Change the acceptance criteria based on PR #7 that there is only one prop for defining the type and size of the typography. More information can take a look at this #7