Skip to content

Always use the light theme for Rapidoc - #815

Merged
vincent-olivert-riera merged 1 commit into
line:masterfrom
hoangpn:bug_fix/weird_api_specs_page_in_dark_mode
Oct 27, 2026
Merged

vincent-olivert-riera merged 1 commit into
line:masterfrom
hoangpn:bug_fix/weird_api_specs_page_in_dark_mode

Conversation

@hoangpn

@hoangpn hoangpn commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

In Promgen, we use Rapidoc to generate the API Specs page and have customized its UI colors to align with Promgen's style. However, Rapidoc supports both light and dark themes, and we haven't specified UI colors for the dark theme. Consequently, the API Specs page appears disabled when switching the browser or operating system to dark mode.

Since Promgen does not support dark mode, we resolved this issue by simply forcing Rapidoc to always use the light theme.

BEFORE:
image

AFTER:
image

In Promgen, we use Rapidoc to generate the API Specs page and have customized its UI colors to
align with Promgen's style. However, Rapidoc supports both light and dark themes, and we
haven't specified UI colors for the dark theme. Consequently, the API Specs page appears
disabled when switching the browser or operating system to dark mode.

Since Promgen does not support dark mode, we resolved this issue by simply forcing Rapidoc to
always use the light theme.
@hoangpn
hoangpn force-pushed the bug_fix/weird_api_specs_page_in_dark_mode branch from 28fe974 to d32d9a2 Compare October 27, 2026 08:02
@vincent-olivert-riera
vincent-olivert-riera merged commit ff21f59 into line:master Oct 27, 2026
4 checks passed
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.

2 participants