@instructure/canvas-theme
TypeScript icon, indicating that this package has built-in type declarations

10.23.0 • Public • Published

canvas-theme

npm MIT License Code of Conduct

A UI component theme made by Instructure Inc.

This theme has WCAG 2.1 Level AA minimum contrast requirement.

Installation

npm install @instructure/canvas-theme

Usage

Before mounting (rendering) your React application:

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

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

To override the variables:

import { theme } from '@instructure/canvas-theme'
const themeOverrides = { spacing: { xxxSmall: '0.3rem' } }

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

/@instructure/canvas-theme/

    Package Sidebar

    Install

    npm i @instructure/canvas-theme

    Weekly Downloads

    14,933

    Version

    10.23.0

    License

    MIT

    Unpacked Size

    126 kB

    Total Files

    14

    Last publish

    Collaborators

    • jakeoeding
    • instuici
    • eschiebel
    • maths22
    • jcrystal
    • itadmins
    • instructure-toolsmiths-service-user
    • aogata-inst
    • kyler-instructure
    • ericsaupe
    • xcudder
    • jdewar
    • jguardadom
    • jcflow
    • jozsefg-instructure
    • jacksonhowe
    • sarahgerard
    • ajmal-esa
    • robinkuss64
    • david.wenzlick.inst
    • razorsh4rk
    • ardena
    • bpjatacsuk
    • angela.gomba
    • joyenjoyer
    • cguanzon-inst
    • herrtopi
    • matyas.szabo
    • cjs118
    • camray
    • dmz985
    • aaronshaf
    • szilard.doro-inst
    • martongreczi-inst
    • instout
    • svcquizzesnpm
    • balazs.buri.instructure
    • mstarkman
    • daniel-torok
    • fmarcso
    • peipeizhou
    • is-adamszabo