Client Hints are now supported (Light/dark/system mode without flash of the incorrect theme!) #125
                  
                    
                      kentcdodds
                    
                  
                
                  announced in
                Announcements
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The decision document has been available for a while: https://github.com/epicweb-dev/epic-stack/blob/main/docs/decisions/005-client-pref-cookies.md
And now the work has been merged: #64
Along with support for themes! Users can choose between Light, Dark, or System (system will determine the proper value based on the user's system settings).
The client hints abstraction built-into the stack will also handle any other things you only know on the client that you want to know for the server render.
Check out this tip which demonstrates how to use this feature by adding another client hint: https://www.epicweb.dev/tips/use-client-hints-to-eliminate-content-layout-shift
Beta Was this translation helpful? Give feedback.
All reactions