Skip to content

Conversation

@humitos
Copy link
Member

@humitos humitos commented Aug 27, 2025

Let EA to handle light/dark mode. We keep updating the internal variable documentationThemeMode just in case we need it in the future for now. We can remove it eventually if we want.

Requires readthedocs/ethical-ad-client#229

Let EA to handle light/dark mode. We keep updating the internal variable
`documentationThemeMode` just in case we need it in the future for now. We can
remove it eventually if we want.

Requires readthedocs/ethical-ad-client#229
@davidfischer
Copy link
Contributor

The adaptive light/dark mode is available on the beta client and I'll aim to roll it out more widely in a couple days.

Based on this code, it looks like your plan is to always set the placement as adaptive and then it will adapt if the theme supports it. That should be OK in virtually all cases.

@humitos
Copy link
Member Author

humitos commented Aug 28, 2025

Based on this code, it looks like your plan is to always set the placement as adaptive and then it will adapt if the theme supports it. That should be OK in virtually all cases.

Yes. I will start there relying completely con the EA CSS. We can make adjustments (enable/disable this) for specific themes/doctools in the near future if we find that it doesn't work as expected. It worked in all the themes I tried, so far.

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Excited for this to move forward! I think this will make the ads way nicer for a lot of RTD users. 💯

@humitos humitos merged commit 38da019 into main Aug 28, 2025
4 checks passed
@humitos humitos deleted the humitos/ea-adaptive-css branch August 28, 2025 16:28
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.

4 participants