{"action":"created","issue":{"url":"https://api.github.com/repos/Rebilly/ReDoc/issues/421","repository_url":"https://api.github.com/repos/Rebilly/ReDoc","labels_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/421/comments","events_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/421/events","html_url":"https://github.com/Rebilly/ReDoc/issues/421","id":299666520,"number":421,"title":"[react-rewrite] Move all css constants to theme","user":{"login":"RomanGotsiy","id":3975738,"avatar_url":"https://avatars0.githubusercontent.com/u/3975738?v=4","gravatar_id":"","url":"https://api.github.com/users/RomanGotsiy","html_url":"https://github.com/RomanGotsiy","followers_url":"https://api.github.com/users/RomanGotsiy/followers","following_url":"https://api.github.com/users/RomanGotsiy/following{/other_user}","gists_url":"https://api.github.com/users/RomanGotsiy/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanGotsiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanGotsiy/subscriptions","organizations_url":"https://api.github.com/users/RomanGotsiy/orgs","repos_url":"https://api.github.com/users/RomanGotsiy/repos","events_url":"https://api.github.com/users/RomanGotsiy/events{/privacy}","received_events_url":"https://api.github.com/users/RomanGotsiy/received_events","type":"User","site_admin":false},"labels":[{"id":280076752,"url":"https://api.github.com/repos/Rebilly/ReDoc/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":811901651,"url":"https://api.github.com/repos/Rebilly/ReDoc/labels/react-rewrite","name":"react-rewrite","color":"8cf2d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T10:31:46Z","updated_at":"2018-03-31T18:38:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Two subtasks here:\r\n\r\n- [x] - implement or find any ready-to-use implementation of advanced theme (see below)\r\n- [ ] - move all constants to theme\r\n\r\n### Advanced theme\r\nCurrently, theme is pretty limiting, e.g. you can't reuse some values in other places. What I would like to have is something like bellow:\r\n\r\n```js\r\n{\r\n   colors: {\r\n     main: '#2932b5',\r\n     border: '#cccccc',\r\n   }\r\n   ...\r\n   sideBar: {\r\n     shadow: `1px 1px ${colors.border}`\r\n     // or alternativelly\r\n     shadow: `1px 1px ${theme => theme.colors.border}`\r\n     ...\r\n   }\r\n}\r\n```\r\n\r\nSo the idea is to be able to reuse some common colors but at the same time have precise control over each component.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Rebilly/ReDoc/issues/comments/377714132","html_url":"https://github.com/Rebilly/ReDoc/issues/421#issuecomment-377714132","issue_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/421","id":377714132,"user":{"login":"buchanae","id":262647,"avatar_url":"https://avatars1.githubusercontent.com/u/262647?v=4","gravatar_id":"","url":"https://api.github.com/users/buchanae","html_url":"https://github.com/buchanae","followers_url":"https://api.github.com/users/buchanae/followers","following_url":"https://api.github.com/users/buchanae/following{/other_user}","gists_url":"https://api.github.com/users/buchanae/gists{/gist_id}","starred_url":"https://api.github.com/users/buchanae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchanae/subscriptions","organizations_url":"https://api.github.com/users/buchanae/orgs","repos_url":"https://api.github.com/users/buchanae/repos","events_url":"https://api.github.com/users/buchanae/events{/privacy}","received_events_url":"https://api.github.com/users/buchanae/received_events","type":"User","site_admin":false},"created_at":"2018-03-31T18:38:50Z","updated_at":"2018-03-31T18:38:50Z","author_association":"NONE","body":"What's the benefit of encoding the theme in JS rather than CSS? I'm finding this difficult to work with, as it leads to cryptic, generated class names (`.kgFZmy`) which can't be edited in the Chrome devtools."}}
{"actor":{"display_login":"buchanae"}}