github chakra-ui/chakra-ui @chakra-ui/color-mode@1.2.0

latest releases: @chakra-ui/system@2.6.2, @chakra-ui/styled-system@2.9.2, @chakra-ui/storybook-addon@5.1.0...
2 years ago

Minor Changes

  • 71f80b67c
    #4634 Thanks
    @SkySails! - Added possibility to use the
    system preferred color scheme as value for initialColorMode, while still
    respecting a user's previous choice.

    As long as the user does not manually select a color mode through a website
    interaction, the theme will change when the system preference changes.

    This would easily allow for an implementation where the user can choose
    between light, dark and system by simply setting the initialColorMode
    setting to system and presenting the user with the three options.

Don't miss a new chakra-ui release

NewReleases is sending notifications on new releases.