Skip to content

About

SPFx solution for pol-styler

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

pol-styler

Summary

This Application customizer lets you override any and all CSS on SharePoint pages across the site collection. Create a Document library named 'Styling' under /sites/cdn/ and place your CSS file named PolStyler.css there. The path can also be configured, see further down on this page for examples.

Add the Pol.Styler app to your SharePoint sites to enjoy the style of the day for the sites you choose to add it to.

Used SharePoint Framework Version

version

Applies to

Prerequisites

SharePoint Administrator for app catalog deployment. We recommend that site owners add the extention manually per site.

Solution

Solution Author(s)
Pol.Styler Pål Olav Loftesnes (www.paalolav.no)

Version history

Version Date Comments
1.2 April 10, 2025 Rebrand, update to SPFX 1.20
1.1 September 17, 2024 Flexible CSS path
1.0 August 24, 2023 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
npm install
gulp bundle --ship
gulp package-solution --ship

Watching the code

gulp serve

Features

Extension that enables you to add CSS styling to any SharePoint site. Using the sample file, we remove the site header for all news stories in the OOTB News web part.

Before Pol.Ext.Styler is installed:

After Pol.Ext.Styler is installed:

Here we've added border radius to the weather web part and changed colours and border radius on the Quick Links web part:

Configuration

The path to the CSS file can be configured per site, making it possible to load different CSS files for different sites. The file is loaded as a ClientSideComponentProperty of the PolStyler Custom Action.

See example configuration:

About

SPFx solution for pol-styler

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages