UiForge
Prompt

Pile de toasts néon – le système d'alertes de Wavelength

Composants UIDark modeFuturisticLinearMicro-interactionsSlideStaggerReactTailwindFramer Motion
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
1. CONTEXT & GOAL
Build the complete feedback system for Wavelength, a music-collaboration app where producers and session musicians co-write tracks remotely: stacked toasts, inline alerts, and full-width banners, in five semantic tones — info, success, error, warning, promo. Include a demo playground page with trigger buttons for every type and scenario. Signature idea: toasts stack like a deck of cards seen in shallow perspective — each older toast sits 8px higher, scaled down 4%, dimmed — and hovering the stack fans it out into a fully readable column; each semantic type emits a thin neon edge-light along the toast's left side, like channel LEDs on a mixing console.

2. ART DIRECTION
Night studio: deep blue-black room, surfaces like matte hardware panels, and the only color coming from semantic LEDs — the way a dark studio is lit by its meters. Neon is used as 2px edge-light and soft outer glow only, never as fills. Corners 10px, borders hairline. References: Ableton in dark mode, TeenageEngineering hardware, Linear's toast discipline. The fan-out gesture is the memorable move; everything else stays restrained.

3. COLOR SYSTEM
App background #0D0F14. Toast surface #161A22, fanned hover surface #1A1F29, border #262C38. Text primary #EFF2F8, secondary #9AA3B5, muted #626B7E. Semantic LEDs and icons: info #38BDF8, success #4ADE80, error #FB7185, warning #FACC15, promo gradient #C084FC to #F472B6 (edge-light uses the gradient). Glows: 0 0 12px at 25% of each LED color. Action buttons inside toasts: text matches the LED color, hover backgrounds at 12% tint. Progress bar: LED color at 60%, track #262C38. Close icon #626B7E hover #EFF2F8. Inline alerts: surface at 8% LED tint over #161A22, border at 35% LED. Banners: surface #10131A, promo banner uses the gradient at 14% as background wash. Focus ring 2px #38BDF8 offset 2px. Disabled trigger #262C38 surface with #626B7E text.

4. TYPOGRAPHY
UI in 'Outfit' (Google Fonts): toast titles 14px/19px weight 600, toast body 13px/19px weight 400 color #9AA3B5, action labels 13px/18px weight 600, banner text 14px/20px, inline alert titles 14px/19px weight 600. Timestamps and technical details in 'JetBrains Mono' 11px/15px color #626B7E ('take_04.wav — 24bit/48kHz'). Collapsed counter badge 12px/16px weight 700. Playground headings 'Outfit' 28px/34px weight 700.

5. LAYOUT & GRID
Toasts: fixed bottom-right, 24px from edges, width 380px (calc(100vw-32px) under 480px, bottom-centered), max 3 visible + a '+N' counter chip on the stack's top edge; stack renders newest at front. Fan-out expands upward with 10px gaps. Toast anatomy: 2px LED edge left, 20px icon, content column (title, body, optional mono detail line), action button(s) right, close button top-right, 1.5px progress bar along the bottom, padding 14px 16px. Inline alerts: full width of their container, same anatomy minus progress, 12px padding. Banners: full viewport width, 48px min-height, content in a 1200px container, dismiss right. Playground: 960px container with a grid of trigger buttons grouped by type, plus scenario buttons ('Upload finished with action', 'Error with retry', 'Promo banner', 'Stack 5 toasts').

6. SECTIONS & COMPONENTS
Real content per type — info: 'Nova joined the session' / 'She is listening to Chorus B right now.'; success: 'Stems exported' / '12 tracks bounced to stems_final.zip' with action 'Open folder'; error: 'Upload failed' / 'take_04.wav — connection dropped at 82%.' with actions 'Retry' and 'Dismiss', LED pulsing; warning: 'Storage almost full' / '9.1 GB of 10 GB used. Old takes are archived first.' with action 'Manage storage'; promo: 'Wavelength Duo is here' / 'Invite one collaborator free for three months.' with action 'Claim offer'. Toast lifetime 6s (error: persistent until dismissed), progress bar reflects remaining time, pauses on hover/focus. Inline alert examples: error under a form field ('Export name already exists'), warning panel in settings. Banners: promo gradient banner and a neutral maintenance banner ('Scheduled maintenance Sunday 03:00—04:00 UTC — sessions stay live, exports pause.'). States: triggers hover/focus-visible/active/disabled; toast hover (fan-out, timer pause), focus (keyboard reachable, same), swipe-to-dismiss with velocity threshold; action buttons hover/focus/active/loading (Retry shows a spinner); close hover; stack empty state is simply absence — playground shows 'No active toasts' hint text in muted.

7. MOTION
Toast entry: translateX(120%) to 0 with spring stiffness 380 damping 28, plus opacity 0 to 1 first 120ms; the stack behind shifts up/back with layout springs stiffness 300 damping 30. Fan-out on hover: each card moves to its expanded slot, spring stiffness 320 damping 26, stagger 30ms from front to back; collapse mirrors it. Exit (timeout or close): translateX(30%) + opacity 0, 200ms ease-in; swipe dismiss continues the gesture's velocity. Progress bar: width 100% to 0 linear over lifetime, pauses on hover. Error LED pulse: glow opacity 0.35 to 0.7, 1400ms ease-in-out infinite. Promo gradient edge slowly cycles hue rotation over 8s linear loop. Banner entry: height 0 to auto + fade 260ms cubic-bezier(0.16,1,0.3,1), pushes page content. prefers-reduced-motion: entries/exits are 100ms fades, no springs, fan-out replaced by an instant expanded list on hover/focus, LED pulse static at 0.5, gradient static, progress bar keeps linear width (it is information).

8. TECH & QUALITY
React 19, Tailwind CSS v4 tokens, Framer Motion (AnimatePresence, layout springs, drag for swipe). A ToastProvider with context API: toast.info(), toast.success(), toast.error(), toast.warning(), toast.promo(), plus dismiss and dismissAll. Files: components/feedback/ToastProvider.tsx, Toast.tsx, ToastStack.tsx, InlineAlert.tsx, Banner.tsx, demo app/demo/feedback/page.tsx. Accessibility: toast region uses aria-live=polite (assertive for errors) with role=status/alert respectively; toasts keyboard-reachable via F6 landmark cycling documented in the playground; timers pause on focus, and no auto-dismiss under 5s; actions are real buttons; contrast verified (#EFF2F8 on #161A22 = 13.9:1, #9AA3B5 = 7.1:1, all LED colors >= 3:1 against surface for the 2px edge as non-text UI); swipe has a button alternative; banners are role=region with accessible dismiss labels.
Objectif

Wavelength est une app de collaboration musicale où producteurs et musiciens co-écrivent des morceaux à distance. Ce système de feedback couvre toasts empilés, alertes inline et bannières pleine largeur, en cinq tons sémantiques (info, succès, erreur, warning, promo). Idée signature : les toasts s'empilent comme un jeu de cartes légèrement décalé en profondeur — la pile se déploie en éventail au survol — et chaque type émet un fin liseré néon assorti, comme les VU-mètres d'une console.

Style

Studio de nuit, noir bleuté profond, liserés néon par sémantique, esthétique console de mixage.

Composants
Pile de toasts en jeu de cartes avec éventail au hoverCinq types sémantiques : info, succès, erreur, warning, promoToast avec action (annuler, réessayer) et barre de progressionAlertes inline pour formulaires et panneauxBannière pleine largeur promo et maintenanceBouton de fermeture et fermeture par balayagePlayground de démo avec déclencheurs par typeCompteur de toasts repliés (+3)
Animations
Entrée du toast en slide + spring depuis le bordDéploiement en éventail de la pile au survolBarre de progression de vie du toastBalayage de renvoi avec inertiePulsation du liseré néon sur le type erreur
Stack technique
React 19Tailwind CSS v4Framer Motion
Scores
8/10
Qualité
8/10
Originalité
Notes de revue

Force : la pile de toasts façon jeu de cartes qui se déploie en éventail au survol, avec liseré néon par type sémantique façon console de mixage, est un vrai geste distinctif. Faiblesse : le prompt dépasse légèrement la fourchette de 900 mots (923). Conservé tel quel vu la qualité du reste des spécifications.

À voir aussi

Prompts liés

Composants UI

Grille bento Atlas — fonctionnalites produit en mosaique

Futuriste sombre bleu profond, lignes de circuit lumineuses, inspire des schemas d'architecture

Q 9/10O 9/10FuturisticDark modeLinear
Composants UI

Board kanban Slipstream — colonnes, cartes et drag & drop

Dark neon arcade maitrise, violet electrique sur anthracite, energie sans chaos

Q 9/10O 9/10Dark modeFuturisticLinear
Composants UI

Command palette Ridgeline — recherche floue et groupes

Glass sombre flottant, halo profond, inspire de Raycast et Linear

Q 8/10O 7/10LinearGlassmorphismDark mode