Imperative Surface Imperative Surface

CSS Variables

VariablePurpose
--impr-surface-background-colorSurface background
--impr-surface-foreground-colorSurface text and foreground
--impr-surface-backdrop-colorBackdrop color
--impr-surface-border-colorSurface border and close-button border
--impr-surface-border-radiusTheme radius variable

Override example

:root {
  --impr-surface-background-color: #ffffff;
  --impr-surface-foreground-color: #171717;
  --impr-surface-backdrop-color: rgb(0 0 0 / 45%);
  --impr-surface-border-color: #e5e5e5;
  --impr-surface-border-radius: 1rem;
}

The current bundled surface geometry uses explicit sizing rules for each position and size. The variables are intended primarily for the visual theme layer.

On this page