Emboss
3D embossed glass fill. Theme-aware (light and dark).
Emboss
Domain: materials
Registry key: emboss
Import: @ziteox/ui or @ziteox/ui/materials
3D embossed glass fill. The one theme-aware surface in the registry — forks under .dark / [data-theme="dark"] so the original hamburger fill still reads in both schemes.
Theme behaviour
themeAware: true. Light tokens apply by default; dark tokens apply under .dark / [data-theme="dark"].
Tokens (light)
| Token | Value |
|---|---|
bg | rgba(255,255,255,0.45) |
bgHover | rgba(255,255,255,0.58) |
bgActive | rgba(255,255,255,0.58) |
ink | #18181b |
bar | #18181b |
border | rgba(255,255,255,0.72) |
shadow | 0 1px 0 rgba(255,255,255,0.95),0 1px 2px rgba(0,0,0,0.08),inset 0 1px 0 rgba(255,255,255,0.55),inset 0 -1px 0 rgba(0,0,0,0.06) |
shadowHover | 0 1px 0 rgba(255,255,255,0.95),0 4px 12px rgba(0,0,0,0.1),inset 0 1px 0 rgba(255,255,255,0.6),inset 0 -1px 0 rgba(0,0,0,0.06) |
blur | blur(12px) saturate(1.25) |
Tokens (dark)
| Token | Value |
|---|---|
bg | rgba(255,255,255,0.12) |
bgHover | rgba(255,255,255,0.18) |
bgActive | rgba(255,255,255,0.18) |
ink | #fff |
bar | #fff |
border | rgba(255,255,255,0.1) |
shadow | 0 1px 0 rgba(255,255,255,0.28),0 1px 3px rgba(0,0,0,0.35),inset 0 1px 0 rgba(255,255,255,0.14),inset 0 -2px 0 rgba(0,0,0,0.22) |
shadowHover | 0 1px 0 rgba(255,255,255,0.32),0 4px 16px rgba(0,0,0,0.42),inset 0 1px 0 rgba(255,255,255,0.18),inset 0 -2px 0 rgba(0,0,0,0.24) |
blur | blur(12px) saturate(1.25) |
Painted as --ziteox-material-* on .ziteox-material-emboss.
Usage
<HamburgerButton material="emboss" />
<SiteMenuToggle material="emboss" />Default for HamburgerButton when material is omitted and the control is not ghost (three-bar back-compat).
Preview
Live surface on the menu toggle — set Material to Emboss in the controls. Use the site theme toggle to see light vs dark forks.
Surface prop. Materials are not a light/dark mode.
Components that use it
Confirmed via material prop / materialClassName in packages/ui/src:
MaterialSurface and materialClassName in the materials module also accept emboss; they are the materials API itself, not separate Library component pages.