Skip to content

Conversation

@glowcloud
Copy link
Contributor

@glowcloud glowcloud commented Dec 8, 2025

Refs #5327, #9964, #10089
Supersedes #10216

Adds dark mode toggle to the top bar in standalone preset. If not using standalone preset, dark mode can also be enabled by adding dark-mode class to the <html> element.

NOTE: Class component was used for DarkModeToggle as a workaround, as there were issues with duplicated React, causing hooks to be unusable. Alternative solution exists with the usage of Redux and dropping support for loading preferred colours, but opted for this one for now.

opacity: 1;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: no empty line at the end

@AllanOcelot
Copy link
Contributor

Great work @glowcloud ! - happy to see this much needed feature making it's way toward being in swagger.

@glowcloud glowcloud merged commit 5f42eee into master Dec 11, 2025
7 checks passed
This was referenced Dec 11, 2025
@landsman
Copy link

what a Christmas present, thanks!

swagger-bot pushed a commit that referenced this pull request Dec 11, 2025
# [5.31.0](v5.30.3...v5.31.0) (2025-12-11)

### Features

* add dark mode ([#10653](#10653)) ([5f42eee](5f42eee)), closes [#5327](#5327) [#9964](#9964) [#10089](#10089)
swagger-bot pushed a commit that referenced this pull request Dec 11, 2025
# [5.31.0](v5.30.3...v5.31.0) (2025-12-11)

### Features

* add dark mode ([#10653](#10653)) ([5f42eee](5f42eee)), closes [#5327](#5327) [#9964](#9964) [#10089](#10089)

### Reverts

* Revert "chore(release): cut the 5.31.0 release" ([#10658](#10658)) ([cf11271](cf11271))
@swagger-bot
Copy link
Contributor

🎉 This PR is included in version 5.31.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants