{"action":"created","comment":{"url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/comments/234703710","pull_request_review_id":176399306,"id":234703710,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDcwMzcxMA==","diff_hunk":"@@ -66,6 +71,42 @@ export const styleColor = ({ prop, cssProperty }: { prop: string; cssProperty?:\n   return fn;\n };\n \n+export const style = ({\n+  prop,\n+  cssProperty,\n+  key,\n+  transformValue,\n+}: {\n+  prop: string;\n+  cssProperty?: string;\n+  key?: string;\n+  transformValue?: Function;\n+  // TODO FIXME\n+}): TemplateStringsArray => {\n+  const cssName = cssProperty || prop;\n+  const fn = (props: any) => {\n+    let val = props[prop];\n+    if (!is(val)) return null;","path":"src/utils/rules.ts","position":78,"original_position":78,"commit_id":"e565940ffecaa3812a2100e9b3f1295b3e394a54","original_commit_id":"e565940ffecaa3812a2100e9b3f1295b3e394a54","user":{"login":"P0lip","id":9273484,"node_id":"MDQ6VXNlcjkyNzM0ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/9273484?v=4","gravatar_id":"","url":"https://api.github.com/users/P0lip","html_url":"https://github.com/P0lip","followers_url":"https://api.github.com/users/P0lip/followers","following_url":"https://api.github.com/users/P0lip/following{/other_user}","gists_url":"https://api.github.com/users/P0lip/gists{/gist_id}","starred_url":"https://api.github.com/users/P0lip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P0lip/subscriptions","organizations_url":"https://api.github.com/users/P0lip/orgs","repos_url":"https://api.github.com/users/P0lip/repos","events_url":"https://api.github.com/users/P0lip/events{/privacy}","received_events_url":"https://api.github.com/users/P0lip/received_events","type":"User","site_admin":false},"body":"We have a similar functionality in `styleColor`. Could we reuse it or extract to some shared util function?","created_at":"2018-11-19T17:06:22Z","updated_at":"2018-11-19T17:07:42Z","html_url":"https://github.com/stoplightio/ui-kit/pull/21#discussion_r234703710","pull_request_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/comments/234703710"},"html":{"href":"https://github.com/stoplightio/ui-kit/pull/21#discussion_r234703710"},"pull_request":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21","id":231683982,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNjgzOTgy","html_url":"https://github.com/stoplightio/ui-kit/pull/21","diff_url":"https://github.com/stoplightio/ui-kit/pull/21.diff","patch_url":"https://github.com/stoplightio/ui-kit/pull/21.patch","issue_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/21","number":21,"state":"open","locked":false,"title":"SL-677/sigils","user":{"login":"casserni","id":25208767,"node_id":"MDQ6VXNlcjI1MjA4NzY3","avatar_url":"https://avatars2.githubusercontent.com/u/25208767?v=4","gravatar_id":"","url":"https://api.github.com/users/casserni","html_url":"https://github.com/casserni","followers_url":"https://api.github.com/users/casserni/followers","following_url":"https://api.github.com/users/casserni/following{/other_user}","gists_url":"https://api.github.com/users/casserni/gists{/gist_id}","starred_url":"https://api.github.com/users/casserni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casserni/subscriptions","organizations_url":"https://api.github.com/users/casserni/orgs","repos_url":"https://api.github.com/users/casserni/repos","events_url":"https://api.github.com/users/casserni/events{/privacy}","received_events_url":"https://api.github.com/users/casserni/received_events","type":"User","site_admin":false},"body":"- [x] update rules and components so that `@...` points to theme values","created_at":"2018-11-16T23:33:26Z","updated_at":"2018-11-19T17:07:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[{"login":"rainum","id":846796,"node_id":"MDQ6VXNlcjg0Njc5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/846796?v=4","gravatar_id":"","url":"https://api.github.com/users/rainum","html_url":"https://github.com/rainum","followers_url":"https://api.github.com/users/rainum/followers","following_url":"https://api.github.com/users/rainum/following{/other_user}","gists_url":"https://api.github.com/users/rainum/gists{/gist_id}","starred_url":"https://api.github.com/users/rainum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainum/subscriptions","organizations_url":"https://api.github.com/users/rainum/orgs","repos_url":"https://api.github.com/users/rainum/repos","events_url":"https://api.github.com/users/rainum/events{/privacy}","received_events_url":"https://api.github.com/users/rainum/received_events","type":"User","site_admin":false},{"login":"marbemac","id":847542,"node_id":"MDQ6VXNlcjg0NzU0Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/847542?v=4","gravatar_id":"","url":"https://api.github.com/users/marbemac","html_url":"https://github.com/marbemac","followers_url":"https://api.github.com/users/marbemac/followers","following_url":"https://api.github.com/users/marbemac/following{/other_user}","gists_url":"https://api.github.com/users/marbemac/gists{/gist_id}","starred_url":"https://api.github.com/users/marbemac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marbemac/subscriptions","organizations_url":"https://api.github.com/users/marbemac/orgs","repos_url":"https://api.github.com/users/marbemac/repos","events_url":"https://api.github.com/users/marbemac/events{/privacy}","received_events_url":"https://api.github.com/users/marbemac/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21/commits","review_comments_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21/comments","review_comment_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/21/comments","statuses_url":"https://api.github.com/repos/stoplightio/ui-kit/statuses/e565940ffecaa3812a2100e9b3f1295b3e394a54","head":{"label":"stoplightio:architecture/cleanup","ref":"architecture/cleanup","sha":"e565940ffecaa3812a2100e9b3f1295b3e394a54","user":{"login":"stoplightio","id":10767217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzY3MjE3","avatar_url":"https://avatars1.githubusercontent.com/u/10767217?v=4","gravatar_id":"","url":"https://api.github.com/users/stoplightio","html_url":"https://github.com/stoplightio","followers_url":"https://api.github.com/users/stoplightio/followers","following_url":"https://api.github.com/users/stoplightio/following{/other_user}","gists_url":"https://api.github.com/users/stoplightio/gists{/gist_id}","starred_url":"https://api.github.com/users/stoplightio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoplightio/subscriptions","organizations_url":"https://api.github.com/users/stoplightio/orgs","repos_url":"https://api.github.com/users/stoplightio/repos","events_url":"https://api.github.com/users/stoplightio/events{/privacy}","received_events_url":"https://api.github.com/users/stoplightio/received_events","type":"Organization","site_admin":false},"repo":{"id":154567894,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ1Njc4OTQ=","name":"ui-kit","full_name":"stoplightio/ui-kit","private":false,"owner":{"login":"stoplightio","id":10767217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzY3MjE3","avatar_url":"https://avatars1.githubusercontent.com/u/10767217?v=4","gravatar_id":"","url":"https://api.github.com/users/stoplightio","html_url":"https://github.com/stoplightio","followers_url":"https://api.github.com/users/stoplightio/followers","following_url":"https://api.github.com/users/stoplightio/following{/other_user}","gists_url":"https://api.github.com/users/stoplightio/gists{/gist_id}","starred_url":"https://api.github.com/users/stoplightio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoplightio/subscriptions","organizations_url":"https://api.github.com/users/stoplightio/orgs","repos_url":"https://api.github.com/users/stoplightio/repos","events_url":"https://api.github.com/users/stoplightio/events{/privacy}","received_events_url":"https://api.github.com/users/stoplightio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stoplightio/ui-kit","description":"Foundational React components for the Stoplight ecosystem.","fork":false,"url":"https://api.github.com/repos/stoplightio/ui-kit","forks_url":"https://api.github.com/repos/stoplightio/ui-kit/forks","keys_url":"https://api.github.com/repos/stoplightio/ui-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stoplightio/ui-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stoplightio/ui-kit/teams","hooks_url":"https://api.github.com/repos/stoplightio/ui-kit/hooks","issue_events_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/events{/number}","events_url":"https://api.github.com/repos/stoplightio/ui-kit/events","assignees_url":"https://api.github.com/repos/stoplightio/ui-kit/assignees{/user}","branches_url":"https://api.github.com/repos/stoplightio/ui-kit/branches{/branch}","tags_url":"https://api.github.com/repos/stoplightio/ui-kit/tags","blobs_url":"https://api.github.com/repos/stoplightio/ui-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stoplightio/ui-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stoplightio/ui-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/stoplightio/ui-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stoplightio/ui-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/stoplightio/ui-kit/languages","stargazers_url":"https://api.github.com/repos/stoplightio/ui-kit/stargazers","contributors_url":"https://api.github.com/repos/stoplightio/ui-kit/contributors","subscribers_url":"https://api.github.com/repos/stoplightio/ui-kit/subscribers","subscription_url":"https://api.github.com/repos/stoplightio/ui-kit/subscription","commits_url":"https://api.github.com/repos/stoplightio/ui-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/stoplightio/ui-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/stoplightio/ui-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/stoplightio/ui-kit/contents/{+path}","compare_url":"https://api.github.com/repos/stoplightio/ui-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stoplightio/ui-kit/merges","archive_url":"https://api.github.com/repos/stoplightio/ui-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stoplightio/ui-kit/downloads","issues_url":"https://api.github.com/repos/stoplightio/ui-kit/issues{/number}","pulls_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/stoplightio/ui-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/stoplightio/ui-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stoplightio/ui-kit/labels{/name}","releases_url":"https://api.github.com/repos/stoplightio/ui-kit/releases{/id}","deployments_url":"https://api.github.com/repos/stoplightio/ui-kit/deployments","created_at":"2018-10-24T20:53:47Z","updated_at":"2018-11-16T15:54:10Z","pushed_at":"2018-11-19T16:37:29Z","git_url":"git://github.com/stoplightio/ui-kit.git","ssh_url":"git@github.com:stoplightio/ui-kit.git","clone_url":"https://github.com/stoplightio/ui-kit.git","svn_url":"https://github.com/stoplightio/ui-kit","homepage":"https://stoplight.io","size":2646,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"stoplightio:master","ref":"master","sha":"a1eb87112b88f7404138d9c7a62d54f95adb0273","user":{"login":"stoplightio","id":10767217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzY3MjE3","avatar_url":"https://avatars1.githubusercontent.com/u/10767217?v=4","gravatar_id":"","url":"https://api.github.com/users/stoplightio","html_url":"https://github.com/stoplightio","followers_url":"https://api.github.com/users/stoplightio/followers","following_url":"https://api.github.com/users/stoplightio/following{/other_user}","gists_url":"https://api.github.com/users/stoplightio/gists{/gist_id}","starred_url":"https://api.github.com/users/stoplightio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoplightio/subscriptions","organizations_url":"https://api.github.com/users/stoplightio/orgs","repos_url":"https://api.github.com/users/stoplightio/repos","events_url":"https://api.github.com/users/stoplightio/events{/privacy}","received_events_url":"https://api.github.com/users/stoplightio/received_events","type":"Organization","site_admin":false},"repo":{"id":154567894,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ1Njc4OTQ=","name":"ui-kit","full_name":"stoplightio/ui-kit","private":false,"owner":{"login":"stoplightio","id":10767217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzY3MjE3","avatar_url":"https://avatars1.githubusercontent.com/u/10767217?v=4","gravatar_id":"","url":"https://api.github.com/users/stoplightio","html_url":"https://github.com/stoplightio","followers_url":"https://api.github.com/users/stoplightio/followers","following_url":"https://api.github.com/users/stoplightio/following{/other_user}","gists_url":"https://api.github.com/users/stoplightio/gists{/gist_id}","starred_url":"https://api.github.com/users/stoplightio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoplightio/subscriptions","organizations_url":"https://api.github.com/users/stoplightio/orgs","repos_url":"https://api.github.com/users/stoplightio/repos","events_url":"https://api.github.com/users/stoplightio/events{/privacy}","received_events_url":"https://api.github.com/users/stoplightio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stoplightio/ui-kit","description":"Foundational React components for the Stoplight ecosystem.","fork":false,"url":"https://api.github.com/repos/stoplightio/ui-kit","forks_url":"https://api.github.com/repos/stoplightio/ui-kit/forks","keys_url":"https://api.github.com/repos/stoplightio/ui-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stoplightio/ui-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stoplightio/ui-kit/teams","hooks_url":"https://api.github.com/repos/stoplightio/ui-kit/hooks","issue_events_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/events{/number}","events_url":"https://api.github.com/repos/stoplightio/ui-kit/events","assignees_url":"https://api.github.com/repos/stoplightio/ui-kit/assignees{/user}","branches_url":"https://api.github.com/repos/stoplightio/ui-kit/branches{/branch}","tags_url":"https://api.github.com/repos/stoplightio/ui-kit/tags","blobs_url":"https://api.github.com/repos/stoplightio/ui-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stoplightio/ui-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stoplightio/ui-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/stoplightio/ui-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stoplightio/ui-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/stoplightio/ui-kit/languages","stargazers_url":"https://api.github.com/repos/stoplightio/ui-kit/stargazers","contributors_url":"https://api.github.com/repos/stoplightio/ui-kit/contributors","subscribers_url":"https://api.github.com/repos/stoplightio/ui-kit/subscribers","subscription_url":"https://api.github.com/repos/stoplightio/ui-kit/subscription","commits_url":"https://api.github.com/repos/stoplightio/ui-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/stoplightio/ui-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/stoplightio/ui-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/stoplightio/ui-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/stoplightio/ui-kit/contents/{+path}","compare_url":"https://api.github.com/repos/stoplightio/ui-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stoplightio/ui-kit/merges","archive_url":"https://api.github.com/repos/stoplightio/ui-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stoplightio/ui-kit/downloads","issues_url":"https://api.github.com/repos/stoplightio/ui-kit/issues{/number}","pulls_url":"https://api.github.com/repos/stoplightio/ui-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/stoplightio/ui-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/stoplightio/ui-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stoplightio/ui-kit/labels{/name}","releases_url":"https://api.github.com/repos/stoplightio/ui-kit/releases{/id}","deployments_url":"https://api.github.com/repos/stoplightio/ui-kit/deployments","created_at":"2018-10-24T20:53:47Z","updated_at":"2018-11-16T15:54:10Z","pushed_at":"2018-11-19T16:37:29Z","git_url":"git://github.com/stoplightio/ui-kit.git","ssh_url":"git@github.com:stoplightio/ui-kit.git","clone_url":"https://github.com/stoplightio/ui-kit.git","svn_url":"https://github.com/stoplightio/ui-kit","homepage":"https://stoplight.io","size":2646,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21"},"html":{"href":"https://github.com/stoplightio/ui-kit/pull/21"},"issue":{"href":"https://api.github.com/repos/stoplightio/ui-kit/issues/21"},"comments":{"href":"https://api.github.com/repos/stoplightio/ui-kit/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stoplightio/ui-kit/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/stoplightio/ui-kit/statuses/e565940ffecaa3812a2100e9b3f1295b3e394a54"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"P0lip"}}