@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 run bower cache clean
and try again.
@dojo/themes
with npm i @dojo/themes
.main.css
: @import '~@dojo/themes/dojo/index.css
.import theme from '@dojo/themes/dojo'; render() { return w(Button, { theme }, [ 'Hello World' ]); }
@dojo/themes
with npm i @dojo/themes
.index.html
: <link rel="stylesheet" href="node_modules/@dojo/themes/dojo/dojo-{version}.css">
.index.html
: <script src="node_modules/@dojo/themes/dojo/dojo-{version}.js"></script>
.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.
/* 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 following npm
scripts are available to facilitate development:
build:tcm
: generate .m.css.d.ts
fileswatch
: generate .m.css.d.ts
files in watch modeRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4