Adaptable

AdaptablePredefinedAccent

Declared in src/style/accents.ts

Accent colors shipped with Adaptable DataGrid.

An accent re-tints --ab-color-accent, --ab-color-accent-foreground and --ab-color-accentlight — and through them ring, selection and focus colors — for both light and dark themes. The CSS lives in src/themes/accents.css (imported by the product stylesheet): the generic [data-ab-accent] block derives everything from two variables, --ab-accent-preset and --ab-accent-preset-foreground, which applyAccent() writes inline from an AdaptableAccentColorConfig. The shipped ids also have static CSS blocks, so a bare id works for CSS-only hosts.

Keep the shipped ids and values in sync with that file.

#Values

  • 'violet'
  • 'crimson'
  • 'red'
  • 'orange'
  • 'amber'
  • 'grass'
  • 'teal'

#Used by