Using a mixin/function to poplulate @import paths in Stylus -


i hoping able following in stylus:

variables (spec)   "../" + spec + "/css/variables.styl"  @import variables(button); @import variables(form); .. 

there reasoning file structure trying make easier manage repetition in file rather having write:

@import "../button/css/variables.styl" @import "../form/css/variables.styl" .. 

but when try stylus compiler errors "@import string expected"

well, need remove space before (), otherwise declaration parsed selector:

variables(spec)   "../" + spec + "/css/variables.styl"  @import variables(button); @import variables(form); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -