nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
20.37k stars 1.22k forks source link

Typography #2624

Open kisonay opened 2 months ago

kisonay commented 2 months ago

Is your feature request related to a problem? Please describe.

It would be great if there was a consistent way to style and theme text driving my the theme. Yes, we can use tailwind classes but it can be laborious at times and you start to see patterns.

Describe the solution you'd like

A typography component that as some basic props:

  1. variant-- to define how the text should be displayed (p, h1, h2, h3, span, etc.)
  2. color -- to define what color the should appear in (default, primary, secondary, etc.)
  3. gradient -- to display text in a gradient (predefined based on color)
  4. as -- to change what tag is used when rendering.
  5. className -- to allow additional classes to be applied.

Describe alternatives you've considered

Relying on classNames directly

Screenshots or Videos

No response

linear[bot] commented 2 months ago

ENG-592 Typography