Platforms
The front door for teams that build a family app. A family app shows the same colors, type, spacing, icons, components, words and accessibility contract as the family's websites, and leaves system behavior (back, scrolling, the keyboard, system bars, how text scales) to the platform (D-APP-02). This page says which way to build, what the package gives for each way, how far each part was verified in 1.1.0, and where to start.
Designing an app? Start with Universal app design: one design for native Android and native iOS, with the universal screens shown on both phones (D-APP-65).
The rules for every app are in Mobile apps; canonical §18 binds them (canonical). Units: 1px token = 1dp on Android = 1pt on iOS = 1 logical pixel in Flutter and React Native (D-APP-05).
- Choose a way to build
- Start here: installed web app, Trusted Web Activity, Capacitor
- Start here: SwiftUI
- Start here: Jetpack Compose and Android Views
- Start here: Flutter
- Start here: React Native and Expo
- App icon, launch screen, and name
- The checks
- What every app team reads
Choose a way to build
Which way a product ships is the product's decision. Default: Global ID stays an installed web app and may add a shell; a store app that is only a web view risks App Store guideline 4.2 and Google Play's webview policy, so a wrapped product ships at least one app-only capability and says which (Hybrid: store policy).
| Way | When it fits | What the package gives | Verified in 1.1.0 (D-APP-61) |
|---|---|---|---|
| Installed web app (PWA on the home screen) | The product's features work in a browser. Keeps the real origin, passkeys, the service worker and the install page | The web package as it is: tokens/oait.css, reference/oait-ui.css with its shell layer; the manifest and icon kit rules; the hybrid guide; tools/mobile-audit.cjs |
The reference CSS and its shell layer run in Chromium through the page audit and the phone audit, standalone mode included. Not run on an iPhone or Android phone in this build |
| Trusted Web Activity (Android) | The installed web app, listed on Google Play, with nothing native | The same as the installed web app; Digital Asset Links and the splash in the hybrid guide | As above. The Android wrapper itself was not built here |
| Capacitor shell (Capacitor 8) | The product needs an App Store listing or a capability the web lacks on iOS: haptics, brightness on the pass, push inside an app | The web package and its shell layer; the allowed plugins, a configuration and a shell script in the hybrid guide | The configuration and script parse and match Capacitor 8.6.2's published types; not run in a shell or on a device |
| SwiftUI (iOS, iPadOS 17 and later) | A native iOS app: Global ID's native passkey sign-in, wallet-like passes, deep system integration | Generated values and theme files in tokens/native/swift/; the fonts; the component mapping. No reference kit in 1.1.0 |
Written against Apple's documentation and parsed with a Swift grammar; not compiled in this build (the sandbox cannot run the Swift toolchain). Each file says so in its header |
| Jetpack Compose, and Android Views (API 26 and later) | A native Android app. Views only for an existing Views app: it gets tokens and resources, not components | Compose: generated values and theme in tokens/native/kotlin/, the Compose reference kit. Views: resources in tokens/native/android-res/ |
Compose: token files and kit compiled and rendered with Compose Multiplatform on the JVM; Android-only APIs are isolated and named. Views resources: well-formed XML whose Material attributes exist in Material Components for Android 1.11.0; not built with the Android SDK. Not run on an Android device |
Flutter (3.47 and later, material_ui) |
One codebase for both systems, drawn by Flutter | Generated values and theme in tokens/native/dart/; the fonts; the component mapping. No reference kit in 1.1.0 |
Written against the Flutter documentation and parsed with a Dart grammar; not compiled in this build (the sandbox cannot run the Flutter SDK). Each file says so in its header |
| React Native (0.88 and later, New Architecture; Expo SDK 58 and later) | One codebase for both systems with native controls, a team that writes TypeScript | Generated values and theme in tokens/native/ts/, the React Native reference kit |
Token files: tsc --strict and a run of createOaitTheme. Kit: type-checked and rendered through react-native-web. Not run on a device |
Versions are the family's minimums (D-APP-03). A product may raise a minimum, never lower it. Every stack gets the same component mapping: each family component's name, variants, states and what it maps to on the platform.
Start here: installed web app, Trusted Web Activity, Capacitor
- Keep the web package. Load
tokens/oait.cssthenreference/oait-ui.css, which includes the shell layerreference/css/shell.css(reference guide). Nothing is restyled for an app (D-APP-57). - Fonts and icons stay self-hosted WOFF2 files, as on the web (Typography, Iconography). A Capacitor shell carries them in its bundle, with the icon font and the offline screen.
- Switch on the shell layer. An installed web app needs nothing:
display-mode: standalonedoes it. A Capacitor shell setsdata-shellon<html>(shell script). - Safe areas. Keep
viewport-fit=cover. In a Capacitor shell on Android, point--oa-safe-*at the insets the System Bars plugin injects (how a shell supplies the insets). - Configure the shell: Keyboard resize
noneon iOS, System BarsinsetsHandling: "css", zoom on, the WebView floor (configuration). - Wire back, the bar icons and text size with the shell script; add a visible back control to every screen that is not a tab root.
- Read in Mobile apps: window sizes, safe areas, and the keyboard, the app shell and navigation, permissions, sign-in and hybrid shells and installed web apps; then the whole hybrid guide.
- Check: the page audit and
tools/mobile-audit.cjson the main screens, then the release checklist on a real iPhone and Android phone.
Start here: SwiftUI
- Copy the token files from
tokens/native/swift/into the app target:OaitTokens.swift(values only, imports Foundation) andOaitTheme.swift(SwiftUI:OaitColors, which follow light and dark, the.oaitTextStyle(_:)modifier with fonts that scale with Dynamic Type,.oaitShadow(_:),Animation.oait(_:milliseconds:)). Never edit them; copy them again after each package update (native tokens). - Bundle the fonts. The generated theme addresses the static files of
assets/fonts/static/by PostScript name (RobotoFlex-SemiBold,NotoKufiArabic-Regular,RobotoMono-Medium); add them and the icon fontassets/fonts/app/MaterialSymbolsRounded-OAIT.ttfto the target and list them underUIAppFonts. Check every name on the first run, because SwiftUI falls back to the system font without an error (fonts, D-APP-19). Show the licence texts fromassets/fonts/licenses/on one screen (D-APP-19). - Apply the theme once on the root view:
.environment(\.oaitColors, OaitColors(accent: .family)), with the accent fixed at build time (.tamakkanfor Tamakkan's app only, D-APP-09), and.preferredColorScheme(.light)until the product has passed its dark review (D-APP-27). Views read the colors with@Environment(\.oaitColors). - Draw the OAIT bars, the same as on Android (D-APP-66): keep
NavigationStackfor the back stack and the edge swipe, hide its system bar withtoolbar(.hidden, for: .navigationBar)(and aTabView's with.tabBar), and place the top app bar and the navigation bar withsafeAreaInset. Add the insets, the tab-bar and selected traits, and the Large Content Viewer to them. Draw the app's own content with the component mapping. - Read in Mobile apps: units, type and text scaling, icons (Material Symbols in content, never SF Symbols, D-APP-25), the native bars on iOS, touch states and focus, sign-in with AuthenticationServices, and accessibility.
- First run. The Swift files were not compiled in this build: build them once with the current Xcode before anything else, and fix what the compiler reports against the symbols listed in the native tokens README. Then check shadows on a device: SwiftUI has no spread, so the theme approximates it (D-APP-15).
- Check:
node tools/nativelint.mjson the app's Swift sources, Xcode Accessibility Inspector, and a VoiceOver pass in English and Arabic (D-APP-53, D-APP-60).
Start here: Jetpack Compose and Android Views
- Copy the token files from
tokens/native/kotlin/:OaitTokens.kt(pure Kotlin, packageapp.oait.tokens) andOaitTheme.kt(Compose Material 3:OaitColors, the Material color bridge, the 28 text styles, shapes, shadows, motion). A Views app, or the XML parts of a Compose app, copiestokens/native/android-res/intores/: colors with theirvalues-nighttwins, dimensions, text appearances andTheme.Oait(native tokens). - Bundle the fonts from
assets/fonts/app/intores/font/: the variable cuts on API 26 and later drive the weight axis (D-APP-20), and the app sets the optical size, which Android does not apply by itself (D-APP-21). No Downloadable Fonts (D-APP-19). The native tokens README shows theFontFamilycode for Compose and theres/fontfamilies for Views (fonts). Add the icon fontMaterialSymbolsRounded-OAIT.ttfthe same way. - Apply the theme: wrap the app in
OaitTheme(darkTheme = …, accent = OaitAccent.Family, fonts = OaitFontFamilies(…)) { … }; passdarkTheme = falseuntil the dark review passes (D-APP-27). Read the roles asOaitTheme.colorsand the styles asOaitTheme.type. A Views app setsTheme.Oait(andThemeOverlay.Oait.Tamakkanfor Tamakkan). It fills Material'sColorSchemeso stock Material components stay legible (Materialprimaryholdsprimary-ink, D-APP-10), turns tonal elevation off and sets the pressed state to 12% (D-APP-24, D-APP-32). Never enable dynamic color. - Start from the kit. The Compose reference kit has the components and three screens; copy and adapt them (D-APP-63).
- Read in Mobile apps: units and sp for text only (D-APP-05), the Material bridge, edge-to-edge and insets, predictive back, text scaling to 200%, and accessibility.
- Check:
node tools/nativelint.mjson the Kotlin sources, Android Accessibility Scanner, and a TalkBack pass in English and Arabic (D-APP-53, D-APP-60).
Start here: Flutter
- Copy the token files from
tokens/native/dart/:oait_tokens.dart(plain Dart, no imports) andoait_theme.dart(the theme extensionsOaitColorsandOaitTextStyles, andoaitTheme(brightness:, accent:, locale:), which returnsThemeData). The theme imports thematerial_uipackage; the native tokens README says what to change for the in-framework Material library. - Bundle the fonts from
assets/fonts/app/and declare them inpubspec.yamlunder the family namesRoboto Flex,Noto Kufi ArabicandRoboto Mono, with the icon font. Flutter 3.41 and later drives the variable weight axis (D-APP-20). Arabic falls back throughfontFamilyFallback, with Roboto Flex first so Latin words and digits stay Roboto Flex (D-APP-22). Nogoogle_fontsruntime fetching (D-APP-19). - Apply the theme in
MaterialAppwithoaitTheme(…)for light and, after the dark review, for dark. App code reads the OAIT roles from the extension (Theme.of(context).extension<OaitColors>()!.primaryInk), never Material's slots (D-APP-10). - Draw the app with the component mapping: there is no Flutter kit in 1.1.0. The OAIT bars come from the mapping, on Android and iOS alike (D-APP-66).
- Read in Mobile apps: the Material bridge,
TextScalerand the 1.3× cap on chrome (D-APP-17, D-APP-18), reduced motion, and accessibility. - First run. The Dart files were not compiled in this build: run
flutter analyzeon them before anything else. - Check:
node tools/nativelint.mjson the Dart sources, Flutter's guideline matchers (tap target, labeled tap target, text contrast), and screen-reader passes in English and Arabic (D-APP-53, D-APP-60).
Start here: React Native and Expo
- Copy the token files from
tokens/native/ts/:tokens.ts(plain TypeScript) andtheme.ts, whosecreateOaitTheme({ scheme, accent, locale, windowWidth })returns the colors, the 28 text styles as style objects (with the compact sizes below 640 and the Arabic variants), spacing, radii, shadows asboxShadowstrings, motion and the icon map (native tokens). - Bundle the static fonts from
assets/fonts/static/, one file per weight, addressed by PostScript name: iOS reaches only named instances of a variable font in React Native (D-APP-20). Add the icon fontassets/fonts/app/MaterialSymbolsRounded-OAIT.ttf. Arabic text uses Noto Kufi Arabic, and Latin values inside it (IDs, codes, numbers) are their ownTextin the Latin family (D-APP-22) (fonts). - Apply the theme: call
createOaitThemefrom the color scheme, the accent, the language and the window width, and pass the result down with a context. Leave font scaling on (D-APP-17). - Start from the kit. The React Native reference kit has the components and three screens; copy and adapt them (D-APP-63).
- Read in Mobile apps: units, font scaling and the 1.3× cap, the bars per platform, announcements (
accessibilityLiveRegion,AccessibilityInfo.announceForAccessibility), and RTL restarts (D-APP-47, D-APP-52). - Check:
node tools/nativelint.mjson the TypeScript sources, and VoiceOver and TalkBack passes in English and Arabic (D-APP-53, D-APP-60).
App icon, launch screen, and name
Every app, whatever the stack, follows the same identity rules (D-APP-54 to D-APP-56). Default: the grounds below for every product; if declined, each product names its own ground, never orange.
- App icon. From the product's mark master in
assets/app-marks/(assets guide): the mark at its optical frame on a plain ground. The default icon uses the lightsurface(#fff8f5); the iOS dark variant uses the dark twin of the mark on the darksurface. Never the mark on orange: the mark's own accent is orange (D-APP-54).- iOS: one square, unmasked 1024×1024px master; the system applies the corner mask, and generates any appearance variant the app does not supply (Apple HIG: app icons). No baked-in shadows, gloss or text.
- Android: an adaptive icon with 108×108dp layers, the mark inside the inner 66×66dp that the mask always shows (Android: adaptive icons), the same
surfaceas the background layer, and a monochrome layer from the single-ink mark for themed icons. - Installed web apps keep the web icon kit of canonical §1.6 (Brand: icon kit).
- Launch. iOS: a launch screen that looks like the first screen's empty frame on
surface, with no logo and no text, because Apple says the launch screen "isn't a branding opportunity" and is not localized (Apple HIG: launching). Android: the system splash with the app icon onsurface; Android 12 and later always shows it (Android: splash screens). Installed web apps keepbackground_colorandtheme_coloratsurface(D-APP-55, canonical §1.6). Light and dark both: the launch screen matches the device's appearance. - Name. The app's name is the product name in Latin letters on every system language: "Global ID", "Global Jobs", "Global Games", "Tamakkan" (D-APP-56, canonical §1.2).
The checks
| Tool | What it proves | Runs on |
|---|---|---|
tools/tokencheck.mjs |
Every generated native file holds the model's values: colors per theme and accent, type, spacing, radii, sizes, shadows, motion; and the bridged Material pairs meet 4.5:1 | the package (tokens/native/) |
tools/nativelint.mjs |
App source has no raw colors, raw font sizes or durations outside the token files, no disabled text scaling, no physical left or right where start and end exist, and no banned imports (other icon sets, dynamic color) | the app's Swift, Kotlin, Dart, TS and TSX files |
tools/mobile-audit.cjs |
A web page holds up on phones: widths 320 to 430, landscape, touch, text spacing, safe areas, standalone mode | any web page, including an installed web app or a shell's bundle |
| Platform tools | Xcode Accessibility Inspector, Android Accessibility Scanner, Flutter's guideline matchers, and VoiceOver and TalkBack passes in English and Arabic | every app, before each release (D-APP-53) |
How to run each one is in the tools guide (D-APP-60).
What every app team reads
- Mobile apps: the rules for every app, with each platform's way of meeting them.
- Native tokens: which generated file goes into which app, names, units, and what each file's verification was.
- Fonts: the bundled fonts, the icon font and their licences.
- Component mapping: every family component on every platform.
- Hybrid shells and installed web apps.
- The foundations that apply unchanged: Color, Typography, Accessibility, Languages and RTL, Content and voice.