- Notifications
You must be signed in to change notification settings - Fork19
dojo/themes
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The@dojo/themes repository has been deprecated. Dojo themes have been merged into@dojo/widgets.
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 runbower cache clean and try again.
- Install
@dojo/themeswithnpm 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:
importthemefrom'@dojo/themes/dojo';render(){returnw(Button,{ theme},['Hello World']);}
- Install
@dojo/themeswithnpm i @dojo/themes. - 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>.
To compose and extend the themes within a dojo project, runnpm i @dojo/themes and use thecss-module composes functionality.Variables can be used by using@import to import thevariables.css file from a theme. This functionality is added by apost-css plugin within the dojo build command.
/* myButton.m.css */@import'@dojo/themes/dojo/variables.css';.root {composes: root from'@dojo/themes/dojo/button.m.css';background-color:var(--dojo-green);}
The followingnpm scripts are available to facilitate development:
build:tcm: generate.m.css.d.tsfileswatch: generate.m.css.d.tsfiles in watch mode
About
Dojo Framework Themes
Topics
Resources
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.