Reputation: 23
I have multiple CSS files in my project
I don't want to set the variables in each CSS file, but I would like to access them from every file.
Upvotes: 0
Views: 789
Reputation: 1350
You just need to create a globals.css
file in there somewhere. Add your CSS Variables. @import
that file into the others where needed.
Upvotes: 1
Reputation: 8824
You can import another CSS file from a CSS using:
@import "path/variables.css";
Upvotes: 4