Pular para o conteúdo
Kitbay
Skill

Shade dropdown surface contract

MITAtualizado em 11 de nov. de 202655.770Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

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