Skip to content

Latest commit

 

History

History
167 lines (107 loc) · 4.53 KB

README.md

File metadata and controls

167 lines (107 loc) · 4.53 KB

Ab Logo on Light Ab Logo on Dark Next.js LogoName on Light Next.js LogoName on Dark

Checkout abElements →

ab-nextjs-fonts

IMPORTANT: This is a work in progress and subject to major changes until version 1.0.

✏️ This is a lightweight collection of React fonts created by Abraham Ukachi, and optimized for Next.js applications 😎.

Getting Started

Installation

npm

npm i ab-nextjs-fonts

pnpm

pnpm install ab-nextjs-fonts

Fonts

A list of all the supported fonts and their current status:

No. Name Status
1 Inter Done
2 Mulish Done
3 Quicksand Done
4 Roboto Done
5 ZillaSlab Done

NOTE: These fonts are also available offline ;) See ab-nextjs-theme/typography for more details.

Inter

Use font-inter-* tailwindcss utilities to apply the Inter font to your nextjs/react component:

<p className="font-inter-light">...</p>
# or
<p className="font-inter-medium">...</p>
# or
<p className="font-inter-bold">...</p>

Mulish

Use font-mulish-* tailwindcss utilities to apply the Mulish font to your nextjs/react component:

<p className="font-mulish-light">...</p>
# or
<p className="font-mulish-medium">...</p>
# or
<p className="font-mulish-bold">...</p>

Quicksand

Use font-quicksand-* tailwindcss utilities to apply the Quicksand font to your nextjs/react component:

<p className="font-quicksand-light">...</p>
# or
<p className="font-quicksand-medium">...</p>
# or
<p className="font-quicksand-bold">...</p>

Roboto

Use font-roboto-* tailwindcss utilities to apply the Roboto font to your nextjs/react component:

<p className="font-roboto-light">...</p>
# or
<p className="font-roboto-medium">...</p>
# or
<p className="font-roboto-bold">...</p>

Zilla Slab

Use font-zillaslab-* tailwindcss utilities to apply the ZillaSlab font to your nextjs/react component:

<p className="font-zillaslab-light">...</p>
# or
<p className="font-zillaslab-medium">...</p>
# or
<p className="font-zillaslab-bold">...</p>

TODOs

  • Optimize all fonts
  • Add the Sacramento font
  • Add a Nerd Font font (for easy icon support)

Learn More abElements

To learn more about abElements, take a look at the following resources:

You can check out the abElements GitHub repository for more details.

License

This ab-nextjs-fonts project is MIT Licensed ;)