AdaptableTheme

View as Markdown

Used for creating Custom Themes (deprecated)

TypeScript
export interface AdaptableTheme extends
Extends

AdaptableObject

Properties

PropertyTypeDescription
AgThemeModeTypeHint<string, 'light' | 'dark' | 'dark-blue'>AG Grid theme mode applied with this theme: light, dark, dark-blue, or a custom mode defined in AG Grid.
CSSVariablesRecord<string, string>CSS variables this theme sets, keyed by variable name (for example --ab-color-primary).
DescriptionstringText shown for this theme in the theme list.
NamestringTheme name. For a shipped theme this is light, dark or os.
Variant'light' | 'dark'Whether the theme is a light or dark palette. Used when AdapTable picks contrasting UI colours.
IsReadOnlybooleanSets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Property Details

AgGridClassName

CSS class of a legacy AG Grid theme.

TypeScript
AgGridClassName?: string;
Deprecated

Unused with the AG Grid Theming API. Pair a shipped theme with an AG Grid mode via .

Property Value

string

AgThemeMode

AG Grid theme mode applied with this theme: light, dark, dark-blue, or a custom mode defined in AG Grid.

TypeScript
AgThemeMode?: TypeHint<string, 'light' | 'dark' | 'dark-blue'>;
Property Value

TypeHint<string, 'light' | 'dark' | 'dark-blue'>

CSSVariables

CSS variables this theme sets, keyed by variable name (for example --ab-color-primary).

TypeScript
CSSVariables?: Record<string, string>;
Property Value

Record<string, string>

Description

Text shown for this theme in the theme list.

TypeScript
Description: string;
Property Value

string

Name

Theme name. For a shipped theme this is light, dark or os.

TypeScript
Name: string;
Property Value

string

Variant

Whether the theme is a light or dark palette. Used when AdapTable picks contrasting UI colours.

TypeScript
Variant?: 'light' | 'dark';
Property Value

'light' | 'dark'

IsReadOnly

Inherited from AdaptableObject

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

TypeScript
IsReadOnly?: boolean;
Property Value

boolean