UiForge
Prompt

Date picker Meadow — simple, plage et presets

Composants UIMinimalAppleLuxuryMicro-interactionsSlideReactTailwindFramer Motion
Prêt à l'emploi

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

❯ Prompt Claude
CONTEXT & GOAL
Build the date picker for Meadow, a booking platform for countryside cabins and nature stays. Three modes on one demo page: single date, date range, and quick presets. Audience: city dwellers planning weekend escapes, often on mobile. The signature idea: selecting a range paints the crossed days like a meadow-green highlighter stroke — slightly irregular edges, painted left to right — and each month carries a faint seasonal watermark tint (icy blue in January, straw yellow in August).

ART DIRECTION
Light editorial with botanical calm: chalk-white surfaces, meadow green as the single accent, soft but confident type. References: Airbnb's picker ergonomics without its genericity, seed-catalog print design, Aesop's packaging restraint. The distinguishing detail is the hand-highlighter range fill — no perfect rounded capsule, but a stroke with 2px edge irregularity via an SVG filter — plus the seasonal month tinting that no standard picker has.

COLOR SYSTEM
Surface: #FDFCF9. Border: #E7E3D9. Text primary: #23281E. Text secondary (weekday headers): #8C8A7E. Day default text: #23281E, day hover background: #EFF3E7, day selected background: #3E7C4B with text #FFFFFF, selected hover: #346B40, active press: #2C5A36. Range fill (highlighter): #CDE8C4 at 85% opacity with the irregular edge, text on range: #23481E. Disabled day text: #C6C2B4, struck through for fully-booked days with a small "Full" tooltip. Today's outline: 1.5px dashed #3E7C4B. Price-per-night text: #8C8A7E, 10px under the day number. Preset chip: border #E7E3D9, hover #EFF3E7, active/selected #3E7C4B text white. Error (invalid input): #B3462E. Seasonal watermark tints at 4% opacity behind the grid: Jan #7FA8C9, Apr #A8C97F, Aug #D9B865, Oct #C98A5B.

TYPOGRAPHY
Month title Fraunces 18px/24px weight 500 ("March 2026"). Weekday headers Inter 11px/16px weight 600 uppercase letter-spacing 0.06em. Day numbers Inter 14px weight 500, tabular-nums; selected days weight 600. Price captions Inter 10px/12px weight 400. Preset labels Inter 13px/18px weight 500. Input field text Inter 15px/22px weight 400 with mono-spaced date mask feel via tabular-nums. Helper/error text Inter 12px/17px.

LAYOUT & GRID
Popover width: 340px single month mobile/tablet; 660px dual month desktop (two grids side by side, 24px gap). Day cells 44x44px minimum (touch target), 2px gaps. Header row per month: previous/next chevron buttons (32px) flanking the month title. Presets: a left rail 148px wide on desktop listing vertical chips; on mobile a horizontal scroll row above the grid. Inputs above the popover: single mode one "Date" field, range mode "Check-in / Check-out" fields with an arrow glyph between. Mobile (under 480px): the picker opens as a bottom sheet at 92vh with the confirm button pinned.

SECTIONS & COMPONENTS
Demo page: three labeled sections (Single, Range, Presets) each with its trigger input. Input field: placeholder "DD/MM/YYYY", masked typing with auto-slash insertion, validates on blur — invalid copy: "That date doesn't exist — did you mean 28/03/2026?"; valid typed dates sync the calendar view. Calendar grid: weeks start Monday; days show the number plus optionally a price ("62 EUR" style caption, shown in range mode for available nights); past days disabled; fully-booked days disabled with strikethrough and a tooltip "Fully booked". States per day cell: default, hover (#EFF3E7 circle pop), focus-visible (2px #3E7C4B ring, 2px offset), selected (filled green circle), in-range (highlighter band), range-endpoints (filled circles capping the band), disabled (muted, no hover), today (dashed outline). Range interaction: first click sets check-in, hover then previews the highlighter live up to the hovered day (ghost fill at 40% opacity), second click commits; clicking an earlier day than check-in restarts the range. Minimum-stay rule: if the cabin requires 2 nights, selecting a 1-night range shows inline "This cabin has a 2-night minimum" and keeps the picker open. Presets rail: "This weekend", "Next week", "7 nights in June", "Any 2 nights in October" — clicking paints the corresponding range with the same stroke animation; the active preset chip fills green. Footer bar (range mode): summary "Fri 6 Mar to Sun 8 Mar — 2 nights, 124 EUR" with "Clear" text button and "Apply" primary button (disabled until a full range exists). Loading state: while availability fetches, day cells render as pulsing #EFF3E7 squares. Error state: availability fetch failure shows "We couldn't load availability — Retry" inline above the grid.

MOTION
Highlighter paint: the range fill's clip-path animates left to right over 320ms cubic-bezier(0.4,0,0.2,1), origin at check-in, as if a marker swept across; the ghost preview during hover updates instantly without animation to stay responsive. Month navigation: outgoing grid slides -24px with fade, incoming slides from +24px, 260ms ease-out; direction mirrors when going backward. Day hover pop: background circle scales 0.8 to 1 over 120ms ease-out. Preset apply: chip press scales 0.97 then the calendar animates month-jump plus paint in sequence (nav first, paint 80ms after). Bottom sheet (mobile): slides up 320ms cubic-bezier(0.22,1,0.36,1) with a drag-to-dismiss handle. Reduced motion: paint and slides become 120ms opacity fades; the hover pop is a plain background change.

TECH & QUALITY
React 18, date-fns for all date math (no moment.js), Tailwind CSS v4, Framer Motion for slides and paint (clip-path via motion style). Files: DatePicker.tsx, CalendarGrid.tsx, RangeHighlight.tsx, PresetsRail.tsx, useDateRange.ts, DateInput.tsx. The grid uses the ARIA grid pattern: role="grid", days as gridcell buttons with aria-selected and aria-disabled, full arrow-key navigation (arrows move by day, PageUp/PageDown by month, Home/End to week edges), and an aria-live region announcing "Check-in Friday 6 March, select check-out". Labels tie inputs to the popover via aria-haspopup="dialog". Contrast: #23281E on #FDFCF9 is 14.8:1; white on #3E7C4B passes 5.2:1; the price captions pass 4.5:1 at their size against the surface.
Objectif

Calendrier et selecteur de dates pour Meadow, plateforme de reservation de gites et sejours nature, en trois modes : date simple, plage de dates, et presets rapides. Idee signature : la selection d'une plage peint les jours traverses comme un coup de surligneur vert prairie legerement irregulier, et chaque mois affiche en filigrane une teinte saisonniere.

Style

Nature editoriale claire, vert prairie et craie, saisonnalite subtile

Composants
Calendrier mensuel avec navigation precedent/suivantMode date simple avec champ de saisie associeMode plage avec surlignage facon surligneurPanneau de presets (Ce week-end, Semaine prochaine, 7 nuits)Double mois cote a cote sur desktopJours desactives (passe, complets) et prix par nuitChamp de saisie avec masque et validationTeinte saisonniere en filigrane par mois
Animations
Peinture progressive du surlignage de plageGlissement horizontal au changement de moisPop discret du jour au survolApparition du panneau de presets
Stack technique
React 18Tailwind CSS v4Framer Motiondate-fns
Scores
9/10
Qualité
9/10
Originalité
Notes de revue

Force : le surlignage façon coup de surligneur irrégulier pour les plages de dates et la teinte saisonnière en filigrane par mois sont deux idées originales bien intégrées aux vrais states. Faiblesse : aucune. Rien à changer.

À voir aussi

Prompts liés

Composants UI

Sidebar de navigation Quill — repliable avec sections et compteurs

Light suisse chaleureux, blanc casse et encre, accents par section facon dos de livres

Q 9/10O 9/10MinimalAppleStripe
Composants UI

Facettes qui atterrissent – la recherche de Curio

Light neutre dense façon Vercel, blanc cassé, noir doux, vert émeraude en accent, précision d'outil pro.

Q 8/10O 8/10VercelMinimalApple
Composants UI

Formulaires d'authentification Solstice — login et signup

Pastel doux et lumineux, degrade d'aube, arrondis genereux, ambiance apaisante

Q 9/10O 9/10MinimalFramerApple