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 (since Version 20) 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',
};

AG Grid Built-in 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.

AG Grid Themes
Fork

This example shows how all AG Grid themes work seamlessly with AdapTable: switching between AdapTable's Light and Dark themes automatically switches the AG Grid theme as well.

Try It Out

Switch between Dark and Light Themes in AdapTable (or pick the OS Theme) and note that the AG Grid theme changes accordingly

Custom AG Grid Theme

AdapTable also supports custom AG Grid themes. You can create your own custom theme by following the AG Grid documentation. You can then pair the custom AG Grid theme with one of AdapTable's themes using the AdaptableTheme.AgThemeMode property.

Hint

AdapTable themes automatically sync with AG Grid themes using the following default mapping:

  • AdapTable Light theme → AG Grid light mode
  • AdapTable Dark theme → AG Grid dark mode

For available theme modes, see the AG Grid documentation.

AG Grid Custom Theme
Fork

This example shows how to create a custom AG Grid theme (dark-red) and pair it with AdapTable's Dark theme.

Try It Out

Switch between Dark and Light Themes in AdapTable and note that the AG Grid theme changes accordingly, applying the custom dark-red theme when AdapTable is in Dark mode.