Like what we’re doing? Star us on GitHub!

How to customize dark / light mode branding

Oron
4 weeks ago
4

when white labeling using logo / icon, how can I tell the custom logo component what to render dark or light logo? is there a global parameter for knowing if we are working in light or dark mode ?

  • damnstaychill
    4 weeks ago

    Hey @Oron there is a local storage key

    payload-theme

    that's value is light/dark that you can read from within your logo component

  • Oron
    4 weeks ago

    @damnstaychill but that only give me the user's choice, could be auto and then it's empty



    I need the actual "real time" theme that is used

  • Jarrod
    Payload Team
    4 weeks ago
Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More