Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Show different logo/icon component depending on theme selected?

default discord avatar
plainnn2 years ago
2

Is it possible to show a different logo/icon depending on whether the user has the light/dark theme selected?


  admin: {
    components: {
      graphics: {
        Logo, 
        Icon: Logo,
      },
  }
}


Something like

Icon: isDark ? Logo : LightLogo
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.