Theming

Adjust shared CSS variables to bring Inlay components into your application’s palette.

Token roles

Surfaces
--ilui-surface-base and --ilui-surface-panel distinguish the page from nested content.
Text
--ilui-ink-primary is for main content and --ilui-ink-secondary is for supporting text.
Interaction
--ilui-border-field and --ilui-border-field-inset define the resting edge of text-entry fields. --ilui-focus-ring marks keyboard focus.

Override a token

Declare overrides after the foundation imports. Apply them on the root or on a wrapper when only one area needs different values.

:root[data-theme="dark"] {
  --ilui-surface-panel: #202020;
  --ilui-ink-secondary: #d1d1d1;
}

Check text and focus contrast after changing colors. See Design resources for the token file and visual review sheet.