I'm trying to import a Google Font inside the main.scss file, but following code didn't work:
@import url("//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");
Is there a way to do that? I looking for this question in stackoverflow, but I don't find a concrete answer...
Can somebody help me?
Instead of using url()
, try the below:
@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700';
The correct syntax for importing Google Fonts into Sass:
@import url('https://fonts.googleapis.com/css2?family=Alegreya + Sans + SC:wght@400;500;800');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With