https://github.com/phil-scott-78/Icons
https://github.com/phil-scott-78/Icons
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phil-scott-78/Icons
- Owner: phil-scott-78
- Created: 2022-09-03T13:35:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-19T14:36:22.000Z (about 3 years ago)
- Last Synced: 2025-08-21T16:08:07.688Z (5 months ago)
- Language: C#
- Size: 204 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- RSCG_Examples - https://github.com/phil-scott-78/Icons/
README
# BadIdeas.Icons
I had a bad idea about building out all the icons in Font Awesome in a huge blazor assembly and relying on dotnet trimming to keep the file size low.
This is the result.
## Install
```
dotnet add package BadIdeas.Icons.FontAwesome
```
## Use
All the icons are components in the Icon namespace. They have zero styling, so you'll need to apply a width and a fill color with whatever CSS library you're into.
```csharp
@using BadIdeas.FontAwesome.Icons
```
## Neat
This will render the svg for the GitHub icon. No external javascript or CSS is needed for this, just a few KBs for the SVG content. And because of the assembly trimming, only the SVGs that are needed are deployed.