Open JuKu opened 5 years ago
Maybe we can introduce a css customizer where we add a customizer.json to style directory and add options, which can be changed by users.
Something like this for example:
[ { "option": "background_color", "title": "Background color", "default": "#FFFFFF" }, { "option": "text_color", "title": "Text color", "default": "#000000" } ]
This values can be changed in admin area. On installation, default values will be set from customizer.json or custom values overrides them.
And in stylesheet files developers can use template variables like this:
body { font: normal .80em 'trebuchet ms', arial, sans-serif; color: {$customizer.text_color}; }
Because css files will be parsed only once and then cached, this doesn't has any effect on performance after second website load.
@PascalReintjens Any suggestions?
Maybe we can introduce a css customizer where we add a customizer.json to style directory and add options, which can be changed by users.
Something like this for example:
This values can be changed in admin area. On installation, default values will be set from customizer.json or custom values overrides them.
And in stylesheet files developers can use template variables like this:
Because css files will be parsed only once and then cached, this doesn't has any effect on performance after second website load.