This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
How can I create multi theme sapper app? #562
Closed
Description
Is the sapper designed to create applications with multiple themes? If so, how can I do this?
I see that the styles of each component are loaded at the end of the head tag with the generated class names. To add a theme I need, somehow, to put a file with a theme after the head tag and add readable classes inside the components. Of course - this is a bad decision, but I still do not see others.
Ideally, I would like the theme of the application to be divided between the components and will load in parts, but so that it is in one place in the project. And so that the user can switch themes without restarting the application. Is it possible at all?
Thanks.