Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on SASS syntax variable interpolation #60

Closed
gespinha opened this issue Jun 6, 2017 · 1 comment
Closed

Error on SASS syntax variable interpolation #60

gespinha opened this issue Jun 6, 2017 · 1 comment

Comments

@gespinha
Copy link

@gespinha gespinha commented Jun 6, 2017

Hi there,

I'm using Sugarss as a postcss plugin to work with SASS syntax. Using the following example returns and error "Unnecessary curly bracket" because of the .#{nth($color, $i)} variable interpolation:

$color: red, green, blue
@for $i from 1 through length($color)
  .#{nth($color, $i)}
    color: nth($color, $i)

There is no other way, that I know of, to interpolate a variable inside a loop in SASS syntax. Can you please help me understand what is going wrong? Is this a known issue?

Cheers!

@ai

This comment has been minimized.

Copy link
Member

@ai ai commented Jun 6, 2017

SugarSS is not Sass. You need postcss-sass.

@ai ai closed this Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.