libs/theme-switch/README.md
# @daffodil/theme-switch
`@daffodil/theme-switch` is a library of components used across the `@daffodil` apps. It centralizes interfaces related to switching themes so that it can be consistently used across the apps.
`@daffodil/theme-switch` is NOT a published library, so you shouldn't expect to find it on the npm registry.
## Installation Instructions
There are a few steps to use this library in your app. Do note that we intend to turn this into an `ng add` schematic for simplicity, but this will work in the near-term.
1. Add the package to your apps `devDependencies`.
2. Add the following to your apps `angular.json`
```json
myproject.architect.build.options.assets
{ "glob": "**/*", "input": "libs/theme-switch/src/assets/", "output": "/assets/daff-theme-siwtch/" }
```
```json
myproject.architect.build.options.stylePreprocessorOptions.includePaths
"libs/theme-switch/src/scss"
```
After this, you will be able to use the components in your app.
## Theming
If your app utilizes theming, you can customize supporting components by taking advantage of the SCSS mixins supplied in `src/scss/daff-theme-switch-theme.scss`.