Modifying the color palette in 2.3

Old Nick

Well-known member
I'm about to modify the base style of XenForo to green it.
With XF 2.3 and the style variation this is not a small task (says the one who criticized the dark theme just yesterday... spank me!).

My question is: will the work done in the style properties be useful when I move to XF 3 or will it all be thrown in the trash and I'll have to start from scratch?

BTW is it better to modify Color palette or rather Basic colors to achieve this goal, simply switch from a blue style to a green style?
 
Solution
It's difficult to say definitively at this time, but changing the hues from blue to green really should be so simple that I wouldn't let it hold you back. The dark variation takes it from making roughly the same change to 5 style properties to making roughly the same change to 10 style properties.

If you note, the current palette hues are 204-206 (which might as well just be a rounding error in the RGB->HSL conversion). Changing them all to eg. 115 took me about 30 seconds and yields this:

screenshot-C7t8H2.webp
is it better to modify Color palette or rather Basic colors to achieve this goal, simply switch from a blue style to a green style?
I would start by just changing the hues in the color palette, which should only take a few minutes and accomplish the bulk of it pretty easily. Then you can tweak further as necessary.
 
It's difficult to say definitively at this time, but changing the hues from blue to green really should be so simple that I wouldn't let it hold you back. The dark variation takes it from making roughly the same change to 5 style properties to making roughly the same change to 10 style properties.

If you note, the current palette hues are 204-206 (which might as well just be a rounding error in the RGB->HSL conversion). Changing them all to eg. 115 took me about 30 seconds and yields this:

screenshot-C7t8H2.webp
 
Solution
Indeed... I didn't see things that way but everything seems simpler as you describe it. I'm going to try this route, thanks for the info.
It's not immediately obvious prior to 2.3 because we used RGB instead of HSL, but the primary color palette is intended to be roughly the same hue with different lightness (and saturation, for dark mode). I think in XF 1 there was even an automatic hue adjustment slider for the entire palette.

This is about 3.0?
OK fair enough, I've split the thread.
 
I tried to change the footer background, but it seems that an extra css code overwrite the chosen colour:

Capture d'écran 2024-06-08 075039.webp
But as you can see the Extra css field is empty, it should be field with the css code for the gradient bg which would allow it to be deleted (as header block).
The footer background still have the gradient bg...

Capture d'écran 2024-06-08 075121.webp

Is this a bug or a misunderstanding on my part?
 
I can’t reproduce that, the footer is whatever the chosen color is for me. The default footer isn’t a gradient either so probably down to a style customization.
 
Well, how to apply a custom CSS code to both variations ?
I used this before 2.3:
CSS:
.p-footer {
    background: linear-gradient(0deg, xf-intensify(@xf-chromeBg, 12%), @xf-chromeBg);
}
How should this be written to be valid in 2.3?
 
Back
Top Bottom