#dynamic theme?

5 messages · Page 1 of 1 (latest)

past oyster
#

Hello,
I have a requirement to allow clients to choose one of the available color themes (red, green, blue, etc)

It will be saved as preference in database and I would like to load and use it on runtime.

My idea to achieve that:

Create a function that returns ThemeOverride with custom colors passed as function arguments.

Better way or suggestion? (looking for mantine way for that)

slow hearth
little trellis
past oyster
little trellis
#

yes, you can use any fetching library you prefer like axios, react query etc to grab this information from your backend, then use it to set state, it will be reactive