spfx-js-theme
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Purpose of Package

This package provides a typing for the Microsoft SharePoint Online theme object passed to webparts via window.__themeState__

This package was derived from the more comprehensive and excellent package spfx-uifabric-themes by Stefan Bauer.

This package is intended to be a simplified version of that package that simply provides a typing for the _themeState_ object

Installation

npm install --save spfx-js-theme

How to Use

import { ITheme } from 'spfx-js-theme'

const theme: ITheme = window.__themeState__.theme;

Thank you for checking out this package and enjoy!

Readme

Keywords

Package Sidebar

Install

npm i spfx-js-theme

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

11.8 kB

Total Files

5

Last publish

Collaborators

  • chris.casella