Paul Armstrong · Nov 21, 2022
Using client hints to prevent FARTs with website auto dark mode themes
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
I originally wanted to avoid using any sort of server-side code for my site, getting around the FART completely is not currently possible when you have a statically generated site. In this post, I’ll walk through how I got rid of the flash of inaccurate color themes for Tailwindcss dark mode (with auto media query support!), building off of some others’ examples using Netlify Edge Functions.…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.