Add-PnPTenantTheme

Adds or updates a theme to the tenant.

Syntax

Add-PnPTenantTheme
   -Identity <ThemePipeBind>
                     -Palette <ThemePalettePipeBind>
                     -IsInverted <Boolean>
                     [-Connection <SPOnlineConnection>]

Description

Adds or updates a theme to the tenant.

Examples

------------------EXAMPLE 1------------------

$themepalette = @{
  "themePrimary" = "#00ffff";
  "themeLighterAlt" = "#f3fcfc";
  "themeLighter" = "#daffff";
  "themeLight" = "#affefe";
  "themeTertiary" = "#76ffff";
  "themeSecondary" = "#39ffff";
  "themeDarkAlt" = "#00c4c4";
  "themeDark" = "#009090";
  "themeDarker" = "#005252";
  "neutralLighterAlt" = "#f8f8f8";
  "neutralLighter" = "#f4f4f4";
  "neutralLight" = "#eaeaea";
  "neutralQuaternaryAlt" = "#dadada";
  "neutralQuaternary" = "#d0d0d0";
  "neutralTertiaryAlt" = "#c8c8c8";
  "neutralTertiary" = "#a6a6a6";
  "neutralSecondaryAlt" = "#767676";
  "neutralSecondary" = "#666666";
  "neutralPrimary" = "#333";
  "neutralPrimaryAlt" = "#3c3c3c";
  "neutralDark" = "#212121";
  "black" = "#000000";
  "white" = "#fff";
  "primaryBackground" = "#fff";
  "primaryText" = "#333"
 }
PS:>Add-PnPTenantTheme -Identity "MyCompanyTheme" -Palette $themepalette -IsInverted $false

This example adds a theme to the current tenant.

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The name of the theme to add or update

Type:ThemePipeBind
Position:Named
Accept pipeline input:True
Accept wildcard characters:False
-IsInverted

If the theme is inverted or not

Type:Boolean
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Palette

The palette to add. See examples for more information.

Type:ThemePalettePipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False