All71 Looks cramped9 No focus7 Looks cheap10 Motion feels stiff10 States are missing6 Don't know what it's called19 The AI feels clunky10
Don't know what it's called 54 / 71
Scrim behind a dialog What it's called Scrim backdrop overlay mask Glossary
What goes wrong A dialog dropped straight onto a busy page has nothing around it, so it blends into the cards behind and people cannot tell what is waiting for them.
The fix Lay a dim, slightly blurred layer over the page while the dialog is open, so the dialog is the only sharp thing on screen.
Behind every dialog put a full-screen scrim with background: var(--ds-scrim), which dims in both themes, and backdrop-filter: blur(6px), fading in over var(--ds-duration-base) (240ms), and give the dialog var(--ds-radius-2xl) (28px) corners and box-shadow: var(--ds-shadow-lg); or install the LayQ component modal (/registry/v1/controls-modal.json), which brings both.
--ds-scrim--ds-duration-base240ms --ds-radius-2xl28px --ds-shadow-lgPrevious rule Dialog or drawerNext rule Sticky headerWhy AI-generated UIs all look the same: 12 rules that fix it Updated 25 November 2026
Stays in Porto 14–17 May · 2 guests 4.9Garden flat €118 / night 4.5Old town room €64 / night
Change your dates? Prices for all 4 stays will be checked again.
The dialog blends into the cards behind it
Don't know what it's called
Choose a rule 54 Padding inside cards Space between rows Line height Group by distance Space and fills, not lines Big enough to tap Clamp long text Shorten names in the middle Show row actions on hover One primary action Three text sizes at most One hero number Quiet supporting text Tabular numbers Balanced headline breaks Align numbers on the baseline No cards inside cards Concentric corners Soft, layered shadows One accent colour Readable text on tints Status needs more than colour Letter spacing by size Corners from one scale Centre by eye Fade the scrolling edge Ease out when entering Durations from the scale Stagger lists Press feedback Grow from the trigger Move between values Respect reduced motion Slide the way you are going A little overshoot Expand in place Skeletons shaped like the content Empty states with a next step Errors next to the field Disabled but readable Visible keyboard focus Buttons keep their size while busy Floating action bar Command palette Shortcut keycaps Split button Searchable select Prefix and suffix in a field Breadcrumb Tabs or segmented control Switch or checkbox Tooltip or popover Dialog or drawer Scrim behind a dialog Sticky header Avatar stack Count badge Icon tile Bento grid Progressive disclosure Undo toast Starter prompts Prompt box Attachment chips Slash menu Streaming reply Thinking trace Agent steps Inline citations Inline diff Approval card