# New-ChartTheme

Creates a new chart theme with customizable options. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new chart theme with customizable options.

## Syntax

```
New-ChartTheme
[[-Color] <String>]
[[-Mode] <light|dark>]
[-Monochrome]
[[-Palette] <String>]
[[-ShadeIntensity] <Double>]
[[-ShadeTo] <light|dark>]
[<CommonParameters>]
```

[#](#method-new-charttheme-string-string-switchparameter-string-double-string)

Parameter set: `All Parameter Sets`

## Description

This function defines the properties of a chart theme, such as mode, palette, color, shade, and intensity. It allows customization of the theme appearance in the chart.

## Examples

### Example 1

```powershell
New-ChartTheme -Mode 'dark' -Palette 'palette3' -Monochrome -Color 'Red' -ShadeTo 'dark' -ShadeIntensity 0.8
Creates a new chart theme with dark mode, palette 3, monochrome enabled, red base color, dark shading, and intensity of 0.8.
```

### Example 2

```powershell
New-ChartTheme -Mode 'light' -Palette 'palette7' -Color 'Blue' -ShadeTo 'light' -ShadeIntensity 0.6
Creates a new chart theme with light mode, palette 7, blue base color, light shading, and intensity of 0.6.
```

## Parameters

**-Color String optionalposition: 2**

Sets the base color for the chart theme.

**-Mode String optionalposition: 0**

Specifies the mode of the chart theme. Valid values are 'light' or 'dark'.

Possible values: `light`, `dark`

**-Monochrome SwitchParameter optional**

Switch parameter to enable monochrome mode for the chart theme.

**-Palette String optionalposition: 1**

Specifies the color palette for the chart theme. Valid values are 'palette1' through 'palette10'.

Possible values: `palette1`, `palette2`, `palette3`, `palette4`, `palette5`, `palette6`, `palette7`, `palette8`, `palette9`, `palette10`

**-ShadeIntensity Double optionalposition: 4**

Specifies the intensity of the shading effect for the chart theme.

**-ShadeTo String optionalposition: 3**

Specifies the shading direction for the chart theme. Valid values are 'light' or 'dark'.

Possible values: `light`, `dark`

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:9F9DC51901829AC81D10471B396A2BE054A07AFE333A079B80BBD3067E8E9036 -->
