4

I have a personal project with Next.js and Tailwind CSS, however in the globals.css file I have the following piece of code:

// styles/globals.css
@import url('https://use.typekit.net/...'); // I need to encapsulate this url in an environment variable
    
@tailwind base;
@tailwind components;
@tailwind utilities;
//...

Do you know if it is possible? Since so far I have understood the facility to use environment variables in JavaScript, but not in a separate file like a .css

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.