In our project, scrom-wrapper is using the training-components library. We want to implement a flexible theming system by changing the primary color in training-components. This article explains how we can set environment variables during the build process of scorm-wrapper to customize the primary color of the imported training-components.
Passing Sass variables during the build process offers several advantages:
- Flexibility: It allows us to change the theme without modifying the source code.
- Reusability: The same components can be used with different themes in various projects.