0.1.0 • Published 5 years ago

@rock-kit/canvas-high-contrast-theme v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

category: packages

canvas-high-contrast-theme

npm build-status MIT License Code of Conduct

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

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

Installation

yarn add @rock-kit/canvas-high-contrast-theme

Usage

Before mounting (rendering) your React application:

import { theme } from '@rock-kit/canvas-high-contrast-theme'
theme.use()

To override the variables:

theme.use({ overrides: { colors: { brand: 'red' } } })