Skip to main content

Module shadow

Module shadow 

Source
Expand description

Elevation shadow scale for the design system.

GPUI has no CSS-style .shadow-* utility; the primitive is a Vec<BoxShadow> applied via the gpui::Styled::shadow method. This module provides a generic named scale (Shadow) whose values mirror the Tailwind box-shadow reference, plus a StyledShadow ext so components can write el.shadow_level(Shadow::Md).

Enums§

Shadow
Named elevation levels. Values mirror the Tailwind box-shadow scale.

Traits§

StyledShadow
Extends gpui::Styled with a named shadow scale.