Tags: abereghici/remix-themes
Tags
feat(theme-provider): Suppress hydration warning and add String.raw (#40 ) This commit suppresses the hydration warning in the browser by adding `suppressHydrationWarning` to the script tag. This is necessary to prevent the browser from throwing a warning about extra attributes from the server, specifically `nonce`. Additionally, `String.raw` has been added for the manually injected script content. This is used to get the raw string form of template strings, which is useful when you want to avoid processing of escape sequences.
feat(system-theme): added support for system themes `useTheme` hook provides a `metadata` object with `definedBy` property which indicates the source of the theme. This should be enough to build a light/dark/system dropdown. To set the system theme pass a `null` value to `setTheme`.
feat(flashing): prevent flashing (#29) * feat(flashing): Added `disableTransitionOnThemeChange` prop to ThemeProvider to control the transitions when the theme changes. --------- Co-authored-by: Federico Di Stefano <[email protected]> Co-authored-by: Alexandru Bereghici <[email protected]>
PreviousNext