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.
Copie le prompt dans le presse-papier, sans quitter la page.
1. CONTEXT & GOAL
Build the complete secondary-navigation kit for Helvetiq Docs, a technical documentation platform used by product teams to publish API references and guides. Deliverables on one demo page: a breadcrumb component with smart truncation, and three tab-bar variants — underline, pills, and enclosed folder-style — each wired to real content panels. Signature idea: the active-tab indicator is elastic. When you switch tabs, the underline (or pill background) stretches toward the destination — its leading edge arrives first while the trailing edge lags — then snaps back to size with a calibrated spring, like a rubber band released by a Swiss watchmaker. Precision playfulness in an otherwise austere interface.
2. ART DIRECTION
Swiss international style, digital edition: white ground, neutral gray structure, one helvetic red accent used only for the active indicator and interactive emphasis. Ruthless alignment to a 4px baseline grid, no shadows except a 1px-blur lift on the open breadcrumb menu, no rounded corners beyond 6px (pills excepted at full radius). The personality comes entirely from the elastic motion and the typographic rigor — everything else stays out of the way.
3. COLOR SYSTEM
Background #FFFFFF. Content panel surface #FAFAF9, border #E7E5E2. Text primary #191817, secondary #6F6C68, muted #A5A19B. Accent helvetic red #D92B2B, hover #C02020, active #A61818. Underline indicator #D92B2B 2px. Pill active background #191817 with #FFFFFF text (red reserved for hover tint); pill hover background #F1EFEC. Enclosed active tab: surface #FFFFFF with border #E7E5E2 and transparent bottom edge over the panel; inactive enclosed tab surface #F1EFEC. Counter badge background #F1EFEC text #6F6C68; on active tab #D92B2B background with white text. Disabled tab text #C9C5BF. Focus ring 2px #D92B2B offset 2px. Breadcrumb separator #C9C5BF, current page #191817, links #6F6C68 hover #D92B2B.
4. TYPOGRAPHY
Everything in 'Instrument Sans' (Google Fonts). Tab labels 14px/20px weight 500, letter-spacing 0.005em; active tab weight 600. Breadcrumb 13px/18px weight 450, current page weight 600. Counter badges 11px/14px weight 600 tabular. Panel headings 24px/30px weight 600 letter-spacing -0.01em, panel body 15px/24px color #6F6C68. Code snippets in panels 'IBM Plex Mono' 13px/20px. Demo section labels 12px/16px uppercase letter-spacing 0.12em color #A5A19B.
5. LAYOUT & GRID
Demo container max 960px, 24px padding, variants stacked with 96px gaps, each preceded by a section label. Breadcrumb sits above the first tab bar as it would in the real app: full width, 40px tall. Tab bars full container width; underline variant has a 1px #E7E5E2 rule across the full width under the tabs. Tabs are auto-width with 16px horizontal padding, 40px tall (pills 36px). On overflow (mobile), tab rows scroll horizontally with scroll-snap and 24px fade masks at both edges; the active tab auto-scrolls into view. Content panels 32px padding, min-height 220px. Below 640px breadcrumb collapses middle items immediately.
6. SECTIONS & COMPONENTS
Breadcrumb path: Home / Platform / Payments API / Webhooks / Retry policy — five levels. When space is tight or levels exceed 4, middle items collapse into an ellipsis button that opens a dropdown listing the hidden levels (Platform, Payments API); dropdown items have hover, focus-visible and active states; Escape closes. Current page is plain text with aria-current=page. Tab set (same five tabs in all variants, real docs content): Overview, Endpoints (badge 24), Webhooks (badge 6), Rate limits, Deprecations (disabled with tooltip 'No deprecated endpoints — nice API hygiene'). Panels contain genuine content: Overview panel has heading 'Payments API' and two paragraphs about idempotency keys and versioning; Endpoints panel lists three endpoint rows (POST /v1/charges, GET /v1/charges/:id, POST /v1/refunds) with method chips; Webhooks panel explains retry backoff '5 attempts over 32 minutes, exponential'. States for every tab: default, hover (text darkens to #191817; pill shows #F1EFEC), focus-visible ring, active/selected, disabled (muted text, not-allowed cursor, tooltip on hover AND focus), plus a loading state on panels (three shimmer lines) when switching, and an empty panel state ('Nothing here yet — this section ships with API v3.') used on Rate limits.
7. MOTION
Elastic indicator: implemented with Framer Motion layout animation on a shared layoutId; transition spring stiffness 500, damping 32, mass 0.8; during travel scaleX overshoots to about 1.15 at midpoint (the stretch) via a custom spring on width and x — leading edge spring stiffness 560/damping 30, trailing edge stiffness 380/damping 28, producing the rubber-band lag. Pill background uses the same dual-spring slide. Enclosed variant animates border and background crossfade 160ms ease-out instead (folders do not stretch). Panel switch: outgoing fades 100ms, incoming fades + translateY(4px) 180ms cubic-bezier(0,0,0.2,1). Breadcrumb dropdown: opacity + scale 0.97 to 1 from top-left origin, 140ms ease-out, closes 100ms. Auto-scroll to active tab: 300ms cubic-bezier(0.4,0,0.2,1). prefers-reduced-motion: indicator jumps instantly (no stretch), panel switch opacity-only 80ms, dropdown instant, no auto-scroll smoothing.
8. TECH & QUALITY
React 19, Tailwind CSS v4 tokens, Radix UI Tabs as the accessible base (roving tabindex, arrow-key navigation, automatic activation on focus disabled — manual activation with Enter/Space), Framer Motion for the shared-layout indicator. Files: components/nav/Breadcrumbs.tsx, TabsUnderline.tsx, TabsPills.tsx, TabsEnclosed.tsx, ElasticIndicator.tsx, demo app/demo/tabs/page.tsx. Accessibility: tablist/tab/tabpanel roles wired by Radix with aria-selected and aria-controls; disabled tab remains focusable to expose its tooltip (aria-disabled, described by the tooltip id); breadcrumb is a nav with aria-label='Breadcrumb' and an ordered list; contrast verified (#191817 on #FFFFFF = 17.4:1, #6F6C68 = 5.6:1, white on #D92B2B = 5.9:1); scroll overflow reachable by keyboard; focus-visible never removed; baseline grid respected at every breakpoint.Helvetiq Docs est une plateforme de documentation technique pour équipes produit. Ce lot livre la navigation secondaire complète : breadcrumbs et trois variantes d'onglets (underline, pills, enclosed façon dossiers). Idée signature : l'indicateur d'onglet actif est élastique — il s'étire vers la destination pendant le déplacement puis se rétracte avec un ressort, comme une bande de caoutchouc suisse parfaitement calibrée.
Light suisse minimal, blanc et gris neutres, rouge hélvétique en accent unique, précision typographique.
Force : l'indicateur d'onglet élastique à double ressort (bord d'attaque et de fuite désynchronisés) est un détail de motion très fin et rarement vu, documenté avec des valeurs de spring exactes. Faiblesse : aucune. Prêt à l'emploi.
Light neutre dense façon Vercel, blanc cassé, noir doux, vert émeraude en accent, précision d'outil pro.
Monochrome graphite tactile, profondeur par le mouvement plutot que la couleur
Light suisse chaleureux, blanc casse et encre, accents par section facon dos de livres