Room
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardRoom(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-roomAbout this component
A room control in dark glass with three beams of warm light behind it. The brightness slider dims and softens the light you see through the glass, each switch turns its own beam on or off, and the power button switches them all.
Triggers
- Click
- State change
- Card
- Glow
- Gradient
Techniques
- @property
- CSS transition
- Filter
- Gradient
- Pseudo elements
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Brightness is a native range named Brightness with aria-valuetext in percent; each light is a native checkbox with role=switch, labelled by its name; the power button is a toggle with aria-pressed named All lights; the room pill names the room and its action. A visually hidden role=status line says how many lights are on.
Reduced motion
The transitions apply at once.
Use it in anything you build, commercial and client work included. Licence
More cards
See all- Billing redesign
- Onboarding copy
- Sync notes
Pro
- Unlimited projects
- Usage analytics
- Priority support
Guided
Onboarding
Activation
001