{"action":"created","comment":{"url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/comments/169656084","pull_request_review_id":98216438,"id":169656084,"diff_hunk":"@@ -61,52 +64,54 @@ const formats = {\n     'footer': '}\\n',\n     'ext': 'css'\n   },\n-  'less': {\n-    'output': [`/* Photon Colors Less Variables v${metadata.version} */\\n\\n`],\n+  'gimp': {\n+    'output': [`GIMP Palette\\nName: Photon Colors\\n# Photon Colors GPL Color Palette v${metadata.version}\\n# ${metadata.homepage}\\n\\n`],\n     'formatter': (color, variant, value, alpha) => {\n       if (alpha == '100') {\n-        return `@${color}-${variant}: ${value};\\n`;\n-      } else {\n+        color = color.charAt(0).toUpperCase() + color.slice(1);\n         const {r,g,b} = getRgb(value);\n-        return `@${color}-${variant}-a${alpha}: rgba(${r}, ${g}, ${b}, ${alpha/100});\\n`;\n+        return `${r} ${g} ${b} ${color} ${variant}\\n`;\n       }\n     },\n-    'ext': 'less'\n+    'ext': 'gpl'\n   },\n-  'sass': {\n-    'output': [`/* Photon Colors SCSS Variables v${metadata.version} */\\n\\n`],\n+  'ios': {\n+    'output': [`/* Photon Colors JS Variables v${metadata.version}\\n   From ${metadata.homepage} */\\n\\nextension UIColor {\\n    struct Photon {\\n`],","path":"photon-colors/build.js","position":45,"original_position":45,"commit_id":"60f6211cbb73a1d5190dae98255ddc76929d9437","original_commit_id":"60f6211cbb73a1d5190dae98255ddc76929d9437","user":{"login":"bwinton","id":159571,"avatar_url":"https://avatars2.githubusercontent.com/u/159571?v=4","gravatar_id":"","url":"https://api.github.com/users/bwinton","html_url":"https://github.com/bwinton","followers_url":"https://api.github.com/users/bwinton/followers","following_url":"https://api.github.com/users/bwinton/following{/other_user}","gists_url":"https://api.github.com/users/bwinton/gists{/gist_id}","starred_url":"https://api.github.com/users/bwinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwinton/subscriptions","organizations_url":"https://api.github.com/users/bwinton/orgs","repos_url":"https://api.github.com/users/bwinton/repos","events_url":"https://api.github.com/users/bwinton/events{/privacy}","received_events_url":"https://api.github.com/users/bwinton/received_events","type":"User","site_admin":false},"body":"Fixed, and I think it is.","created_at":"2018-02-21T14:38:10Z","updated_at":"2018-02-21T14:38:11Z","html_url":"https://github.com/FirefoxUX/design-tokens/pull/43#discussion_r169656084","pull_request_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/comments/169656084"},"html":{"href":"https://github.com/FirefoxUX/design-tokens/pull/43#discussion_r169656084"},"pull_request":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43"}},"in_reply_to_id":169613702},"pull_request":{"url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43","id":170286342,"html_url":"https://github.com/FirefoxUX/design-tokens/pull/43","diff_url":"https://github.com/FirefoxUX/design-tokens/pull/43.diff","patch_url":"https://github.com/FirefoxUX/design-tokens/pull/43.patch","issue_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/43","number":43,"state":"open","locked":false,"title":"Add ios colours.","user":{"login":"bwinton","id":159571,"avatar_url":"https://avatars2.githubusercontent.com/u/159571?v=4","gravatar_id":"","url":"https://api.github.com/users/bwinton","html_url":"https://github.com/bwinton","followers_url":"https://api.github.com/users/bwinton/followers","following_url":"https://api.github.com/users/bwinton/following{/other_user}","gists_url":"https://api.github.com/users/bwinton/gists{/gist_id}","starred_url":"https://api.github.com/users/bwinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwinton/subscriptions","organizations_url":"https://api.github.com/users/bwinton/orgs","repos_url":"https://api.github.com/users/bwinton/repos","events_url":"https://api.github.com/users/bwinton/events{/privacy}","received_events_url":"https://api.github.com/users/bwinton/received_events","type":"User","site_admin":false},"body":"Note: We'll need an extra convenience function in `Shared/Extensions/UIColorExtensions.swift` that looks like:\r\n``` swift\r\n    /**\r\n     * Initializes and returns a color object for the given RGBA hex integer.\r\n     */\r\n    public convenience init(rgb: Int) {\r\n        self.init(\r\n            red: CGFloat((rgb & 0xFF0000) >> 24) / 255.0,\r\n            green: CGFloat((rgb & 0xFF0000) >> 16) / 255.0,\r\n            blue: CGFloat((rgb & 0x00FF00) >> 8)  / 255.0,\r\n            alpha: CGFloat((rgb & 0x0000FF) >> 0)  / 255.0)\r\n    }\r\n```","created_at":"2018-02-20T19:29:46Z","updated_at":"2018-02-21T14:38:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a9804b8b1909b4a7ea7bc52b577618a8b9a0403","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43/commits","review_comments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43/comments","review_comment_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/43/comments","statuses_url":"https://api.github.com/repos/FirefoxUX/design-tokens/statuses/60f6211cbb73a1d5190dae98255ddc76929d9437","head":{"label":"FirefoxUX:ios","ref":"ios","sha":"60f6211cbb73a1d5190dae98255ddc76929d9437","user":{"login":"FirefoxUX","id":15326606,"avatar_url":"https://avatars1.githubusercontent.com/u/15326606?v=4","gravatar_id":"","url":"https://api.github.com/users/FirefoxUX","html_url":"https://github.com/FirefoxUX","followers_url":"https://api.github.com/users/FirefoxUX/followers","following_url":"https://api.github.com/users/FirefoxUX/following{/other_user}","gists_url":"https://api.github.com/users/FirefoxUX/gists{/gist_id}","starred_url":"https://api.github.com/users/FirefoxUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirefoxUX/subscriptions","organizations_url":"https://api.github.com/users/FirefoxUX/orgs","repos_url":"https://api.github.com/users/FirefoxUX/repos","events_url":"https://api.github.com/users/FirefoxUX/events{/privacy}","received_events_url":"https://api.github.com/users/FirefoxUX/received_events","type":"Organization","site_admin":false},"repo":{"id":97479524,"name":"design-tokens","full_name":"FirefoxUX/design-tokens","owner":{"login":"FirefoxUX","id":15326606,"avatar_url":"https://avatars1.githubusercontent.com/u/15326606?v=4","gravatar_id":"","url":"https://api.github.com/users/FirefoxUX","html_url":"https://github.com/FirefoxUX","followers_url":"https://api.github.com/users/FirefoxUX/followers","following_url":"https://api.github.com/users/FirefoxUX/following{/other_user}","gists_url":"https://api.github.com/users/FirefoxUX/gists{/gist_id}","starred_url":"https://api.github.com/users/FirefoxUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirefoxUX/subscriptions","organizations_url":"https://api.github.com/users/FirefoxUX/orgs","repos_url":"https://api.github.com/users/FirefoxUX/repos","events_url":"https://api.github.com/users/FirefoxUX/events{/privacy}","received_events_url":"https://api.github.com/users/FirefoxUX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FirefoxUX/design-tokens","description":"A place to store decisions we make.","fork":false,"url":"https://api.github.com/repos/FirefoxUX/design-tokens","forks_url":"https://api.github.com/repos/FirefoxUX/design-tokens/forks","keys_url":"https://api.github.com/repos/FirefoxUX/design-tokens/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FirefoxUX/design-tokens/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FirefoxUX/design-tokens/teams","hooks_url":"https://api.github.com/repos/FirefoxUX/design-tokens/hooks","issue_events_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/events{/number}","events_url":"https://api.github.com/repos/FirefoxUX/design-tokens/events","assignees_url":"https://api.github.com/repos/FirefoxUX/design-tokens/assignees{/user}","branches_url":"https://api.github.com/repos/FirefoxUX/design-tokens/branches{/branch}","tags_url":"https://api.github.com/repos/FirefoxUX/design-tokens/tags","blobs_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/refs{/sha}","trees_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FirefoxUX/design-tokens/statuses/{sha}","languages_url":"https://api.github.com/repos/FirefoxUX/design-tokens/languages","stargazers_url":"https://api.github.com/repos/FirefoxUX/design-tokens/stargazers","contributors_url":"https://api.github.com/repos/FirefoxUX/design-tokens/contributors","subscribers_url":"https://api.github.com/repos/FirefoxUX/design-tokens/subscribers","subscription_url":"https://api.github.com/repos/FirefoxUX/design-tokens/subscription","commits_url":"https://api.github.com/repos/FirefoxUX/design-tokens/commits{/sha}","git_commits_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/commits{/sha}","comments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/comments{/number}","issue_comment_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/comments{/number}","contents_url":"https://api.github.com/repos/FirefoxUX/design-tokens/contents/{+path}","compare_url":"https://api.github.com/repos/FirefoxUX/design-tokens/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FirefoxUX/design-tokens/merges","archive_url":"https://api.github.com/repos/FirefoxUX/design-tokens/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FirefoxUX/design-tokens/downloads","issues_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues{/number}","pulls_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls{/number}","milestones_url":"https://api.github.com/repos/FirefoxUX/design-tokens/milestones{/number}","notifications_url":"https://api.github.com/repos/FirefoxUX/design-tokens/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FirefoxUX/design-tokens/labels{/name}","releases_url":"https://api.github.com/repos/FirefoxUX/design-tokens/releases{/id}","deployments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/deployments","created_at":"2017-07-17T13:29:20Z","updated_at":"2018-02-13T09:50:44Z","pushed_at":"2018-02-20T19:29:47Z","git_url":"git://github.com/FirefoxUX/design-tokens.git","ssh_url":"git@github.com:FirefoxUX/design-tokens.git","clone_url":"https://github.com/FirefoxUX/design-tokens.git","svn_url":"https://github.com/FirefoxUX/design-tokens","homepage":null,"size":83,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":7,"open_issues":7,"watchers":29,"default_branch":"master"}},"base":{"label":"FirefoxUX:master","ref":"master","sha":"bb62a70b0740e27ed57a454b6cff893fafc022d2","user":{"login":"FirefoxUX","id":15326606,"avatar_url":"https://avatars1.githubusercontent.com/u/15326606?v=4","gravatar_id":"","url":"https://api.github.com/users/FirefoxUX","html_url":"https://github.com/FirefoxUX","followers_url":"https://api.github.com/users/FirefoxUX/followers","following_url":"https://api.github.com/users/FirefoxUX/following{/other_user}","gists_url":"https://api.github.com/users/FirefoxUX/gists{/gist_id}","starred_url":"https://api.github.com/users/FirefoxUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirefoxUX/subscriptions","organizations_url":"https://api.github.com/users/FirefoxUX/orgs","repos_url":"https://api.github.com/users/FirefoxUX/repos","events_url":"https://api.github.com/users/FirefoxUX/events{/privacy}","received_events_url":"https://api.github.com/users/FirefoxUX/received_events","type":"Organization","site_admin":false},"repo":{"id":97479524,"name":"design-tokens","full_name":"FirefoxUX/design-tokens","owner":{"login":"FirefoxUX","id":15326606,"avatar_url":"https://avatars1.githubusercontent.com/u/15326606?v=4","gravatar_id":"","url":"https://api.github.com/users/FirefoxUX","html_url":"https://github.com/FirefoxUX","followers_url":"https://api.github.com/users/FirefoxUX/followers","following_url":"https://api.github.com/users/FirefoxUX/following{/other_user}","gists_url":"https://api.github.com/users/FirefoxUX/gists{/gist_id}","starred_url":"https://api.github.com/users/FirefoxUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirefoxUX/subscriptions","organizations_url":"https://api.github.com/users/FirefoxUX/orgs","repos_url":"https://api.github.com/users/FirefoxUX/repos","events_url":"https://api.github.com/users/FirefoxUX/events{/privacy}","received_events_url":"https://api.github.com/users/FirefoxUX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FirefoxUX/design-tokens","description":"A place to store decisions we make.","fork":false,"url":"https://api.github.com/repos/FirefoxUX/design-tokens","forks_url":"https://api.github.com/repos/FirefoxUX/design-tokens/forks","keys_url":"https://api.github.com/repos/FirefoxUX/design-tokens/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FirefoxUX/design-tokens/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FirefoxUX/design-tokens/teams","hooks_url":"https://api.github.com/repos/FirefoxUX/design-tokens/hooks","issue_events_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/events{/number}","events_url":"https://api.github.com/repos/FirefoxUX/design-tokens/events","assignees_url":"https://api.github.com/repos/FirefoxUX/design-tokens/assignees{/user}","branches_url":"https://api.github.com/repos/FirefoxUX/design-tokens/branches{/branch}","tags_url":"https://api.github.com/repos/FirefoxUX/design-tokens/tags","blobs_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/refs{/sha}","trees_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FirefoxUX/design-tokens/statuses/{sha}","languages_url":"https://api.github.com/repos/FirefoxUX/design-tokens/languages","stargazers_url":"https://api.github.com/repos/FirefoxUX/design-tokens/stargazers","contributors_url":"https://api.github.com/repos/FirefoxUX/design-tokens/contributors","subscribers_url":"https://api.github.com/repos/FirefoxUX/design-tokens/subscribers","subscription_url":"https://api.github.com/repos/FirefoxUX/design-tokens/subscription","commits_url":"https://api.github.com/repos/FirefoxUX/design-tokens/commits{/sha}","git_commits_url":"https://api.github.com/repos/FirefoxUX/design-tokens/git/commits{/sha}","comments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/comments{/number}","issue_comment_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/comments{/number}","contents_url":"https://api.github.com/repos/FirefoxUX/design-tokens/contents/{+path}","compare_url":"https://api.github.com/repos/FirefoxUX/design-tokens/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FirefoxUX/design-tokens/merges","archive_url":"https://api.github.com/repos/FirefoxUX/design-tokens/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FirefoxUX/design-tokens/downloads","issues_url":"https://api.github.com/repos/FirefoxUX/design-tokens/issues{/number}","pulls_url":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls{/number}","milestones_url":"https://api.github.com/repos/FirefoxUX/design-tokens/milestones{/number}","notifications_url":"https://api.github.com/repos/FirefoxUX/design-tokens/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FirefoxUX/design-tokens/labels{/name}","releases_url":"https://api.github.com/repos/FirefoxUX/design-tokens/releases{/id}","deployments_url":"https://api.github.com/repos/FirefoxUX/design-tokens/deployments","created_at":"2017-07-17T13:29:20Z","updated_at":"2018-02-13T09:50:44Z","pushed_at":"2018-02-20T19:29:47Z","git_url":"git://github.com/FirefoxUX/design-tokens.git","ssh_url":"git@github.com:FirefoxUX/design-tokens.git","clone_url":"https://github.com/FirefoxUX/design-tokens.git","svn_url":"https://github.com/FirefoxUX/design-tokens","homepage":null,"size":83,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":7,"open_issues":7,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43"},"html":{"href":"https://github.com/FirefoxUX/design-tokens/pull/43"},"issue":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/43"},"comments":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/FirefoxUX/design-tokens/statuses/60f6211cbb73a1d5190dae98255ddc76929d9437"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bwinton"}}