6.4.3 • Published 7 months ago

shoelace-fontawesome-pug v6.4.3

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

shoelace-fontawesome-pug

NPMCBT badge

A Pug mixin to make it easier to load Font Awesome Pro icons with Shoelace.

Usage

  1. Install with NPM: npm i shoelace-fontawesome-pug
  2. Anywhere in your Pug file, include this line:
    include ../node_modules/shoelace-fontawesome-pug/sl-fa-mixin.pug
  3. When using a Shoelace Icon in Pug, ensure to set the correct library:
    sl-icon(library='fa' name='fab-github')

What is this doing?

This mixin really just wraps the code recommended by Shoelace with a preset CDN for Font Awesome 6.4.0 icons.

How do I define icon styles?

Each icon style is determined with a simple prefix. In the example above, fab-github uses the fab prefix, indicating Font Awesome Brands. The other prefixes follow the same convention:

PrefixStyle
fas-Solid
far-Regular
fal-Light
fat-Thin
fad-Duotone
fab-Brands
fass-Sharp Solid
fasr-Sharp Regular
fasl-Sharp Light
6.4.3

7 months ago

6.4.2

7 months ago

6.4.1

7 months ago

6.4.0

8 months ago

6.2.1

1 year ago

1.0.0-2

1 year ago

1.0.0-1

1 year ago

1.0.0-0

1 year ago