Mobile apps
How the OAIT family works in a mobile app: what stays the same on every platform and what follows the platform, how token values become platform units, how text scales, which fonts and icons ship, how color reaches Material components, how system settings, touch, focus, layout, navigation, permissions, sign-in, languages, and accessibility work in an app, and how to check it all before a release.
This page explains. The binding rules are in the canonical rules §18 and carry the decisions D-APP-01 to D-APP-63. Every web foundation still applies where this page is silent, with the unit mapping below. Platform facts on this page link to their primary source: the vendor's own documentation or the standard. The how-to for each toolkit is in the platform guides, and the generated token files are described in the native token guide.
Who reads this page: a designer or developer who builds a family product with SwiftUI, Jetpack Compose, Android Views, Flutter, React Native, or a hybrid shell. You do not need to know the web package to follow it. Where a web term appears, the sentence says what it means.
On this page:
- Rules at a glance
- What stays the same and what follows the platform
- Units
- Token files
- Type and text scaling
- Fonts and their licences
- Icons
- Color, themes, and the Material bridge
- System settings
- Touch states and focus
- Window sizes, safe areas, and the keyboard
- The app shell and navigation
- System-owned UI
- Permissions
- Sign-in
- Language, direction, and digits
- Accessibility in apps
- App icon and launch
- Hybrid shells and installed web apps
- Platform guides and reference kits
- The checks
- Known differences from the web
- Before you ship an app
- Where a literal port of a web rule goes wrong
- Related pages
Rules at a glance
| # | Rule | IDs |
|---|---|---|
| 1 | The family's content, the platform's behavior: colors, type scale, spacing, radii, icons, component anatomy and states, words, the accessibility contract, and one main action per screen are the same everywhere; system gestures, scrolling, the keyboard, system bars, system-owned UI, haptic hardware, text scaling, and keyboard focus drawing follow the platform | D-APP-01, D-APP-02 |
| 2 | Minimum versions: iOS and iPadOS 17, Android API 26 (29 recommended), Flutter 3.47 with material_ui, React Native 0.88 on the New Architecture or Expo SDK 58, Capacitor 8 with Android System WebView 140 |
D-APP-03 |
| 3 | 1px token = 1dp = 1pt = 1 logical pixel; rem × 16; text sizes in scalable units only, never padding or icons | D-APP-05 |
| 4 | Apps copy the generated token files and never edit them; the package version is the tokens' version | D-APP-06 to D-APP-08, D-APP-11 |
| 5 | Four schemes (light, dark, Tamakkan light, Tamakkan dark); the accent is chosen when the app is built, never at run time | D-APP-09 |
| 6 | App code reads OAIT roles by their own names; a bridge fills Material's color scheme, with primary-ink in Material's primary slot |
D-APP-10, D-APP-24 |
| 7 | Every text style scales with the user's setting; layouts work at 200%; only non-growing navigation labels cap at 1.3×; card art repeats its text as scalable text | D-APP-17, D-APP-18, D-APP-26 |
| 8 | Roboto Flex, Inter (headings: the hero, display, headline, and title styles), Noto Kufi Arabic, and Roboto Mono ship inside the app, with their licences on one screen; no runtime font download | D-APP-19 to D-APP-23, D-APP-64 |
| 9 | Material Symbols Rounded from the family's icon font, by code point; mirroring by the family registry; no other icon set | D-APP-25 |
| 10 | Light-only until the dark review passes, then follow the system | D-APP-27 |
| 11 | Increased contrast strengthens hairlines; bold text steps each weight up once; reduced motion switches motion off; haptics only for selection, success, and rejection | D-APP-28 to D-APP-31 |
| 12 | Pressed is the 12% layer inside the control's shape; hover only with a pointer; the focus ring only for keyboard, switch, and D-pad users, never on touch | D-APP-32, D-APP-33 |
| 13 | The family's breakpoints in dp; edge-to-edge drawing with "own padding plus inset"; the keyboard never hides a focused field; pinned chrome releases below 480dp of height; no orientation lock | D-APP-34 to D-APP-38 |
| 14 | Top app bar and navigation bar (2 to 5 destinations) below 768dp, the rail from 768dp; the same OAIT bars on Android and iOS | D-APP-39, D-APP-66 |
| 15 | Back always works, in the bar and by the system gesture, and closes the topmost overlay first | D-APP-42 |
| 16 | The family dialog and bottom sheet for the app's own questions; a visible Close button; every gesture has a single-tap alternative | D-APP-43, D-APP-44 |
| 17 | System-owned UI keeps the platform's look | D-APP-41 |
| 18 | Ask for a permission at the moment of use; a denied permission still leaves a way forward | D-APP-45 |
| 19 | Passkeys through the platform; "Sign in with Global ID" in the system browser session; biometrics never the only way in | D-APP-46 |
| 20 | Follow the system or per-app language; Western digits in every language | D-APP-23, D-APP-47 |
| 21 | WCAG 2.2 AA per screen, 48dp targets on every platform, native names, roles, states, order, and announcements | D-APP-48 to D-APP-53 |
| 22 | App icon: the mark on surface, never on orange; launch screen with no logo on iOS |
D-APP-54 to D-APP-56 |
| 23 | Shells and installed web apps use the web package plus the shell layer | D-APP-57 to D-APP-59 |
| 24 | Token, source, and page checks prove an app before release; Flutter and SwiftUI code in this release is written but not compiled here | D-APP-60, D-APP-61 |
| 25 | Reference kits are copied and adapted, not installed as a library | D-APP-62, D-APP-63 |
| 26 | One design for native Android and native iOS: one set of screens, identical content, and a closed list of platform differences (Universal app design) | D-APP-65 |
What stays the same and what follows the platform
One principle decides every app question: the family's content, the platform's behavior (D-APP-02). A person who moves from Global ID on the web to Global ID on a phone sees the same colors, type, spacing, corners, icons, words, and one main action per screen. A person who uses an iPhone or an Android phone every day finds the back gesture, the keyboard, the scrolling, the system bars, and the share sheet where the phone always puts them.
| Identical on every platform | Left to the platform |
|---|---|
| Color roles and their values, in both themes and under the Tamakkan accent | System gestures, back above all |
| The 28 type styles, the spacing scale, radii, sizes, shadows, opacities, durations | Scroll physics and overscroll |
| The icon set and its mirroring registry | Text selection and its menus |
| Component anatomy, variants, and states | The on-screen keyboard |
| The words: the glossary, sentence case, English, Arabic, and French | Status bar and system navigation bar |
| The accessibility contract (WCAG 2.2 AA, 48dp targets, never color alone) | System-owned UI (permission prompts, pickers, share sheet) |
| One main action per screen | Haptic hardware and the haptics setting |
| How text scales and how keyboard focus is drawn by the system |
Why: people use their phone's conventions without thinking about them, and Apple and Google both ask apps to keep them. Apple asks that customized components keep "sizing, placement, and behavior" familiar (Apple, Branding), and asks apps to let system edge gestures win (Apple, preferredScreenEdgesDeferringSystemGestures).
The three forms of an app
| Form | What it is | Where its rules live |
|---|---|---|
| Installed web app | The product's own site added to the home screen (a PWA, progressive web app) or wrapped as an Android Trusted Web Activity. A real browser engine on the product's real address | The web package, plus hybrid shells and installed web apps |
| Hybrid shell | A native container (Capacitor 8) around the product's web interface | The same |
| Native app | Screens drawn by a native toolkit: SwiftUI, Jetpack Compose or Android Views, Flutter, React Native | This page and the platform guides |
Which form a product takes is the product's decision (D-APP-04). A store app that is only a web view risks rejection: Apple's guideline 4.2 asks for features "that elevate it beyond a repackaged website" (App Review Guidelines), and Google Play does not allow apps whose main purpose is to "provide a webview of a website without permission" (Google Play, Spam policy). A wrapped product therefore ships at least one capability only the app has, and says which.
Minimum versions
| Stack | Minimum (D-APP-03) | Why |
|---|---|---|
| iOS and iPadOS | 17, built with the current SDK | App Store uploads must be built with Xcode 26 or later and a 26 SDK (Apple, upcoming requirements); sensoryFeedback and safeAreaPadding need iOS 17 (sensoryFeedback, safeAreaPadding) |
| Android | API 26; API 29 recommended | Variable fonts need Android 8.0, API 26 (Compose fonts); a custom font fallback chain needs API 29 (Typeface.CustomFallbackBuilder), and React Native draws variable weights only on Android 10 (Expo fonts) |
| Flutter | 3.47 or later with material_ui |
The Material library became the standalone material_ui package at 1.0 with Flutter 3.47, and the in-framework library is deprecated in 3.50 (Flutter breaking changes) |
| React Native | 0.88 or later on the New Architecture; Expo SDK 58 or later | 0.88 adds fontVariationSettings on both platforms (React Native 0.88); the New Architecture is the only one since 0.82 (React Native 0.82) |
| Hybrid shells | Capacitor 8; Android System WebView 140 or later | Capacitor states that WebView below 140 gives wrong safe-area values (Capacitor System Bars) |
A product may raise a minimum, never lower it.
Units
One token pixel is one density-independent unit on every platform (D-APP-05). A density-independent unit is the size the system keeps the same across screens of different sharpness: the system draws it with more physical pixels on a sharper screen.
| Token | Android | iOS and iPadOS | Flutter | React Native | Hybrid |
|---|---|---|---|---|---|
16px length (padding, size, radius, icon) |
16dp |
16 points |
16 logical pixels |
16 |
16px |
1rem |
16dp |
16 points |
16 |
16 |
1rem |
Text size 16px |
16sp |
16 points that scale with Dynamic Type |
16, scaled by the text scaler |
16, scaled by the font scale |
16px |
1px hairline |
1dp |
1 point |
1 |
1 |
1px |
Why: the W3C design token format maps a pixel to "dp" on Android and "pt" on iOS (DTCG Format 2025.10), and WCAG2ICT reads a CSS pixel in apps as the platform's density-independent unit (WCAG2ICT). Android converts px = dp × (dpi / 160) (Android screen densities); an iOS point is 1, 2, or 3 physical pixels at @1x, @2x, and @3x (Apple, Images). Text uses a scalable unit because sp "resizes based on the user's preferred text size" (Android screen densities). Never use sp for padding or heights: with Android 14's nonlinear font scaling, "4sp + 20sp might not equal 24sp" (Android 14 features).
Never run px tokens through Style Dictionary's built-in native size transforms: they assume rem and multiply by 16, so 48px becomes 768.00dp (Style Dictionary source). The family's own generator does the conversion (D-APP-06).
Worked examples
| Value | Token | SwiftUI | Compose | Android Views | Flutter | React Native |
|---|---|---|---|---|---|---|
| A 56px main button | size-button-lg 56 |
.frame(minHeight: 56) |
Modifier.defaultMinSize(minHeight = 56.dp) |
android:minHeight="56dp" |
minimumSize: Size(0, 56) in the button style |
minHeight: 56 |
| A 16px page gutter | space-gutter 16 |
.padding(.horizontal, 16), plus the safe area |
Modifier.padding(start = 16.dp, end = 16.dp), plus insets |
android:paddingStart="16dp", android:paddingEnd="16dp" |
EdgeInsetsDirectional.only(start: 16, end: 16) |
paddingStart: 16, paddingEnd: 16 |
body-md text |
14 on a 20 line | Font.custom(name, size: 14, relativeTo: …); line height 20 (multiple 1.4286) |
fontSize = 14.sp, lineHeight = 20.sp (or 1.4286.em) |
android:textSize="14sp", android:lineHeight="20sp" |
TextStyle(fontSize: 14, height: 1.4286) |
fontSize: 14, lineHeight computed as 14 × font scale × 1.4286 |
| A 24px card corner | radius-card 24 |
RoundedRectangle(cornerRadius: 24) |
RoundedCornerShape(24.dp) |
a 24dp dimension (oait_radius_card) |
BorderRadius.circular(24) |
borderRadius: 24 |
elevation-1 |
two layers: (0, 1) blur 2 at 30% black; (0, 1) blur 3 spread 1 at 15% black | two shadow(color:radius:x:y:) calls, radius = blur ÷ 2: radius 1 at y 1, radius 1.5 at y 1 (no spread) |
the two token layers in Modifier.dropShadow |
platform elevation 1dp |
two BoxShadows from the token layers |
boxShadow: '0 1px 2px #0000004d, 0 1px 3px 1px #00000026' |
API sources for the table: frame(minWidth:…), padding(::), RoundedRectangle, Compose layout modifiers, Compose padding, Android minHeight and TouchDelegate, Flutter ButtonStyle.minimumSize, EdgeInsetsDirectional, BorderRadius.circular, React Native layout props, React Native view style props.
Checked by calculation: on a 3× iPhone the 56pt button is 168 physical pixels tall; on a 480dpi Android phone 56dp is 56 × 480 / 160 = 168 pixels; 20 ÷ 14 = 1.4286; the SwiftUI radii are 2 ÷ 2 = 1 and 3 ÷ 2 = 1.5.
Why the shadow differs per stack (D-APP-15): Compose dropShadow takes radius, spread, color, and offset (Compose shadows); Flutter BoxShadow takes offset, blur, and spread (BoxShadow); React Native boxShadow takes the web syntax on the New Architecture (View style props). SwiftUI's shadow has no spread (shadow(color:radius:x:y:)); halving the web blur is Microsoft's published rule for Apple platforms (Microsoft Apple UX guide), not Apple's, so check it on a device. The family's two elevations equal Material levels 1 and 3, which Android Views draw as 1dp and 6dp (Material elevation tokens). Every themed Material component has elevation 0 and no tonal tint (D-APP-24).
Do and do not:
- Do write
16.dp,16points, or16; never multiply a token by the screen's density yourself. - Do write text in sp or the toolkit's scaled size; never write text in dp or fixed points.
- Do not use sp for padding, heights, or icons, and never multiply by
Configuration.fontScale(Android 14 features). - Do not read a token px as a device pixel: on a 3× screen everything would draw at a third of its size.
Token files
Every native file is generated from the one token source, tokens/tokens.source.json, by the token build (D-APP-06). Apps copy the files; nobody edits them. The native token guide lists the files, their paths, and how a project takes them in.
| Layer | What it holds | Rule (D-APP-08) |
|---|---|---|
| Values file | Every token as a constant with no UI framework import: colors as 0xAARRGGBB integers in Swift, Kotlin, and Dart, and #rrggbb or rgba() strings in TypeScript; per theme and accent |
Compiles on its own |
| Theme file | The values turned into the toolkit's types (colors, fonts, shapes), plus the toolkit's theme wiring and the Material bridge | Imports the values file |
Names keep their words and follow the language (D-APP-07): primaryInk, surfaceContainerLow, space4, space0_5, radiusCard, titleMd, radius4, breakpoint2xl in Swift, Kotlin, Dart, and TypeScript; oait_color_primary_ink and oait_space_4 in Android XML. Types are OaitColors, OaitType, OaitSpace, OaitRadius, OaitSize, OaitShadow, OaitMotion, OaitOpacity, OaitBreakpoint, and OaitIcons.
What native receives (D-APP-11): colors, type styles, spacing, radii, sizes, shadows, opacities, durations, easings, breakpoints, and containers. Not emitted as code: z-index (stacking on native is decided by structure), web animation shorthands (the kits implement the named motions), and the email font stack.
Motion (D-APP-16): durations in milliseconds (Swift also in seconds), easings as four numbers. ease-spring overshoots (its second y value is 1.56), so SwiftUI uses Animation.timingCurve (timingCurve), never UIKit's cubic timing parameters, whose control points "must be in the range 0.0 to 1.0" (UICubicTimingParameters). Apple's page for timingCurve states no range either way, so check the curve on a device. Material's own motion has moved to springs (Material motion); OAIT keeps its durations and easings.
Why generated files: a hand-copied value drifts the day after it is copied. The token check proves that every generated file holds the model's values (D-APP-60).
Do and do not:
- Do take the files from the package version your product is on, and update them only with a version bump.
- Do not edit a generated file, add a color to it, or copy a hex value into app code.
- Do not take tokens from Style Dictionary's native presets or from a screenshot.
Type and text scaling
The 28 styles carry over with their sizes, line heights, weights, and tracking (D-APP-12). A window narrower than 640dp uses a style's compact size where it has one (D-APP-13). Arabic uses taller lines and no tracking (D-TYP-14). Sizes and lines below are in points or dp at the default text size.
| Style | Family | Size / line | Line multiple | Weight | Tracking (em) | Compact below 640dp | Arabic line (at default size) |
|---|---|---|---|---|---|---|---|
hero-lg |
sans | 76 / 82.08 (fluid) | 1.08 | 700 | -0.025 | 44 / 47.52 | 1.45 (110.2), no tracking |
hero-md |
sans | 56 / 61.6 (fluid) | 1.1 | 600 | -0.025 | 32 / 35.2 | 1.45 (81.2), no tracking |
lead |
sans | 20 / 32 (fluid) | 1.6 | 400 | 0 | 18 / 28.8 | 1.8 (36) |
display-lg |
sans | 57 / 64 | 1.12 | 600 | -0.02 | 36 / 44 | 1.45 (82.65), no tracking |
display-md |
sans | 45 / 52 | 1.16 | 600 | -0.02 | 32 / 40 | 1.45 (65.25), no tracking |
display-sm |
sans | 36 / 44 | 1.22 | 600 | -0.01 | 28 / 36 | 1.45 (52.2), no tracking |
headline-lg |
sans | 32 / 40 | 1.25 | 600 | -0.01 | 28 / 36 | 1.6 (51.2), no tracking |
headline-md |
sans | 28 / 36 | 1.29 | 600 | -0.01 | — | 1.6 (44.8), no tracking |
headline-sm |
sans | 24 / 32 | 1.33 | 600 | 0 | — | 1.6 (38.4) |
title-lg |
sans | 20 / 28 | 1.4 | 600 | 0 | — | 1.6 (32) |
title-md |
sans | 18 / 24 | 1.33 | 700 | 0 | — | 1.75 (31.5) |
title-sm |
sans | 16 / 24 | 1.5 | 600 | 0 | — | 1.75 (28) |
body-lg |
sans | 16 / 24 | 1.5 | 400 | 0 | — | 1.75 (28) |
body-md |
sans | 14 / 20 | 1.43 | 400 | 0 | — | 1.75 (24.5) |
body-sm |
sans | 12 / 16 | 1.33 | 400 | 0 | — | 1.75 (21) |
label-lg |
sans | 16 / 24 | 1.5 | 600 | 0 | — | 1.75 (28) |
label-md |
sans | 14 / 20 | 1.43 | 600 | 0 | — | 1.75 (24.5) |
label-sm |
sans | 12 / 16 | 1.33 | 500 | 0 | — | 1.75 (21) |
eyebrow |
sans | 12 / 16 | 1.33 | 600 | 0.12 | — | size 13, 1.75 (22.75), no tracking |
numeral-lg |
sans | 40 / 48 | 1.2 | 700 | 0 | — | Latin values kept |
numeral-md |
sans | 28 / 36 | 1.29 | 700 | 0 | — | Latin values kept |
code-lg |
mono | 24 / 32 | 1.33 | 500 | 0.12 | — | Latin values kept |
code-md |
mono | 16 / 24 | 1.5 | 500 | 0 | — | Latin values kept |
code-sm |
mono | 14 / 20 | 1.43 | 500 | 0 | — | Latin values kept |
code-xs |
mono | 12 / 16 | 1.33 | 500 | 0 | — | Latin values kept |
lockup-name |
sans | 22 / 28 | 1.27 | 600 | 0 | — | Latin values kept |
lockup-name-compact |
sans | 18 / 24 | 1.33 | 600 | 0 | — | Latin values kept |
lockup-name-stage |
sans | 38 / 42 | 1.11 | 600 | 0 | — | Latin values kept |
The values come from the token model; the token reference holds the usage notes. "Fluid" styles are marketing styles: on an app screen they take the compact value below 640dp and clamp(min, base + perWidth × width, max) above it (D-APP-13). Code and numeral styles keep Latin values in Arabic because their content is Latin and left to right.
How each value carries over (D-APP-12):
- Line height scales with the text. Toolkits get the multiple: Flutter's
heightis a multiple of the font size (TextStyle.height), Compose takesemorsp(Compose paragraph style), Android Views keep the ratio only whentextSizeandlineHeightare both in sp (Android 14 features), and React Native'slineHeightis an absolute number (Text style props), so the kit computes it from the multiple at render. Before iOS 26, SwiftUI sets the gap between lines, not the line height (lineSpacing); from iOS 26lineHeight(_:)sets it (SwiftUI lineSpacing, AttributedString.LineHeight). - Tracking. Compose and Android Views take em (TextView letterSpacing); SwiftUI, Flutter, and React Native take an absolute value, so the generator writes em × size (SwiftUI tracking, Flutter TextStyle).
- Material type slots. The 15 styles from
display-lgtolabel-smfill the toolkit's slotsdisplayLargetolabelSmall; the other 13 live in the OAIT extension (D-APP-14). Sizes differ from Material's defaults: Material'slabelLargeis 14 and its buttons read it (Material typography); the family's button label islabel-lg, 16. So every kit component sets its text style by OAIT name.
How each stack scales text
Every text style scales with the user's setting, and nothing switches scaling off (D-APP-17).
| Stack | Scales by | Never |
|---|---|---|
| SwiftUI | Font.custom(_:size:relativeTo:) (Apple); numbers that grow with text, such as an icon beside a label, with @ScaledMetric (Apple). UIKit: UIFontMetrics with adjustsFontForContentSizeCategory (Apple) |
Font.custom(_:fixedSize:) for interface text; a fixed dynamicTypeSize |
| Compose | sp sizes; the user's scale is LocalDensity.current.fontScale, read only (Density) |
Text in dp; multiplying by the font scale |
| Android Views | android:textSize and android:lineHeight in sp (Android 14 features) |
scaledDensity arithmetic, which is wrong under nonlinear scaling |
| Flutter | Automatic from MediaQueryData.textScaler (Flutter); icons grow with Icon.applyTextScaling (Flutter) |
TextScaler.noScaling; the deprecated textScaleFactor |
| React Native | allowFontScaling is on by default (Text); the scale is useWindowDimensions().fontScale (useWindowDimensions) |
allowFontScaling={false} |
| Hybrid | The web rules: browser text zoom, and a viewport that never blocks zoom (maximum-scale not below 2: W3C ACT rule). Android WebView has a text zoom setting (WebSettings); Capacitor has an official Text Zoom plugin (Capacitor) |
user-scalable=no |
What happens at 200%
Layouts reflow to at least 200% with no loss of content or function (D-APP-17). WCAG 1.4.4 asks for 200% (WCAG 2.2), and WCAG2ICT reads it for apps as 200% or the platform's own maximum (WCAG2ICT). The platforms go beyond it:
- Android scales fonts up to 200% from Android 14, on a curve: "large text doesn't scale at the same rate as smaller text" (Android 14 features). So at 200% body text grows more than display text does. Google asks for testing at 200%.
- iOS Dynamic Type has 12 sizes. Body is 17pt at the default size, 21 at xxLarge, 23 at xxxLarge, and 53 at the largest accessibility size, about 312% (Apple, Typography). Apple states sizes above 200% from AX3 (Apple, Larger Text criteria). Above 200% the layout must not break; content may scroll.
What a layout does at 200%:
- Fixed heights become minimum heights. A 56dp button grows to fit its label; a 72dp two-line row grows; nothing clips. Apple asks that rows "grow in height so that text isn't cropped" (Apple, Layout).
- Side by side becomes stacked. At the large sizes Apple suggests "a stacked layout where text appears above secondary items" (Apple, Typography).
- Meaningful icons grow with the text beside them (Apple, Typography).
- Truncation stays rare. Show as much at the largest size as at the largest standard size.
- The smallest text (
label-sm,body-sm,code-xs, 12) stays the floor and scales too (D-APP-26).
What is capped, and why
Only text inside navigation chrome that cannot grow is capped, at 1.3× (D-APP-18): navigation bar labels, top app bar titles, tabs, and segmented buttons. These bars have one row and a fixed role on the screen; past 1.3× their labels start to clip, which is the first clipping threshold the family's own mobile-web audit measured. The cap is never a reason to cap anything else.
| Stack | How the cap is set |
|---|---|
| SwiftUI | System navigation bars and tab bars already behave this way and offer the Large Content Viewer, which shows a large copy of a small item on a long press (Apple, Larger Text criteria, UILargeContentViewerInteraction). A custom bar limits its labels with dynamicTypeSize(...DynamicTypeSize.xxLarge), the nearest step at or below 1.3× (21 ÷ 17 = 1.24), and adds accessibilityShowsLargeContentViewer() (dynamicTypeSize, accessibilityShowsLargeContentViewer) |
| Compose | Around the bar's labels, provide a LocalDensity whose fontScale is at most 1.3 (Density) |
| Android Views | Tokens only in this release: the team sets the cap in its own bar |
| Flutter | MediaQuery.withClampedTextScaling(maxScaleFactor: 1.3) around the bar (Flutter) |
| React Native | maxFontSizeMultiplier={1.3} on the bar's Text (Text); on iOS, accessibilityShowsLargeContentViewer (Accessibility) |
Art with fixed geometry (the ID card, the QR pass, the passport card) does not scale its text. Its content is repeated as scalable text next to it or behind it, which the accessible-name rule of the web already asks (canonical §10.30, D-APP-18).
Material itself asks that navigation bar labels stay whole "at up to 2x text sizing" and that the bar grows vertically (Material navigation bar); the family's 1.3× cap is stricter on growth and leaves room for Arabic's taller lines, and the bar still grows to fit what it shows.
Do and do not:
- Do test every screen at 200% and at the platform's largest size, in English and Arabic.
- Do give text containers a minimum height.
- Do not cap body text, buttons, fields, list rows, or dialogs.
- Do not use the Large Content Viewer as a replacement for Dynamic Type; Apple says the same (Apple).
Fonts and their licences
The family's four text faces ship inside every app (D-APP-19, D-APP-64): Roboto Flex for Latin text and digits, Inter for headings (the hero, display, headline, and title styles, as on the web, D-TYP-20), Noto Kufi Arabic for Arabic, headings included, and Roboto Mono for IDs and codes. The generated type styles carry the family (sans, heading, or mono), so an app that reads its text styles from the generated theme gets the heading face with no extra code. San Francisco is not used on any platform, iOS included: the design is the same on Android and iOS. The files are in the font folder: variable cuts in assets/fonts/app/ and static instances in assets/fonts/static/.
| Which file (D-APP-20) | For |
|---|---|
Variable cuts (RobotoFlex-OAIT.ttf, Inter-OAIT.ttf, NotoKufiArabic-OAIT.ttf, RobotoMono-OAIT.ttf) |
Compose and Android Views on API 26 or later; Flutter 3.41 or later |
| Static instances (Regular, Medium, SemiBold, Bold) | React Native, because iOS reaches only a variable font's named instances there (Expo fonts); SwiftUI and UIKit in 1.1.0, addressed by PostScript name, because Apple's documentation does not say how a custom variable font's weight axis is selected; anything below those versions |
Why bundled: Android's Downloadable Fonts fetch the font "over the network when needed" and do not deliver variable fonts (Android downloadable fonts, Compose fonts); Flutter's google_fonts package fetches over HTTP at run time by default (google_fonts). A bundled font is there on the first launch, offline, and identical on every device.
Licences. All four text faces (Inter included: licenses/OFL-Inter.txt) are SIL Open Font License 1.1 with no Reserved Font Name, so the family may ship subsets and instances under the original names (Roboto Flex OFL, Noto Kufi Arabic OFL, Roboto Mono OFL). An app that bundles an OFL font must carry "the copyright statement, the license notice and the license text" (OFL FAQ 1.20). Material Symbols are Apache 2.0, which asks for a copy of the licence with every redistribution (Material Symbols licence). The texts are in assets/fonts/licenses/. Every app shows them on one screen: Settings, then About or Licenses (D-APP-19).
Optical size. Roboto Flex's default optical size is 14 (fonts research, Roboto Flex metadata). The web sets it from the text size automatically. iOS does it for custom variable fonts by Apple's statement (WWDC 2020, session 10175); check it on a device. Flutter documents it as "normally" derived from the font size (FontVariation.opticalSize). Compose does not promise it, so the generated Compose and Views styles set opsz to each style's size (FontVariation). Static instances are fixed at 14, so display sizes in React Native draw slightly heavier than on the web: an accepted difference (D-APP-21).
Arabic. The app's language picks the font list (D-APP-22): Roboto Flex first, so Latin words and digits inside Arabic stay Roboto Flex, then Noto Kufi Arabic. Noto Kufi Arabic carries its own Latin letters and digits, so a list that puts it first draws them in the Arabic face (fonts research, measured from the font file). Its natural line, 1.897 em, is taller than every family Arabic line height (1.45 to 1.8), so turn off font padding trimming where a toolkit trims, and test that no line clips.
| Stack | Bundle | Weight | Latin then Arabic |
|---|---|---|---|
| SwiftUI | List the files under UIAppFonts in Info.plist; address each by its PostScript name. A wrong name falls back to the system font without an error (Apple) |
Real weights only: SwiftUI does not fake bold. Variable axes through kCTFontVariationAttribute and Font(CTFont) (Apple) |
A cascade list on the font descriptor (cascadeList) |
| Compose | res/font, lowercase file names with no special characters (Compose fonts) |
FontVariation.weight, FontVariation.opticalSizing on each Font |
Typeface.CustomFallbackBuilder (API 29), wrapped with FontFamily(typeface) (Compose font package) |
| Android Views | res/font (API 26) |
android:fontVariationSettings (API 28) or setFontVariationSettings (API 26) (TextView) |
Typeface.CustomFallbackBuilder (API 29) |
| Flutter | flutter: fonts: in pubspec.yaml (Flutter fonts) |
fontWeight drives the weight axis since 3.41 (Flutter) |
fontFamilyFallback (Flutter) |
| React Native | The expo-font config plugin; name each file after its PostScript name so the family name matches on both platforms (Expo fonts) |
One static file per weight | No fallback list: fontFamily takes one name (Text). Arabic text uses Noto Kufi Arabic, and Latin values (IDs, codes, product names, numbers) are their own Text in the Latin family, as the isolation rule already asks (canonical §14.2) |
| Hybrid | The web's self-hosted WOFF2 files and font stack | The web rules | The web stack |
Do and do not:
- Do show the font and icon licences on one screen in every app.
- Do test one Arabic screen with a Latin ID, a product name, and digits in it.
- Do not load fonts from the network at run time, and do not use Android Downloadable Fonts or
google_fontsfetching. - Do not put Noto Kufi Arabic first in a fallback list.
Icons
Every in-app icon on every platform is Material Symbols Rounded, from the family's subset icon font assets/fonts/app/MaterialSymbolsRounded-OAIT.ttf (D-APP-25). The font is pinned at weight 400, optical size 24, and grade 0, and keeps the FILL axis. Apps address each glyph by its code point through the generated OaitIcons constants; the list and the mirroring registry are in assets/fonts/icons.json.
| Rule | Why |
|---|---|
| By code point, never by name | Flutter addresses font icons by code point only (IconData); a name written as text is read aloud letter by letter unless hidden |
| FILL 1 only for selected or current items, status icons, and icons in filled tonal tiles | canonical §8.2. Material does the same for the current destination (Material navigation bar) |
Mirror by the family registry (mirrored in icons.json), never by the platform's own flags |
One list for every platform, so arrow_back turns in Arabic and the check mark never does |
| No other icon package | No SF Symbols in app content, no Lucide, no material_symbols_icons, no vector-icons sets. SF Symbols are licensed only for apps on Apple platforms (Xcode and Apple SDKs Agreement); Apple allows an app its own interface icons as long as they are consistent (Apple, Icons) |
| System-drawn UI keeps its own glyphs | D-APP-41: the share sheet and pickers |
| Stack | Draw | Fill | Mirror (only when the registry says so) | Hide from assistive technology |
|---|---|---|---|---|
| SwiftUI | a text view in the icon font, from OaitIcons |
FILL through Core Text variations | flipsForRightToLeftLayoutDirection(true) (Apple) |
accessibilityHidden(true) |
| Compose | a text in the icon font family | FontVariation.Setting("FILL", 1f) on the Font |
flip when LocalLayoutDirection is right to left; no Modifier.autoMirror exists (ImageVector) |
contentDescription = null on decorative icons |
| Android Views | a text view in the icon font | fontVariationSettings |
flip in right-to-left layouts | not important for accessibility |
| Flutter | Icon(IconData(codePoint, fontFamily: …, matchTextDirection: mirrored)) (IconData.matchTextDirection) |
Icon(fill: 1) (Icon.fill) |
matchTextDirection |
ExcludeSemantics, or a semanticLabel when it carries meaning |
| React Native | a Text in the icon font with the code point |
fontVariationSettings: { FILL: 1 } (Text style props) |
transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }]; React Native never flips an icon itself (React Native RTL) |
aria-hidden |
| Hybrid | the web's ligature markup | the web's oa-icon--filled |
the web's oa-icon--mirror |
aria-hidden="true" |
Icon controls keep a 48dp target around a 24dp glyph (Material, Structure), and meaningful icons grow with text (see type and text scaling).
Color, themes, and the Material bridge
Four schemes exist: light, dark, Tamakkan light, and Tamakkan dark (D-APP-09). The accent is chosen when the app is built (accent: family | tamakkan), never switched at run time, and only Tamakkan's own app sets it. The scheme is fixed: no Material You, no dynamic color from the wallpaper (D-APP-24). Dynamic color cannot give "exact same UI colors across all devices" (Material, choosing a scheme).
Why Material's primary slot holds primary-ink
Compose and Flutter themes carry two things (D-APP-10).
- The OAIT roles under their own names.
OaitTheme.colors.primaryis the orange fill andprimaryInkthe orange text. App code and the kits use only these. - A bridge that fills Material's color scheme, so stock Material components come out legible.
Stock Material components draw text, outlines, cursors, and selection fills in Material's primary role: the text button label, dialog actions, the focused field's label and caret, the active tab (Material button tokens). The family's orange, primary (#f47920), is 2.63:1 on surface as text, which fails WCAG's 4.5:1. So the bridge puts primary-ink in Material's primary slot and surface in onPrimary:
| Pair | Light | Dark | Tamakkan light | Tamakkan dark | Needs |
|---|---|---|---|---|---|
primary-ink text on surface |
6.79:1 | 10.85:1 | 6.77:1 | 10.84:1 | 4.5:1 |
surface text on a primary-ink fill (Material onPrimary on primary) |
6.79:1 | 10.85:1 | 6.77:1 | 10.84:1 | 4.5:1 |
on-primary on the orange fill primary |
6.19:1 | 6.19:1 | — | — | 4.5:1 |
orange primary as text on surface |
2.63:1 | — | — | — | fails: never text |
Ratios are from the contrast report and the primary usage note in the token reference; a contrast ratio is the same in both directions, so the second row equals the first. The bridge's own text pairs are checked by the token build (D-APP-10). OAIT's own switch and checkbox are already a primary-ink fill with a surface mark (canonical §10.5, §10.6), so the bridge matches them.
The other bridge roles: primaryContainer, secondary*, tertiary*, error*, surface*, outline*, inverse*, and scrim take the tokens of the same name; surfaceDim is surface-container-high, surfaceBright is surface, surfaceTint is transparent, shadow is black, and the fixed roles take the matching container roles. The orange fill is set by hand where the family uses it: the filled button, the FAB, count badges, and step discs. This is the same idea as shadcn.css on the web.
| Stack | OAIT roles | Material bridge | Tonal tint off |
|---|---|---|---|
| SwiftUI | OaitColors in the theme file |
none: SwiftUI has no Material scheme | not applicable |
| Compose | OaitTheme.colors, a static composition local around MaterialTheme, the pattern Google documents for extended themes (Compose custom design systems) |
ColorScheme(...) with every role filled (ColorScheme) |
LocalTonalElevationEnabled provides false (Material 3 package), surfaceTint transparent |
| Android Views | color resources (oait_color_*) |
the Theme.Material3 color attributes (colorPrimary, colorSurfaceContainer…) (Material Components color) |
elevationOverlayEnabled false (it defaults to true) |
| Flutter | a ThemeExtension read with Theme.of(context).extension<…>() (ThemeExtension) |
ColorScheme(...) built by hand for light and dark with every role filled; never ColorScheme.fromSeed, whose seed "may not wind up as one of the ColorScheme colors" (fromSeed); a missing role silently falls back to a neighbor (ColorScheme) |
surfaceTint transparent |
| React Native | the values file and a theme context | none | not applicable |
| Hybrid | tokens/oait.css |
shadcn.css where a product uses shadcn/ui |
not applicable |
Light and dark
As on the web (D-COL-14), an app is light-only until its dark review passes, then follows the system, with the theme toggle as the person's override where the product has one (D-APP-27). Two platform facts push toward finishing the dark review before a store release: Android 16 QPR2 can invert a light-only app, its Views, Composables, and WebViews, though not Flutter (Android 16 QPR2), and Apple documents the light-only opt-out as temporary (Apple, choosing an interface style). Even a light-only iOS app supplies dark values, because Liquid Glass adapts to the content behind it (Apple, Color).
| Stack | Hold light | Follow the system |
|---|---|---|
| SwiftUI | UIUserInterfaceStyle = Light in Info.plist (Apple) |
remove the key |
| Compose | always the light scheme | isSystemInDarkTheme() (Compose) |
| Android Views | Theme.Material3.Light |
Theme.Material3.DayNight (Android dark theme) |
| Flutter | light theme only | light and dark themes |
| React Native | Expo userInterfaceStyle: "light" (absent means light) |
"automatic" with useColorScheme() (Expo color themes, useColorScheme) |
| Hybrid | data-theme="light" on <html>, as on the web |
remove it |
Do and do not:
- Do read colors by OAIT name in app code:
primaryInkfor orange text,primaryfor the orange fill. - Do not write
MaterialTheme.colorScheme.primaryin app code expecting orange: it isprimary-ink. - Do not use dynamic color,
fromSeed, or tonal elevation.
System settings
An app follows the person's system settings (EN 301 549 clause 11.7 asks software to follow "documented platform accessibility features": EN 301 549 V4.1.1).
| Setting | What OAIT does | SwiftUI | Compose and Views | Flutter | React Native |
|---|---|---|---|---|---|
| Increased contrast (D-APP-28) | Hairlines go from outline-variant to outline; nothing else changes, because the default pairs already meet 4.5:1 and 3:1 |
colorSchemeContrast (Apple) |
UiModeManager.getContrast(), API 34 (Android) |
MediaQueryData.highContrast (iOS, Android API 34) (Flutter) |
isDarkerSystemColorsEnabled (iOS), isHighTextContrastEnabled (Android) (AccessibilityInfo) |
| Bold text (D-APP-29) | Each style steps up one weight: 400 to 500, 500 to 600, 600 to 700; 700 stays | legibilityWeight == .bold (Apple) |
Configuration.fontWeightAdjustment, API 31 (Android) |
MediaQueryData.boldText (Flutter) |
isBoldTextEnabled (iOS only) |
| Reduced motion (D-APP-30) | OAIT motion off: state changes are instant, loops stop, sheets and dialogs appear without travel; a cross-fade of duration-short-3 is allowed |
accessibilityReduceMotion (Apple) |
ANIMATOR_DURATION_SCALE 0 ends animations at once (Android); Compose fills MotionDurationScale from it; Views: ValueAnimator.areAnimatorsEnabled() |
disableAnimations (Android) and reduceMotion (iOS); widgets must read them (Flutter) |
isReduceMotionEnabled() (AccessibilityInfo); Reanimated follows the system by default (Reanimated) |
| Reduce transparency | Glass bars become opaque surface; the opaque bar is the native default anyway |
accessibilityReduceTransparency |
— | — | isReduceTransparencyEnabled (iOS) |
Why bold text steps one weight: Apple asks custom fonts to implement Bold Text as the system font does (Apple, Typography), and the variable fonts make the step exact. Why hairlines only: the family has no high-contrast token set in 1.1.0 (a later, additive theme); the default pairs already pass (contrast report).
Haptics
Haptics are optional, never the only feedback, and used for three meanings only (D-APP-31). Nothing buzzes on ordinary taps, navigation, or scrolling. The system setting decides; apps add no haptics switch. Apple asks for haptics "according to their documented meanings" and sparingly (Apple, Playing haptics); Android says "less is more" (Android haptics principles).
| Meaning | When | SwiftUI | Compose | Android Views | Flutter | React Native | Shell |
|---|---|---|---|---|---|---|---|
| Selection changed | a switch, segmented button, or picker step | sensoryFeedback(.selection, trigger:) (Apple) |
the host view's performHapticFeedback with a Views constant |
HapticFeedbackConstants.SEGMENT_TICK, or TOGGLE_ON and TOGGLE_OFF (API 34) (Android) |
HapticFeedback.selectionClick() (Flutter) |
Haptics.selectionAsync() (Expo) |
Capacitor Haptics selectionChanged |
| Task succeeded, where the screen shows success | scan accepted, a payment-like confirmation | .success |
HapticFeedbackType.Confirm (Compose) |
CONFIRM (API 30) |
successNotification() |
notificationAsync(Success) |
notification({ type: Success }) (Capacitor) |
| Action rejected | scan refused, form blocked | .error |
HapticFeedbackType.Reject |
REJECT (API 30) |
errorNotification() |
notificationAsync(Error) |
notification({ type: Error }) |
Android's performHapticFeedback needs no permission and respects the person's touch feedback setting (Android haptic feedback). An installed web app on iOS has no haptics: navigator.vibrate() does not exist there (MDN browser compatibility data).
Touch states and focus
Pressed and hover
Pressed is the 12% state layer of the content color (opacity-state-pressed), drawn inside the control's shape: a bounded ripple with OAIT's alpha on Android, a fade on iOS (D-APP-32). Hover (8%) exists only when a pointer is attached. Nothing scales, lifts, or swaps color. Disabled keeps the web mixes (12% container, 38% content).
Why: Apple asks for a visible press state on every custom button (Apple, Buttons). Material's default pressed layer is 10% (Material states); the family keeps its 12%, because labels are measured on it (on-primary on the pressed orange is 5.08:1). Hover needs a cursor (Material states), and a touch hover sticks after a tap.
| Stack | Pressed | Hover |
|---|---|---|
| SwiftUI | a ButtonStyle that reads configuration.isPressed and draws the layer (Apple) |
onHover or hoverEffect on iPadOS with a pointer |
| Compose | the kit's own indication built on createRippleModifierNode: Google says theme-wide ripple configuration is not supported and a design system should build its own (Compose ripple migration) |
the same indication, from hover interactions |
| Android Views | the platform ripple, tinted with the content color at 12% | pointer hover only |
| Flutter | overlayColor resolved for WidgetState.pressed at 0.12 (ButtonStyle.overlayColor); the default is 0.1 |
WidgetState.hovered at 0.08 |
| React Native | Pressable style={({ pressed }) => …}; on Android android_ripple with alpha (Pressable) |
onHoverIn, onHoverOut |
| Hybrid | the web state layer | the web's hover guard |
Focus
For keyboard, switch, and D-pad users a focused control shows focus at 3:1 (D-APP-33). Touch never shows a ring.
- Where the kit draws the control and the toolkit lets it draw focus (Compose, Flutter, React Native, the web), it draws the OAIT ring: 3dp of
focus-ring, 2dp outside the edge, context colors as on the web. React Native 0.88 hasoutlineWidth,outlineColor, andoutlineOffset, drawn outside the border without affecting layout (View style props). Material's default focus is a 10% layer with no ring (Flutter FilledButton defaults); inside kit components the ring replaces it. Compose Material 3 1.5, a release candidate, adds an inset focus ring of its own (Compose Material 3 releases); the kits keep the OAIT ring. - Where the system draws focus (iOS and iPadOS Full Keyboard Access, the iPad focus halo), the system indicator stands. Apple asks iPadOS apps not to build their own keyboard navigation for buttons and switches (Apple, Keyboards).
- A tapped text field shows its
primary-inkborder and caret, not the ring. A field reached by keyboard shows the ring.
Why: WCAG 2.4.7 asks for a visible keyboard focus indicator (WCAG 2.2), WCAG2ICT says it applies to apps on platforms with a keyboard interface (WCAG2ICT), and Android asks for "prominent, accessible visual cues" for keyboard and D-pad focus (Compose focus). A ring on every tap is noise; the web draws it only for keyboard focus, and apps follow the input type.
Do and do not:
- Do test every screen with a hardware keyboard and with Switch Access or Switch Control.
- Do not draw the ring on touch, and do not hide the system's focus on iOS.
- Do not leave Material's default ripple and focus layer on kit components.
Window sizes, safe areas, and the keyboard
Window widths
Apps use the family's breakpoints as dp thresholds (D-APP-34), generated as OaitBreakpoint:
| Width | What changes |
|---|---|
| below 640dp | one column, 16dp gutters, compact type sizes |
| from 640dp | two columns, 24dp gutters |
| from 768dp | the navigation bar becomes the rail; the bottom sheet becomes a dialog |
| from 1024dp | side panes, three columns |
These are close to, but not the same as, Material's window size classes, which break at 600 and 840dp (Android window size classes). The family keeps one set so a tablet shows what the web shows at the same width. Decide by window width, never by device type: Android says size classes are "not intended for isTablet-type logic", and Apple says to decide layout "based on size classes, not device type or orientation" (Apple, Layout).
| Stack | Read the width | Do not use as is |
|---|---|---|
| SwiftUI | horizontalSizeClass for Apple's compact and regular split (Apple), with the window's width compared to OaitBreakpoint |
— |
| Compose | the window width in dp, compared to OaitBreakpoint |
NavigationSuiteScaffold's default switch, which follows Material's classes (Compose adaptive navigation) |
| Flutter | MediaQuery.sizeOf(context) or LayoutBuilder (Flutter) |
the 600 logical pixel switch in Flutter's docs |
| React Native | useWindowDimensions(); it updates when the iOS 27 window resizes (React Native 0.88) |
— |
| Hybrid | the web breakpoints (sm, md, lg) |
— |
Safe areas and edge-to-edge
Every app draws edge-to-edge (D-APP-35): backgrounds and scrolling content run under the system bars; bars and controls sit inside the insets. An inset is the area a system bar, a camera cutout, or the home indicator covers. Android 15 draws apps that target API 35 edge-to-edge by default, Android 16 removes the opt-out (Android 16 behavior changes), and Google Play requires API 36 for new apps and updates from 31 August 2026 (target API requirements). Apple asks that full-screen backgrounds extend under bars and that content and controls stay inside the safe area (Apple, Layout).
The arithmetic is "own padding plus inset", never the larger of the two:
- The top app bar adds the top inset to its own height.
- Bottom bars add the bottom inset to their own padding; they never replace it.
- Side insets pad full-bleed parents.
- Gutters are 16dp below 640dp and 24dp from it, in addition to the inset.
- The status bar is transparent; its icons follow the theme.
Why add: a bar keeps its padding above the home indicator. WebKit's own article shows the larger of padding and inset (WebKit, iPhone X); the family adds instead (D-APP-58). A toolkit that already applies the inset must not apply it twice: "Both add 40px of padding, resulting in the user seeing an 80px gap" (Android WebView insets).
| Stack | Draw under the bars | Pad controls |
|---|---|---|
| SwiftUI | ignoresSafeArea on backgrounds (Apple) |
content stays in the safe area by default; bars through safeAreaInset; extra space with safeAreaPadding |
| Compose | edge-to-edge by default at target 35; enableEdgeToEdge() below (Compose insets) |
WindowInsets.safeDrawing, safeDrawingPadding(); Material 3 bars apply insets themselves (Material insets) |
| Android Views | WindowCompat.enableEdgeToEdge(window) (Android) |
WindowInsetsCompat.Type.systemBars(), displayCutout(); fitsSystemWindows on AppBarLayout |
| Flutter | edge-to-edge is the default (SystemUiMode.edgeToEdge) (Flutter) |
SafeArea around the Scaffold body, not the whole Scaffold (Flutter) |
| React Native | edgeToEdgeEnabled=true below Android 16 (React Native 0.81) |
SafeAreaView from react-native-safe-area-context, with padding mode; never its maximum edge mode, which is the larger-of rule (safe-area-context) |
| Hybrid | viewport-fit=cover |
the shell layer's --oa-safe-* variables (D-APP-58) |
Keep tap and drag targets out of the system gesture areas (Android edge-to-edge design).
The keyboard
A focused field is never hidden: the screen scrolls, or the sheet lifts with the keyboard (D-APP-36). The main action stays reachable: inside the scroll under the last field, or pinned above the keyboard when the form is one step. Dialogs shrink to the space left. The navigation bar hides while the keyboard is open, as on the web.
| Stack | How |
|---|---|
| SwiftUI | the keyboard is its own safe-area region and SwiftUI avoids it by default (Apple); scrollDismissesKeyboard |
| Compose | android:windowSoftInputMode="adjustResize" and imePadding() (Compose setup) |
| Android Views | adjustResize and the IME insets (Android keyboard) |
| Flutter | MediaQueryData.viewInsets.bottom is the top of the keyboard (Flutter) |
| React Native | KeyboardAvoidingView with behavior="padding"; in Expo the edge-to-edge window no longer resizes (Expo keyboard); KeyboardStickyView from react-native-keyboard-controller for a pinned action |
| Hybrid | Capacitor Keyboard resize mode none on iOS, so the web's visual-viewport rules keep working (D-APP-59, Capacitor Keyboard) |
Short windows, orientation, tablets, and foldables
- Short windows (D-APP-37). Below 480dp of height, which is a phone in landscape or split screen, pinned chrome lets go, as the web's
short:variant does (D-LAY-17): the top app bar scrolls with the content and sticky action bars become part of it. Android's own height class is compact below 480dp (Android window size classes). A SwiftUI sheet becomes full screen in compact height (Apple). - Orientation (D-APP-38). Apps rotate and resize. Nothing locks orientation except a screen where one orientation is essential, such as the Games stage or a mounted scanner station, stated per screen. WCAG 1.3.4 asks for this (WCAG 2.2); Android 16 ignores orientation locks on windows 600dp and wider for apps that target API 36 (Android 16); iPad apps that multitask must support all orientations (UIViewController).
- Tablets and foldables. They get the rail and side panes by width (D-APP-34). Keep controls and text off a fold (Material layout). On iPhone Duo the system moves system bars to the side, and only bars from navigation containers move (Apple, iPhone Duo), one more reason for system bars on iOS.
The app shell and navigation
The shell
| Surface | Below 768dp | From 768dp (D-APP-39) |
|---|---|---|
| Member app, 2 to 5 destinations | top app bar and navigation bar, each destination labeled | top app bar and navigation rail |
| Console | the drawer pattern | the drawer |
| Kiosk, stage, scanner, station | no navigation chrome; leave by a labeled button | the same |
The same OAIT bars on Android and iOS (D-APP-66, the client's instruction of 2026-11-22, which replaces the system bars of D-APP-40). A SwiftUI app draws the family's top app bar and navigation bar itself: NavigationStack keeps the back stack and the edge swipe, its system bar is hidden with toolbar(_:for:), and the OAIT bars are placed with safeAreaInset(edge:alignment:spacing:content:) at the top and bottom edges. The status bar, the home indicator, and the back swipe stay the system's. A custom bar takes on what a system bar gave for free: it adds the top and bottom insets to its own padding, it marks its row as a tab bar and its current item as selected for VoiceOver, and it shows the Large Content Viewer on its capped labels (accessibilityShowsLargeContentViewer()). Apple's guidelines prefer system bars and their Liquid Glass material (Apple, Toolbars); the family chooses one look on both phones instead, and checks the bars on each new iOS release.
The bars: an 80dp navigation bar on surface-container and a 64dp top app bar on surface, from the kit on Android and in Flutter and React Native, composed in SwiftUI. Material's 80dp bar still exists in Compose as NavigationBar; ShortNavigationBar is the newer 64dp bar (Compose NavigationBar source); the kits use the family bar. Flutter's NavigationBar keeps a fixed 80 and does not grow with text (Flutter NavigationBar.height), so the kit bar grows by minimum height.
Navigation bar behavior that carries over from Material: tapping the current destination scrolls to the top, the bar does not hide on scroll while a screen reader runs, and swiping across the screen does not switch destinations (Material navigation bar).
Back
Every screen that is not a tab root shows a back control in the top app bar (D-APP-42): arrow_back, mirrored in right-to-left layouts, on Android and iOS alike (D-APP-66), with no "Back" text (Apple, Toolbars). The iOS edge swipe and the Android system back gesture always work. Back closes the topmost overlay first (menu, sheet, dialog), then leaves the screen, then leaves the app from a tab root. Nothing blocks or reorders this.
Why: Apple calls swipe-back "especially important" because the top of the screen is hard to reach (Designing for iOS), and treats it as a shortcut beside the visible Back button (Apple, Gestures). Android 16 turns predictive back on for apps that target API 36 and stops calling the old back hooks (Android 16). A back callback that is enabled stops the system's back animation, so Google says not to create callbacks "to run business logic or to log" (predictive back).
| Stack | Back |
|---|---|
| SwiftUI | NavigationStack supplies the back stack and the edge swipe; the drawn top app bar supplies the arrow_back control, which calls dismiss. Check on a device that the swipe still works with the system bar hidden; from iOS 26 UIKit's navigation controller also goes back on a swipe anywhere in the content (UINavigationController) |
| Compose | the navigation library's back stack; BackHandler or PredictiveBackHandler only to close an overlay (predictive back) |
| Android Views | OnBackPressedCallback from AndroidX Activity, enabled only while an overlay is open |
| Flutter | the navigator's own back and the system gesture; see the Flutter guide |
| React Native | the navigation library's back; see the React Native guide |
| Hybrid | Capacitor's backButton listener: close the top overlay, then history.back() while canGoBack, then App.exitApp() (Capacitor App); a standalone web app has no browser back, so every non-root screen has its own back control (web.dev, app design) |
The web's text back links inside content do not carry over: in an app the back control lives in the bar, where the system gesture also goes.
Dialogs and sheets
The app's own questions use the OAIT dialog and bottom sheet on every platform, with the family's tokens, radii, and button order: Cancel, then the main action at the inline end (D-APP-43). Bottom sheets below 768dp, dialogs from 768dp, as on the web. Sheets have a visible Close button and a handle; dragging is never the only way to close them.
Why: WCAG 2.5.7 asks for a single-pointer alternative to every drag (WCAG 2.2), and Apple asks for a button beside every dismiss gesture (Apple, Accessibility). Apple's alert order, Cancel on the leading side and the default button on the trailing side (Apple, Alerts), matches the family's.
| Stack | Sheet |
|---|---|
| SwiftUI | may present the OAIT sheet content in a system sheet: presentationDetents, presentationDragIndicator, presentationCornerRadius(28) for radius-sheet (Apple); interactiveDismissDisabled only while a required step is unfinished |
| Compose, Flutter, React Native | the kit's BottomSheet and Dialog; system back closes them |
| Android Views | Material Components sheets themed from the tokens |
| Hybrid | the web's <dialog>; Chrome closes it on the Android back gesture from version 126 (Chrome 126) |
Gestures and their alternatives
Every swipe, drag, or pull has a visible single-tap alternative on the same screen (D-APP-44):
| Gesture | Its alternative |
|---|---|
Pull to refresh (native lists only, the platform's control tinted primary-ink) |
a Refresh action |
| Swipe actions on a row | the same actions in the row's menu |
| Carousel swipe | previous and next buttons |
| Sheet drag down | the Close button |
| Long press | the same action in a menu or a button |
Why: WCAG 2.5.1 and 2.5.7 cover path gestures and drags (WCAG 2.2), and WCAG2Mobile's editor's draft names swipe carousels, sliders, and pull to refresh as path-based gestures (WCAG2Mobile editor's draft). System gestures, such as back, are outside the rule (Understanding 2.5.1). SwiftUI's pull to refresh is refreshable(action:) (Apple).
Gesture-only actions are also offered to assistive technology as custom actions: accessibilityAction(named:_:) on iOS (UIAccessibilityCustomAction), ViewCompat#addAccessibilityAction or Compose custom actions on Android (AccessibilityManager).
System-owned UI
These keep the platform's look and icons (D-APP-41): permission prompts, the passkey and biometric sheets, the share sheet, photo and file pickers, date and time pickers, text selection menus, the keyboard, in-app review, and alerts the system raises. The app chooses their words where the platform allows, and follows the glossary.
Why: the system owns them, and some cannot be changed at all: UIKit's alert has a private view hierarchy that "must not be modified" (UIAlertController). People recognize them as the phone speaking, which is what makes a permission or a passkey prompt trustworthy.
| Stack | Note |
|---|---|
| SwiftUI | confirmationDialog may reorder buttons by role and shows as a popover in regular width (Apple); use the OAIT dialog for the app's own questions |
| React Native | Appearance.setColorScheme also restyles native alerts and pickers (Appearance), so keep it in step with the app's theme |
| All | Pickers follow the app's locale with Latin digits (D-APP-23) |
Permissions
Ask at the moment of use, never at launch (D-APP-45). Show one priming screen before the system prompt only when the reason is not obvious from the screen. A priming screen is the empty-state layout: an icon, a title, one sentence, and one filled button "Continue". On Android it also has "Not now" as a text button; on iOS it shows only "Continue". A denied permission shows the blocked state with a way forward that does not need the permission (type the code instead of scanning) and a link to Settings.
Why per platform:
- Apple: "wait to request permission until people actually use an app feature that requires access"; a priming screen has "only one button", titled "Continue" or "Next", and no way to leave it without seeing the system alert (Apple, Privacy).
- Android: "Ask for a permission in context", "Always provide the option to cancel an educational UI flow", and degrade gracefully when refused (Android permissions). Notifications need
POST_NOTIFICATIONSfrom Android 13 and are off by default on a new install (notification permission).
| Stack | Ask | Explain first |
|---|---|---|
| SwiftUI | the framework's own request, for example UNUserNotificationCenter.requestAuthorization(options:) in context (Apple) |
the priming screen with "Continue" only |
| Compose and Views | the runtime permission request | when shouldShowRequestPermissionRationale() returns true |
| Flutter and React Native | the platform request through the team's plugin | the same rules per platform |
| Hybrid | the web API inside the shell; a WKWebView host can answer the camera prompt itself from iOS 15 (WKUIDelegate) | the same |
Words: the purpose string is one sentence in sentence case, active voice, ending with a period (Apple, Privacy), which the family's voice already asks. The full pattern, with copy, is in permissions and sign-in when it ships; until then this section and the empty-state component are the reference.
Sign-in
- Passkeys through the platform APIs (D-APP-46): AuthenticationServices on iOS (Apple, Supporting passkeys) and Credential Manager on Android (Credential Manager). The app needs an associated domain (iOS) or Digital Asset Links (Android) for the product's domain, or the request fails.
- Words. "face or fingerprint" first, as on the web. On Android, where the copy names the method, add "screen lock": Android also confirms a passkey with a PIN or pattern (Credential Manager). Apple asks a sign-in button to name its method and to name only methods the device has (Apple, Managing accounts).
- "Sign in with Global ID" from another product's app opens the system browser session:
ASWebAuthenticationSessionon iOS (Apple) and Custom Tabs on Android, which keep the credential "isolated to the third-party site" (Android web apps). Never an embedded web view. - Biometrics are never the only way in. EN 301 549 clause 5.3: software "shall not rely on the use of a biological characteristic as the only means of user identification" (EN 301 549 V4.1.1). Device biometrics and passkeys are not a cognitive test under WCAG 3.3.8 (Understanding 3.3.8); one-time codes must still accept paste and autofill.
| Stack | Passkeys | Single sign-on |
|---|---|---|
| SwiftUI | ASAuthorizationPlatformPublicKeyCredentialProvider with ASAuthorizationController |
ASWebAuthenticationSession |
| Compose and Views | androidx.credentials (Android 9 and later for passkeys: Android passkeys) |
Custom Tabs |
| Flutter and React Native | the platform APIs through a plugin | the system browser session through a plugin |
| Hybrid | WKWebView only for associated domains; Android WebView needs AndroidX WebKit 1.12 and setWebAuthenticationSupport, and has no passkey autofill (Credential Manager in WebView) |
Custom Tabs or ASWebAuthenticationSession |
Language, direction, and digits
The app follows the system language, or the per-app language the person set in system settings, from the family's three (D-APP-47). The in-app language switcher stays, because it is how the web does it, and writes the per-app language where the platform has that API. An app that opens in English on an Arabic phone reads as a defect.
| Stack | Per-app language | Direction |
|---|---|---|
| SwiftUI | the system's per-app language (the app declares its localizations) | follows the locale; layoutDirection (Apple) |
| Compose and Views | declare android:localeConfig (or generateLocaleConfig) and set the language with AppCompatDelegate.setApplicationLocales, which keeps the in-app picker and system settings in step (Android app languages) |
android:supportsRtl="true", start and end everywhere (Android languages) |
| Flutter | MaterialApp.locale; on iOS add the languages to the Xcode project (Flutter internationalization) |
Directionality, EdgeInsetsDirectional |
| React Native | the system's per-app language, read with expo-localization (Expo localization) |
I18nManager; a change of direction takes effect "on the next application start" (I18nManager), so switching between Arabic and a left-to-right language may restart the app |
| Hybrid | the web rules: the account, then oait_locale |
<html dir> |
Text alignment: React Native's textAlign has no start or end; left acts as start (Expo localization), so the kit's shared text component sets it.
Western digits
Every formatter uses a locale with Latin digits: ar-u-nu-latn, fr, en (D-APP-23). System pickers follow the same locale. Device data may otherwise give Arabic locales Arabic-Indic digits: in current CLDR data plain ar uses Western digits but ar-LB uses Arabic-Indic, and devices with older data still give Arabic-Indic for ar (CLDR numbers, ar-LB); Android 14 lets people pick a numbering system in settings (Android 14 features). Only an explicit nu-latn is a guarantee.
| Stack | Latin digits |
|---|---|
| Swift | Locale(identifier: "ar-u-nu-latn") (Apple) |
| Kotlin | Locale.forLanguageTag("ar-u-nu-latn") (Android) |
| Dart | intl ships its own data: ar gives Western digits, ar_EG Arabic-Indic (intl number data); use ar |
| React Native | Intl with ar-u-nu-latn; Hermes takes its locale data from the device, so results vary by OS version, and on iOS Intl.DateTimeFormat ignores numberingSystem (Hermes Intl); check dates and times on both systems |
Day-first dates and the 24-hour clock stay the rule: force the pattern, because platform formatters follow the person's 12 or 24-hour setting. Mirroring follows the registry, digits inside a number never reverse (Apple, Right to left), and every Latin value inside Arabic is isolated, as in Languages and RTL.
Accessibility in apps
The contract carries over: WCAG 2.2 AA applied to apps as WCAG2ICT reads it, per screen (D-APP-49). WCAG2ICT is a published W3C Group Note (WCAG2ICT); WCAG2Mobile is still a draft note and only informative (WCAG2Mobile). Components drawn by a design system count as the app's own software, so platform exceptions do not cover them (WCAG2Mobile editor's draft).
- Targets. 48dp on every platform, also on iOS, which is stricter than Apple's 44pt (Apple, Buttons), with 8dp between targets smaller than 48 (Material, Structure). Android, Compose, and Flutter all name 48 (Android accessibility, Flutter accessibility).
- Names, roles, states (D-APP-50). Every control exposes a name (the visible label, from the glossary), a role, its state (selected, checked, expanded, disabled, busy), and its value. The name never repeats the role: "Submit", not "Submit button" (Android accessibility). The link role is only for navigation to web content; in-app navigation is a button (React Native accessibility). Decorative icons and art are hidden. A row with a label and a control is one element. Screen titles are headings.
- Order (D-APP-51). Reading and focus order follow the visual order in the current direction: start to end, top to bottom. Overlays trap focus and return it to what opened them. VoiceOver reads in the order of the active language (Apple, VoiceOver).
- Announcements (D-APP-52). What the web announces with
role="status"orrole="alert"is announced in apps. - Snackbar timing (D-APP-48). The snackbar keeps its 6 and 10 second dwell tokens. On Android the duration goes through the system's recommended-timeout API; when a screen reader or switch access is on, a snackbar with an action stays until dismissed. Material's own default already never times out a snackbar with an action (SnackbarHostState); Apple allows keeping transient UI longer for VoiceOver users (isVoiceOverRunning).
| Need | SwiftUI | Compose | Android Views | Flutter | React Native |
|---|---|---|---|---|---|
| Name | accessibilityLabel |
contentDescription, text |
contentDescription; fields by android:hint or labelFor (Google) |
Semantics(label:), Icon(semanticLabel:) |
accessibilityLabel or aria-label |
| Role | accessibilityAddTraits(.isButton) and other traits (Apple) |
Role.Button, Switch, Checkbox, Tab (Role) |
the widget's own class | Semantics(button: true) |
role |
| State | .isSelected, accessibilityValue |
stateDescription, toggleable state |
the widget's state | Semantics(selected:, enabled:) |
accessibilityState |
| Heading | .isHeader |
semantics { heading() } |
android:accessibilityHeading (View) |
headingLevel; the old header flag does nothing on iOS and Android since 3.47 (Flutter) |
role="heading" |
| Hide decoration | accessibilityHidden(true) |
contentDescription = null |
not important for accessibility | ExcludeSemantics |
aria-hidden |
| One element per row | accessibilityElement(children: .combine) |
semantics(mergeDescendants = true) |
a focusable parent | MergeSemantics |
accessible on the parent |
| Announce | AccessibilityNotification.Announcement (iOS 17) (Apple) |
liveRegion = LiveRegionMode.Polite (Compose semantics) |
android:accessibilityLiveRegion |
the liveRegion semantics property; Android discourages direct announcements (Flutter) |
accessibilityLiveRegion on Android, AccessibilityInfo.announceForAccessibility on iOS (AccessibilityInfo) |
| Overlay | the .isModal trait |
the dialog's own semantics | android:accessibilityPaneTitle |
the route's semantics | accessibilityViewIsModal (iOS), aria-modal |
| Order override, only when needed | accessibilitySortPriority |
isTraversalGroup, traversalIndex (Compose traversal) |
layout order | layout order | none: experimental_accessibilityOrder is not for production |
| Language of a part | accessibilitySpeechLanguage |
see the Compose guide | LocaleSpan (WCAG2Mobile editor's draft) |
localeForSubtree |
accessibilityLanguage (iOS) |
The web's skip link and landmarks do not carry over: the native reading is one titled screen, headings with the heading trait, and a sensible order. Do not branch the interface on whether a screen reader is on; Android says to avoid it (AccessibilityManager).
Per-platform checks (D-APP-53), part of every app's release checklist:
| Platform | Tool | Plus |
|---|---|---|
| iOS | Xcode Accessibility Inspector, which judges contrast with WCAG AA values (Apple, Accessibility) | a VoiceOver pass in English and Arabic |
| Android | Accessibility Scanner (content labels, touch targets, clickable items, contrast); it "isn't a replacement for manual testing" (Google) | a TalkBack pass in English and Arabic |
| Flutter | meetsGuideline with androidTapTargetGuideline, labeledTapTargetGuideline, and textContrastGuideline (Flutter testing) |
both screen readers |
| React Native | the iOS and Android tools on the built app | both screen readers |
| Hybrid | the web checks of Accessibility | both screen readers inside the shell |
App icon and launch
App icon (D-APP-54). From the product's mark master: the mark at its optical frame on a plain ground of surface (#fff8f5) for the default icon, with the dark twin on the dark surface for the iOS dark variant. Never the mark on orange: the mark's own accent is orange.
| Platform | What to supply |
|---|---|
| iOS and iPadOS | a 1024 × 1024 square layer, unmasked (the system rounds the corners), with no baked-in shadows or glows (Apple, App icons); a dark variant; the system generates the variants you do not supply |
| Android | an adaptive icon: 108 × 108dp layers, the mark inside the inner 66dp, the same ground as background, and a monochrome layer from the single-ink mark (Android adaptive icons). From Android 16 QPR2 the system themes icons that lack one |
| Installed web app | the manifest icons, opaque, with a separate maskable entry (web.dev, maskable icons) |
Launch (D-APP-55). iOS: a launch screen that looks like the first screen's empty frame on surface, with no logo and no text: Apple says "The launch screen isn't a branding opportunity" and asks for no text because it is not localized (Apple, Launching). Android: the system splash with the app icon on a surface window background (Android splash screen). Installed web apps keep background_color and theme_color = surface (canonical §1.6).
Names (D-APP-56). The app's name is the product name in Latin letters in every system language (canonical §1.2).
Hybrid shells and installed web apps
A shell or an installed web app uses the web package unchanged: tokens/oait.css, the reference CSS, and the shell layer reference/css/shell.css, which is part of oait-ui.css (D-APP-57). The shell layer reacts to the installed display mode (display-mode: standalone) and to data-shell on <html>, which a hybrid shell sets. It turns off pull to refresh and the rubber-band bounce on the app frame, turns off text selection and the long-press callout on chrome and controls (content stays selectable), removes the double-tap zoom delay on controls, and paints surface behind overscroll areas.
The rest in short (D-APP-58, D-APP-59):
- Safe areas come through
--oa-safe-top,--oa-safe-end, and their siblings, custom properties defined once from the browser's safe-area values, so a shell can supply them where the web view does not (Android System WebView before 140: Capacitor System Bars). The arithmetic stays "own padding plus inset". - Status bar transparent, with the header painted under it.
- Back: Android back closes the top overlay, then goes back in history, then leaves. Every non-root screen has a visible back control, because iOS standalone mode has no browser chrome.
theme-colormatters only in installed web apps and Trusted Web Activities (MDN browser compatibility data).- Keyboard in Capacitor on iOS uses resize mode
none, so the web's visual-viewport rules keep working (Capacitor Keyboard). - Inputs keep a font size of 16 or more: WebKit zooms to a focused field by 16 ÷ its font size (WebKit source).
- Plugins. Capacitor's own first-party plugins (App, Haptics, Keyboard, Status Bar or System Bars, Splash Screen) are allowed; the web's ban is on third-party network scripts.
The details, with code, are in the hybrid guide.
Platform guides and reference kits
| Stack | Generated token and theme files | Platform guide | Reference kit in 1.1.0 | Verified here (D-APP-61) |
|---|---|---|---|---|
| SwiftUI | yes | SwiftUI | none | written against Apple's documentation; not compiled in this build |
| Jetpack Compose | yes | Compose | reference/native/compose/ | compiled and rendered with Compose Multiplatform on the JVM; Android-only APIs are isolated and named |
| Android Views | tokens only (XML resources) | Compose | none | — |
| Flutter | yes | Flutter | none | written against Flutter's documentation; not compiled in this build |
| React Native | yes | React Native | reference/native/react-native/ | type-checked and rendered through react-native-web |
| Hybrid | the web files | Hybrid | the web reference CSS | the web checks |
The two kits show one contract (D-APP-62): theme wiring; the components Button, IconButton, TextField, Checkbox, Radio, Switch, Chip, Card, ListRow and Divider, TopAppBar, NavigationBar, Banner, Snackbar, Dialog, BottomSheet, Progress and Skeleton, Badge and Avatar, EmptyState, and Icon; three screens (Home, Sign in, Settings) with the templates' shipped copy; and renders in light, dark, Arabic right to left, the Tamakkan accent, and text at 1.3× and 2×. Kits are reference, not a library: copy and adapt (D-APP-63). Each kit's README says what was verified, the versions it targets, and what a team checks on a device. How each web component maps to each platform is in the component mapping; the reference index holds the kits.
Flutter and SwiftUI teams get the generated token and theme files and the start-here steps of platforms/README.md, with no kit in this release. Their first build is the first compile: run flutter analyze or build in Xcode first.
Two pattern topics are also covered on this page until their own pages ship: the app shell and navigation (see the app shell and navigation) and permissions and sign-in (see permissions and sign-in). Offline scanning and the pass in apps will have their own pattern; until then the scanner and station rules are: no navigation chrome, a typed-code fallback for every scan, haptics only for accepted and refused (D-APP-31), and one orientation only where the station is mounted (D-APP-38). App identity (icon, launch, name) is on this page in app icon and launch.
The checks
Three package tools prove an app (D-APP-60); the tools guide gives their commands.
| Tool | Proves |
|---|---|
tools/tokencheck.mjs |
every generated native file holds the model's values: colors per theme and accent, type, spacing, radii, sizes, shadows, motion |
tools/nativelint.mjs |
app source (Swift, Kotlin, Dart, TS and TSX) has no raw colors, raw font sizes, or durations outside the token files; no disabled text scaling; no physical left and right where start and end exist; no banned imports (other icon sets, dynamic color) |
tools/mobile-audit.cjs |
any web page in the phone matrix: widths 320 to 430, landscape, touch, text spacing, safe areas, standalone |
Then the per-platform checks of accessibility in apps (D-APP-53), and the checklist before you ship an app.
What "verified" means in 1.1.0 (D-APP-61): React Native code is type-checked and rendered through react-native-web here; Compose code is compiled and rendered with Compose Multiplatform on the JVM; Flutter and SwiftUI code is written against the cited documentation and reviewed, but not compiled in this build, because the build environment does not allow those toolchains. Each such file says so in its header.
Known differences from the web
Accepted in 1.1.0 (canonical §18):
| Difference | Why | IDs |
|---|---|---|
| Optical size fixed at 14 in the static fonts, so display text in React Native draws slightly heavier | iOS reaches only named instances in React Native, and every Roboto Flex named instance sits at optical size 14 | D-APP-20, D-APP-21 |
| iOS shadows approximate the spread | SwiftUI's shadow has no spread; blur ÷ 2 is Microsoft's rule, not Apple's: verify on a device | D-APP-15 |
| iOS bars are drawn by the app, not by the system | One look on both phones (D-APP-66). The app gives up the system bar's material and takes on its insets, traits, and Large Content Viewer | D-APP-66 |
| The pressed ripple's shape on Android | the platform ripple spreads from the touch point inside the shape | D-APP-32 |
| Material's 10% focus layer is replaced by the ring only inside kit components | stock Material components outside the kits keep their own focus | D-APP-33 |
| No high-contrast theme | default pairs already pass; a later, additive theme | D-APP-28 |
| Flutter's shadow blur differs from the web | Flutter converts a blur radius to a Gaussian sigma with its own formula (convertRadiusToSigma) | D-APP-15 |
| Hover exists only with a pointer | touch has no hover | D-APP-32 |
| Navigation transitions and predictive back animate | the system drives them; the web's "no page transitions" rule is for pages in a browser | D-APP-02, D-APP-42 |
Before you ship an app
Tick every line on a real phone and, where the product supports one, a tablet.
- Token files come from the package version you are on, unedited;
tokencheckpasses (D-APP-06, D-APP-60). -
nativelintreports no raw colors, font sizes, durations, physical left and right, disabled scaling, or banned imports (D-APP-60). - App code reads OAIT roles by name; Material's
primaryis never used as orange (D-APP-10). - No dynamic color, no tonal elevation, no other icon set (D-APP-24, D-APP-25).
- Fonts are bundled; the licences screen shows the OFL and Apache texts (D-APP-19).
- An Arabic screen with a Latin ID and digits draws Latin in Roboto Flex and Arabic in Noto Kufi Arabic, and no line clips (D-APP-22).
- Every number, date, and time uses Latin digits and the 24-hour clock in all three languages (D-APP-23).
- Every screen works at 200% text and at the platform's largest size; only navigation labels cap at 1.3× (D-APP-17, D-APP-18).
- Bold text, increased contrast, and reduced motion each change what this page says, and nothing else (D-APP-28 to D-APP-30).
- Haptics only for selection, success, and rejection (D-APP-31).
- Pressed is the 12% layer; no ripple defaults, no hover on touch; the ring shows with a keyboard and switch access, never on a tap (D-APP-32, D-APP-33).
- Edge-to-edge with no double insets, in portrait and landscape, with gesture and three-button navigation (D-APP-35).
- No focused field hides under the keyboard; the main action stays reachable (D-APP-36).
- Below 480dp of height the chrome releases; nothing locks orientation without a stated reason (D-APP-37, D-APP-38).
- Navigation bar below 768dp, rail from 768dp; the same OAIT bars on Android and iOS, with the back swipe still working on iOS (D-APP-39, D-APP-66).
- Back works by bar and by gesture and closes overlays first (D-APP-42).
- Every gesture has a visible tap alternative; every sheet has a Close button (D-APP-43, D-APP-44).
- Permissions are asked at the moment of use, and a denial leaves a way forward (D-APP-45).
- Passkey sign-in works; Sign in with Global ID opens the system browser session; there is a way in without biometrics (D-APP-46).
- The app follows the system and per-app language, and the in-app switcher writes it (D-APP-47).
- VoiceOver and TalkBack passes in English and Arabic; Accessibility Inspector and Accessibility Scanner clean (D-APP-49 to D-APP-53).
- Snackbars with an action stay while a screen reader is on (D-APP-48).
- The dark review has passed, or the app ships light-only by the product's call (D-APP-27).
- App icon on
surfacewith the dark and monochrome variants; launch screen with no logo on iOS (D-APP-54, D-APP-55). - A wrapped product names its app-only capability (D-APP-04).
Where a literal port of a web rule goes wrong
Each row is a web rule that reads differently in an app, from the package's own apps inventory.
| Web rule | What a literal port does wrong | The app reading |
|---|---|---|
| Text fields show the focus ring when focused | rings every tapped button or field | the ring for keyboard, D-pad, and switch access only; a tapped field shows its border (D-APP-33) |
| Hover and press are 8% and 12% layers; cards shadow on hover | hover sticks after a tap, or doubles the press | hover only with a pointer; pressed 12% (D-APP-32) |
| "Own padding plus inset" for safe areas | a gutter with no insets sits under the cutout; scaffolds that already inset pad twice | own padding plus inset, applied once (D-APP-35) |
| A cookie keeps the language; no detection | apps have no shared cookie; an Arabic phone opens in English | follow the system and per-app language; the account carries the choice (D-APP-47) |
dvh and the visualViewport keyboard test |
these do not exist natively | the platform's keyboard inset (D-APP-36) |
| Never ripples | stock Material controls ripple on every tap | the family state layer replaces the ripple inside kit components (D-APP-32) |
| No page or view transitions | switches off push, pop, and predictive back | the system's navigation transitions stay (D-APP-42) |
| A 4px grid in px; never text below 12px | px read as device pixels draws everything a third the size; text in dp ignores the font size | 1px = 1dp = 1pt; text in sp or Dynamic Type (D-APP-05) |
| Text stays at its px size; browser zoom scales | ignores the system font scale, or clips scaled text in fixed boxes | every style scales; fixed heights become minimum heights (D-APP-17) |
| Latin in Roboto Flex, Arabic falls through | native stacks pick one family per style; digits can land in the Arabic face | an explicit fallback chain, Roboto Flex first; separate Latin runs in React Native (D-APP-22) |
| Icons as ligature names in text | depends on ligature support; read aloud letter by letter | code points from OaitIcons, hidden from assistive technology (D-APP-25) |
| One live region per page; timers pause on hover | no persistent live region; a snackbar can vanish before its action is reached | native announcements; accessibility timeouts (D-APP-48, D-APP-52) |
| A tooltip on every icon button | long-press tooltips compete with long-press actions | the accessible name; no long-press tooltip duty |
| A language switcher in every bar; the footer line | every native bar carries a language control; every screen ends in a legal row | Settings and the system's per-app language; the owner line on the About screen |
| Back links in content; state in the URL | a text back link fights the system gesture; state is lost without a URL | back in the bar; the app restores its own state (D-APP-42) |
| "Show more", never infinite scroll; tables scroll sideways | unusual on native phones | restated per component in the component mapping |
| Light until the dark review | an app that loads both sets follows the system before its review | hold light explicitly (D-APP-27) |
| Shadows and colors as CSS strings | no native parse; alpha-last hex read as alpha-first draws another color | generated layers and 0xAARRGGBB integers (D-APP-08, D-APP-15) |
| Fixed-height bars at Arabic line heights | platform bars clip taller labels | bars grow by minimum height; navigation labels cap at 1.3× (D-APP-18) |
| Skip link and landmarks | a hidden first control has no meaning to VoiceOver or TalkBack | one titled screen, headings, a sensible order (D-APP-50, D-APP-51) |
| "Native elements first" | read as "use the platform's default look" | the family's look, the platform's behavior (D-APP-02) |
| Phones open their own select picker | a native app draws every picker | system pickers for dates and times; the kit's menu or sheet for the rest (D-APP-41) |
| The z-index ladder: snackbar above modal | native overlays live in separate windows | stacking by structure; z-index is not emitted (D-APP-11) |
| Bottom sheet below 768px; swipe optional | platform sheets always close by swipe and back | the family sheet with Close and handle; swipe and back also close it (D-APP-43) |
| Glass bars | backdrop blur is costly or missing on older Android | the opaque surface bar is the native default |
| "Opens in a new tab" | an app has no tabs | "opens in your browser" wording, for links that leave the app |
| The 24-hour clock through the locale formatter | phones follow the person's 12 or 24-hour setting | force the 24-hour pattern (D-APP-23) |
Related pages
- Layout: spacing, breakpoints, safe areas, and the shells on the web.
- Accessibility: the 28-rule baseline every app also meets.
- Languages and RTL: formats, isolation, mirroring, and the translation workflow.
- Typography, Color, Iconography, Motion, Content and voice.
- Native token guide, font folder, platform guides, component mapping, tools guide.
- Canonical rules §18: the binding text.