@vladsolomon/tdot
Version:
Minimal runtime-configurable typography system for React + Tailwind
16 lines (15 loc) • 821 B
JavaScript
import { createTypographyComponent } from "./createTypographyComponent";
// Full predefined list of typography components
export const H1 = createTypographyComponent("H1");
export const H2 = createTypographyComponent("H2");
export const H3 = createTypographyComponent("H3");
export const H4 = createTypographyComponent("H4");
export const H5 = createTypographyComponent("H5");
export const H6 = createTypographyComponent("H6");
export const P = createTypographyComponent("P");
export const Span = createTypographyComponent("Span");
export const Code = createTypographyComponent("Code");
export const Blockquote = createTypographyComponent("Blockquote");
export const Small = createTypographyComponent("Small");
export const Strong = createTypographyComponent("Strong");
export const Em = createTypographyComponent("Em");