css-modules / postcss-icss-values

Pass arbitrary constants between your module files
MIT License
203 stars 18 forks source link

Order of import matters?? #54

Open jasongonzales23 opened 8 years ago

jasongonzales23 commented 8 years ago

When I import like this it works:

@value kardia-blue, darker-grey, kardia-green from "../../styles/variables/colors.css";

but in any other order the values are not imported.

It doesn't seem to correspond to the order in which they are used, nor defined.

I am using react-redux starter kit, which kind of rides the fence between sass and cssmodules, but I am using the framework only with cssmodules, so I don't think there should be an issue with that, but I could be totally wrong.

jasongonzales23 commented 8 years ago

Along similar lines, it breaks my build if I try to split a long @value import over more than one line.

Example follows:

@value inputExample, errorMsg, hasError, checkbox, checkBoxLabel, radioInput, buttonGroupLabel, buttonGroup, blueButton, defaultButton, defaultTextInput, formElement, formGroup, formGroupSubtext, whiteButton from '../styles/formElements.css';

Has to remain on one line. Well over 80 characters :\