Mobile Parity (React Native / Expo)

1:1 Web ↔ Mobile parity — zero-DOM @kallo/tokens/native and @kallo/icons/paths packages powering the Kallo Mobile Expo super-app.

@kallo/tokens/native and @kallo/icons/paths have zero DOM globals — drop-in compatible with Expo / React Native (iOS & Android) and 100% aligned with Web CSS vars (including canonical Calendar #0D7490 and Sign #4F46E5).

Web CSS ↔ @kallo/tokens/native Mapping

Every value below is rendered live from @kallo/tokens/native — guaranteeing zero drift between Web and Mobile.

Web CSS Var@kallo/tokens/nativeLIGHT_COLORSDARK_COLORSSemantic Role
--canvasCOLORS.canvas#f3f2ef#151412Window / app background canvas
--sheetCOLORS.sheet#ffffff#1d1c1aPrimary working surface
--wellCOLORS.well#f6f5f2#242320Input wells & board trays
--hoverCOLORS.hover#f0efeb#2a2926Press / hover feedback surface
--lineCOLORS.line#e4e2dd#33302c1px hairline divider
--line-strongCOLORS.lineStrong#d6d3cc#46433dStronger border / input stroke
--textCOLORS.text#1b1a18#f0eee9Primary ink (17.2:1 contrast)
--text-2COLORS.text2#5e5b55#bab5acSecondary ink (6.6:1 contrast)
--text-3COLORS.text3#6f6b64#9d988eTertiary / Mtavruli label (5.3:1)
--socialCOLORS.appSocial#2e62c9#7ea5f1Kallo Social app identity
--aiCOLORS.appAi#6b4fa3#ae97deKallo AI app identity
--crmCOLORS.appCrm#1e7a5a#52bb91Kallo CRM app identity
--storageCOLORS.appStorage#b5761b#dca553Kallo Storage app identity
--calendarCOLORS.appCalendar#0d7490#5cc0dbKallo Calendar (canonical #0D7490)
--signCOLORS.appSign#4f46e5#9994f4Kallo Sign (canonical #4F46E5)
--idCOLORS.appId#a23b5a#dc819cKallo ID / Auth app identity
--liveCOLORS.live#d93a2f#ff6b5fLive voice calls ONLY — never errors
--lateCOLORS.late#9a5b00#e2a54aOverdue, warnings, auth errors
--late-bgCOLORS.lateBg#fbf1df#3a2d16Internal note & warning background
--doneCOLORS.done#1e7a5a#52bb91Success, won deals, verified
--ai-inkCOLORS.aiInk#4b5a9b#a6b2e8AI handwriting, Mono ring, suggestions
--capsule-bgCOLORS.capsuleBg#1b1a18#0b0a09Dark live-call capsule face
--capsule-btnCOLORS.capsuleBtn#33312d#2c2a26Capsule circular action button
--capsule-subCOLORS.capsuleSub#b9b5ad#b9b5adCapsule secondary subtitle ink

getAppAccent(), RADII & SPACING (@kallo/tokens/native)

Shared radius scale, spacing scale, and 7-app accent resolver across Light and Dark modes.

getAppAccent('light', appId)
Social#2e62c9
AI#6b4fa3
CRM#1e7a5a
Storage#b5761b
Calendar#0d7490
Sign#4f46e5
ID#a23b5a
RADII
sm 8px
md 12px
lg 16px
xl 22px
sheet 24px
pill 999px
SPACING
xs4px
sm8px
md12px
lg16px
xl20px
xxl28px

Web ↔ Mobile Component Parity Matrix

Kallo Mobile (apps/mobile) is a 1:1 super-app — every Web component contract maps directly to its native equivalent.

Mandatory Web ↔ Mobile parity
apps/mobile (Expo)@kallo/ui (Web)Behavior & ParityParity
V9Headerapps/mobile/src/components/v9/V9Header.tsx
<Toolbar />Page title, breadcrumb, search trigger, and max one primary CTA1:1
V9SummaryStripapps/mobile/src/components/v9/V9SummaryStrip.tsx
<Summary />“Numbers are filters” horizontal strip with live / late / done tones1:1
V9ObjectCardapps/mobile/src/components/v9/V9ObjectCard.tsx
<ObjectCard />Strictly for physical objects (deal, apartment, call, file, agent)1:1
V9LiveCallCapsuleapps/mobile/src/components/v9/V9LiveCallCapsule.tsx
<Capsule />Dark floating live-call pill with live timer, Mute, Takeover, and Hangup1:1
V9SheetModalapps/mobile/src/components/v9/V9SheetModal.tsx
<Modal />Native bottom sheet ↔ Web Modal dialog with matching header/footer/scrim1:1
V9AppSwitcherSheetapps/mobile/src/components/v9/V9AppSwitcherSheet.tsx
<Rail />7-app ecosystem switcher sharing identical app accents and glyphs1:1
V9ListRowapps/mobile/src/components/v9/V9ListRow.tsx
<ListRow />1px hairline list rows with --app-tint selection instead of stacked cards1:1
V9Signalapps/mobile/src/components/v9/V9Signal.tsx
<Sig />Text + glyph signal (never pastel pills), LiveBars and AI Mono ring1:1
Usage in apps/mobile (Expo / React Native)

Import theme palettes from @kallo/tokens/native and raw SVG path definitions from @kallo/icons/paths — zero duplication and zero DOM globals.

apps/mobile/src/theme/colors.ts — @kallo/tokens/nativetsx
// apps/mobile/src/theme/colors.ts
import {
  LIGHT_COLORS,
  DARK_COLORS,
  RADII,
  SPACING,
  KALLO_APPS,
  KALLO_STORAGE_KEYS,
  getAppAccent,
  withAlpha,
  formatCallDuration,
  initialsOf,
  type ColorPalette,
  type KalloAppId,
} from '@kallo/tokens/native';

export function useAppAccent(mode: 'light' | 'dark', app: KalloAppId) {
  const palette: ColorPalette = mode === 'dark' ? DARK_COLORS : LIGHT_COLORS;
  const accent = getAppAccent(palette, app);
  const accentTint = withAlpha(accent, mode === 'dark' ? 0.16 : 0.09);
  return { palette, accent, accentTint, radii: RADII, spacing: SPACING };
}
apps/mobile/src/components/KalloIcon.tsx — @kallo/icons/pathstsx
// apps/mobile/src/components/KalloIcon.tsx
import React from 'react';
import { SvgXml } from 'react-native-svg';
import { ICONS, LOGOS, logoFor, type IconName } from '@kallo/icons/paths';

export function KalloIcon({
  name,
  size = 18,
  color = '#1b1a18',
}: {
  name: IconName;
  size?: number;
  color?: string;
}) {
  const xml = `<svg viewBox="0 0 24 24" fill="none" stroke="${color}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${ICONS[name]}</svg>`;
  return <SvgXml xml={xml} width={size} height={size} />;
}

export function KalloChannelLogo({ channel, size = 16 }: { channel: string; size?: number }) {
  const key = logoFor(channel);
  if (!key) return null;
  const xml = `<svg viewBox="0 0 24 24" fill="currentColor"><path d="${LOGOS[key]}" /></svg>`;
  return <SvgXml xml={xml} width={size} height={size} />;
}