{"action":"created","issue":{"url":"https://api.github.com/repos/webcomponents/shadycss/issues/18","repository_url":"https://api.github.com/repos/webcomponents/shadycss","labels_url":"https://api.github.com/repos/webcomponents/shadycss/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/webcomponents/shadycss/issues/18/comments","events_url":"https://api.github.com/repos/webcomponents/shadycss/issues/18/events","html_url":"https://github.com/webcomponents/shadycss/issues/18","id":184332033,"number":18,"title":"What is ShadyCSS.applyStyle(element) for?","user":{"login":"tuespetre","id":4853540,"avatar_url":"https://avatars.githubusercontent.com/u/4853540?v=3","gravatar_id":"","url":"https://api.github.com/users/tuespetre","html_url":"https://github.com/tuespetre","followers_url":"https://api.github.com/users/tuespetre/followers","following_url":"https://api.github.com/users/tuespetre/following{/other_user}","gists_url":"https://api.github.com/users/tuespetre/gists{/gist_id}","starred_url":"https://api.github.com/users/tuespetre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuespetre/subscriptions","organizations_url":"https://api.github.com/users/tuespetre/orgs","repos_url":"https://api.github.com/users/tuespetre/repos","events_url":"https://api.github.com/users/tuespetre/events{/privacy}","received_events_url":"https://api.github.com/users/tuespetre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T20:27:06Z","updated_at":"2016-10-20T20:38:27Z","closed_at":null,"body":"In the README, it says to use it whenever dynamic updates are required. But what does that *mean*? Dynamic updates to *what*? It sure doesn't work for what I expected it to (applying the 'scoping classes' to dynamically generated elements where needed.) "},"comment":{"url":"https://api.github.com/repos/webcomponents/shadycss/issues/comments/255221274","html_url":"https://github.com/webcomponents/shadycss/issues/18#issuecomment-255221274","issue_url":"https://api.github.com/repos/webcomponents/shadycss/issues/18","id":255221274,"user":{"login":"SerkanSipahi","id":1880749,"avatar_url":"https://avatars.githubusercontent.com/u/1880749?v=3","gravatar_id":"","url":"https://api.github.com/users/SerkanSipahi","html_url":"https://github.com/SerkanSipahi","followers_url":"https://api.github.com/users/SerkanSipahi/followers","following_url":"https://api.github.com/users/SerkanSipahi/following{/other_user}","gists_url":"https://api.github.com/users/SerkanSipahi/gists{/gist_id}","starred_url":"https://api.github.com/users/SerkanSipahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerkanSipahi/subscriptions","organizations_url":"https://api.github.com/users/SerkanSipahi/orgs","repos_url":"https://api.github.com/users/SerkanSipahi/repos","events_url":"https://api.github.com/users/SerkanSipahi/events{/privacy}","received_events_url":"https://api.github.com/users/SerkanSipahi/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T20:38:27Z","updated_at":"2016-10-20T20:38:27Z","body":"e.g. lets say you have many components that use native css variables for background-color, color etc. When christmas is you can use: \r\n```js\r\nif(christmas){\r\n    ShadyCSS.updateStyles({\r\n       '--background-color', 'red',\r\n       '--font-color', 'white'\r\n    });\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"SerkanSipahi"}}