Excel Themes and Colors
How to Apply and Create Color Scheme in Excel
Document themes make it easy to coordinate colors, fonts, and graphic formatting effects of Excel documents and update them quickly. Themes provide a unified look with named styles, graphical effects and other objects used in a workbook. For example, the Accent1 style, for example, looks different in the Office and the Apex themes. Often, you apply a document theme and then amend it to how you want it.
How to Apply a Color Scheme in Excel
- Open Excel and go to the “Page Layout” tab in the Excel ribbon.
- Click on the “Colors” button in the “Themes” section.
- Choose a color palette that matches your requirements or hover over a scheme to see a live preview.
How to Create a Custom Color Scheme in Excel
You can create your own color set to give your document a fresh, unique look or comply with your organization’s brand standards.
-
Open Excel and go to the “Page Layout” tab in the Excel ribbon.
-
Click on the “Colors” button in the “Themes” section.
-
Click “Customize Colors…” button.
-
In the “Create New Theme Colors” dialog box, you can select colors for each element by clicking on the color dropdowns next to them. You can choose colors from the palette or define custom colors using the “More Colors” option.
-
After selecting all the desired colors, provide a name for your custom color scheme in the “Name” field.
-
Click on the “Save” button to save your custom color scheme. Your custom color scheme will now be available in the “Colors” drop-down menu for future use.
How to Create and Apply Color Scheme in Aspose.Cells for Python via .NET
Aspose.Cells for Python via .NET provides features for customizing themes and colors.
How to Create Custom Color Theme in Aspose.Cells for Python via .NET
If theme colors are used in the file, we don’t need to modify each cell individually, we just need to modify the colors in the theme.
The following example shows how to apply custom themes with your desired colors. We use a sample template file manually created in Microsoft Excel 2007.
The following example loads a template XLSX file, defines colors for different theme color types, applies the custom colors and saves the excel file.
How to Apply Theme Colors in Aspose.Cells for Python via .NET
The following example applies a cell’s foreground and font colors based on the default theme (of the workbook) color types. It also saves the excel file to disk.
How to Get and Set Theme Colors in Aspose.Cells for Python via .NET
Below are a few methods and properties that implement theme colors.
- Style.foreground_theme_color: Used to set the foreground color.
- Style.background_theme_color: Used to set the background color.
- Font.theme_color: Used to set the font color.
- Workbook.get_theme_color: Used to get a theme color.
- Workbook.set_theme_color: Used to set a theme color.
The following example shows how to get and set theme colors.
The following example uses a template XLSX file, gets the colors for different theme color types, changes the colors and saves the Microsoft Excel file.