Back to Synwin Music

Implementation guidance · Synwin Music

One instrument.
One considered system.

Context and goals

The site must help violin players understand an instrument, build a selection and prepare an enquiry through a compact, accessible, photography-led experience.

Audience: beginning and developing violin players, with teachers and experienced players as supporting audiences. This is an instrument boutique concept. The audience, product range, provenance and commercial details must be confirmed with the business before trading.

The site must preserve native scrolling, equal gutters, visible content and a normal-flow header. Teams should prefer system consistency over local visual exceptions.

Design tokens and foundations

Raw colour values must appear only in foundation declarations. Components must reference semantic custom properties.

Semantic tokenFoundation valueUse
--surface#ffffffPage, dialogs and button text on dark
--surface-soft#f4f4f2Collection cards, editorial background
--surface-warm#ececeaHover feedback
--ink#151515Text, primary buttons, dark section
--muted#62615cSupporting text on light surfaces
--accent#b51926Synwin red for accents and primary actions
--focus#2466b5Focus outline on light surfaces
--line#d9d9d6Decorative separators; must not be the only control cue

Dark imagery must carry white text only where the measured image region maintains at least 4.5:1 contrast. Dark regions must use an additional white focus outline where the blue focus token does not meet 3:1 against adjacent pixels.

FoundationTokens / valuesRule
Type--font-body: Source Sans 3, system-ui, sans-serif
--font-display: var(--font-body)
--body:1.125rem; --small:1rem; --h2:clamp(44px,5.2vw,76px)
Body must use 1.5 line height. Display headings must use 700 weight and 1.08 line height. Heading emphasis uses the same sans-serif weight.
Spacing--space-1…9: 4, 8, 12, 16, 24, 32, 48, 72, 104pxComponents must use this spacing scale. Equal page gutters must use --gutter; content must stop at --max (1320px).
Shape--radius:20px; controls 6px; dialogs 16pxOnly the hero and instrument silhouette must use normalized SVG clipping. Cart buttons must be circular. Content cards and the footer must not use circular cuts.
Motion--fast:150ms; --panel:240ms; --ease:cubic-bezier(.2,.8,.2,1)Motion must be interruptible. It must stop under reduced motion, when paused, offscreen or in a hidden tab. Content must remain readable at every point.

Component rules

Every component family below must inherit this explicit seven-state contract. A non-interactive or inapplicable state must leave the presentation unchanged; it must not imply an available action.

StateRequired behaviour
DefaultContent must be visible. Native controls must expose name, role and current value. Primary actions must use --ink and --on-dark.
HoverFine pointers must receive a colour or underline response. Linked cards should lift 2px; linked photographs should scale by 1.025 within the reserved frame. Hover must not expose exclusive content.
Focus-visibleInteractive controls must show an immediate 3px outline, 5px offset, at least 3:1 against adjacent pixels. Clipping must not remove the ring.
ActiveButtons must show a deeper fill or a 1px press. Toggles must expose aria-pressed. Focus must remain on the activated control.
DisabledUnavailable actions must use native disabled, retain a readable label and avoid pointer activation. Handover controls must use inert plus aria-hidden when unavailable.
LoadingLabels and reserved dimensions must remain. An asynchronous action must set aria-busy, prevent duplicate activation and announce completion. The 3D stage must keep its photograph until its first render succeeds.
ErrorInputs must identify the invalid field and required correction. Failed 3D must keep the static photograph. Local storage failure must not block the current selection. Critical errors must be announced and preserve input.

Buttons and links

Anatomy: descriptive label plus an optional functional icon. Variants: filled, light, text, icon. Buttons must use body typography at --small, --space-5 horizontal padding and a target at least 44×44px. Links must navigate; buttons must change state. Enter must activate links; Enter and Space must activate buttons. Pointer and touch release must trigger the same single action. Long labels must wrap without clipping or reducing text size.

Header and cart handoff

The header must stay in normal flow. Desktop links, wordmark and selection must share a vertical centre. The hero must use a responsive SVG clipPathUnits="objectBoundingBox" path with flat tangents at the raised ramp. The circular hero cart must slide right during the first 160px of scroll while its recess closes. The floating circle must appear after closure. Upward scroll must reverse the sequence. Only the visible cart must be focusable; focus must transfer when its control becomes inert.

At 680px and below, navigation must become a labelled menu button with aria-expanded. Escape and selecting a link must close it. The menu must support keyboard, pointer and touch. Long navigation labels must wrap. The header must not overlap the wordmark at 320px.

Instrument cards and filters

Anatomy: purpose, size, photograph button, name, concise description, selection toggle and availability. Cards must use --surface-soft, --line, --radius and --space-5. Photographs must reserve their aspect ratio and use contain sizing. Names and long descriptions must wrap; ellipsis must not remove the only identifying information.

Filters must be buttons with aria-pressed. Filtering must announce the result count without moving focus. Selection toggles must expose the instrument name and add/remove state. Pointer and touch must match keyboard behaviour. Cards must stack below 680px. Future empty collections must show a clear explanation and a reset-filters action. Products must not show invented pricing, scarcity, provenance or recorded tone.

Inputs and finder

Inputs must use visible labels, --small type, --space-3 padding and a minimum 48px height. Native radio groups must use fieldset and legend; arrow keys must choose within the group. Selects must support native keyboard and touch pickers. Form controls must keep focus-visible, invalid and disabled states. Errors must name the field and required input; valid submission must not clear unsubmitted details.

The finder must use playing stage and size confidence to create a starting point, not claim an expert fitting. An uncertain size must show size guidance before instrument details. A recommendation must support “Start again” and “View instrument.” Long results must scroll within the dialog.

Dialogs and selection list

Dialogs must use native showModal(), a visible heading and a labelled close control. Escape must close them, Tab must remain within the modal, and closing must restore focus to a visible invoker. The drawer must show saved instruments, remove actions and an enquiry action. Empty selection must show “View the collection”; the enquiry action must be disabled. Removing an item must focus the next remove action or empty-state action.

Lists must preserve semantic items and logical order. At small widths, dialogs must retain 8–16px outer clearance and internal scrolling. A blocked storage API must leave the current session usable. Duplicate instruments must collapse to one selection.

Accordions and content

Accordions must use native details and summary with Enter/Space activation, pointer click and touch tap. Summary text must wrap; the plus must stay aligned. Expanded answers must remain in normal flow. Default and collapsed states must not hide another component’s focus. Loading, disabled and error states are inapplicable for static answers and must leave them unchanged.

Instrument stage

The stage must reserve its dimensions and describe itself as an image. Scroll must rotate the violin model and upward scroll must reverse it. It must not capture pointer drag, keyboard arrows or touch gestures. Pause and reduced motion must provide a stable front view. The fallback photograph must remain when the renderer fails. The model is an authored visual approximation and must not serve as product dimensions or condition evidence.

Decorative anatomy labels must not masquerade as interactive controls. The normalized silhouette must remain proportional. No control or essential text must sit inside a clipped edge.

Tables

Specification and guidance tables must use header cells, readable body typography and --space-4 cell padding. Tables must scroll within a labelled overflow container at narrow widths, not cause page overflow. Static default, hover, focus, active, disabled, loading and error states must leave cell content unchanged; any cell action must use the button/link contract.

Accessibility acceptance criteria

The implementation must target WCAG 2.2 AA. The following checks must pass; visual review alone must not be described as certification.

  • Text must measure at least 4.5:1 contrast, or 3:1 for large text. Control boundaries and focus indicators must measure at least 3:1 where needed to identify them.
  • Every action must work with keyboard alone. Tab order must follow the visible reading order; no focus must enter a closed dialog or hidden cart.
  • Skip to content must become visible on focus and move to main content. Heading order must begin with one h1.
  • Every input must have an associated label; radio groups must have a legend. Invalid email and required fields must prevent download and identify the field.
  • Filters and selection must expose their pressed state. A screen reader must announce result counts and success messages without reading the whole page again.
  • At 320 CSS pixels, the page must have no horizontal scrolling, clipped headings or overlapping controls. At 200% zoom, content and actions must remain available.
  • Dialog Tab/Shift+Tab must stay in the active modal; Escape must close it; closing must return focus to a visible control.
  • Reduced-motion emulation must stop entrance and scroll animation. Pause must stop model rotation. Fast scroll and resize must not leave content invisible.
  • Touch targets must be at least 44×44px. Actions must not depend on hover, drag, colour alone or a precise gesture.
  • Every meaningful photograph must have descriptive alt text. Decorative SVGs and canvases must be hidden from assistive technology when a labelled image wrapper provides the equivalent.

Content and tone

Writing must be specific, musical and concise. Recommendations should use “should”; non-negotiable guidance must use “must.”

  • Use “View Studio violin details”, not “Learn more”.
  • Use “Price on request”, not an invented sale price.
  • Use “Download enquiry draft. No request has been sent”, not “Your booking is confirmed”.
  • Use “Ask a teacher or luthier to check your size”, not a guaranteed fit based on age.

Real stock, origin, condition, maker, setup, pricing and appointment details must be verified before adding commercial claims. A recording should identify the actual instrument, bow and recording conditions.

Anti-patterns and migration

Implementations must not use skincare content, bottle imagery, fabricated testimonials, fake playback, hidden focus, sticky headers, repeated scroll reveals, manual rotate controls or inverted footer cuts. The page must not pretend to accept payment or send an enquiry without a real service.

Legacy serum storage must not populate the violin selection. New selection data must use violin-selection. Unused skincare assets must be removed from the deployed bundle. Teams should update the durable design record and guidance alongside component changes.

QA checklist

  • Content, instrument names, photographs, page metadata and footer must describe the violin business.
  • 320px, 390px, 842px and desktop layouts must retain equal gutters and readable type.
  • Hero ramp and cart recess must stay smooth; scroll reversal must restore the original circle.
  • Filters, finder branches, add/remove, empty selection and persistence must work.
  • Enquiry validation and text-file download must work without sending or retaining form details.
  • Keyboard navigation, Escape, focus restoration, local-data clearing and reduced motion must pass.
  • Images and local fonts must load; missing WebGL must show the software model or photograph.
  • JS syntax, local references and responsive overflow must pass before deployment.
Return to the collection