You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @dojo/themes repository has been deprecated. Dojo themes have been merged into @dojo/widgets.
Dojo Themes
Package that contains a collection of Dojo themes.
Please Note: If you are looking for Dojo 1 themes, these have been relocated to @dojo/dijit-themes. The github url registered with bower has also been updated to point to the new repository, if you encounter any issues please run bower cache clean and try again.
Usage
With Dojo applications
Install @dojo/themes with npm i @dojo/themes.
Import the theme CSS into your project's main.css: @import '~@dojo/themes/dojo/index.css.
Import the theme module and pass it to the widgets you need themed:
Add the custom element-specific theme CSS to index.html: <link rel="stylesheet" href="node_modules/@dojo/themes/dojo/dojo-{version}.css">.
Add the custom element-specific theme JS to index.html: <script src="node_modules/@dojo/themes/dojo/dojo-{version}.js"></script>.
Composition
To compose and extend the themes within a dojo project, run npm i @dojo/themes and use the css-module composes functionality.
Variables can be used by using @import to import the variables.css file from a theme. This functionality is added by a post-css plugin within the dojo build command.