dojo / themes

Dojo Framework Themes
11 stars 19 forks source link

document how to test theme changes locally #51

Open aciccarello opened 5 years ago

aciccarello commented 5 years ago

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

msssk commented 5 years ago

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';
aciccarello commented 5 years ago

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