99.10.0 • Published 4 years ago
@temporg/ui-themes v99.10.0
category: packages
ui-themes
Installation
yarn add @temporg/ui-themes
Usage
Before mounting (rendering) your React application:
import { canvas } from '@temporg/ui-themes'
canvas.use()
To override the variables:
theme.use({ overrides: { colors: { brand: 'red' } } })
To use the high contrast theme:
import { canvasHighContrast } from '@temporg/ui-themes'
canvasHighContrast.use()