Glow prompt box

Interactive AI input component with animated states and multiple layouts. The primary interface for all Glow AI interactions across Rosewood products.

Interactive playground

Layout
State
Mic

Interactive states showcase

Every state of the prompt box, live-rendered.

Idle: awaiting input

Light border. Sparkle pulses gently to signal availability.

Typing: user is composing

Accent border. Arrow adopts the active theme's accent color. Auto-expands up to 320px.

Processing: AI is responding
Type a follow-up...

Active Spectrum stroke rotates (2s). Stop icon in accent color. The prompt moves into the thread and the response streams there. The box stays free for a follow-up.

Listening: voice input
I'm listening...

Active Spectrum stroke. "I'm listening..." ghost text. Waveform + accent-colored Stop in toolbar.

Scaling & auto-expand

The prompt box auto-expands from its minimum height to a hard stop at 320px, then triggers internal scroll.

Small (1-line)
Medium (3-line)
Large (Max 320px + scroll)

Atoms & buttons

Reusable building blocks that appear across all AI surfaces. All use the custom Rosewood Sparkle icon.

Glow action buttons

Primary triggers for AI actions. Two styles (Solid + Outlined), two sizes (Big + Small), and multi-action variants. Hover shifts to the Ruby to Plum gradient and tilts the sparkle. Press scales to 0.96x for haptic feedback.

Atom

Solid primary

Outlined

Processing (loading)

Sizing

PropertyBigSmall
Height40px32px
Corner Radius8px6px
Horizontal Padding16px12px
Icon Size18px16px
TypographyLato SemiBold 14/22Lato SemiBold 13/18
Letter Spacing1px0.5px
Icon–Label Gap8px

States

StateSolidOutlined
DefaultBG #C0429F, Text whiteBorder #C0429F, Text #0A0A0A
HoverRuby to Plum gradient #C0429F → #5A2A7ARuby to Plum gradient stroke
Sparkle on hoverTilts 12° and grows to 1.08x, like the Glow head
Active/Pressedtransform: scale(0.96) for 100ms
ProcessingSparkle icon pulses (0.8x→1.1x), opacity: 0.85

Suggestion chips

Low-friction triggers that help users "speak" to Glow without typing. Ghost Ruby style, no icon. On hover the Active Spectrum travels around the stroke. Maximum 4 per context.

Atom

Default

Hover / active

PropertyValueToken
Border1px solid Ruby Berry @ 30%rgba(192, 66, 159, 0.3)
TextRuby Berry, Semi-bold#C0429F, 600
Hover / activeActive Spectrum stroke, 3s spin#C0429F → #E082C0 → #FBECD6
Padding7px 16px—
Radius20px (pill)—
Max count4 per context—

Recommendation cards

Structured cards that explain "the why" behind Glow's suggestions. Live inside the chat thread or Copilot panel.

Ready

Pending

Extend Shift Coverage
Adding 2 hours to the afternoon shift would cover the 2–4 PM peak demand.

Applied

Extend Shift Coverage
Adding 2 hours to the afternoon shift would cover the 2–4 PM peak demand.

Dismissed

Extend Shift Coverage
Adding 2 hours to the afternoon shift would cover the 2–4 PM peak demand.

Clickable card (single action)

Whole card is the tap target. Sparkle top-right. Use for quick suggestions that don't need rationale.

Extend afternoon shifts
Cover 2–4 PM peak demand
Trim low-demand shifts
Reduce overstaffing on Tuesdays
PropertyValueToken
BackgroundWhite#FFFFFF
Shadow8% Ruby Berry0 2px 8px rgba(192, 66, 159, 0.08)
Radius10px—
Applied bg5% Emerald tintrgba(30, 100, 33, 0.05)
Dismissed40% opacityopacity: 0.4
Primary CTARuby Berry fill + Sparkle#C0429F

Do / don't

  • Use cards for simple navigation tasks (use chips)
  • Show more than 4 chips (it causes decision paralysis)
  • Put a sparkle on chips (save it for action buttons)
  • Auto-dismiss cards without user action
  • Mix chip and card styles in the same row
  • Use chips for quick, contextual AI prompts
  • Use cards when the recommendation needs rationale
  • Limit chips to 4 max per context
  • Show "Applied" confirmation with green tint
  • Keep dismissed cards visible but faded

Triggers

The two global entry points that signal Glow is present and available: the floating action button (FAB) on mobile and collapsed views, and the Glow mark in navigation and panel headers.

Glow FAB

The global entry point for the Copilot sidebar on mobile and collapsed product views. A 48px circle in the Ruby to Plum gradient with the white sparkle. On hover it grows slightly and the sparkle tilts.

Ready
Rosewood Sample Salon – Example City
hover me →

Specification

PropertyValueToken
Size48 × 48px--glow-fab-size: 48px
Border Radius50% (circle)—
BackgroundRuby to Plum gradient, 137°#C0429F → #5A2A7A
IconGlow sparkle, white, 24pxglow-sparkle.svg
Shadow0 4px 12px rgba(192,66,159,0.25)--glow-fab-shadow
HoverGradient deepens to Dark Berry, shadow grows#C0429F → #6E265C
PlacementTop-right of the content area, 16px from edges—
Min clear zone16px from any other UI element—

Behavior & animation

InteractionSpecApplied to
Hoverscale(1.08) with spring easing, 300msButton
Hover iconrotate(8deg), 300ms easeSparkle
Press (active)scale(0.95)Button
Copilot opensFades out and shrinks to scale(0.6), 250msButton
Appearsscale(0 → 1) + opacity(0 → 1), 250ms ease-outButton container
Dismissesscale(1 → 0) + opacity(1 → 0), 200ms ease-inButton container

Do / don't

  • Swap the gradient for a flat color
  • Place FAB on top of navigation bars or CTAs
  • Resize the FAB below 48px
  • Use a text label inside the FAB
  • Show more than one FAB on a screen
  • Place it top-right of the content with 16px clearance
  • Use the white sparkle on the Ruby to Plum gradient
  • Keep motion small: a slight grow and sparkle tilt
  • Hide the FAB when Glow is open/expanded
  • Keep at least a 48px tap target

Glow mark

The persona mark, used in navigation bars, panel headers and overlays to signal that Glow is present and active. Minimum display size is 32px. The icon breathes on surfaces where Glow is available but not yet engaged.

Ready

Color variants

Glow mark, black
Black
#0A0A0A
Light surfaces
Default product nav
Glow mark, Ruby Berry
Ruby Berry
#C0429F
Active / engaged state
Copilot panel header
Glow mark, white
White
#FFFFFF
Dark backgrounds
FAB · Overlay header

Sizes

32px
Minimum
40px
Panel header
48px
Overlay greeting
32px in FAB
56px container

Specifications

PropertyValue
Minimum size32px, never smaller
VariantsBlack · Ruby Berry · White
File formatSVG (3 source files per variant)
Eye fillAlways white regardless of body color
Breath animationApplied via .glow-head-breath class
Placement in navRight side, vertically centered, 8px from other icons
Placement in panelPanel topbar left, 28–32px size

Animation

StateAnimationDurationNotes
Available (idle)scale(1.0 → 1.05 → 1.0)4s ease-in-out ∞Glow is available, not yet engaged
HoverBreath pauses · rotate(15deg) · brightness +10%500ms ease-out transitionInviting interaction
Active/clickscale(0.9)100ms easeHaptic-like feedback
Engaged / generatingBreath pauses, icon static—Glow is working, so no competing motion

Usage contexts

SurfaceVariantSizeBreath
Product top navBlack32pxYes, when Glow is available
Copilot panel headerRuby Berry32pxNo, static when the panel is open
Overlay backdrop headerWhite40pxYes, until the user engages
Full-page canvas topbarRuby Berry32pxNo, static in an active session
FAB (floating button)White inside ruby circle32px in 56px FABYes, always breathing
Empty state / onboardingRuby Berry48pxYes

Persona menu

The Glow mark in a panel header opens Glow's menu: new chat, history, prompts and saved work. It's the same drawer used on every surface in the hub playground.

Persona menu

A 200px drawer that slides in from the left edge of the panel, over a soft blurred wash. Click the Glow mark in the Copilot header to try it.

Ready
Sample Salon – Example City
Glow
Hi! Afternoon bookings are up 12% this week. Want a summary?
Click the Glow mark to open the menu

Specification

PropertyValueToken
TriggerGlow mark in the panel header, 28px—
Trigger colorDeep Plum at rest, Ruby to Plum gradient on hover and while open#5A2A7A
Width200px, full panel height—
BackgroundWhite, 1px Plum @ 6% right edgergba(90, 42, 122, 0.06)
Backdrop8px blur over a Champagne to Ruby washrgba(251,236,214,0.45) → rgba(192,66,159,0.08)
ItemLato 13px, 10px 16px padding, 18px Deep Plum icon—
Item hover6% Deep Plumrgba(90, 42, 122, 0.06)
Item activeLavender @ 18%, Deep Plum semibold textrgba(184, 160, 208, 0.18)

Behavior

InteractionSpec
Hover triggerMark tilts rotate(12deg) scale(1.08) and shifts to the gradient, 400ms spring
OpenSlides in 12px and fades in, 250ms; backdrop fades in, 250ms
CloseClick the mark again, the backdrop or anywhere outside the menu
Select an itemMenu closes and the panel switches to that view

Guidelines & animation

Why Ruby Berry? The color rationale and full palette live on Visual Language.

Animation specs

AnimationDurationEasingTrigger
State change (all)200msease-outAny state transition
Idle sparkle pulse3sease-in-outIdle state active
Textarea expansion200msease-outText input exceeds line
Active Spectrum spin2s / rotationlinearGenerating / Listening state
Text stream fade-in200ms / wordease-outEach word appears
Waveform bars600mscubic-bezier(0.34, 1.56, 0.64, 1)Listening state

Keyboard shortcuts

KeyActionState
EnterSubmit prompttyping
Shift + EnterNew linetyping
EscapeClear input, return to idletyping / generating

API & specs

Production <glow-prompt-box> Web Component attributes and events.

Component API (proposed)

Declarative attributes drive state, layout and theme. Two custom events cover the interaction surface consumers need to wire up.

Core
<glow-prompt-box
    state="typing"
    layout="full"
    theme="ruby"
    placeholder="Ask Glow a question..."
></glow-prompt-box>

promptBox.addEventListener('glow-prompt-submit', (e) => {
    console.log(e.detail.value);
});

Attributes

AttributeTypeDefaultDescription
stateidle | typing | generating | listeningidleCurrent interaction state
layoutfull | sidebar | overlayfullLayout mode
themerubyrubyColor theme
placeholderstring"Ask Glow a question..."Placeholder text
valuestring""Current input value
disabledbooleanfalseDisable all interaction

Events

EventDetailDescription
glow-prompt-submit{ value: string }User submits prompt
glow-prompt-input{ value: string }Text changes
glow-prompt-stop{}User stops generation
glow-prompt-voice-start{}Voice input begins
glow-prompt-voice-end{ transcript: string }Voice input ends