Skip to content

Does fontsource not work with Angular? #485

Answered by jwr1
GemmaAnn asked this question in Q&A
Discussion options

You must be logged in to vote

It does work with Angular, Fontsource was created to be framework agnostic. You can either put something like ../../node_modules/@fontsource/alex-brush/400.css under styleUrls in your app.component.ts file, or in one of your CSS files you can put @import '~@fontsource/alex-brush/400.css'; at the top. The second option is preferred as it is not a relative import.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jwr1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants