{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/363","labels_url":"https://api.github.com/repos/sass/sass/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/363/comments","events_url":"https://api.github.com/repos/sass/sass/issues/363/events","html_url":"https://github.com/sass/sass/issues/363","id":4250002,"number":363,"title":"Preserve author's color format","user":{"login":"chriseppstein","id":1839,"avatar_url":"https://avatars.githubusercontent.com/u/1839?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseppstein","html_url":"https://github.com/chriseppstein","followers_url":"https://api.github.com/users/chriseppstein/followers","following_url":"https://api.github.com/users/chriseppstein/following{/other_user}","gists_url":"https://api.github.com/users/chriseppstein/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseppstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseppstein/subscriptions","organizations_url":"https://api.github.com/users/chriseppstein/orgs","repos_url":"https://api.github.com/users/chriseppstein/repos","events_url":"https://api.github.com/users/chriseppstein/events{/privacy}","received_events_url":"https://api.github.com/users/chriseppstein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/sass/labels/Feature","name":"Feature","color":"0b02e1"},{"url":"https://api.github.com/repos/sass/sass/labels/Planned","name":"Planned","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2012-04-23T21:56:56Z","updated_at":"2015-03-19T09:59:12Z","closed_at":"2014-02-15T01:25:09Z","body":"Unless the output format is compressed, we should preserve the format that the author used when creating a color.\r\n\r\nFormats being:\r\n\r\n* color name\r\n* hex\r\n* rgb/rgba\r\n* hsl/hsla\r\n\r\nThe format should be sticky to derived values in as much as possible.\r\n"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/83463967","html_url":"https://github.com/sass/sass/issues/363#issuecomment-83463967","issue_url":"https://api.github.com/repos/sass/sass/issues/363","id":83463967,"user":{"login":"brianreavis","id":118480,"avatar_url":"https://avatars.githubusercontent.com/u/118480?v=3","gravatar_id":"","url":"https://api.github.com/users/brianreavis","html_url":"https://github.com/brianreavis","followers_url":"https://api.github.com/users/brianreavis/followers","following_url":"https://api.github.com/users/brianreavis/following{/other_user}","gists_url":"https://api.github.com/users/brianreavis/gists{/gist_id}","starred_url":"https://api.github.com/users/brianreavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianreavis/subscriptions","organizations_url":"https://api.github.com/users/brianreavis/orgs","repos_url":"https://api.github.com/users/brianreavis/repos","events_url":"https://api.github.com/users/brianreavis/events{/privacy}","received_events_url":"https://api.github.com/users/brianreavis/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T09:59:12Z","updated_at":"2015-03-19T09:59:12Z","body":"If anyone's interested, here's one for forcing to hex:\r\n```scss\r\n@function force-hex($color) {\r\n\t@if type-of($color) == 'color' {\r\n\t\t$hex: str-slice(ie-hex-str($color), 4);\r\n\t\t@return unquote(\"\\##{$hex}\");\r\n\t}\r\n\t@return $color;\r\n}\r\n```"}}