#1664 - About the Theme Wizard
| Identifier | #1664 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | About the Theme Wizard |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | [28/06/2014 19:09:31] Chris Graham: Composr is such a large system, we have to define a lot of colours.
[28/06/2014 19:09:41] Chris Graham: And people want to change the colours a lot, but make them blend nicely. [28/06/2014 19:09:58] Chris Graham: So instead of making people restyle every single CSS rule, we define these standard colours, defined by equations. [28/06/2014 19:10:05] Chris Graham: You can still hard-code colours for your own theme. [28/06/2014 19:10:31] Chris Graham: The Theme Wizard is just to get you started, because even if you're making a new theme, you won't want to redefine every colour in Composr, it would take too long. [28/06/2014 19:10:43] Chris Graham: So you start with a Theme Wizard colour similar to what your own design will use. [28/06/2014 19:10:55] Chris Graham: Then you build your own design around what the Theme Wizard did, customising whatever you want. {$THEME_WIZARD_COLOR,#d91522,red_highlight_text,80% FF0000 + 20% seed} ... span.red_alert, a.red_alert, strong.red_alert, em.red_alert { color: {$GET,red_highlight_text}; font-weight: bold; } [28/06/2014 19:11:47] Chris Graham: You can see, it just grabs the colour and puts it into a normal looking bit of CSS. [28/06/2014 19:33:59] x: do it have any dependancy to wizard code, and when creating do we need to create wizard code manually? [28/06/2014 19:34:24] Chris Graham: Well remember I never created a blank file here. [28/06/2014 19:34:39] Chris Graham: I always overrode something from the default theme, so always had whatever the default theme already had. [28/06/2014 19:34:59] Chris Graham: I never would have to create something new unless I am defining my own new styles. [28/06/2014 19:35:18] Chris Graham: Regarding dependencies - no, nothing strictly depends on the theme wizard code, except existing styles. [28/06/2014 19:35:29] Chris Graham: So if I started removing those equations, it would make a mess, as existing colours would not be defined. [28/06/2014 19:35:38] Chris Graham: But I could choose to then go through and manually define them everywhere. [28/06/2014 19:35:49] Chris Graham: It's just, it would be a waste of effort. I would be changing 100s of CSS references. [28/06/2014 19:38:13] x: I have theme design , it having 2-3 color , so I need to specify those colors in my theme css file. is it a correct way , or we need to derive that colors from Wizad value? [28/06/2014 19:38:43] Chris Graham: If you are making your own theme, you know what colours you want, you don't need to try and define equations for it, you just use normal CSS. [28/06/2014 19:38:57] x: ok [28/06/2014 19:39:00] Chris Graham: HOWEVER ;)... [28/06/2014 19:39:25] Chris Graham: We do have a second mode for the Theme Wizard that can copy a theme and change hard-coded CSS colours, by shifting the colours. [28/06/2014 19:39:44] Chris Graham: So you may make a theme and have some reds, then someone copies it using the Theme Wizard and shifts it towards blue. [28/06/2014 19:39:59] Chris Graham: That's actually quite cool but you don't need to do anything special as a themer to support that. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
There have been no comments yet