Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Defines the shared surface contract (background, border, shadow) for the DropdownMenu, Select, and Popover floating menus in Shade.
17% 96%+78 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 4 of 23 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
DropdownMenu, Select, and Popover are the three Radix-backed floating menus that Filters and the rest of admin use. They share one visual recipe:
bg-surface-elevated-2
border border-border/60 dark:border-border/30
shadow-md
Treat them as one component for any surface decision. If you change the surface for one, change all three.
Floating menus open ON TOP of an already-elevated surface (sidebars, cards, top bars). They need to read as floating above their trigger. --surface-elevated-2 is reserved for exactly this — popovers, dropdown content, and the sidebar user menu.
In light mode the three surface tokens (background / surface-elevated / surface-elevated-2) flatten to near-white; the border + shadow-md carry elevation. In dark mode they're three distinct colours so layered surfaces stay legible without relying on borders alone.
| Concern | Class |
|---|---|
| Background | bg-surface-elevated-2 |
| Border | border border-border/60 dark:border-border/30 |
| Shadow | shadow-md baseline. DropdownMenuSubContent is the exception — it uses shadow-lg. DropdownMenuContent, SelectContent, and PopoverContent all use shadow-md. |
| Radius | rounded-md (component default) |
| Animation | Standard Radix data-[state=open]: enter/exit set |
The shadow split is intentional: DropdownMenuSubContent opens on top of the menu it belongs to and overlaps it, so it uses the stronger shadow-lg to stand apart from that menu. DropdownMenuContent, Select and Popover open from triggers on the page and sit on the canvas, so shadow-md is enough.
The dark:border-border/30 is a legitimate exception to the no-dark:-for-colour rule — it's an opacity modifier on an existing semantic token. See shade-no-dark-variants.
If a design change touches the floating-menu surface (background, border, shadow, elevation), edit all three files:
clients/shade/src/components/ui/dropdown-menu.tsx (DropdownMenuContent and DropdownMenuSubContent)clients/shade/src/components/ui/select.tsx (SelectContent)clients/shade/src/components/ui/popover.tsx (PopoverContent)Next to this one in the catalogue, plus more from the same author.