Theming
Adjust shared CSS variables to bring Inlay components into your application’s palette.
Token roles
- Surfaces
--ilui-surface-baseand--ilui-surface-paneldistinguish the page from nested content.- Text
--ilui-ink-primaryis for main content and--ilui-ink-secondaryis for supporting text.- Interaction
--ilui-border-fieldand--ilui-border-field-insetdefine the resting edge of text-entry fields.--ilui-focus-ringmarks 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.