Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/ui-themes

Package Overview
Dependencies
Maintainers
28
Versions
2018
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-themes

A library of instructure themes

  • 8.1.1-snapshot.36
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-6.67%
Maintainers
28
Weekly downloads
 
Created
Source

category: packages

ui-themes

npm  build-status  MIT License  Code of Conduct

Installation

yarn add @instructure/ui-themes

Usage

Before mounting (rendering) your React application:

import { canvas } from '@instructure/ui-themes'

ReactDOM.render(
  <EmotionThemeProvider theme={canvas}>
    <App />
  </EmotionThemeProvider>,
  element
)

To override the variables:

import { canvas } from '@instructure/ui-themes'
const themeOverrides = { colors: { brand: 'red' } }

ReactDOM.render(
  <EmotionThemeProvider theme={{ ...canvas, ...themeOverrides }}>
    <App />
  </EmotionThemeProvider>,
  element
)

To use the high contrast theme:

import { canvasHighContrast } from '@instructure/ui-themes'

ReactDOM.render(
  <EmotionThemeProvider theme={canvasHighContrast}>
    <App />
  </EmotionThemeProvider>,
  element
)

FAQs

Package last updated on 22 Apr 2021

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc