JSPM

@instructure/canvas-theme

7.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1251
  • Score
    100M100P100Q143747F
  • License MIT

A theme for Canvas LMS made by Instructure Inc.

Package Exports

  • @instructure/canvas-theme
  • @instructure/canvas-theme/package.json

Readme


category: packages

canvas-theme

npm  build-status  MIT License  Code of Conduct

A UI component theme for Canvas LMS made by Instructure Inc.

This theme has a 3:1 minimum contrast requirement.

Installation

yarn add @instructure/canvas-theme

Usage

Before mounting (rendering) your React application:

import { theme } from '@instructure/canvas-theme'
theme.use()

To override the variables:

theme.use({ overrides: { colors: { brand: 'red' } } })