when connected, codeberg.org theme is not applied to docs.codeberg.org #722

Open
opened 4 weeks ago by bmorel · 1 comments
bmorel commented 4 weeks ago

I selected the dark theme as settings in https://codeberg.org. This works nicely (less white is better for my eyes at night) but when going on https://docs.codeberg.org, this theme is not applied.
There is also no apparent way to have a dark mode or alike in there, which might be an actually good thing because if it was implemented the same way it is on https://blog.codeberg.org/ it would be worst, as there, every click starts with the default white-background theme and "quickly" switches to the dark them, making the site flickering.

I selected the dark theme as settings in https://codeberg.org. This works nicely (less white is better for my eyes at night) but when going on https://docs.codeberg.org, this theme is not applied. There is also no apparent way to have a dark mode or alike in there, which might be an actually good thing because if it was implemented the same way it is on https://blog.codeberg.org/ it would be worst, as there, every click starts with the default white-background theme and "quickly" switches to the dark them, making the site flickering.
n commented 4 weeks ago
Collaborator

The docs website uses the prefers-color-scheme feature to automatically select your theme based on your browser/system settings. You can change your preferred theme to dark in your browser/system settings and then the docs website will switch to the dark theme.

Unfortunately, the design toolkit we use sets the theme using JavaScript instead of CSS, so there is a slight delay in switching to the dark theme when you load the website.

The docs website uses the `prefers-color-scheme` feature to automatically select your theme based on your browser/system settings. You can change your preferred theme to dark in your browser/system settings and then the docs website will switch to the dark theme. Unfortunately, the design toolkit we use sets the theme using JavaScript instead of CSS, so there is a slight delay in switching to the dark theme when you load the website.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Codeberg/Community#722
Loading…
There is no content yet.