VanillaReactLight & dark1.7K views
An accessible observatory-style dialog that opens through an animated circular aperture, with keyboard support and light and dark themes.
Get the code for free
Create a free account to copy or download the full source.
Modal component
An accessible observatory-style dialog that opens through an animated circular aperture, with keyboard support and light and dark themes.
prefers-reduced-motionrole="dialog", aria-modal="true", and aria-labelledby pointing at its titlearia-hidden="true" and inert; JS flips both when openingtabindex="-1") receives focus on open; focus returns to the trigger on close<button> trigger with aria-haspopup="dialog" and an explicit aria-labelaria-label:focus-visible outline using the --ring tokenprefers-reduced-motion: reduce disables all transitionsOpen Modal — Aperture in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the modal is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually