Hi Team,
I am currently working with Pega Constellation 25.1 and have a requirement to enable a user-controlled Light/Dark theme toggle at runtime.
Since Constellation uses Design Tokens and App Studio usually only allows one active theme per portal, I’m looking for the best way to handle this.
-
Is there a built-in way in 25.1 to support “prefers-color-scheme” (system dark mode)?
-
If not, what is the recommended approach for a user-controlled toggle? Should I use a Custom DX Component in the header to swap CSS variables?
-
Where is the best place to save the user’s theme preference (Operator record or a Data Page)?
Looking forward to your advice and any best practices!