Socket
Book a DemoInstallSign in
Socket

@instructure/canvas-high-contrast-theme

Package Overview
Dependencies
Maintainers
42
Versions
1718
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/canvas-high-contrast-theme

A high contrast theme for Canvas LMS made by Instructure Inc.

10.24.2
latest
Source
npmnpm
Version published
Weekly downloads
2.8K
-58.32%
Maintainers
42
Weekly downloads
 
Created
Source

canvas-high-contrast-theme

npm MIT License Code of Conduct

A high contrast UI component theme made by Instructure Inc.

This theme meets the WCAG 2.1 Level AAA minimum contrast requirements.

Installation

npm install @instructure/canvas-high-contrast-theme

Usage

Before mounting (rendering) your React application:

  • global theming (DEPRECATED):

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

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

To override the variables:

  • globally (DEPRECATED):

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

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

FAQs

Package last updated on 11 Aug 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.