Skip to content

Add a dark and light class to the <body> tag #77

@MrCaspan

Description

@MrCaspan

Is it possible to please add a class to the tag so that we can target things only in dark or light mode? Right now there is some text that is super hard to read in dark mode and I cannot find a way to target it only in dark mode. I fell like this would be such a useful feature to add and would be so simple to add

Dark Mode

<body class="fof-DarkMode">

Light Mode

<body class="fof-LightMode">

i am using fof- so that it does not possibly conflict with any other classes. I am willing to do a one-time bounty of $15 to any of the devs can make this happen ASAP as it is currently holding up a migration from Vanilla3 to Flarum! And no Dev should work for free :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions