For iOS and Android developers

Build the Wadaq mobile app from this prototype

This page holds the design system, the mobile patterns and the rules for the Wadaq app. Every colour, size and duration on this page is read live from the shared tokens. When a token changes in packages/ui/src/styles/globals.css and the vendor copy is synced, this page changes too.

The prototype shows how the app looks and behaves. It is not production code. Rebuild each screen with native components and the tokens below.

Open the prototype Screen map

Run the prototype

Open it

cd design/mobile
bunx --bun serve
# open http://localhost:3000

Opening index.html from disk also works. The folder is self-contained. Restart the server after you pull.

Use it

  • Desktop: one live phone and a panel. The panel sets language and theme and jumps to any screen.
  • Phone, 760px or less: the app opens full screen. Add it to the home screen to test safe areas.
  • Everything inside the phone works: tabs, sheets, swipe, voice capture, approvals and confirms.

URL options

OptionExampleEffect
?screen=index.html?screen=deal.htmlOpens that screen inside the phone.
?lang=home.html?lang=enArabic (ar, default) or English (en). The choice is stored.
?theme=home.html?theme=darkLight or dark. The choice is stored.
#sheet-iddeal.html#sheet-stageOpens a bottom sheet on load.
?q=assistant.html?q=Late ordersPosts the question in the Wadaq chat.

Folder

*.htmlOne file per screen. See the screen map.
css/mobile.cssThe mobile patterns. It defines no colour of its own.
js/mobile.jsThe one runtime. Screens use data-* attributes only. See the runtime.
vendor/Synced copies of the tokens, components, icons and fonts. Do not edit. Change the source, then run bun sync-design-system.ts.
css/prototype.css, js/prototype.jsThe phone frame and the panel. Presentation only.

Principles

Wadaq serves store owners and service businesses in the Middle East and North Africa. Most users are not CRM experts. Many use Arabic and work on a phone between other jobs. The app must feel calm, friendly and obvious.

Arabic first. Design in RTL. Check LTR second. An Arabic screen must look native, not mirrored.
One colour says go. Green fills the one action you want. Red fills only the action you cannot undo. Everything else is a white chip.
Colour carries meaning. A tint is a category, a stage or a status. Never decoration.
Numbers are the hero. Large, tabular, Latin digits.
Layered, not flat. A neutral canvas. White cards on it. Dark mode is dim neutral grey, not black.
The agent is a colleague. Wadaq output sits in the screen, in the soft green box, with one action. No modal, no banner, no emoji.
Easy to hit. 44pt touch targets, 60pt rows, 40pt primary buttons.
No gradients, glass, glow or blur. The agent box is the one exception.

Colour

Each swatch shows light on the left and dark on the right. Click a token name to copy it. Every grey is neutral: red, green and blue are equal. --primary and --destructive are the same in both themes.

Surfaces

Text

Brand and intent

Saffron marks. It never acts.Use it for a reached target, a new-item dot, trial progress or a follow-up question. Never a button fill. Never body text.

Tones

Pills, icon tiles, avatars and notices take a tone, never a raw colour. One meaning has one tone everywhere. Free categories hash a stable id to a tone, and never to red. The samples follow the page theme. Switch it to see the other set.

Type

Arabic uses Thmanyah Sans (400, 500, 700; 600 uses the 700 file). English uses Geist. Numbers use Geist with tabular figures in both languages. Titles use −0.02em tracking. Body text is 15pt. Never go below 12pt.

Space and size

Use the steps below and nothing in between. The base unit is 4pt.

Mobile metrics

TokenValueUse

Safe areas come on top of these values. The navigation bar adds the top inset. The tab bar, action bar, composer and sheet footer add the bottom inset.

Radius and elevation

Never use another radius. rounded-none is correct only where two elements join edge to edge.

Nothing floats unless it sits on top of something. A card at rest has --shadow-xs.

Motion

TokenValueUse
  • A pushed screen slides in from the inline end. Back slides the other way. In Arabic the inline end is the left.
  • A tab switch cross-fades. The tab bar, the Ask bar and the navigation bar stay still.
  • A sheet rises from the bottom. A drag on the grabber or the head closes it.
  • A button scales to 0.98 when pressed. A round send or mic button scales to 0.94.
  • Reduce motion removes every transition and animation.

Icons

0 icons, 24pt grid, 1.75pt stroke, round caps. Click an icon to copy its name. A directional icon (back, forward, send) mirrors in Arabic. A clock, a check or a logo never mirrors.

Components

These samples use the prototype's own classes. Switch "Component samples" in the side bar to see RTL and LTR.

Buttons
Pills, counts and deltas
حُجز عرض مدفوع الرياض 4 5 8%
Chips, segments and switches
ل ع
List cells Toast
أُرسلت الرسالة للينا

Mobile patterns

PatternRule
Tab barHome, Customers, Deals, Tasks, Inbox. Icon and label on every tab. The current tab has a --primary-soft chip behind a green icon. A solid --card bar with a top hairline. No blur.
Navigation barBack (chevron and the previous title) at the inline start. Title in the middle. At most three icon actions at the inline end. Create is a plus icon. No filled button.
Large title28pt under the bar. It collapses into the bar on scroll, and the bar gets a hairline.
ListsWhite cards of 60pt rows: a 40pt avatar, logo or icon tile, a title and one muted line, then a value or a pill at the inline end. Separators start after the leading tile.
FiltersA horizontal row of 36pt chips. The selected chip is the foreground fill. A segmented control switches sections on a record.
Bottom sheetsThey replace side sheets and dialogs. A grabber, a head with a close button, and a footer with one full-width primary button. A destructive confirm is a sheet with the red button.
Record screensA centred hero (avatar or logo, name, amount, pills), four quick actions (call, WhatsApp, email, note), the agent box, then the details. A deal adds a stage track and a fixed action bar with one primary button.
TasksA tap on the round check, or a swipe toward the inline end, finishes a task. The toast offers Undo. The title opens the task screen.
ConfirmAn action that sends to a customer, removes access, signs out or deletes asks first: a tile, one question, one line with the effect, Cancel and one button. Red only when you cannot undo it. Resume does not ask.
Busy and stateAn action that reaches a server shows a spinner in its button, then a toast. A state change shows on the screen: Pause becomes Resume, Connect becomes a Connected pill.

AI-first patterns

Wadaq is one tap away on every screen. Agents prepare work. The user approves it. Nothing goes to a customer without the user.

Ask bar (above the tab bar on every tab screen) Agent box with inline questions
لاحظ ودق

طلبت لينا عرض السعر أمس ولم يُرسل رد.

على الأرجح، إن خرج العرض اليوم.

Approval card
وكيل المتابعة · واتساب7:30
أرسل عرض السعر للينا سعد
طلبته أمس.
أهلًا لينا، أرفقت لك عرض السعر.
PatternRuleOpen
Ask barA white field with a brand tile and a hint for that tab, then a round primary mic. The field opens the Wadaq hub. The mic opens voice capture.Home
Voice captureTwo steps. Listening shows a mic, a live wave and the transcript. Done shows "Wadaq will do N things", one row per record with a switch, and "Save N items".Voice
Wadaq hubGreeting, privacy line, composer with attach and mic, suggestions, then Waiting for you, agents and recent chats.Hub
ApprovalsOne card per prepared item: agent and channel, the action, why, the draft and the linked records. Approve, Edit, Skip. Approve and Skip give Undo. Approve all asks first.Approvals
Inline questionsTwo question chips in an agent box. A chip shows a thinking line, then the answer in a white block in the box, with at most one primary action.Deal
AgentsList with status. Detail: stats, questions, Overview, Activity, Settings, Pause and Run now. A new agent is built in chat with a build card and a saffron follow-up question.Agent
Write with WadaqA sparkles button in the thread composer. The sheet lists replies built from the deal, then translate, summarize and attach.Thread

RTL, numbers and money

Leading and trailing, never left and right. Use start and end for padding, alignment and positions. The system mirrors the layout in Arabic.
Mirror only directional icons. Back, forward, chevrons and send mirror in Arabic. Do not mirror a mirrored asset a second time: the prototype had this bug.
Latin digits. Format with ar-u-nu-latn. Dates and counts keep 0–9 in Arabic.
Currency is a symbol. The Saudi riyal sign U+20C1 for SAR, from the bundled font. Store the ISO code. Keep the symbol and the number in one isolated run.
Isolate mixed runs. Phone numbers, emails, ranges and "(GMT+3)" go in a left-to-right isolate. Otherwise 51–200 shows as 200–51.
Agent replies follow the customer's language. The UI language and the message language are separate settings.

Accessibility

  • Every text pair meets WCAG AA at 4.5:1 in both themes. Re-run the contrast check when a value changes.
  • Focus is always visible: a 2pt --ring outline, 2pt away from the control.
  • Touch targets are 44pt on mobile. Icon-only buttons have a spoken label in both languages.
  • Colour is never the only signal. A status pill has text. A delta has an arrow. A saffron mark has text or a label.
  • The spoken name of a control contains its visible text.
  • A sheet moves focus into itself and returns focus to its trigger on close. A swipe action also has a tap equivalent.
  • Reduce Motion removes every transition and animation.

Screen map

"Phone" opens the screen inside the prototype. "File" opens the screen alone.

ScreenWhat it holdsOpen
Home · tabAgent picks with questions, KPIs, target, tasks, deals closingPhone · File
Customers · tabContacts, companies, leads with the agent rankingPhone · File
Deals · tabForecast, stage chips, deal cards, sortPhone · File
Tasks · tabDay plan, views, swipe to finishPhone · File
Inbox · tabWhatsApp and email, drafts row, composePhone · File
ContactHero, quick actions, agent box, info, deals, activityPhone · File
CompanyAgent summary, people, deals, details, deletePhone · File
LeadResearch, fit score, convert, disqualifyPhone · File
DealStage track, agent box, tabs, stage and delete sheetsPhone · File
TaskAgent offer, details, notes, snooze, deletePhone · File
ThreadConversation, suggested reply, Write with WadaqPhone · File
OrdersOrder list and order sheetPhone · File
Wadaq hubComposer, approvals preview, agents, chatsPhone · File
ApprovalsApprove, edit, skip, approve allPhone · File
Chat and past chatsWadaq chat, chat historyPhone · History
Agents, agent, new agentList, detail, build in chatPhone · Agent · New
NotificationsAll and unread, settingsPhone · Settings
AccountProfile, store, Wadaq, settings, sign outPhone · Profile · Connections · Team
SearchResults and Ask Wadaq insteadPhone · File
Sign in and onboardingSign in, sign up, forgot password, onboardingPhone · Sign up · Forgot · Onboarding

Prototype runtime

Use this table to read a screen's behaviour, or to change the prototype. A screen has no script of its own. js/mobile.js reads these attributes.

AttributeDoes
data-tabOn body. Draws the tab bar and the Ask bar, and marks the current tab.
data-sheet="#id"Opens a bottom sheet. data-sheet-close closes it.
data-includeMounts shared sheets: create, new task, deal, contact, note, edit contact, voice.
data-backGoes back. The href is the fallback.
data-filter-groupChips or segments that show [data-show] items.
data-toastShows a toast. data-en-toast is the English text.
data-confirmAsks in the shared confirm sheet first. Options: -body, -ok, -icon, -tone="destructive".
data-busySpinner for 800 ms, then the action.
data-swapFlips a [data-swap-root] between [data-when="off"] and [data-when="on"].
data-revealThinking line, then a hidden answer.
data-stepsOne step at a time. data-step-to moves. data-think shows the thinking line first.
data-resolve, data-resolve-allApprove or skip cards in a [data-queue], with Undo.
data-composeWrites text into the composer.
data-check, data-clearFinish a task from a button. Remove unread dots.

The full contract is in design/mobile/README.md. The rules are in docs/design.md and docs/design-system.md §6. When this page and the spec disagree, the spec wins.

Build it natively

Tokens

  • 1 CSS px on this page is 1 pt on iOS and 1 dp on Android.
  • Use "Copy tokens as JSON" at the top. It gives light and dark colours, sizes and durations.
  • Name native tokens like the CSS ones: primary, primarySoft, space4, radiusXl.
  • Map tones to one enum. A view takes a tone, never a colour.

Platform

  • Respect safe areas. Bars carry the inset. Content scrolls under the navigation bar.
  • Use the platform's back gesture. It must also mirror in Arabic.
  • Sheets use the native bottom sheet with a grabber and drag to close.
  • Bundle Thmanyah Sans, Geist and the riyal font. Do not load fonts at runtime.
  • Follow the system theme. The user can override it in Profile.

Ship checklist

  • The screen matches the prototype in Arabic light, Arabic dark, English light and English dark.
  • At most one green filled button in each region. Red only for actions you cannot undo.
  • Every tint has a meaning from the tone table.
  • Only token values. No literal colour, size or radius.
  • Directional icons mirror once in Arabic. Numbers stay Latin.
  • Every action that sends, signs out, removes access or deletes has a confirm. Approve and Skip have Undo.
  • Every list has loading, empty and error states.
  • Agent output sits in the agent box, with one primary action and no emoji.