Skip to content
OAIT Design System

Design system

Universal app design: one design for Android and iOS

How to design and build one OAIT app screen that ships on native Android and native iOS: what is drawn the same on both, what each system draws for itself, and the screens every app starts from.

The full rules, with their sources, are in Mobile apps. This page is the short, visual way in. It covers native apps built with Jetpack Compose and SwiftUI; the same design holds for Flutter and React Native (start here).

The idea

Design the screen once. Draw it natively twice. The content of a screen (its colors, type, spacing, corners, icons, components, and words) is the family's, and it is identical on Android and iOS. The bars are the family's too: the same top app bar and navigation bar on both phones (D-APP-66). Only what the system owns stays the system's: the status bar, the back gesture, the keyboard, scrolling, system pickers, and haptics (D-APP-01, D-APP-02, D-APP-65).

The Global ID home screen in an Android frame and in an iPhone frame: the same content and the same bars on both

The screen above is a render of the compiled Compose kit, shown in both frames; the status bars and device outlines are drawings.

Rules at a glance

# Rule IDs
1 One design file, one set of screens, for both platforms. Never a separate "iOS design" and "Android design" D-APP-65
2 Content is identical: tokens, type styles, spacing, radii, icons, component anatomy and states, words, one main action per screen D-APP-02
3 1dp on Android = 1pt on iOS = 1px in the design. Design at 390 wide; check 360 and 430 D-APP-05
4 Text is Roboto Flex; headings are Inter; Arabic is Noto Kufi Arabic; IDs and codes are Roboto Mono. All four ship inside the app. Never San Francisco or the system font for content D-APP-19, D-APP-64
5 Icons are Material Symbols Rounded on both platforms. Never SF Symbols in content D-APP-25
6 The same bars on both: the OAIT top app bar (64) and navigation bar (80), drawn by the app on Android and on iOS. The iOS system navigation bar and tab bar are hidden, never tinted or imitated D-APP-39, D-APP-66
7 Back always works: the bar's back control and the system gesture, on both D-APP-42
8 The app's own dialogs and bottom sheets are the family's on both. System-owned UI (permission prompts, the share sheet, date and photo pickers, the passkey sheet) keeps the system's look D-APP-41, D-APP-43
9 Every control is at least 48 by 48; text scales with the person's setting to 200%; every screen works in Arabic, right to left D-APP-17, D-APP-47, D-APP-49
10 Light only until the app passes its dark review, then follow the system D-APP-27

What is the same and what follows the phone

The same on Android and iOS Follows the phone
Color roles and values, in light and dark Status bar, and the system navigation area at the bottom
The 28 type styles and the four typefaces The back gesture (edge swipe on iOS, system back on Android)
Spacing, radii, sizes, shadows Scroll physics, overscroll, pull to refresh
Material Symbols Rounded icons and which ones mirror The keyboard and its toolbar
Buttons, fields, cards, lists, chips, banners, snackbars, dialogs, sheets Text selection handles and menus
The words, in English, Arabic, and French Permission prompts, the share sheet, system pickers, the passkey sheet
One filled main button per screen Haptic hardware and its setting
The top app bar and the navigation bar How the system scales text and draws keyboard focus
Accessibility: contrast, 48 by 48 targets, names, roles, states

The screen

Every app screen has the same five layers, top to bottom. Sizes are the same number in dp and in pt.

Layer Android (Jetpack Compose) iOS (SwiftUI) Size
Status bar The system's. The app draws edge to edge behind it The system's the system's inset
Top bar The OAIT top app bar on surface: lock-up or screen title at the start; language and account at the end; arrow_back on inner screens The same bar, drawn by the app; the system navigation bar is hidden 64
Content One scrolling column on surface, 16 from each side The same gutter 16; 24 from 640 wide
Main action The one filled lg button, full width, in the content or pinned above the bottom bar The same 56 tall
Bottom bar The OAIT navigation bar on surface-container: 2 to 5 destinations, each an icon with a label; the current one has the pill indicator The same bar, drawn by the app; the system tab bar is hidden 80

From 768 wide (tablets) the bottom bar becomes the navigation rail, on Android tablets and on iPad alike (Mobile apps: the shell).

The bars on iOS. A SwiftUI app keeps NavigationStack for the back stack and the edge swipe, hides the system navigation bar and tab bar, and draws the two OAIT bars itself. A drawn bar does what a system bar did for free: it adds the safe-area inset to its own padding, it tells VoiceOver that it is a tab bar and which item is selected, and it shows the Large Content Viewer on its labels, which stop growing at 1.3 times. Apple's guidelines prefer system bars, so check the drawn bars on each new iOS release (Mobile apps: the shell, D-APP-66).

Content spacing. 16 between related items, 24 between groups, 32 between sections; cards have 24 corners (radius-card), fields 12 (radius-field), sheets 28 (radius-sheet), buttons and chips are pills.

Insets. Content never sits under a system bar, a camera cutout, or the home indicator: each edge adds the system inset to its own padding (D-APP-35). The keyboard never covers the focused field (D-APP-36).

Universal screens

Start every app from these screens. Each is one design; the pictures show it on both phones.

Sign in

The sign-in screen in an Android frame and in an iPhone frame, identical on both

  • The same card as the web's one sign-in page: "Sign in", the email field with the placeholder "name@gu.edu.lb", the password field, the filled "Sign in", and Sign in with Global ID directly under it (D-BCP-43).
  • Apps also offer "Use face or fingerprint instead", which opens the system passkey sheet (D-APP-46). The sheet is the system's on both platforms.
  • Sign in with Global ID opens the system browser session (ASWebAuthenticationSession on iOS, a Custom Tab on Android), never a web view inside the app.
  • No navigation bar on this screen; the top row with the lock-up and the language is the same on both.

Home

The home screen on Android and iOS

  • A date line, a greeting as the screen title (headline-md, in Inter), then the product's main object: here the pass card, with its one action.
  • Cards for what needs attention next, one column, 16 apart.
  • The bottom bar holds the app's 2 to 5 destinations and shows the current one with the family's pill indicator, on both phones.

Settings and forms

The settings screen on Android and iOS

  • A banner for the one thing that needs attention, then titled groups of rows in one card per group.
  • Each row opens one field in a bottom sheet with Cancel and the main action; the change saves at once and a snackbar offers Undo (Forms and settings).
  • Choices that apply at once are radios or switches, never a Save button at the bottom of the page.
  • The snackbar sits above the bottom bar on both platforms.

Arabic, right to left

The home screen in Arabic on Android and iOS, mirrored

  • The whole screen mirrors on both platforms: the lock-up moves to the right, the end cluster to the left, the tab order runs right to left.
  • Arabic text is Noto Kufi Arabic, headings included, with taller lines. Product names, IDs, and digits stay Latin, left to right.
  • Only icons marked as mirroring flip (arrows, chevrons); the rest keep their direction.
Android iOS
Main destinations OAIT navigation bar, 2 to 5 items, always labeled The same bar
Going deeper Push a screen; the top app bar shows arrow_back and the screen title The same: push in NavigationStack, with the OAIT bar showing arrow_back and the title
Going back The back arrow and the system back gesture The back arrow and the edge swipe
A short task on the same screen OAIT bottom sheet (dialog from 768 wide) The same content in a system sheet with 28 corners and a visible Close button
A question that needs an answer OAIT dialog: Cancel, then the main action at the end The same dialog, drawn by the app
Leaving the app (a web page, another app) A link with north_east; opens the browser The same

Back closes the topmost layer first (menu, sheet, dialog), then leaves the screen, then leaves the app from a main destination. Nothing blocks it (D-APP-42).

Components on both platforms

Each component is designed once. The table says what to build it from on each platform; "OAIT kit" means the Compose reference kit already draws it. The detail for every component is in Components in apps.

Component Android (Jetpack Compose) iOS (SwiftUI)
Button OAIT kit OaitButton (wraps Material 3 Button) Button with a custom ButtonStyle
Icon button OaitIconButton Button with an icon-only Label
Text field OaitTextField: the label above the box, never floating TextField in the plain style inside a drawn box, the label above
Checkbox, radio, switch OaitCheckbox, OaitRadio, OaitSwitch Toggle with a custom ToggleStyle; radios composed from Buttons
Chip OaitChip Composed from Button or Toggle
Card OaitCard Composed: a VStack on a rounded background
List and rows OaitList, OaitListRow List in the plain style with OAIT rows
Banner OaitBanner Composed: an HStack on a tinted background
Snackbar OaitSnackbar in its host Composed: a view placed with safeAreaInset at the bottom
Dialog OaitDialog Composed by the app (system alerts are system UI)
Bottom sheet OaitBottomSheet sheet holding the OAIT content
Progress and skeleton OaitLinearProgress, OaitSpinner, OaitSkeleton ProgressView with a custom style; composed skeleton blocks
Empty state OaitEmptyState ContentUnavailableView with the OAIT disc, type, and button
Top bar OaitTopAppBar Composed: an HStack placed with safeAreaInset at the top; the system bar of NavigationStack hidden
Bottom bar OaitNavigationBar (80, labeled) Composed: a row of Buttons placed with safeAreaInset at the bottom; any system tab bar hidden
Tabs inside a screen PrimaryScrollableTabRow Composed: a row of Buttons with the 3-wide indicator
Sign in with Global ID A fixed-color button; the flow in a Custom Tab A fixed-color button; the flow in ASWebAuthenticationSession
Language An icon button that opens a menu; applies with the per-app language API A Menu with a Picker, or a row that opens the app's Settings page
Appearance System, Light, Dark as a segmented button in settings A segmented Picker in settings

Web-only components (the site header, the footer, the hero, marketing bands) have no place in an app: a screen title replaces the hero, and the top bar replaces the header.

Type, icons, and color

  • Type. Use the 28 styles by name from the generated theme, never a raw size. Below 640 wide the compact sizes apply. The hero, display, headline, and title styles draw in Inter; everything else draws in Roboto Flex; Arabic draws in Noto Kufi Arabic (D-APP-64). The files are in assets/fonts: variable files for Compose, static files by PostScript name for SwiftUI.
  • Text size. Text follows the person's setting: sp on Android, Dynamic Type on iOS. Layouts hold at 200% with nothing cut off. Only labels in bars that cannot grow stop at 1.3 times (D-APP-17, D-APP-18).
  • Icons. One icon font on both platforms, drawn by code point. The filled form marks the current destination and status icons.
  • Color. Read the family's roles by name (surface, primary, primary-ink). Orange (primary) is a fill for the one main button; orange text and the selected tab are primary-ink. On Android the generated theme fills Material's color scheme; on iOS the app's accent color is primary-ink (D-APP-10, D-APP-24).

Touch, motion, and feedback

  • Pressed is the family's 12% layer inside the control's shape on both platforms: no Material ripple at its own strength, no iOS dimming.
  • No hover on phones. The focus ring shows only for keyboard, switch, and D-pad users.
  • Motion is short fades and the few moves the component pages give; "Reduce Motion" and "Remove animations" switch it off.
  • Haptics only for a selection, a success, and a rejection, through each system's own API.
  • Every swipe, drag, pull, or long press has a visible single-tap alternative on the same screen (D-APP-44).

Where the platforms differ, on purpose

Android iOS Why
Sheets The kit's sheet A system sheet holding the same content iOS gives sheets their own gestures and detents
Language Per-app language from Android 13 The app's page in Settings Each system's own setting
Launch The system splash with the mark on surface A launch screen with no logo Each store's guideline (D-APP-54 to D-APP-56)

Anything not in this table is the same on both.

Do and do not

Do Do not
Design one screen and review it in both frames Keep two design files that drift apart
Use the generated token files for each platform Type color, size, or spacing values by hand
Draw the same OAIT bars on Android and iOS, and hide the iOS system bars Tint an iOS system bar to look like the OAIT bar, or show both
Keep the iOS edge swipe working under the custom top bar Hide the system back button in a way that switches the swipe off
Use Material Symbols Rounded on both Mix SF Symbols and Material icons in content
Use Inter for headings on both Use San Francisco on iOS and Roboto on Android for headings
Keep system prompts, pickers, and the share sheet as they are Restyle a permission prompt or build a custom date picker to match the brand
Test every screen at 200% text and in Arabic Lock text scaling or orientation to protect a layout

Before you ship on both stores

  • Every screen exists once in the design and matches on both platforms, except the rows of "Where the platforms differ".
  • Token files are copied from tokens/native/kotlin/ and tokens/native/swift/, unedited; node tools/tokencheck.mjs passes.
  • The four typefaces and the icon font are bundled; their licences show on one screen.
  • Back works by control and by gesture from every screen, the iOS edge swipe included; it closes overlays first.
  • On iOS the drawn bars add the safe-area insets, announce as a tab bar with a selected item, and show the Large Content Viewer.
  • Every control is at least 48 by 48 and has a name; contrast passes in light (and in dark, once shipped).
  • Text at 200%: nothing cut off, nothing overlapping, no horizontal scrolling.
  • Arabic: mirrored, Noto Kufi Arabic, Western digits, product names left to right.
  • TalkBack on Android and VoiceOver on iOS read each screen in order, in English and Arabic.
  • The full list in Mobile apps: before you ship an app.

What was checked for this page

The Kotlin token files and the Compose kit were compiled and rendered; the screen content in the pictures comes from those renders. The Swift token files are generated from the same source and checked value by value, but they were not compiled in this build: compile them once in Xcode before use (native tokens). The iPhone frames show that same render inside an iPhone outline: they are illustrations of the rule, not screenshots of a SwiftUI build.

  • Mobile apps: every app rule with its reason and source.
  • Start here: the steps for SwiftUI, Jetpack Compose, Flutter, React Native, and web shells.
  • Components in apps: each component on each stack.
  • Compose reference kit and React Native reference kit.