{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/8240","repository_url":"https://api.github.com/repos/zurb/foundation-sites","labels_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8240/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8240/comments","events_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8240/events","html_url":"https://github.com/zurb/foundation-sites/issues/8240","id":136217115,"number":8240,"title":"[6.2 RC1] Error: Undefined variable: \"$primary-color\"","user":{"login":"JeremyEnglert","id":6110968,"avatar_url":"https://avatars.githubusercontent.com/u/6110968?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremyEnglert","html_url":"https://github.com/JeremyEnglert","followers_url":"https://api.github.com/users/JeremyEnglert/followers","following_url":"https://api.github.com/users/JeremyEnglert/following{/other_user}","gists_url":"https://api.github.com/users/JeremyEnglert/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyEnglert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyEnglert/subscriptions","organizations_url":"https://api.github.com/users/JeremyEnglert/orgs","repos_url":"https://api.github.com/users/JeremyEnglert/repos","events_url":"https://api.github.com/users/JeremyEnglert/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyEnglert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zurb/foundation-sites/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/zurb/foundation-sites/labels/scss","name":"scss","color":"c6538c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T23:05:19Z","updated_at":"2016-02-25T00:50:15Z","closed_at":"2016-02-25T00:50:15Z","body":"When attempting to compile the settings.scss file with 6.2, I get the following error (using Gulp): \r\n```\r\nError: Undefined variable: \"$primary-color\".\r\n        on line 140 of assets/scss/_settings.scss\r\n>> $anchor-color: $primary-color;\r\n```\r\nSince $primary-color has been replaced with the color palette, how does the Sass make the connection between $primary-color and the new variable? (Sorry for the newb question) \r\n\r\nIf I create a variable for $primary-color, it resolves the issue, but then a new error comes up:\r\n```\r\nError: Undefined variable: \"$progress-height\".\r\n        on line 388 of assets/scss/_settings.scss\r\n>> $meter-height: $progress-height;\r\n```\r\nThe second error looks like it is caused by $progress-height being declared after $meter-height tries to use it."},"comment":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/comments/188538389","html_url":"https://github.com/zurb/foundation-sites/issues/8240#issuecomment-188538389","issue_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8240","id":188538389,"user":{"login":"gakimball","id":1142001,"avatar_url":"https://avatars.githubusercontent.com/u/1142001?v=3","gravatar_id":"","url":"https://api.github.com/users/gakimball","html_url":"https://github.com/gakimball","followers_url":"https://api.github.com/users/gakimball/followers","following_url":"https://api.github.com/users/gakimball/following{/other_user}","gists_url":"https://api.github.com/users/gakimball/gists{/gist_id}","starred_url":"https://api.github.com/users/gakimball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gakimball/subscriptions","organizations_url":"https://api.github.com/users/gakimball/orgs","repos_url":"https://api.github.com/users/gakimball/repos","events_url":"https://api.github.com/users/gakimball/events{/privacy}","received_events_url":"https://api.github.com/users/gakimball/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T00:50:15Z","updated_at":"2016-02-25T00:50:15Z","body":"The slider variable error is fixed via 70fc73beabab0819ac87d0cc46e7ae11dfe6d049\r\n\r\nAs for the color issue, we added a shim mixin that translates the `$foundation-palette` values into the old color variables for you. It's called `add-foundation-colors()`. Instructions on adding it will be in the 6.2 migration guide.\r\n\r\nYou can put it at the bottom of the global section of your settings file:\r\n\r\n```scss\r\n// 1. Global\r\n// ---------\r\n\r\n$foundation-palette: ();\r\n\r\n@include add-foundation-colors;\r\n```"}}