Office UI Fabric and Office 365 Theme support for SharePoint Framework Projects
This NPM package allows you to use theme token from Office UI Frabric in SharPoint Framework Projects.
Create a new SharePoint Framework Project and add this package to your project.
npm install --save-dev spfx-uifabric-themes
After this installation this package should be listed as a dev dependency in your SPFX Project.
Enhanced theme slot selection
You can use it the same way like before but the variable reference will change to.
This new SASS file will support more that 100 different themes slots such as backgroundColor, textColor.
The variables have been renamed to follow this pattern now:
Use TypeDefinitions for
In your web part code add the following line to your webpart or extension project.
After that you should see the following extensions on the window object.
CSS Variable support for SPFx projects
You will find all additional functions in the documentation:
Create font-weight, font-styles and general text styles
- State styles
Creates alert, error, info, server and success styles
Copyright (c) 2017 Stefan Bauer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.