> A guide to [@fabiocv/ui](https://ui.fabio.cv/). Every guide is listed at https://ui.fabio.cv/llms.txt.

# Shadow

Surfaces separate by their ground, by a gap or by a cut, and not by a shadow.

## Rules

- No component casts a shadow. A menu and a drawer stand on their own ground, a tooltip on Foreground muted, and a part set into a card in a cut with a gap around it.
- A hovered thing takes a highlight and a change of ink. See [Interaction](https://ui.fabio.cv/interaction/index.md).
- Ask before giving anything else a shadow.

## Tokens

| Token              | Code             | Light                                                   | Dark                                                     | Use for                                     |
| ------------------ | ---------------- | ------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------- |
| `--shadow-level-2` | `Shadows.Level2` | `0px 1px 2px 0px #091e4208, 0px 6px 16px 0px #091e4212` | `0px 1px 2px 0px #0104092e, 0px 6px 16px 0px #0104092e`  | Nothing on fabio.cv                         |
| `--shadow-level-3` | `Shadows.Level3` | `0px 0px 6px 0px #091e420a, 0px 3px 8px 0px #091e421a`  | `0px 3px 15px 0px #01040940, 0px 0px 10px 0px #030a1640` | A case study's film, laid over a drawn grid |

See it at https://ui.fabio.cv/shadow/.
