AG Grid Themes
Summary
- AdapTable supports all AG Grid built-in themes - both in dark and light mode
- It works out of the box with both the AG Grid Theming API and Legacy Theming
AdapTable works naturally with any AG Grid theme, and there is nothing extra that is required.
Theming API
AdapTable fully supports AG Grid's Theming API (introduced in AG Grid 33):
import { GridOptions, themeQuartz } from 'ag-grid-community';
const options: GridOptions = {
// ...
theme: themeQuartz,
};AdapTable additionally continues to support AG Grid's "legacy theming" (which was the default until v.32):
const options: GridOptions = {
// ...
theme: 'legacy',
};Built-in AG Grid Themes
AdapTable works seamlessly with all built-in AG Grid themes - Quartz, Balham, Material and Alpine.
For each theme, AdapTable automatically switches between AG Grid's light and dark theme modes, to keep them in sync with AdapTable's own Light and Dark Themes.
- This example shows how all AG Grid built-in themes work seamlessly with AdapTable
- Switching between AdapTable's
LightandDarkthemes automatically switches the AG Grid theme mode as well.
- Use the AdapTable Custom Toolbar to switch between
DarkandLight(and note that the AG Grid theme mode changes accordingly) - Use the AG Grid Custom Toolbar to switch between
Quartz,Alpine,BalhamandMaterial
Custom AG Grid Themes
AdapTable also supports custom AG Grid themes
Hint
Use SystemThemeOptions.AgThemeMode in SystemThemes to pair your custom AG Grid theme with a shipped AdapTable theme
AdapTable's Light and Dark themes automatically sync with AG Grid's light and dark modes.
Find Out More
See the AG Grid documentation for full information on theme modes
- This example registers two custom AG Grid theme modes on
themeQuartz—light-redanddark-red - It pairs these themes with AdapTable's system themes via
AgThemeMode
- Switch between Light and Dark Theme in the toolbar to see the AG Grid Custom Theme change as well