Skip to content

Elevation, glass and motion

Three levels, per brand and mode. Xendiz shadows are soft and blue-tinted; WaardeX shadows are tighter with a negative spread; dark mode uses black.

Token Used by
--xg-shadow-sm resting cards, secondary buttons, the selected segment
--xg-shadow-md glass panels, KPI hover, the chart tooltip
--xg-shadow-lg menus, popovers, modals, toasts, hovered interactive cards
Shadows
--xg-shadow-sm
--xg-shadow-md
--xg-shadow-lg

The signature surface of Xendiz: light, frosted, Apple-like. White at 58–78% opacity, backdrop-filter: blur(18px) saturate(160%), a 1 px white edge and a soft shadow, on a page with soft brand-colored blurs behind it.

Token Light Use
--xg-color-surface-glass white 58% decorative panels
--xg-color-surface-glass-strong white 78% panels that hold text: sidebar, topbar, toasts
--xg-color-surface-glass-border white 85% the 1 px edge
--xg-color-surface-glass-solid #FBFBFF the fallback
--xg-blur-glass blur(18px) saturate(160%) the frost
Glass over the page

Glass panel

White 78%, blur 18 px, saturate 160%, 1 px edge.

Markup
<div style="position:relative;padding:32px;border-radius:24px;overflow:hidden;background:var(--xg-color-bg-page)">
<div style="position:absolute;width:260px;height:260px;border-radius:50%;background:var(--xg-color-primary-fill);filter:blur(50px);opacity:.45;top:-60px;right:40px">
</div>
<div style="position:absolute;width:180px;height:180px;border-radius:50%;background:var(--xg-color-accent-fill);filter:blur(50px);opacity:.3;bottom:-60px;left:60px">
</div>
<div class="xg-card xg-glass" style="position:relative;max-width:360px">
<h3 class="xg-card__title">Glass panel</h3>
<p class="xg-text-muted" style="margin:6px 0 0">White 78%, blur 18 px, saturate 160%, 1 px edge.</p>
</div>
</div>

Rules

  • Glass is for chrome and for panels over the page background. Data (tables, forms, charts) sits on solid cards: text over a moving blur is harder to read.
  • Text on glass is measured over the page color (see Accessibility).
  • Where backdrop-filter is not supported, or the user asks for reduced transparency (prefers-reduced-transparency), the kit switches to the solid fallback automatically.
  • Never stack glass on glass.
Token Value Use
--xg-duration-instant 80 ms color changes on press
--xg-duration-fast 140 ms hover, focus, small state changes
--xg-duration-base 200 ms switches, menus, hover lift
--xg-duration-slow 320 ms modals, drawers, toasts entering
--xg-ease-standard Xendiz cubic-bezier(.2, .7, .2, 1), WaardeX (.2, .8, .2, 1) everything entering or moving
--xg-ease-exit cubic-bezier(.4, 0, 1, 1) leaving

Rules

  • Motion explains a change (where a panel came from, that a toast arrived); it never decorates.
  • Nothing loops except loading indicators and the Live dot, and both stop under prefers-reduced-motion.
  • Hover lifts are 1–2 px. Nothing bounces.