Theming, Editing Colours
Posted
#2488
(In Topic #497)
What do I need to know about them?
Posted
I might be a little off…
Hope this helps.
Master Rat
Posted
Master Rat said
I used to think the colours defined at the top were only used for calculating new colour scheme when running the theme wizard, using the theme in focus as a base.
Thanks.
Posted
Then it works as a variable that is referenced through the CSS, named by the second parameter.
You can if you wish just bypass it and directly enter your own CSS colour codes in place or in addition to what the Theme Wizard is doing, you're not tied into it.
Posted
Some CSS files have {$THEME_WIZARD_COLOR,#RRGGBB,name,equation} lines near the top.
When the Theme Wizard runs the first parameter (the colour) of the THEME_WIZARD_COLOR lines is regenerated from the third parameter (the equation).
For example,
Code
{$THEME_WIZARD_COLOR,#426aa9,box_title_background,100% seed}
Code
{$THEME_WIZARD_COLOR,#ff0000,box_title_background,100% seed}
This is all happening only when the Theme Wizard is run.
There is a special case of these particular equations:
Code
{$THEME_WIZARD_COLOR,#94979d,seed,100% 426aa9}
{$THEME_WIZARD_COLOR,#ffffff,WB,100% FFFFFF}
{$THEME_WIZARD_COLOR,#000000,BW,100% 000000}
When the CSS file is compiled, it works as a simple variable system. The second parameter serves as the variable name, which can then be referenced in the CSS as {$GET,name}. It's a very straight-forward substitution system.
You can if you wish just bypass the Theme Wizard equations system and directly enter your own CSS colour codes in place or in addition to what the Theme Wizard is doing. You are in no way tied into the mechanism of the Theme Wizard once you begin editing your own theme. That said, it can be useful to help you keep your colour palette consistent.
Posted
https://www.thoughtco.com/css-vendor-prefixes-3466867
Posted
Chris Graham said
This adds CSS prefixing automatically, or makes other changes to make it work stably across browsers.
https://www.thoughtco.com/css-vendor-prefixes-3466867
From “Post #2532”, 22nd Apr 2017
My bad. I've just read that in the comments in global.css
1 guest and 0 members have recently viewed this.
