New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/canvas-theme

Package Overview
Dependencies
Maintainers
0
Versions
1548
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/canvas-theme

A theme for Canvas LMS made by Instructure Inc.

10.13.1-pr-snapshot-1741357986437
Source
npm
Version published
Weekly downloads
20K
11.17%
Maintainers
0
Weekly downloads
 
Created
Source

category: packages

canvas-theme

npm 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

npm install @instructure/canvas-theme

Usage

Before mounting (rendering) your React application:

  • global theming:

    import { theme } from '@instructure/canvas-theme'
    
    theme.use()
    
  • application level theming:

    import { theme } from '@instructure/canvas-theme'
    
    ReactDOM.render(
      <InstUISettingsProvider theme={theme}>
        <App />
      </InstUISettingsProvider>,
      element
    )
    

To override the variables:

  • globally:

    import { theme } from '@instructure/canvas-theme'
    
    theme.use({ overrides: { spacing: { xxxSmall: '0.3rem' } } })
    
  • application level:

    import { theme } from '@instructure/canvas-theme'
    const themeOverrides = { spacing: { xxxSmall: '0.3rem' } }
    
    ReactDOM.render(
      <InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}>
        <App />
      </InstUISettingsProvider>,
      element
    )
    

FAQs

Package last updated on 07 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts