EPPlus ⅚ support creating and loading themes - this is done via the `Workbook.ThemeManager`. A theme can be exported from Excel using the thmx format and then loaded via EPPLus:

```csharp
var thmxFile = new FileInfo("c:\\temp\\integral.thmx");
package.Workbook.ThemeManager.Load(thmxFile);
```

```vbnet
Dim thmxFile = New FileInfo("c:\temp\integral.thmx")
package.Workbook.ThemeManager.Load(thmxFile)
```

The theme can then be altered via the `ThemeManager.CurrentTheme` property

```csharp
//Change the color of the Accent1 theme color.
package.Workbook.ThemeManager.CurrentTheme.ColorScheme.Accent1.SetRgbColor(Color.FromArgb(32, 78, 224));
```

```vbnet
'Change the color of the Accent1 theme color.
package.Workbook.ThemeManager.CurrentTheme.ColorScheme.Accent1.SetRgbColor(Color.FromArgb(32, 78, 224))
```

### See also

- See [Sample 5.3-C\#](<https://github.com/EPPlusSoftware/EPPlus.Samples.CSharp/tree/master/05-Drawings charts and themes/03-Charts and themes>) or [Sample 5.3-VB](<https://github.com/EPPlusSoftware/EPPlus.Samples.VB/tree/master/05-Drawings charts and themes/03-Charts and themes>)
- Our [web sample 1](<https://samples.epplussoftware.com/HtmlExport/ExportTable1>) also shows how to change themes on a workbook using exported thmx-files.
