doabit / semantic-ui-sass

Semantic UI, converted to Sass and ready to drop into Rails & Compass.
MIT License
1.15k stars 192 forks source link

error: "Undefined variable" when import specific modules #96

Closed BoleLee closed 7 years ago

BoleLee commented 7 years ago

I tried to import only form module: @import "semantic-ui/collections/form"; but it appeared error: Undefined variable: $font-family; Then I modified it to: @import "semantic-ui/globals/site"; @import "semantic-ui/collections/form"; it appeared error: Undefined variable: $import-google-fonts

I have no idea what goes wrong, am I doing something wrong?

doabit commented 7 years ago

@BoleLee Please try

@import "semantic-ui/globals/all";
@import "semantic-ui/collections/form";

or

@import "semantic-ui/globals/variables";
@import "semantic-ui/collections/form";
BoleLee commented 7 years ago

Both ways work, Thank you~~ @doabit