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
Interactive states showcase
Every state of the prompt box, live-rendered.
Light border. Sparkle pulses gently to signal availability.
Accent border. Arrow adopts the active theme's accent color. Auto-expands up to 320px.
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.
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.
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.
Solid primary
Outlined
Processing (loading)
Sizing
| Property | Big | Small |
|---|---|---|
| Height | 40px | 32px |
| Corner Radius | 8px | 6px |
| Horizontal Padding | 16px | 12px |
| Icon Size | 18px | 16px |
| Typography | Lato SemiBold 14/22 | Lato SemiBold 13/18 |
| Letter Spacing | 1px | 0.5px |
| Icon–Label Gap | 8px | |
States
| State | Solid | Outlined |
|---|---|---|
| Default | BG #C0429F, Text white | Border #C0429F, Text #0A0A0A |
| Hover | Ruby to Plum gradient #C0429F → #5A2A7A | Ruby to Plum gradient stroke |
| Sparkle on hover | Tilts 12° and grows to 1.08x, like the Glow head | |
| Active/Pressed | transform: scale(0.96) for 100ms | |
| Processing | Sparkle 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.
Default
Hover / active
| Property | Value | Token |
|---|---|---|
| Border | 1px solid Ruby Berry @ 30% | rgba(192, 66, 159, 0.3) |
| Text | Ruby Berry, Semi-bold | #C0429F, 600 |
| Hover / active | Active Spectrum stroke, 3s spin | #C0429F → #E082C0 → #FBECD6 |
| Padding | 7px 16px | — |
| Radius | 20px (pill) | — |
| Max count | 4 per context | — |
Recommendation cards
Structured cards that explain "the why" behind Glow's suggestions. Live inside the chat thread or Copilot panel.
Pending
Applied
Dismissed
Clickable card (single action)
Whole card is the tap target. Sparkle top-right. Use for quick suggestions that don't need rationale.
| Property | Value | Token |
|---|---|---|
| Background | White | #FFFFFF |
| Shadow | 8% Ruby Berry | 0 2px 8px rgba(192, 66, 159, 0.08) |
| Radius | 10px | — |
| Applied bg | 5% Emerald tint | rgba(30, 100, 33, 0.05) |
| Dismissed | 40% opacity | opacity: 0.4 |
| Primary CTA | Ruby 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.
Specification
| Property | Value | Token |
|---|---|---|
| Size | 48 × 48px | --glow-fab-size: 48px |
| Border Radius | 50% (circle) | — |
| Background | Ruby to Plum gradient, 137° | #C0429F → #5A2A7A |
| Icon | Glow sparkle, white, 24px | glow-sparkle.svg |
| Shadow | 0 4px 12px rgba(192,66,159,0.25) | --glow-fab-shadow |
| Hover | Gradient deepens to Dark Berry, shadow grows | #C0429F → #6E265C |
| Placement | Top-right of the content area, 16px from edges | — |
| Min clear zone | 16px from any other UI element | — |
Behavior & animation
| Interaction | Spec | Applied to |
|---|---|---|
| Hover | scale(1.08) with spring easing, 300ms | Button |
| Hover icon | rotate(8deg), 300ms ease | Sparkle |
| Press (active) | scale(0.95) | Button |
| Copilot opens | Fades out and shrinks to scale(0.6), 250ms | Button |
| Appears | scale(0 → 1) + opacity(0 → 1), 250ms ease-out | Button container |
| Dismisses | scale(1 → 0) + opacity(1 → 0), 200ms ease-in | Button 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.
Color variants
#0A0A0A
Default product nav
#C0429F
Copilot panel header
#FFFFFF
FAB · Overlay header
Sizes
Specifications
| Property | Value |
|---|---|
| Minimum size | 32px, never smaller |
| Variants | Black · Ruby Berry · White |
| File format | SVG (3 source files per variant) |
| Eye fill | Always white regardless of body color |
| Breath animation | Applied via .glow-head-breath class |
| Placement in nav | Right side, vertically centered, 8px from other icons |
| Placement in panel | Panel topbar left, 28–32px size |
Animation
| State | Animation | Duration | Notes |
|---|---|---|---|
| Available (idle) | scale(1.0 → 1.05 → 1.0) | 4s ease-in-out ∞ | Glow is available, not yet engaged |
| Hover | Breath pauses · rotate(15deg) · brightness +10% | 500ms ease-out transition | Inviting interaction |
| Active/click | scale(0.9) | 100ms ease | Haptic-like feedback |
| Engaged / generating | Breath pauses, icon static | — | Glow is working, so no competing motion |
Usage contexts
| Surface | Variant | Size | Breath |
|---|---|---|---|
| Product top nav | Black | 32px | Yes, when Glow is available |
| Copilot panel header | Ruby Berry | 32px | No, static when the panel is open |
| Overlay backdrop header | White | 40px | Yes, until the user engages |
| Full-page canvas topbar | Ruby Berry | 32px | No, static in an active session |
| FAB (floating button) | White inside ruby circle | 32px in 56px FAB | Yes, always breathing |
| Empty state / onboarding | Ruby Berry | 48px | Yes |
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.
Specification
| Property | Value | Token |
|---|---|---|
| Trigger | Glow mark in the panel header, 28px | — |
| Trigger color | Deep Plum at rest, Ruby to Plum gradient on hover and while open | #5A2A7A |
| Width | 200px, full panel height | — |
| Background | White, 1px Plum @ 6% right edge | rgba(90, 42, 122, 0.06) |
| Backdrop | 8px blur over a Champagne to Ruby wash | rgba(251,236,214,0.45) → rgba(192,66,159,0.08) |
| Item | Lato 13px, 10px 16px padding, 18px Deep Plum icon | — |
| Item hover | 6% Deep Plum | rgba(90, 42, 122, 0.06) |
| Item active | Lavender @ 18%, Deep Plum semibold text | rgba(184, 160, 208, 0.18) |
Behavior
| Interaction | Spec |
|---|---|
| Hover trigger | Mark tilts rotate(12deg) scale(1.08) and shifts to the gradient, 400ms spring |
| Open | Slides in 12px and fades in, 250ms; backdrop fades in, 250ms |
| Close | Click the mark again, the backdrop or anywhere outside the menu |
| Select an item | Menu 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
| Animation | Duration | Easing | Trigger |
|---|---|---|---|
| State change (all) | 200ms | ease-out | Any state transition |
| Idle sparkle pulse | 3s | ease-in-out | Idle state active |
| Textarea expansion | 200ms | ease-out | Text input exceeds line |
| Active Spectrum spin | 2s / rotation | linear | Generating / Listening state |
| Text stream fade-in | 200ms / word | ease-out | Each word appears |
| Waveform bars | 600ms | cubic-bezier(0.34, 1.56, 0.64, 1) | Listening state |
Keyboard shortcuts
| Key | Action | State |
|---|---|---|
Enter | Submit prompt | typing |
Shift + Enter | New line | typing |
Escape | Clear input, return to idle | typing / 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.
<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
| Attribute | Type | Default | Description |
|---|---|---|---|
state | idle | typing | generating | listening | idle | Current interaction state |
layout | full | sidebar | overlay | full | Layout mode |
theme | ruby | ruby | Color theme |
placeholder | string | "Ask Glow a question..." | Placeholder text |
value | string | "" | Current input value |
disabled | boolean | false | Disable all interaction |
Events
| Event | Detail | Description |
|---|---|---|
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 |