Webflow sites may not display correctly in Samsung Internet Browser's dark mode because the browser forcefully alters styles to create a dark theme. To fix this, you can prevent the browser from overriding your Webflow design.
1. Add CSS to Prevent Forced Dark Mode
- Go to Webflow Designer and open Page Settings for the affected page.
- Scroll to the Custom Code section and add the following inside the Before tag field:
```html\`\`\` - This tells the browser to retain your original light mode styles.
2. Use CSS to Control Elements Manually
- If some elements still look incorrect, override unwanted dark mode styles by adding a custom CSS embed in your Webflow project:
```css
html {
background-color: #ffffff !important;
color: #000000 !important;
}
``` - Adjust the colors based on your design requirements.
3. Test the Changes
- Open your site in Samsung Internet Browser with dark mode enabled to confirm that the design remains intact.
- If issues persist, inspect elements using DevTools on a Samsung device or Samsung Browser's developer mode.
Summary
To fix Webflow sites breaking in Samsung Browser's dark mode, add a meta tag to disable forced dark mode and apply custom CSS overrides if necessary. Then, test to ensure your design remains consistent.