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!