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

Quote the keys of the sass map variables #2

Open
jnowland opened this issue May 26, 2015 · 0 comments
Open

Quote the keys of the sass map variables #2

jnowland opened this issue May 26, 2015 · 0 comments

Comments

@jnowland
Copy link

Due to the way sass works if you don't quote the maps you can have issues with map keys being other object types such as a color. e.g values like "red" getting converted into #f00 etc. This can be avoided by quoting the key.

Current Output:

$theme: (
  Primary: (
    Ocean Blue: (
      model: RGB,
      type: 2,
      rgb: (57, 84, 216),
      code: 3954d8
    ),
    Tree Green: (
      model: RGB,
      type: 2,
      rgb: (154, 188, 47),
      code: 9abc2f
    )
  )
);

Suggested Output

$theme: (
  "Primary": (
    "Ocean Blue": (
      "model": RGB,
      "type": 2,
      "rgb": (57, 84, 216),
      "code": 3954d8
    ),
    "Tree Green": (
      "model": RGB,
      "type": 2,
      "rgb": (154, 188, 47),
      "code": 9abc2f
    )
  )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant