1.0.15 • Published 8 months ago

font-downloader v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

font-downloader - This is a CLI tool that downloads Google Fonts and generates CSS stylesheets for using them.

Installation

You can install this package using npm:

npm install -g  font-downloader

Or using pnpm:

pnpm add -g font-downloader

Or using yarn:

yarn add -g font-downloader

Or using bun:

bun add -g font-downloader

Usage

Downloading Fonts

You can download fonts using the following command:

font-downloader <fontName>

For example, to download the Roboto font and generate its CSS stylesheet:

font-downloader Roboto

This command will download the Roboto font files and generate its CSS stylesheet.

Structure

Downloaded font files are saved in the following structure:

/src/assets/fonts/<font-name>/
   - <font-name>-Regular.ttf
   - <font-name>-Bold.ttf
   - <font-name>.css

The generated CSS file contains @font-face rules for including the font in your project.

Using CSS

@import url('./src/assets/fonts/roboto/roboto.css');

body {
   font-family: 'Roboto', sans-serif;
}

Contributing

To contribute to this project, please submit a pull request or open an issue.

License

MIT

1.0.15

8 months ago

1.0.14

9 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago