Skip to content

chore: add color-scheme property to root.less#4357

Open
zDaleZ wants to merge 1 commit intoflarum:2.xfrom
zDaleZ:patch-1
Open

chore: add color-scheme property to root.less#4357
zDaleZ wants to merge 1 commit intoflarum:2.xfrom
zDaleZ:patch-1

Conversation

@zDaleZ
Copy link

@zDaleZ zDaleZ commented Feb 8, 2026

This property helps browser to understand which color scheme we're using, and it can make adjustments to the user interface, such as scrollbars and form controls(checkbox). We're able to change most of things, but there're actually some things controlled by browser, which can't be controlled by us. Besides, if a user is using Chrome's Auto Dark Theme, set this property can turn off color overrides in this case. Chrome's Auto Dark Theme sometimes inverts avatars' color.

Changes proposed in this pull request:
The whole UI.

Reviewers should focus on:
Scrollbar, checkbox in dark mode, etc.

Screenshot
N/A

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

This property helps browser to understand which color scheme we're using, and it can make adjustments to the user interface, such as scrollbars.
@zDaleZ zDaleZ requested a review from a team as a code owner February 8, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant