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 form with a labelled text input and a submit button; the printed headline is an aria-live output, so screen readers hear the result.
- Keyboard. Type to strike keys, Backspace to erase, Enter or the Print button to print, Esc clears the line. The focus ring uses the --ring token.
- Reduced motion. With prefers-reduced-motion the sheet is typed instantly, no bars swing and no scraps fly; the printed headline still appears.
- Contrast. The form uses the colour tokens (AA in light, dark and every preset); the 3D newsroom is a decorative canvas with aria-hidden.