Is it possible to format text depending on site theme?

Started by Crimson Wizard, Mon 16/09/2024 02:54:24

Previous topic - Next topic

Crimson Wizard

Something I did not realize earlier, but since there's a color theme selection on AGS forum now, it's possible to switch between light and dark theme (at least).

Thing is, if I mark certain text with a color in my posts, such as "AGS release" for example, this color will not necessarily look good in the other theme.

Is there any way to format my post with some respect to the theme that a user chooses? Like, define different font color for a text, one per a theme, or use a color-defining keyword provided by the forum itself?

If not, would it be possible to implement in the new website?

Snarky

I don't think there's any way to do that, and I'm 99.9% sure that the new website is just the web pages, not the forum.

I would stick to font colors that work against both the light and dark theme backgrounds.

AGA

Yeah, really not an (easy) option.  Somebody would have to develop an SMF plugin with a custom BBCode tag to show alternate versions of a section of the page depending on the user's theme.  Not impossible, but to me there'd really not be a worthwhile cost-benefit!

As Snarky suggests, the safest would be to find some colours that work on both light and dark backgrounds.  Or just use size, bold and italics for emphasis, probably even safer!

SMF spam blocked by CleanTalk