Hello @thickaccent
Are you facing issue on any particular page?
I will recommend adding custom CSS in Appearance -> Customize -> Additional CSS
for example, to increase overall font-size and change font-weight you can use the following CSS
body {
font-size:25px;
font-weight: 500;
}
Hi Milind
The problem is sitewide and using that customization hasn’t solved the issue. I would post a screenshot but the problem could be seen easily if you visit the url.
Regards
Surjit
It’s quite weird. While on the ‘customiser’ it looks fine and the option of ‘dark mode’ is also available. But when you move out of it and surf the site without the customiser, the words become lighter and there is no ‘dark mode’ option.
The AMP is on ‘standard’ mode btw.
Can you please share a screenshot of “light words”
Currently, dark mode support is only available to users if their system supports it. The theme toggle that is shown which allows the user to switch between light and dark mode has been removed from the frontend, due to the inability to persist the theme preference and being able to unserialize that into the AMP state without explicit user interaction. This issue is being tracked in https://github.com/ampproject/amphtml/issues/20951
I have switched back to the twenty-twenty theme.
@thickaccent I am trying to reproduce the issue at my end, I will recommend turning off the dark mode feature on twentytwentyone for now.
Hello @thickaccent
I am able to reproduce the issue, thanks for reporting it, it seems the custom background color is overriding dark mode background. I will check with plugin developers if we can fix this within the plugin as all core theme sanitizers are in plugins.
I will mark steps here:
1) Switch your system to dark mode (Mac Dark Mode)
2) Visit Customizer
a) Enable Dark Mode.
b) Change the background color to something else than the default. (white)
3) Visit the AMP page.
for now, you can use the code snippet below:
EDIT: Use this code snippet in themes functions.php or in custom plugin
add_filter(
'body_class',
function( $classes ) {
$is_dark_mode_enabled = get_theme_mod( 'respect_user_color_preference', false );
if ( ! function_exists( 'is_amp_endpoint' ) || ( function_exists( 'is_amp_endpoint' ) && ! is_amp_endpoint() ) && $is_dark_mode_enabled ) {
return $classes;
}
$key = array_search( 'custom-background', $classes, true );
if ( false !== $key ) {
unset( $classes[ $key ] );
}
return $classes;
}
);
-
This reply was modified 5 years, 3 months ago by
Milind More.
-
This reply was modified 5 years, 3 months ago by
Milind More.
We’ve fixed the underlying issue this will be included in the next release.