0.0.4 • Published 5 months ago

fastfont v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

fastfont šŸŽØ

Download Google Fonts locally and configure them with TailwindCSS in one command. Entirely made by AI. React me at palazski@gmail.com

Features

  • šŸ“¦ Downloads font files locally with optimal directory structure
  • šŸ”„ Supports variable fonts and all variants (weights, styles)
  • 🌐 Preserves language subsets (latin, cyrillic, etc.)
  • ⚔ Automatically configures TailwindCSS
  • šŸŽÆ Project-aware (detects Next.js, Vite, Vue, etc.)
  • šŸ’Ŗ Handles complex font configurations

Directory Structure

For a font named "Inter", fastfont will create:

fonts/
└── inter/
    ā”œā”€ā”€ inter.css           # Font-specific CSS file
    └── inter/             # Font files directory
        ā”œā”€ā”€ Inter-latin.woff2
        ā”œā”€ā”€ Inter-cyrillic.woff2
        └── ...other variants

Project Detection

Automatically detects your project type and uses appropriate paths:

  • Next.js: public/fonts
  • React/Vite: public/fonts
  • Vue: public/fonts
  • Angular: src/assets/fonts
  • Generic: fonts

After Installation

Add the generated CSS import to your main CSS file:

import url("public/fonts/inter/inter.css");

Use the font in your HTML/JSX:

<div class="font-inter">Hello World!</div>

License

MIT

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago