Variable MJ_AG_GRID_THEME_PARAMSConst MJ_AG_GRID_THEME_PARAMS : { accentColor : "var(--mj-brand-primary)" ; backgroundColor : "var(--mj-bg-surface)" ; borderColor : "var(--mj-border-default)" ; borderRadius : "var(--mj-radius-sm)" ; browserColorScheme : "inherit" ; cellTextColor : "var(--mj-text-primary)" ; chromeBackgroundColor : "var(--mj-bg-surface-card)" ; dataBackgroundColor : "var(--mj-bg-surface)" ; foregroundColor : "var(--mj-text-primary)" ; headerBackgroundColor : "var(--mj-bg-surface-card)" ; headerTextColor : "var(--mj-text-secondary)" ; oddRowBackgroundColor : "var(--mj-bg-surface-card)" ; rowHoverColor : "var(--mj-bg-surface-hover, color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface)))" ; selectedRowBackgroundColor : "color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface))" ; subtleTextColor : "var(--mj-text-muted)" ; textColor : "var(--mj-text-primary)" ; }
Type Declaration ReadonlyaccentColor : "var(--mj-brand-primary)" ReadonlybackgroundColor : "var(--mj-bg-surface)" ReadonlyborderColor : "var(--mj-border-default)" ReadonlyborderRadius : "var(--mj-radius-sm)" ReadonlybrowserColorScheme : "inherit" ReadonlycellTextColor : "var(--mj-text-primary)" ReadonlychromeBackgroundColor : "var(--mj-bg-surface-card)" ReadonlydataBackgroundColor : "var(--mj-bg-surface)" ReadonlyforegroundColor : "var(--mj-text-primary)" ReadonlyoddRowBackgroundColor : "var(--mj-bg-surface-card)" ReadonlyrowHoverColor : "var(--mj-bg-surface-hover, color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface)))" ReadonlyselectedRowBackgroundColor : "color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface))" ReadonlysubtleTextColor : "var(--mj-text-muted)" ReadonlytextColor : "var(--mj-text-primary)" Defined in Generic/shared/dist/lib/ag-grid-theme-params.d.ts:17
Shared AG Grid theme parameters mapping the
--mj-*design-token contract onto AG Grid's theming API, so every MJ grid follows light/dark and the org brand overlay identically. Consumers pass this to AG Grid's theme builder:Kept as a plain
as constobject (no ag-grid import) so this package carries no grid dependency;withParamsaccepts it structurally. One definition prevents the per-grid copies of this block from drifting.