Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 752 Bytes

README.md

File metadata and controls

16 lines (8 loc) · 752 Bytes

astro-fouc-killer

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 package
  • package contains the actual package

To see how to get started, check out the package README

Licensing

AGPL-3.0 Licensed. Made with ❤️ by Bassim [AVGVSTVS96].