alinarub / dog-app

Dog App created by Achim, Gregor and Alina.
https://dog-genie.com
2 stars 0 forks source link

Dark mode #45

Closed gregorsart closed 10 months ago

gregorsart commented 11 months ago

Last PR for the app maybe 💯

If someone has an idea on how to change the color of the ImageTextModule depending on two things:

  1. The passed react props (should there be a change of color yes or no)
  2. The active theme mode (dark / light) we get via react context api

And last but not least we "invented" a working solution for the CreateGlobalStyles and implemented it in app.js in line 23

{themeMode === "light" ? <GlobalStyle /> : <DarkModeStyles />}

We are not sure if this is best practice (but it works)

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dog-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2023 8:39am