Package Exports
- @instructure/ui-themes
- @instructure/ui-themes/lib
- @instructure/ui-themes/lib/canvas
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@instructure/ui-themes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
category: packages
@instructure/ui-themes
Installation
yarn add @instructure/ui-themesUsage
Before mounting (rendering) your React application:
import theme from '@instructure/ui-themes/lib/canvas'
theme.use()To override the variables:
theme.use({ overrides: { colors: { brand: 'red' } } })To use the high contrast theme:
import theme from '@instructure/ui-themes/lib/canvas/high-contrast'
theme.use()