Matthew S
Well-known member
I have light and dark styles on my forum. I'd like to call a particular colour component rather than hard code a colour for, for example, a border.
For example, using the box bbcode example in the tutorial:
If I start with this
and then make it this
it works fine with the hard coded border colour.
If I try something like this
it doesn't work.
I'm not sure if I'm doing it wrong (most likely) or if it's not possible.
For example, using the box bbcode example in the tutorial:
If I start with this
Code:
<div style="background-color: {option}">{text}</div>
and then make it this
Code:
<div style="background: {option}; border: 1px solid #176093; padding: 4px; font-size: 13px">{text}</div>
it works fine with the hard coded border colour.
If I try something like this
Code:
<div style="background: {option}; border: 1px solid @xf-borderColorLight; padding: 4px; font-size: 13px">{text}</div>
it doesn't work.
I'm not sure if I'm doing it wrong (most likely) or if it's not possible.