Search code examples
spartacus-storefront

How do you change the theme based on login in Spartacus?


I'm working on a B2B portal using Spartacus where multiple companies can login. We need to show a different theme (scss) depending on what company they are logging in from.

Does anyone know how to do this?


Solution

  • Out of the Box (OOTB), Spartacus does not support changing themes during runtime, and themes are not tied to the user profile either.

    Themes can be set dynamically in the back-office (see documentation)