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

@instructure/ui-themes

Package Overview
Dependencies
Maintainers
36
Versions
2051
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

  • 10.8.1-snapshot-2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
decreased by-16.89%
Maintainers
36
Weekly downloads
 
Created
Source

category: packages

ui-themes

npm MIT License Code of Conduct

Installation

npm install @instructure/ui-themes

Usage

Before mounting (rendering) your React application:
  • application level theming:

    ---
    type: code
    ---
    import canvas from '@instructure/ui-themes'
    
    ReactDOM.render(
      <InstUISettingsProvider theme={canvas}>
        <App />
      </InstUISettingsProvider>,
      element
    )
    
  • (DEPRECATED) global theming:

    ---
    type: code
    ---
    import canvas from '@instructure/ui-themes'
    
    canvas.use()
    
To override the theme variables:
  • (DEPRECATED) globally:

    ---
    type: code
    ---
    import canvas from '@instructure/ui-themes'
    
    canvas.use({ overrides: { colors: { brand: 'red' } } })
    
  • application level:

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

You can read more about how our theming system works and how to use it here

FAQs

Package last updated on 11 Dec 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