Skip to content

Tailwindcss not generating the class for custom font. #3648

Answered by MAnfal
MAnfal asked this question in Help
Discussion options

You must be logged in to vote

I was able to figure it out. I am going to post the solution for anyone else who might be looking for it.

in app.scss, update the following lines

// Add font imports
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

// Add node imports
@import '~tailwindcss/dist/base';
@import '~tailwindcss/dist/components';
@import '~tailwindcss/dist/utilities';

to

// Add font imports
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

// Add node imports
@tailwind base;
@tailwind components;
@tailwind utilities;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MAnfal
Comment options

Comment options

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