Starting in Obsidian 1.16.0, mobile apps on iPhone and Android 12+ phones render navigation bars, buttons, menus, alerts, sheets, notices, search fields, and the formatting keyboard natively. Users can turn this off in **Settings** → **Interface** → **Native interface**. Because native controls render outside the web view, CSS rules targeting DOM elements such as `.mobile-navbar`, `.menu`, or `.notice` won't style them. Instead, Obsidian reads specific [[CSS variables]] and computed styles from your theme and applies them to the native UI. > [!note] Platform availability > Native interface runs on iPhone and Android 12+ phones. On Android, it only appears in the phone layout and switches off automatically when a foldable or split-screen window enters the tablet layout. ## Body classes Obsidian adds classes to `body` when the native interface or its child web views are active. | Class | When it's present | | --- | --- | | `has-native-chrome` | Added to `body` on the main window while Native interface is active. | | `is-native-sheet` | Added to `body` inside modals and pages presented in a native sheet, such as **Settings** or **Manage vaults**. | | `is-sidebar-web-view` | Added to `body` inside a sidebar running in its own web view. | | `has-native-bar` | Added to `body` on iOS when navigation buttons appear in iPhone Duo's vertical bar. | Use `body.has-native-chrome` to scope layout adjustments for native bars, or `body:not(.has-native-chrome)` to keep custom styling limited to the web-based mobile interface: ```css /* Only style the web navigation bar when Native interface is off */ body.is-phone:not(.has-native-chrome) .mobile-navbar { background-color: var(--background-secondary); } ``` ## CSS variables Obsidian reads each variable below from `body` using `getComputedStyle`, unless noted. Define color overrides on `.theme-light` and `.theme-dark` (which sit on `body`), as described in [[Theme guidelines#Use CSS variables]]. | Variable | Where the native interface uses it | | --- | --- | | `--background-primary` | Android theme and sheet backgrounds, the formatting keyboard background, and fallback for readable icon contrast on accent buttons and sidebars. | | `--text-normal` | iOS glass button icons (header, toolbar, Canvas), Android primary text, and formatting keyboard text. Sidebar buttons read `--text-normal` on the sidebar element, so a theme can set it per sidebar. | | `--text-muted` | Android secondary text. | | `--interactive-normal` | Android menu and button surfaces. | | `--modal-background` | Android dialogs and sheets. | | `--interactive-accent` | Accent button tint (such as `+`), Android accent, alert tint, iOS pull-down action ring, and the active key in the formatting keyboard. | | `--text-on-accent` | Icons on accent buttons when readable against `--interactive-accent` (otherwise Obsidian falls back to `--background-primary`), and active key text in the formatting keyboard. | | `--text-error` | Android destructive actions in menus and alerts. | | `--background-modifier-border` | Android dividers. | | `--icon-color-active` | Active item in the editing toolbar, the command list, and the native search sheet. | | `--background-modifier-active-hover` | Background of an active editing toolbar button. | | `--background-modifier-cover` | Dimming overlay behind a sidebar web view. | | `--highlight-background`, `--color-red`, `--color-orange`, `--color-yellow`, `--color-green`, `--color-blue`, `--color-purple` | Highlight color menu in the formatting keyboard. | | `--callout-default`, `--callout-summary`, `--callout-info`, `--callout-tip`, `--callout-success`, `--callout-question`, `--callout-warning`, `--callout-fail`, `--callout-error`, `--callout-example`, `--callout-quote` | Callout type menu colors in the Markdown Gamepad. | ## Computed styles Native interface also reads computed styles from sidebar drawers and modal backdrops, so your CSS rules for those elements affect native controls too. For each sidebar drawer, Obsidian reads the computed `background-color` (falling back to `body` if translucent) together with `--text-normal` on that element to pick readable icon colors and light or dark styling for native buttons over the sidebar. Themes with contrasting sidebars work without extra configuration. For modal backdrops, Obsidian reads the computed `background-color` and final `opacity` of `.modal-bg` so native bars dim to match your theme. ## Quick Capture on iOS Whenever CSS or appearance settings change, Obsidian caches five resolved colors per vault for light and dark modes: `--text-normal`, `--text-muted`, `--interactive-accent`, the readable accent icon color (from `--text-on-accent` or `--background-primary`), and `--background-primary`. Quick Capture, its Live Activity, and the iOS share sheet read these cached values so they match your theme without opening the main app. ## System-styled surfaces and layout variables In native search sheets (including Quick switcher), only `--icon-color-active` comes from your theme. Search result rows use system styling. Obsidian sets `--safe-area-inset-*`, `--native-header-inset`, and `--mobile-toolbar-height` to position content around native bars. Don't override these variables in a theme.