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. The power control is a real button with role=switch and aria-checked; its label changes (Cut the power / Restore the grid) so the change is announced.
- Keyboard. Tab to the switch, Space or Enter toggles the grid. Neon signs are decorative pointer extras; every state change is reachable from the switch. The focus ring uses the --ring token.
- Reduced motion. With prefers-reduced-motion the city renders one lit still frame: no flicker, rain, traffic or camera drift, and the switch state still changes.
- Contrast. The card uses the colour tokens (AA in light, dark and every preset); the skyline is a decorative aria-hidden canvas that is always a night scene.