dojo/themes

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Dojo Themes

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.

Usage

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' ]);

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 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);

Generating typings

Run npm run build to generate .m.css.d.ts files


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.