Name: themes
Owner: Dojo
Description: Dojo 2 themes
Created: 2018-01-15 16:28:46.0
Updated: 2018-05-11 16:20:50.0
Pushed: 2018-05-11 16:20:49.0
Homepage: null
Size: 175
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Package that contains a collection of Dojo 2 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.
Simply npm i @dojo/themes
into your project and import the theme you require.
rt theme from '@dojo/themes/dojo';
er() {
return w(Button, { theme }, [ 'Hello World' ]);
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 2 build command.
yButton.m.css */
ort '@dojo/themes/dojo/variables.css';
t {
composes: root from '@dojo/themes/dojo/button.m.css';
background-color: var(--dojo-green);
Run npm run build
to generate .m.css.d.ts
files