Skip to content

url imports do not get a top level in v4 #17109

Closed Answered by wongjn
IdoLeshkowitz asked this question in Help
Discussion options

You must be logged in to vote

Yep, so in v4, you are responsible for the correct @import order. As per the documentation:

If you're loading a font from a service like Google Fonts, make sure to put the @import at the very top of your CSS file:

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import "tailwindcss";

@theme {
  --font-roboto: 'Roboto', sans-serif;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IdoLeshkowitz
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