Scrim
A scrim is a temporary visual effect that fades the general interface while allowing the user to focus on an overlay.
When to use
A Scrim
shows behind all other surfaces in an app, displaying contextual and actionable content.
- The scrim's back layer is persistent, displaying controls and content that relate to the front layer
- The scrim focuses attention on one layer at a time
- The scrim is displayed at full width and holds primary content
- The scrim can be closed by either interacting with the front layer, pressing the
Esc
key, or tapping a conceal affordance on either layer
Guidelines
Always use a scrim with an overlay component such as a dialog, elevated side sheet or elevated navigation drawer (mobile only).
When the scrim is clicked on or the Esc
key is pressed the overlay component will close, closing the scrim with it.
Implementation in Figma
- In Figma go to the Assets Panel and search for Scrim.
- Drag and drop the component in your frame.
- Rename and resize the component if needed.