LibraryMaterials

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

TokenValue
bgrgba(255,255,255,0.1)
bgHoverrgba(255,255,255,0.2)
bgActivergba(255,255,255,0.2)
ink#f1f0eb
bar#f1f0eb
bordertransparent
shadownone
shadowHovernone
blurblur(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).

Preset wrappers

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.