The user wants to be able to choose some sizes and colors for the look of the site. These are css rules. I have a vague vision how this could be done by a module, but maybe there is already something like this?
What I need is to have some form with fields as combo boxes, allowing the user to choose from several values. E.g. allow him to choose from {red, blue, yellow} for the "Background of the News title", which happens to be .news-header-background class.
After he saves, the module would re-create a user.css file which is loaded as the last file in the theme (so it overrides my theme settings).
So the tasks for each role are as follows:
- the user fills the fields on a form choosing from pre-defined values
- the administrator pre-defines these values and also assigns a css selectors to each field in the form (directly in files, no need for GUI for this)
- the module re-creates the css file
One important point is that the interface exposed to the user must be dead simple. No technical jargon, no options, only text that he fully understands, like "Background color of the News title". Second point is that the values he can choose are presented as combo boxes, so they are limited. Third point is that the module should enable validation hook for the values he enters (or be written so that it's easy to hack and validate).