Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new icon packages to the ng add schematic #459

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/usage/using-other-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The general workflow of adding a new icon:
1. Install a package containing the icon if not already installed (use style name from the previous step and see full package names below).
1. Import the icon from the installed package and use it in your application using either [icon library](./icon-library.md) or [explicit references](./explicit-reference.md) approach.

Packages prefixed with `free` are available for everybody, while packages prefixed with `pro` and `sharp` require a [Font Awesome Pro](https://fontawesome.com/plans) subscription and [additional configuration](https://fontawesome.com/docs/web/setup/packages#_1-configure-access).
Packages prefixed with `free` are available for everybody, but other packages require a [Font Awesome Pro](https://fontawesome.com/plans) subscription and [additional configuration](https://fontawesome.com/docs/web/setup/packages#_1-configure-access).

## Solid Icons

Expand Down
54 changes: 47 additions & 7 deletions projects/schematics/src/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,67 @@
},
{
"value": "pro-solid",
"label": "Pro Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"label": "Pro Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "pro-regular",
"label": "Pro Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"label": "Pro Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "pro-light",
"label": "Pro Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"label": "Pro Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "pro-thin",
"label": "Pro Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "pro-duotone",
"label": "Pro Duotone Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"label": "Pro Duotone Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "pro-thin",
"label": "Pro Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"value": "duotone-regular",
"label": "Duotone Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "duotone-light",
"label": "Duotone Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "duotone-thin",
"label": "Duotone Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-solid",
"label": "Sharp Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
"label": "Sharp Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-regular",
"label": "Sharp Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-light",
"label": "Sharp Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-thin",
"label": "Sharp Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-duotone-solid",
"label": "Sharp Duotone Solid Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-duotone-regular",
"label": "Sharp Duotone Regular Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-duotone-light",
"label": "Sharp Duotone Light Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
},
{
"value": "sharp-duotone-thin",
"label": "Sharp Duotone Thin Icons [ Requires Pro plan: https://fontawesome.com/plans ]"
}
]
}
Expand Down
12 changes: 11 additions & 1 deletion projects/schematics/src/ng-add/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ export interface Schema {
| 'pro-solid'
| 'pro-regular'
| 'pro-light'
| 'pro-duotone'
| 'pro-thin'
| 'pro-duotone'
| 'duotone-regular'
| 'duotone-light'
| 'duotone-thin'
| 'sharp-solid'
| 'sharp-regular'
| 'sharp-light'
| 'sharp-thin'
| 'sharp-duotone-solid'
| 'sharp-duotone-regular'
| 'sharp-duotone-light'
| 'sharp-duotone-thin'
)[];
}
Loading