JSPM

@instructure/ui-themes

5.39.1-rc.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10988
  • Score
    100M100P100Q138399F
  • License MIT

A library of @instructure/ui-themeable themes

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

npm build-status MIT License Code of Conduct

Installation

yarn add @instructure/ui-themes

Usage

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