This is an Astro integration that eliminates FOUC (Flash Of Unstyled Content) by injecting an inline script that sets the 'dark'
class on the document element before the page is rendered. The script gets the local storage value or, if one isn't provided, uses system preference to determine the theme.
This package is structured as a monorepo:
playground
contains code for testing the packagepackage
contains the actual package
To see how to get started, check out the package README
AGPL-3.0 Licensed. Made with ❤️ by Bassim [AVGVSTVS96].