Socket
Socket
Sign inDemoInstall

@instructure/canvas-high-contrast-theme

Package Overview
Dependencies
75
Maintainers
33
Versions
1241
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
15K
increased by7.87%
Maintainers
33
Install size
6.33 MB
Created
Weekly downloads
 

Changelog

Source

8.55.0 (2024-04-09)

Bug Fixes

  • ui-dialog: menu closes when clicking on submenu (7e7d1aa)
  • ui-drawer-layout: fix drawerlayout transition bug (27ae4f1)
  • ui-tabs: fix automatic id generation (4645981)
  • ui-tray: make focus trapping work (048b9b4)

Features

  • ui-buttons: add stronger css rules for focused links (84f2306)

Readme

Source

category: packages

canvas-high-contrast-theme

npm MIT License Code of Conduct

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

This theme meets the WCAG 2 Level AA 4.5:1 minimum contrast requirements.

Installation

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

Usage

Before mounting (rendering) your React application:

  • global theming:

    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:

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

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

FAQs

Last updated on 09 Apr 2024

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc