Variants
Sizes and states, all built from the same markup.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. A real tablist with role=tab, aria-selected, aria-controls and one tabpanel per tab (labelled by its tab). The disabled variant uses the native disabled attribute on every tab.
- Keyboard. Tab moves into the tablist (one tab stop), Left/Right/Home/End move and select, and the panel is focusable. Clicking the projector or screen is a pointer extra; the tabs reach every slide. Focus ring uses the --ring token.
- Reduced motion. With prefers-reduced-motion the projector sits lit and still: no flicker, dust, dolly, focus pull or drop, and a slide change is an instant cut while the panel still updates.
- Contrast. The tabs and panel use the colour tokens (AA in light, dark and every preset); the projection room is a decorative aria-hidden canvas that tints between a black room and a dusk-blue room.