File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010Install with [ npm] ( https://www.npmjs.com/ )
1111
1212```
13- $ npm install --save load-themed-styles
13+ $ npm install --save @microsoft/ load-themed-styles
1414```
1515
1616## Usage
1717
18- To load a given string of styles, you can do this:
18+ To load a given string of styles, you can do this in TypeScript or ES6 :
1919
20- ``` js
21- import { loadStyles } from ' load-themed-styles' ;
20+ ``` TypeScript
21+ import { loadStyles } from ' @microsoft/ load-themed-styles' ;
2222
2323loadStyles (' body { background: red; }' );
2424```
@@ -38,7 +38,7 @@ loadStyles('body { background: "[theme:primaryBackgroundColor, default: blue]"')
3838When loading, the background will use the default value, blue. Providing your own theme values using the ` loadTheme ` function:
3939
4040``` js
41- import { loadStyles , loadTheme } from ' load-themed-styles' ;
41+ import { loadStyles , loadTheme } from ' @microsoft/ load-themed-styles' ;
4242
4343loadTheme ({
4444 primaryBackgroundColor: " #EAEAEA"
You can’t perform that action at this time.
0 commit comments