Skip to content
#

emotion

Here are 720 public repositories matching this topic...

theme-ui
hasparus
hasparus commented Dec 16, 2020

Is your feature request related to a problem? Please describe.

  1. I visit a website styled with Theme UI which has useColorModeMediaQuery set to true during the evening, and I see dark mode.
  2. When I visit it again in the morning next day, there's still dark mode.
  3. If I clear my local storage, the website will use light mode.
  4. When I visit it later at night, it's still going to be
astgermain
astgermain commented Dec 16, 2020

Animations can easily be reversed for cleanup using state to set the value of a reverse prop and is already implemented but it is not stated in documentation even though it works.

Example:

const [shown, setShown] = useState(false)
const yeetMenu = () => {
    setShown(!shown)
}
<Slide
      duration={500}
      triggerOnce={true}
      direction="right"
      reverse={shown}

Improve this page

Add a description, image, and links to the emotion topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the emotion topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.