Built in Themes in React Spreadsheet
3 Jul 20263 minutes to read
Our React Spreadsheet Editor component provides a comprehensive set of built-in themes to deliver a consistent, modern, and visually appealing appearance across applications. Applying a theme loads the corresponding CSS file and updates the component’s appearance throughout the UI.
For more information about the built-in themes in Syncfusion, please refer to the documentation.
Customizing Theme Color
The React Spreadsheet Editor supports many themes and lets you apply custom styles. You can customize theme colors using Theme Studio. Theme Studio lets you pick a theme, modify colors, and download a ready‑to‑use CSS file for your project.
For more information on customizing the theme color via theme studio, please refer this documentation
CSS Customization
To modify the Spreadsheet appearance, you need to override the default CSS of the spreadsheet. Please find the CSS structure that can be used to modify the Spreadsheet appearance.
Customizing the Spreadsheet
Use the below CSS to customize the Spreadsheet root element.
.e-spreadsheet {
font-family: cursive;
}
Header
Customizing the Spreadsheet Ribbon
Use the below CSS to customize the Spreadsheet Ribbon.
.e-spreadsheet .e-ribbon {
background-color: #808080;
}
Customizing the Spreadsheet formula bar panel
You can customize the Spreadsheet formula bar panel by using this CSS.
.e-spreadsheet .e-formula-bar-panel {
border: none;
}
Customizing the Spreadsheet formula bar text
You can customize the Spreadsheet formula bar text by using this CSS.
.e-spreadsheet .e-formula-bar-panel .e-formula-bar {
font-weight: bold;
}
Sheet
Customizing the Spreadsheet sheet element
Using this CSS, you can customize the Spreadsheet sheet element.
.e-spreadsheet .e-sheet-panel .e-sheet {
border-color: #000000;
}
Customizing the Spreadsheet sheet header
Use the below CSS to customize the Spreadsheet sheet header.
.e-spreadsheet .e-sheet-panel .e-sheet .e-header-panel {
font-style: oblique;
}
Customizing the Spreadsheet row header
Use the below CSS to customize the Spreadsheet row header.
.e-spreadsheet .e-row-header .e-header-cell {
color: #0000FF !important;
}
Customizing the Spreadsheet column header
Use the below CSS to customize the Spreadsheet column header.
.e-spreadsheet .e-column-header .e-header-cell {
color: #0000FF !important;
}
Customizing the Spreadsheet selection element
Customize the Spreadsheet selection element.
.e-spreadsheet .e-selection {
border-color: #0000FF;
}
Customizing the Spreadsheet active cell element
Customize the Spreadsheet active cell element.
.e-spreadsheet .e-active-cell {
border-color: #0000FF;
}
Customizing the Spreadsheet cell element
Using this CSS, you can customize the Spreadsheet cell element.
.e-spreadsheet .e-cell {
background-color: #0078d7 !important;
}
Ribbon Items
Customizing the Spreadsheet sorting icon
Use the below CSS to customize the Spreadsheet sorting icon in the Spreadsheet ribbon. You can use the available Syncfusion® icons based on your theme.
.e-spreadsheet .e-sort-filter-icon:before {
background-color: #deecf9;
content: '\e306';
}
Customizing the filter dialog content
Use the below CSS to customize the Spreadsheet filter dialog content element.
.e-spreadsheet .e-filter-popup .e-dlg-content {
background-color: #deecf9;
}
Customizing the filter dialog footer
Spreadsheet filter dialog footer element can be customized by using the below CSS.
.e-spreadsheet .e-filter-popup .e-footer-content {
background-color: #ccffff;
}
Customizing the filter dialog input element
Use the below CSS to customize the Spreadsheet filter dialog input element.
.e-spreadsheet .e-filter-popup .e-input-group input.e-input{
font-family: cursive;
}
Customizing the filter dialog button element
Use the below CSS to customize the Spreadsheet filter dialog button element.
.e-spreadsheet .e-filter-popup .e-btn{
font-family: cursive;
}
Customizing the Excel filter dialog number filters element
Spreadsheet Excel filter dialog number filters element can be customized by using the below CSS.
.e-spreadsheet .e-filter-popup .e-contextmenu-wrapper ul{
background-color: #deecf9;
}
Footer
Customizing the Spreadsheet sheet tab panel
Spreadsheet sheet tab panel can be customized by using the below CSS.
.e-spreadsheet .e-sheet-tab-panel {
background: #08fbfb;
}
Customizing the Spreadsheet sheet tab
Spreadsheet sheet tab element can be customized by using the below CSS.
.e-spreadsheet .e-sheet-tab-panel .e-tab-header .e-toolbar-item.e-active .e-tab-wrap .e-tab-text {
font-weight: bold;
}