document how to test theme changes locally
Opened this issue · 2 comments
Enhancement
The README.md should describe how to build this project and use it in another project. This would help contributors.
My development steps are
npm run build
npm run release:prepare
npm run dojo-package
Then within the project you want to test (e.g. widget-showcase)
npm i ../../themes/dist/release
FYI
Widgets showcase can take additional themes by adding them to the main.ts
file
In main.ts
in widget-showcase
if you import @dojo/themes/material/index.css
then you will get the unbuilt source. For the widget-showcase
build process to successfully build, you have to add any imported Material dependencies to widget-showcase
. To avoid this, import the built CSS from themes:
import '@dojo/themes/material/material-5.0.1-pre.css';
I have an updated branch of the dojo widget-showcase which can be used to test the material theme.
Note: at time of writing, the dojo radio styles are broken by #49