{"action":"opened","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/2288","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/2288/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/2288/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/2288/events","html_url":"https://github.com/nextcloud/server/issues/2288","id":191372625,"number":2288,"title":"Change themed CSS generation to SCSS templates","user":{"login":"eppfel","id":1899308,"avatar_url":"https://avatars.githubusercontent.com/u/1899308?v=3","gravatar_id":"","url":"https://api.github.com/users/eppfel","html_url":"https://github.com/eppfel","followers_url":"https://api.github.com/users/eppfel/followers","following_url":"https://api.github.com/users/eppfel/following{/other_user}","gists_url":"https://api.github.com/users/eppfel/gists{/gist_id}","starred_url":"https://api.github.com/users/eppfel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eppfel/subscriptions","organizations_url":"https://api.github.com/users/eppfel/orgs","repos_url":"https://api.github.com/users/eppfel/repos","events_url":"https://api.github.com/users/eppfel/events{/privacy}","received_events_url":"https://api.github.com/users/eppfel/received_events","type":"User","site_admin":false},"labels":[{"id":393047742,"url":"https://api.github.com/repos/nextcloud/server/labels/0.%20Needs%20triage","name":"0. Needs triage","color":"0052cc","default":false},{"id":386379233,"url":"https://api.github.com/repos/nextcloud/server/labels/enhancement","name":"enhancement","color":"0e8a16","default":true},{"id":397935844,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20theming","name":"feature: theming","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-23T20:27:26Z","updated_at":"2016-11-23T20:27:26Z","closed_at":null,"body":"Thanks to the introduction of Sass in nextcloud (#2050), we could really improve how the css styles are generated in the Theming Controller, because now the controller is bloated with concatenated CSS strings: [server/apps/theming/lib/Controller/ThemingController.php](https://github.com/nextcloud/server/blob/master/apps/theming/lib/Controller/ThemingController.php)\r\n\r\nWe could use the [scssphp](http://leafo.net/scssphp/) compiler to compile SASS templates with variables:\r\n```php\r\necho $scss->compile('\r\n  $color: #abc;\r\n  div { color: lighten($color, 20%); }\r\n');\r\n```\r\nThis would also make theming more accessible.\r\nWhat do you think @juliushaertl, @LukasReschke, @schiessle @nickvergessen ?\r\n"}}
{"actor":{"display_login":"eppfel"}}