diff --git a/README.md b/README.md index ce593664..42e42b32 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,34 @@ export default app; See [webpack.config.js](examples/webpack/webpack.config.js) in [examples/webpack](examples/webpack). +#### Dynamic theming + +Use `carbon-components-svelte/css/all.css` for dynamic, client-side styling. + +Update the theme by setting the `theme` attribute on the `html` element. The default `theme` is `"white"`. + +```html + + + + ... + + +``` + +Using JavaScript: + +```svelte + + + +``` + ### TypeScript support [TypeScript definitions](types) are generated by [sveld](https://github.com/IBM/sveld).