-
Is there a correct way to build fomantic for several themes automatically?
Or how to make several themes (for switch between them on the fly)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This currently needs a custom workflow, because each compile would need a different
|
Beta Was this translation helpful? Give feedback.
-
For anyone reading: I created a theme switcher for this purpose:
Then run something like:
(A theme is called a context in my setup. Also, if task fails to execute fully, the original theme.config will not be restored.) |
Beta Was this translation helpful? Give feedback.
This currently needs a custom workflow, because each compile would need a different
theme.config
(where you define the theme per each component)So to accomplish your use case, you could
theme.config
files (one for each theme)semantic.json
files (which define the individual path to theme.config and desired output path)a) copy the desired semantjc.json to the FUI root folder
b) run
npx gulp build
in FUI root folderc) redo a) and b) for each of your themes