KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Ideally, I'd like to set up one file "colors.styl" where I can define all the colors used across the site like so: // --------------- GENERAL VARIABLE DEFINITIONS $beige = #F2F2F2 $darkGrey = #282828 $errorRed = #B94A48 When I try accessing these variables in other files, I just get the variable name back instead of the resolved value: body { background-color: $beige; I'm compiling the files in order so colors.styl goes before the rest. Do variables lose their scope across files in Stylus?
Tags (comma-separated)
Save Edits
Cancel