4.0.4 • Published 3 years ago

@superflycss/utilities-fonts v4.0.4

Weekly downloads
25
License
MIT
Repository
github
Last release
3 years ago

Font utilities

Installation

npm i @superflycss/utilities-fonts

Usage

The root package contains all Google Fonts Utilities. That means all the fonts and all the supporting weights..

Load all fonts utilities like this:

@import '@superflycss/utilities-fonts';
...

Or load them by idividual sub packages.  For example:

``` css
@import '@superflycss/utilities-fonts/lato';
...

To use the lato font at normal weight apply the utility like this:

<h1 class="u-font-lato-400">A Font Lato Heading Normal Font Weight (400)</h1>

To use the italic lato font at normal weight apply the utility like this:

<h1 class="u-font-lato-400-italic">A Font Lato Heading Normal Font Weight (400)</h1>

Now run the build with sfc build and postcss font-magician will create the font face rules in the target build file.

Have a look here for all the font face rules the build generates.

Dependency Install

This will install all dependencies including the SuperflyCSS CLI.

npm run i

Clone

git clone git@github.com:superflycss/utilities-fonts.git

Build

npm run pub

Publish

npm run pub

Related Articles

Snippets

This snippet contains @import statements for all the font utility pakcage. This enables developers to quickly add imports for the fonts of their choosing.

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

3.3.9

3 years ago

3.3.8

4 years ago

3.3.7

6 years ago

3.3.6

6 years ago

3.3.5

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.8

7 years ago

3.0.6

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago