Frosted
Translucent paper wash for dark headers.
Frosted
Domain: materials
Registry key: frosted
Import: @ziteox/ui or @ziteox/ui/materials
Translucent paper wash for dark headers. Theme-independent — the same tokens under light and dark.
Theme behaviour
themeAware: false. Frosted does not fork under .dark / [data-theme="dark"].
Tokens
| Token | Value |
|---|---|
bg | rgba(255,255,255,0.1) |
bgHover | rgba(255,255,255,0.2) |
bgActive | rgba(255,255,255,0.2) |
ink | #f1f0eb |
bar | #f1f0eb |
border | transparent |
shadow | none |
shadowHover | none |
blur | blur(12px) |
Painted as --ziteox-material-* CSS variables on .ziteox-material-frosted.
Usage
<HamburgerButton material="frosted" />
<SiteMenuToggle material="frosted" />Default for SiteMenuToggle.
Preview
Live surface on the menu toggle — use the Material control if needed (default is frosted).
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 frosted; they are the materials API itself, not separate Library component pages.