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

@instructure/instructure-theme

Package Overview
Dependencies
Maintainers
32
Versions
1008
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/instructure-theme

A theme for Instructure made by Instructure Inc.

  • 8.54.1-snapshot-3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
decreased by-79.42%
Maintainers
32
Weekly downloads
 
Created
Source

category: packages

instructure-theme

npm MIT License Code of Conduct

A UI component theme for Instructure made by Instructure Inc.

This theme has a 3:1 minimum contrast requirement.

Installation

npm install @instructure/instructure-theme

Usage

Before mounting (rendering) your React application:

  • global theming:

    import { theme } from '@instructure/instructure-theme'
    
    theme.use()
    
  • application level theming:

    import { theme } from '@instructure/instructure-theme'
    
    ReactDOM.render(
      <InstUISettingsProvider theme={theme}>
        <App />
      </InstUISettingsProvider>,
      element
    )
    

To override the variables:

  • globally:

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

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

FAQs

Package last updated on 08 Apr 2024

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