Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
@instructure
/
canvas-high-contrast-theme
/
Filename :
README.md
back
Copy
--- category: packages --- ## canvas-high-contrast-theme [![npm][npm]][npm-url] [![MIT License][license-badge]][license] [![Code of Conduct][coc-badge]][coc] 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 ```sh npm install @instructure/canvas-high-contrast-theme ``` ### Usage Before mounting (rendering) your React application: - global theming: ```js import { theme } from '@instructure/canvas-high-contrast-theme' theme.use() ``` - application level theming: ```jsx import { theme } from '@instructure/canvas-high-contrast-theme' ReactDOM.render( <InstUISettingsProvider theme={theme}> <App /> </InstUISettingsProvider>, element ) ``` To override the variables: - globally: ```js import { theme } from '@instructure/canvas-high-contrast-theme' theme.use({ overrides: { colors: { brand: 'red' } } }) ``` - application level: ```jsx import { theme } from '@instructure/canvas-high-contrast-theme' const themeOverrides = { colors: { brand: 'red' } } ReactDOM.render( <InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}> <App /> </InstUISettingsProvider>, element ) ``` [npm]: https://img.shields.io/npm/v/@instructure/canvas-high-contrast-theme.svg [npm-url]: https://npmjs.com/package/@instructure/canvas-high-contrast-theme [license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square [license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square [coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md