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. Each integration is a real button with role=switch and aria-checked; the count line is a polite live region. The 3D hub is a decorative aria-hidden canvas.
- Keyboard. Every switch is a tab stop: Space or Enter toggles it, and Connect all connects or disconnects the lot. Clicking a node in the scene does the same as a pointer extra.
- Reduced motion. With prefers-reduced-motion plugs jump straight to their socket or hang loose: no flights, swings, sparks or surge, and the state is still obvious.
- Contrast. The card uses the colour tokens (AA in light, dark and every preset); the hub and plugs take the active preset colour.