This code allows you to set a default mode for first visits using window.defaultMode = "dark"; or window.defaultMode = "light"; in the script tag, keeping things a one liner import as well as they are in the same tag than the original. Also i mentionned first visit because locally stored value will ALWAYS overwrite this value. If left empty the default behavior apply (aka system/browser pref).
i just added formatting to the main branch. could you please merge back the main branch into this one, and after resolving the conflicts, run npm run format and npm run lint
This code allows you to set a default mode for first visits using window.defaultMode = "dark"; or window.defaultMode = "light"; in the script tag, keeping things a one liner import as well as they are in the same tag than the original. Also i mentionned first visit because locally stored value will ALWAYS overwrite this value. If left empty the default behavior apply (aka system/browser pref).