let's say we have a website with multiple pages and also a page for user account. the user has a setting in his panel to change the color/fontsize/style etc of certain parts in other pages of website for himself. how should this be implemented?
I know if it was a single page web app, I could set css variables and change them with js via input. this would work as it is only a single page with same :root for all different sections and menus.
what if it is a multi-page website? how can I make the setting affect style of other pages? I'm thinking about setting css style of those customizable elements in js by fetching data from backend by getting a json file with colors for example and setting those elements color with the data received from database. choosing a color in setting POSTs the data to database and other pages GET the style and set it on specific elements.
is this the right method?? are there any other methods or even libraries for this??