Skip to content
Kitbay
Skill

Shade dropdown surface contract

MITUpdated on Nov 11, 202655,770GitHub stars

A short rule skill in the Ghost repository for Shade, Ghost's component library.

What the skill teaches

A short rule skill in the Ghost repository for Shade, Ghost's component library. It fires when an agent edits the dropdown menu, select or popover component files and keeps the three floating surfaces visually identical: the second elevated background, a semi-transparent border that is lighter in dark mode, medium shadow, medium rounding and the standard Radix open-state animation. A change to one must be made to all three. The only exception is the dropdown submenu, which gets a larger shadow so it stands out from its parent. Menu items use the shared hover token rather than raw greys, and a fourth such component would justify extracting a shared recipe.

Capabilities

  • Keep dropdown, select and popover styles in step
  • Apply Shade's elevated surface tokens
  • Flag raw grey hover classes