{"action":"created","issue":{"url":"https://api.github.com/repos/aframevr/aframe/issues/909","labels_url":"https://api.github.com/repos/aframevr/aframe/issues/909/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe/issues/909/comments","events_url":"https://api.github.com/repos/aframevr/aframe/issues/909/events","html_url":"https://github.com/aframevr/aframe/issues/909","id":129309026,"number":909,"title":"aframe mixin stylesheets (naming tbd)","user":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-28T00:10:49Z","updated_at":"2016-01-28T00:12:25Z","closed_at":null,"body":"I was planning on doing this as a side-project, but if there's consensus, we can work on this in the future right on the A-Frame repo.\r\n\r\n```css\r\n// stylesheet.mixins\r\n#cube {\r\n  geometry {\r\n    primitive: 'box';\r\n  }\r\n}\r\n\r\n#red {\r\n  material {\r\n    color: 'red';\r\n  }\r\n}\r\n\r\n#hidden {\r\n  visible: false;\r\n}\r\n```\r\n\r\n```html\r\n<a-scene>\r\n  <a-assets>\r\n    <a-stylesheet src=\"stylesheet.mixins\"></a-stylesheet>\r\n    <a-stylesheet>\r\n      #green { material { color: 'green'; } }\r\n      #sphere { geometry { primitive: 'sphere'; radius: 5 } }\r\n    </a-stylesheet>\r\n  </a-assets>\r\n\r\n  <a-entity mixin=\"red cube\"></a-entity>\r\n  <a-entity mixin=\"green sphere\"></a-entity>\r\n  <a-entity mixin=\"hidden red sphere\"></a-entity>\r\n</a-scene>\r\n```"},"comment":{"url":"https://api.github.com/repos/aframevr/aframe/issues/comments/175920836","html_url":"https://github.com/aframevr/aframe/issues/909#issuecomment-175920836","issue_url":"https://api.github.com/repos/aframevr/aframe/issues/909","id":175920836,"user":{"login":"dmarcos","id":39342,"avatar_url":"https://avatars.githubusercontent.com/u/39342?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarcos","html_url":"https://github.com/dmarcos","followers_url":"https://api.github.com/users/dmarcos/followers","following_url":"https://api.github.com/users/dmarcos/following{/other_user}","gists_url":"https://api.github.com/users/dmarcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarcos/subscriptions","organizations_url":"https://api.github.com/users/dmarcos/orgs","repos_url":"https://api.github.com/users/dmarcos/repos","events_url":"https://api.github.com/users/dmarcos/events{/privacy}","received_events_url":"https://api.github.com/users/dmarcos/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T00:12:25Z","updated_at":"2016-01-28T00:12:25Z","body":"How do you change a mixin at run time?. Can you still do ```document.qerySelector('#green')```"}}