1.0.15 • Published 12 months ago

font-downloader v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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

12 months ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago