import variables into stylus and scss

Viewed 1921

I use stylus and scss in my project. Is it possible to have one common variables file that I can use with both?

I have tried:

variables.scss

$primary: #00A9E0

main.styl

@import 'variables.scss"

which obviously did not work because of the different syntax

1 Answers

Move your variables to _variables.scss(partial file) and import it. @import 'variables';

Related