{"action":"closed","issue":{"url":"https://api.github.com/repos/rtsao/csjs/issues/24","repository_url":"https://api.github.com/repos/rtsao/csjs","labels_url":"https://api.github.com/repos/rtsao/csjs/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/rtsao/csjs/issues/24/comments","events_url":"https://api.github.com/repos/rtsao/csjs/issues/24/events","html_url":"https://github.com/rtsao/csjs/issues/24","id":141399557,"number":24,"title":"Parent class","user":{"login":"knownasilya","id":34726,"avatar_url":"https://avatars.githubusercontent.com/u/34726?v=3","gravatar_id":"","url":"https://api.github.com/users/knownasilya","html_url":"https://github.com/knownasilya","followers_url":"https://api.github.com/users/knownasilya/followers","following_url":"https://api.github.com/users/knownasilya/following{/other_user}","gists_url":"https://api.github.com/users/knownasilya/gists{/gist_id}","starred_url":"https://api.github.com/users/knownasilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knownasilya/subscriptions","organizations_url":"https://api.github.com/users/knownasilya/orgs","repos_url":"https://api.github.com/users/knownasilya/repos","events_url":"https://api.github.com/users/knownasilya/events{/privacy}","received_events_url":"https://api.github.com/users/knownasilya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T20:53:31Z","updated_at":"2016-03-24T12:40:00Z","closed_at":"2016-03-24T12:40:00Z","body":"Something like:\r\n\r\n```js\r\nconst green = '#33aa22';\r\nconst styles = csjs`\r\n  color: #333;\r\n\r\n  .panel {\r\n    border: 1px solid black;\r\n    background-color: ${green};\r\n  }\r\n\r\n  .title {\r\n    padding: 4px;\r\n    font-size: 15px;\r\n  }\r\n`;\r\n\r\nconsole.log(styles.componentClass);\r\n```\r\n\r\nWhere all of the styles inside are nested under this parent, making this much more useful for\r\ncomponents since a component usually has a parent class.\r\n\r\nAlthough, looking back, it wouldn't be as verbose or clear as the current approach. Guess I could use postcss for nesting."}}