JSPM

@instructure/instructure-theme

8.22.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4696
  • Score
    100M100P100Q132371F
  • License MIT

A theme for Instructure made by Instructure Inc.

Package Exports

  • @instructure/instructure-theme
  • @instructure/instructure-theme/es/index.js
  • @instructure/instructure-theme/lib/index.js

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/instructure-theme) 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-theme

npm MIT License Code of Conduct

A UI component theme for Instructure made by Instructure Inc.

This theme has a 3:1 minimum contrast requirement.

Installation

yarn add @instructure/instructure-theme

Usage

Before mounting (rendering) your React application:

import { theme } from '@instructure/instructure-theme'

ReactDOM.render(
  <InstUISettingsProvider theme={theme}>
    <App />
  </InstUISettingsProvider>,
  element
)

To override the variables:

import { theme } from '@instructure/instructure-theme'
const themeOverrides = { colors: { brand: 'red' } }

ReactDOM.render(
  <InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}>
    <App />
  </InstUISettingsProvider>,
  element
)