From 3a074fcb5e0e042438e74f74af1ffbe2c4e74bb0 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 20:42:03 +0900 Subject: [PATCH 1/7] docs: Clarify standalone iOS 27 theme and Cordova setup --- README.md | 13 +++---- docs/cordova.md | 85 ++++++++++++------------------------------ docs/migration.md | 4 +- docs/setup.md | 6 +-- docs/special-markup.md | 4 +- 5 files changed, 38 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index c37a377d2..5629e904a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Ionic Theme iOS27 -Install with `npm install @rdlabo/ionic-theme-ios27 @erkamyaman/capacitor-foldable`. For 1.x, use the [v1.2.1 guide](https://github.com/webview-native-ui/ionic-theme-ios27/tree/ios27-v1.2.1). -A theme for Ionic apps that brings iOS 27 Liquid Glass and motion to the Web. Capacitor iOS apps can also opt into Native UI for supported controls, officially supported starting with 2.0.0. +Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native iOS controls, add Capacitor Native UI. **[Ionic 9 demo](https://ionic-theme-ios27.rdlabo.dev/) · [Setup guide](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/setup)** @@ -29,14 +28,12 @@ A theme for Ionic apps that brings iOS 27 Liquid Glass and motion to the Web. Ca ## Get started -The standard guides use the standalone theme package, with Capacitor as the default native host. Theme-only browser use remains supported. For a Cordova application, use the optional [Cordova guide](docs/cordova.md), which covers its bundled theme and host-specific startup. - -We use [Capacitor Foldable](https://github.com/erkamyaman/capacitor-foldable), an excellent community plugin by Erkam Yaman, as our standard device-layout integration. It exposes fold state, hinge geometry, bar placement and change events to your application, giving you control over how the layout responds. Foldable handles device reporting; the theme provides Web layout helpers and Native UI projects controls. Install it alongside the package you use, then connect its events in your app. +For device-driven layout, follow the [device layout guide](docs/vertical-bars-layout.md). For Cordova, follow the [Cordova setup guide](docs/cordova.md). Install the theme, add one global theme stylesheet after Ionic's base CSS, and pass the theme configuration to your existing Ionic initializer. See the [setup guide](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/setup) for Angular, React and Vue. ```sh -npm install @rdlabo/ionic-theme-ios27 @erkamyaman/capacitor-foldable +npm install @rdlabo/ionic-theme-ios27 ``` ```css @@ -71,7 +68,7 @@ Use [configuration](docs/configuration.md) for individual CSS and animation sett The Capacitor plugin is maintained in [webview-native-ui/capacitor-plugin](https://github.com/webview-native-ui/capacitor-plugin). This repository owns the Ionic theme, the combined demo, browser screenshots, and simulator integration tests. The demo installs `@rdlabo/capacitor-native-ui` from npm; theme releases do not publish or change the plugin version. -The [Cordova plugin](https://github.com/webview-native-ui/cordova-plugin) is maintained separately. It distributes a pinned copy of this theme with its integration imports connected to Cordova. Shared theme fixes belong here; Cordova updates its pinned theme version in a subsequent plugin release. The Capacitor demo and candidate checks below do not validate Cordova. +The [Cordova plugin](https://github.com/webview-native-ui/cordova-plugin) provides the native integration. Install this theme separately in the Web project. To verify an unpublished plugin archive against the real demo, run: @@ -81,6 +78,8 @@ npm run test:native-candidate -- /absolute/path/rdlabo-capacitor-native-ui-VERSI This creates an isolated temporary checkout and leaves your manifests and lockfiles unchanged. Add `--shard=1/2` alongside `--e2e` to run one Playwright shard; run every shard to cover the full suite. Each shard retains package checks, unit tests, and the production build. Add `--simulator=UDID` for native UI, search, and edge simulator suites. Diagnostics and the temporary demo are retained at the printed path. Plugin-only unit and native library tests live in the plugin repository. Its CI tests each candidate archive against this repository’s main branch. +For 1.x installations, see the [v1.2.1 guide](https://github.com/webview-native-ui/ionic-theme-ios27/tree/ios27-v1.2.1). + ## Maintenance Release the root theme package with `npm run release` from a clean, up-to-date `main`. The `ios27-v…` tag workflow publishes only the theme, using `next` for prereleases and `latest` for stable releases. diff --git a/docs/cordova.md b/docs/cordova.md index 02543b24c..cee9d37ae 100644 --- a/docs/cordova.md +++ b/docs/cordova.md @@ -1,59 +1,40 @@ -# Optional: use the iOS 27 theme with Cordova +# Set up the iOS 27 theme with Cordova -Use `@webview-native-ui/cordova-plugin` for a Cordova app with Ionic and Native UI. The plugin includes the theme JavaScript, types and CSS, already connected to its native integration. You do not need bundler aliases or a separate installation of `@rdlabo/ionic-theme-ios27` or `@rdlabo/capacitor-native-ui`. - -Capacitor is the default native host in these docs. This optional guide covers the package and startup differences for a bundled Ionic application using Cordova. Shared markup, styling and helper usage remain in the existing feature guides. - -## 1. Install the Cordova plugin - -From the Cordova application root: +Install the standalone theme in the Web project after completing [Cordova setup](https://github.com/webview-native-ui/cordova-plugin#install-from-npm). ```sh -cordova plugin add @webview-native-ui/cordova-plugin@0.1.1 +npm install @rdlabo/ionic-theme-ios27 ``` -This installs the prepared native and JavaScript assets and saves the npm dependency. If your Web bundler is a separate npm project, install the same version in that project too: +Cordova has no equivalent to Capacitor Foldable for reporting device placement and posture. The iPhone Duo layout is unavailable with this integration. -```sh -npm install @webview-native-ui/cordova-plugin@0.1.1 -``` +## Load the theme stylesheet -If Cordova and your bundler share a `package.json`, no second install is needed. Keep your existing Ionic dependencies. See the plugin's [requirements](https://github.com/webview-native-ui/cordova-plugin#requirements) for Cordova, SwiftPM, Xcode and Android configuration. Native rendering requires supported iOS versions; standard Android controls retain Web presentation. - -`@erkamyaman/capacitor-foldable` is a Capacitor plugin and is not required by this Cordova setup. The Capacitor-specific device-layout wiring in other theme guides does not establish Cordova support for those APIs. - -## 2. Load the bundled theme styles - -Keep Ionic's base styles, then add these to your global stylesheet. Replace an existing dark palette instead of loading multiple palettes: +Keep Ionic’s base styles and use the preset matching your existing dark-mode policy. For system appearance: ```css -@import '@ionic/core/css/palettes/dark.system.css'; -@import '@webview-native-ui/cordova-plugin/theme/css/default-variables.css'; -@import '@webview-native-ui/cordova-plugin/theme/css/ionic-theme-ios27.css'; -@import '@webview-native-ui/cordova-plugin/theme/css/md-remove-ios-class-effect.css'; -@import '@webview-native-ui/cordova-plugin/theme/css/ionic-theme-ios27-dark-system.css'; +@import '@rdlabo/ionic-theme-ios27/styles/system.css'; ``` -For manual dark mode, use `dark.class.css` and `ionic-theme-ios27-dark-class.css` instead, and toggle `ion-palette-dark` on `html`. Keep the Ionic and theme variants paired. - -## 3. Configure Ionic animations +If using JavaScript helpers, import them from the theme package. In your Web bundler, map the exact module name -Import the animations from the Cordova package and pass them to your existing Ionic initialization before rendering the app: +`@rdlabo/capacitor-native-ui/integration` → `@webview-native-ui/cordova-plugin/integration` ```ts -import { iosTransitionAnimation, popoverEnterAnimation, popoverLeaveAnimation } from '@webview-native-ui/cordova-plugin/theme'; - -const ionicConfig = { - mode: 'ios' as const, - navAnimation: iosTransitionAnimation, - popoverEnter: popoverEnterAnimation, - popoverLeave: popoverLeaveAnimation, -}; +// vite.config.ts +import { defineConfig } from 'vite'; + +export default defineConfig({ + resolve: { + alias: [{ + find: /^@rdlabo\/capacitor-native-ui\/integration$/, + replacement: '@webview-native-ui/cordova-plugin/integration', + }], + }, +}); ``` -Use your framework's existing initializer as described in [framework initialization](setup.md#3-pass-theme-configuration-to-ionic); do not initialize Ionic twice. To retain Material Design mode on Android, apply these options only to your iOS configuration. Other helpers such as `attachTabBarSearchable` are also available from `/theme`; importing them does not automatically attach their behavior. - -## 4. Start Native UI after Cordova and the app are ready +## Start Native UI after Cordova and the app are ready Keep `` in your Cordova entry HTML. Register the device-ready listener during startup, and wait for your framework to mount `ion-app` before enabling Native UI: @@ -81,27 +62,9 @@ cordova build ios Use `android` for an Android build after completing its requirements. Do not use `npx cap sync` for Cordova. On iOS the adapter disables automatic scroll-view insets; apply safe-area spacing in your page CSS as described in the [plugin guide](https://github.com/webview-native-ui/cordova-plugin#start-native-ui). -## Use the shared theme guides - -Continue with [markup and classes](special-markup.md), [inset lists](using-ion-item-group.md), [CSS variables and component styles](features.md), and [animation helpers](animation.md). Their examples use the standalone theme package by default. Apply these substitutions for the theme version bundled with your Cordova plugin: - -| Standard documentation | Cordova equivalent | -| ---------------------------------------------------------- | ------------------------------------------------------------------------------ | -| JavaScript imports from `@rdlabo/ionic-theme-ios27` | `@webview-native-ui/cordova-plugin/theme` | -| CSS imports from `@rdlabo/ionic-theme-ios27/dist/css/*` | `@webview-native-ui/cordova-plugin/theme/css/*` (include the `.css` extension) | -| Native UI startup from `@rdlabo/capacitor-native-ui` | Cordova package root, with the startup lifecycle above | -| Sass imports from `@rdlabo/ionic-theme-ios27/src/styles/*` | Not included in the Cordova package; use the compiled CSS and CSS variables | - -The [adaptive themes](adaptive-themes.md) guide uses standalone theme Sass sources and is not a drop-in Cordova recipe. The CSS layout concepts in [Vertical Bars layout](vertical-bars-layout.md) are shared, but its Capacitor Foldable wiring requires host-specific integration. Follow the Cordova plugin's support scope rather than copying Capacitor native setup commands. - ## Moving an existing theme app to this integration -Replace all theme JavaScript imports from `@rdlabo/ionic-theme-ios27` with `@webview-native-ui/cordova-plugin/theme`, and CSS imports from `@rdlabo/ionic-theme-ios27/dist/css/*` with `@webview-native-ui/cordova-plugin/theme/css/*`. Import Native UI startup from the Cordova package root. Remove old integration aliases and original theme/Capacitor dependencies once they are no longer used by the app. Keep your component markup, bindings and handlers. - -Use helpers and CSS from the same bundled theme version. Cordova 0.1.1 includes theme 2.1.0; installing a newer standalone theme does not update that copy. Check `shared/ORIGIN.json` in the installed Cordova package for its theme version and Core revision, and update the Cordova package to receive newer bundled sources. - -## Supported behavior and verification - -Capacitor remains the primary supported host. Cordova comparisons covered Ionic 8.8.19 on iOS 27.2 and Android API 35: controls, tabs, overlays, theme integration, dark mode and stop/restart. Search used the theme's Web fallback on both hosts. These checks do not establish native-search parity, full framework-router transitions or interactive back gestures. The Ionic 9 Capacitor demo in this repository is not a Cordova acceptance test. +Version 0.1.5 and earlier shipped the theme inside the plugin. Starting with 0.1.6, replace the old imports as follows. Pin theme version 2.2.0 to keep the appearance shipped in 0.1.5. -If theme helpers do not coordinate with native controls, check that all theme imports use `/theme`, only one Native UI runtime is started, and your Web bundle and native plugin use the same version. For bridge, installation or bundled integration issues, report them in [cordova-plugin](https://github.com/webview-native-ui/cordova-plugin/issues); shared theme styling or animation fixes belong in this repository. +- `@webview-native-ui/cordova-plugin/theme` → `@rdlabo/ionic-theme-ios27` +- `@webview-native-ui/cordova-plugin/theme/css/*` → `@rdlabo/ionic-theme-ios27/dist/css/*` diff --git a/docs/migration.md b/docs/migration.md index 48e65b1a3..7c8d3b551 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -4,7 +4,7 @@ title: Theme migration # Theme migration -This guide upgrades the standalone theme and its Capacitor integration. To adopt the Cordova-bundled theme, use [Moving an existing theme app to Cordova](cordova.md#moving-an-existing-theme-app-to-this-integration). +This guide covers updates to the standalone theme and its Capacitor integration. For Cordova, install the theme separately and follow the [Cordova setup guide](cordova.md). ## Optional: simplify the setup @@ -130,7 +130,7 @@ The same appearance applies to existing `.button-submit` actions with solid fill Native controls keep ownership during navigation, modal animations and image handoffs. An image shown in the WebView is still the native projection's presentation, not a return to the original Web button. Retest and remove transition-specific workarounds that force those controls back to Web. Keep intentional opt-outs and handling for unsupported controls or native failures; no additional animation flags or second runtime are needed. -Check both rail edges, rail disappearance, fold/rotation, card/sheet/full-screen presentation, and solid submit actions. Also check ordinary iPhone and browser fallback. For Cordova, use the [bundled integration](https://github.com/webview-native-ui/cordova-plugin); its pinned theme and native changes arrive through a Cordova plugin release rather than these Capacitor installation commands. +Check both rail edges, rail disappearance, fold/rotation, card/sheet/full-screen presentation, and solid submit actions. Also check ordinary iPhone and browser fallback. ## Native UI package separation diff --git a/docs/setup.md b/docs/setup.md index e307257b9..68543e970 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -6,13 +6,13 @@ Give an existing Ionic app the iOS 27 appearance with one stylesheet and one the Use an existing Ionic Angular, React, or Vue application with Ionic `>=8.8.1 <10`. Keep Ionic's base CSS imports. Browser-only apps do not need a native Capacitor project. This is the standard setup for the standalone theme package; Cordova applications use the optional [Cordova setup](cordova.md). -## 1. Install the theme and Foldable +## 1. Install the theme ```sh -npm install @rdlabo/ionic-theme-ios27 @erkamyaman/capacitor-foldable +npm install @rdlabo/ionic-theme-ios27 ``` -Foldable supplies device placement and posture. Connect its initial values and change events using the [device layout guide](vertical-bars-layout.md#read-the-device-layout). +If you also need device placement and posture in a Capacitor app, add Foldable as described in the [device layout guide](vertical-bars-layout.md#read-the-device-layout). ## 2. Load one stylesheet diff --git a/docs/special-markup.md b/docs/special-markup.md index 9deefebdf..eb85b80d7 100644 --- a/docs/special-markup.md +++ b/docs/special-markup.md @@ -6,7 +6,9 @@ title: Special markup and classes Most Ionic markup works without changes. The combinations below are explicit opt-ins provided by the theme. -## Primary submit buttons + + +## Submit buttons Solid submit buttons use the Ionic color's contrast value for their foreground. Their directional edge treatment follows the iOS 27 prominent-button appearance and does not require an additional brightness color. From 7388e44b2980d398eec21f276091606a82eb5338 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 20:43:01 +0900 Subject: [PATCH 2/7] docs: use consistent names for shared features --- docs/migration.md | 2 +- docs/special-markup.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/migration.md b/docs/migration.md index 7c8d3b551..c72c50c35 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -130,7 +130,7 @@ The same appearance applies to existing `.button-submit` actions with solid fill Native controls keep ownership during navigation, modal animations and image handoffs. An image shown in the WebView is still the native projection's presentation, not a return to the original Web button. Retest and remove transition-specific workarounds that force those controls back to Web. Keep intentional opt-outs and handling for unsupported controls or native failures; no additional animation flags or second runtime are needed. -Check both rail edges, rail disappearance, fold/rotation, card/sheet/full-screen presentation, and solid submit actions. Also check ordinary iPhone and browser fallback. +Check both rail edges, rail disappearance, fold/rotation, card/sheet/full-screen presentation, and solid submit buttons. Also check ordinary iPhone and browser fallback. ## Native UI package separation diff --git a/docs/special-markup.md b/docs/special-markup.md index eb85b80d7..560b040cd 100644 --- a/docs/special-markup.md +++ b/docs/special-markup.md @@ -249,7 +249,9 @@ The example uses Ionic's standard collapsible large-title structure. Scroll the The `.ion-page` wrapper makes this embedded preview behave like a complete routed page. An application using `ion-router-outlet` normally receives that page container automatically. The inset list and its items only provide enough content to demonstrate scrolling; they are not required by `.searchbar-classic`. -## Opting out + + +## Disable the theme for a component Add `.ios-theme-disabled` to an individual Ionic component when it must retain Ionic's standard iOS styling. From e5fde9b902859e34e65f48df9d165983559c6bb3 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 20:47:27 +0900 Subject: [PATCH 3/7] docs: connect Cordova theme setup to Ionic initialization --- docs/cordova.md | 42 ++++++++---------------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/docs/cordova.md b/docs/cordova.md index cee9d37ae..0995690bd 100644 --- a/docs/cordova.md +++ b/docs/cordova.md @@ -1,24 +1,24 @@ # Set up the iOS 27 theme with Cordova -Install the standalone theme in the Web project after completing [Cordova setup](https://github.com/webview-native-ui/cordova-plugin#install-from-npm). +Install the theme in your Ionic Web project. Its stylesheet and animations work in the WebView. ```sh npm install @rdlabo/ionic-theme-ios27 ``` -Cordova has no equivalent to Capacitor Foldable for reporting device placement and posture. The iPhone Duo layout is unavailable with this integration. +## Configure Ionic -## Load the theme stylesheet - -Keep Ionic’s base styles and use the preset matching your existing dark-mode policy. For system appearance: +Keep Ionic’s base styles and load the theme stylesheet for your existing dark-mode policy. For system appearance: ```css @import '@rdlabo/ionic-theme-ios27/styles/system.css'; ``` -If using JavaScript helpers, import them from the theme package. In your Web bundler, map the exact module name +Spread `ios27ThemeConfig` into your existing Ionic initializer to enable the theme’s page transitions and popover animations. Follow the [Angular, React or Vue initialization example](setup.md#3-pass-theme-configuration-to-ionic). + +## Add native controls -`@rdlabo/capacitor-native-ui/integration` → `@webview-native-ui/cordova-plugin/integration` +For native controls, [install the Cordova plugin](https://github.com/webview-native-ui/cordova-plugin#install-from-npm). Map the theme’s integration import to the Cordova adapter so both use the same runtime state. For Vite: ```ts // vite.config.ts @@ -34,33 +34,7 @@ export default defineConfig({ }); ``` -## Start Native UI after Cordova and the app are ready - -Keep `` in your Cordova entry HTML. Register the device-ready listener during startup, and wait for your framework to mount `ion-app` before enabling Native UI: - -```ts -import { enableNativeUI } from '@webview-native-ui/cordova-plugin'; - -const deviceReady = new Promise((resolve) => { - document.addEventListener('deviceready', () => resolve(), { once: true }); -}); - -export async function startNativeUI(appMounted: Promise) { - await Promise.all([deviceReady, appMounted]); - return enableNativeUI(); -} -``` - -Supply `appMounted` from your application's mount lifecycle, call `startNativeUI()` once and retain the returned handle. Call `await handle.destroy()` when the application permanently stops using Native UI. Do not create a new runtime for each page or also call `window.NativeUI.enableNativeUI()` alongside this npm-based startup. Browser previews do not emit Cordova's `deviceready`; keep this startup path for the Cordova build and preview the Web theme through your normal browser entry. - -Build your Web assets into the Cordova application's `www` directory, then prepare and rebuild the native app, for example: - -```sh -cordova prepare ios -cordova build ios -``` - -Use `android` for an Android build after completing its requirements. Do not use `npx cap sync` for Cordova. On iOS the adapter disables automatic scroll-view insets; apply safe-area spacing in your page CSS as described in the [plugin guide](https://github.com/webview-native-ui/cordova-plugin#start-native-ui). +[Start Native UI](https://github.com/webview-native-ui/cordova-plugin#start-native-ui) once Cordova is ready and your app has mounted. Cordova has no equivalent to Capacitor Foldable for device placement and posture, so this integration cannot provide the iPhone Duo layout. ## Moving an existing theme app to this integration From 9c3d869fdab6c9921b229a63d954686c0879ae98 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 20:51:50 +0900 Subject: [PATCH 4/7] docs: link README guides to the documentation website --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 5629e904a..2a3075dde 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native iOS controls, add Capacitor Native UI. -**[Ionic 9 demo](https://ionic-theme-ios27.rdlabo.dev/) · [Setup guide](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/setup)** +**[Ionic 9 demo](https://ionic-theme-ios27.rdlabo.dev/) · [Setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup)** @@ -18,19 +18,19 @@ Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native | Goal | Guide | | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| Style an existing Ionic app | [Get started](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/setup) | -| Select iOS 26/27 styles and optionally use MD3 | [Adaptive themes](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/adaptive-themes) | -| Add native iOS controls to a Capacitor app | [Add Native UI](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/add-native-ui) | -| Add a side rail to Ionic while keeping your own theme | [Vertical Bars step by step](https://docs.rdlabo.dev/projects/capacitor-native-ui/docs/ionic-vertical-bars) | -| Optional: use the theme and Native UI with Cordova | [Cordova setup](docs/cordova.md) | -| Configure styles, dark mode and animations individually | [Configuration](docs/configuration.md) | -| Upgrade an existing installation | [Migration](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/migration) | +| Style an existing Ionic app | [Get started](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) | +| Select iOS 26/27 styles and optionally use MD3 | [Adaptive themes](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/adaptive-themes) | +| Add native iOS controls to a Capacitor app | [Add Native UI](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/add-native-ui) | +| Add a side rail to Ionic while keeping your own theme | [Vertical Bars step by step](https://webview-native-ui.com/projects/capacitor-native-ui/docs/ionic-vertical-bars) | +| Optional: use the theme and Native UI with Cordova | [Cordova setup](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova) | +| Configure styles, dark mode and animations individually | [Configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) | +| Upgrade an existing installation | [Migration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration) | ## Get started -For device-driven layout, follow the [device layout guide](docs/vertical-bars-layout.md). For Cordova, follow the [Cordova setup guide](docs/cordova.md). +For device-driven layout, follow the [device layout guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/vertical-bars-layout). For Cordova, follow the [Cordova setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova). -Install the theme, add one global theme stylesheet after Ionic's base CSS, and pass the theme configuration to your existing Ionic initializer. See the [setup guide](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/setup) for Angular, React and Vue. +Install the theme, add one global theme stylesheet after Ionic's base CSS, and pass the theme configuration to your existing Ionic initializer. See the [setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) for Angular, React and Vue. ```sh npm install @rdlabo/ionic-theme-ios27 @@ -51,18 +51,18 @@ provideIonicAngular({ Choose `styles/class.css` for application-controlled dark mode or `styles/always.css` for always-dark mode. The stylesheet includes the matching Ionic dark palette. The theme configuration defaults to iOS mode and its animations, with application options taking precedence. Ionic compatibility is `>=8.8.1 <10`. Browser-only apps do not need a native Capacitor project. -The theme styles toolbars, tabs, lists, buttons, search, and overlays, with light and dark appearances. It does not activate native controls. Once the Web theme is working, you can optionally [add Native UI](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/add-native-ui). +The theme styles toolbars, tabs, lists, buttons, search, and overlays, with light and dark appearances. It does not activate native controls. Once the Web theme is working, you can optionally [add Native UI](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/add-native-ui). ## Customize your app -Use [configuration](docs/configuration.md) for individual CSS and animation settings. Existing applications can optionally simplify their setup using the [migration guide](docs/migration.md#optional-simplify-the-setup). +Use [configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) for individual CSS and animation settings. Existing applications can optionally simplify their setup using the [migration guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration#optional-simplify-the-setup). -- [Features](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/features): CSS variables, Liquid Glass, and selective component imports. -- [Special markup and classes](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/special-markup): opt-in component behavior. -- [Using ion-item-group](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/using-ion-item-group): inset list markup. -- [Animation](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/animation): tab, segment, and search effects. -- [ESLint](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/eslint): catch unsupported list structure. -- [Vertical Bars layout](https://docs.rdlabo.dev/projects/ionic-theme-ios27/docs/vertical-bars-layout): spacing, RTL, device placement, posture, and split panes. +- [Features](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/features): CSS variables, Liquid Glass, and selective component imports. +- [Special markup and classes](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/special-markup): opt-in component behavior. +- [Using ion-item-group](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/using-ion-item-group): inset list markup. +- [Animation](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/animation): tab, segment, and search effects. +- [ESLint](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/eslint): catch unsupported list structure. +- [Vertical Bars layout](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/vertical-bars-layout): spacing, RTL, device placement, posture, and split panes. ## Repository boundaries From 60bee028bcee672900a64b03c2a2aa77c9594bb0 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 20:56:37 +0900 Subject: [PATCH 5/7] docs: apply package guide review feedback --- README.md | 22 +++++++++++---------- demo/src/app/docs/docs-content.generated.ts | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2a3075dde..8d1100b5a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native **[Ionic 9 demo](https://ionic-theme-ios27.rdlabo.dev/) · [Setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup)** +The setup guide shows Ionic 9. On Ionic 8 (8.8.1 or later), Angular apps import `provideIonicAngular` from `@ionic/angular/standalone`. +

@@ -16,19 +18,19 @@ Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native ## What would you like to do? -| Goal | Guide | -| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| Style an existing Ionic app | [Get started](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) | -| Select iOS 26/27 styles and optionally use MD3 | [Adaptive themes](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/adaptive-themes) | -| Add native iOS controls to a Capacitor app | [Add Native UI](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/add-native-ui) | -| Add a side rail to Ionic while keeping your own theme | [Vertical Bars step by step](https://webview-native-ui.com/projects/capacitor-native-ui/docs/ionic-vertical-bars) | -| Optional: use the theme and Native UI with Cordova | [Cordova setup](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova) | -| Configure styles, dark mode and animations individually | [Configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) | -| Upgrade an existing installation | [Migration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration) | +| Goal | Guide | +| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Style an existing Ionic app | [Get started](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) | +| Select iOS 26/27 styles and optionally use MD3 | [Adaptive themes](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/adaptive-themes) | +| Add native iOS controls to a Capacitor app | [Add Native UI](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/add-native-ui) | +| Add a side rail to Ionic while keeping your own theme | [Vertical Bars step by step](https://webview-native-ui.com/projects/capacitor-native-ui/docs/ionic-vertical-bars) | +| Optional: use the theme and Native UI with Cordova | [Configure Ionic](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup#3.-pass-theme-configuration-to-ionic), then [connect Cordova](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova) | +| Configure styles, dark mode and animations individually | [Configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) | +| Upgrade an existing installation | [Migration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration) | ## Get started -For device-driven layout, follow the [device layout guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/vertical-bars-layout). For Cordova, follow the [Cordova setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova). +For device-driven layout, follow the [device layout guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/vertical-bars-layout). For Cordova, first pass `ios27ThemeConfig` to your Ionic initializer, then follow the [Cordova setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova). Install the theme, add one global theme stylesheet after Ionic's base CSS, and pass the theme configuration to your existing Ionic initializer. See the [setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) for Angular, React and Vue. diff --git a/demo/src/app/docs/docs-content.generated.ts b/demo/src/app/docs/docs-content.generated.ts index 8f5b18a0a..82edbba7a 100644 --- a/demo/src/app/docs/docs-content.generated.ts +++ b/demo/src/app/docs/docs-content.generated.ts @@ -1,3 +1,3 @@ // Generated from docs/special-markup.md. Do not edit directly. export const docsContentHtml = - '

Special markup and classes

\n

Most Ionic markup works without changes. The combinations below are explicit opt-ins provided by the theme.

\n

Primary submit buttons

\n

Solid submit buttons use the Ionic color's contrast value for their foreground. Their directional edge treatment follows the iOS 27 prominent-button appearance and does not require an additional brightness color.

\n
<ion-button type="submit" color="primary">Submit</ion-button>\n<ion-button class="button-submit" fill="solid" color="primary">Continue</ion-button>
\n\n
\n
Preview
\nSubmit\nContinue\n
\n\n

Use .button-submit when the button needs the same treatment but cannot use type="submit".

\n

Toolbar button badges

\n

Place ion-badge directly inside an ion-button in an ion-toolbar. Both\nstandalone buttons and buttons inside ion-buttons support this markup.\nAn empty badge shows an unread indicator; text such as 3 or 99+ shows a count.\nFor an indicator, keep the contents completely empty (<ion-badge></ion-badge>),\nwithout spaces or line breaks between the tags.

\n

Standalone toolbar button:

\n
<ion-toolbar>\n  <ion-button slot="end" aria-label="Notifications">\n    <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n    <ion-badge>3</ion-badge>\n  </ion-button>\n</ion-toolbar>
\n\n
\n
Preview
\n\n \n \n 3\n \n\n
\n\n

Grouped toolbar buttons, with empty, numeric and wide badges:

\n
<ion-toolbar>\n  <ion-buttons slot="end">\n    <ion-button aria-label="Unread notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge></ion-badge>\n    </ion-button>\n    <ion-button aria-label="3 notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge>3</ion-badge>\n    </ion-button>\n    <ion-button aria-label="99 or more notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge>99+</ion-badge>\n    </ion-button>\n  </ion-buttons>\n</ion-toolbar>
\n\n
\n
Preview
\n\n \n \n \n \n \n \n \n 3\n \n \n \n 99+\n \n \n\n
\n\n

Use the badge's color property to choose an Ionic color. Setting hidden or\ndisplay: none, or removing the badge, hides it without changing the action's\nlayout. Include the notification state in the action's accessible label.

\n

The treatment is limited to direct-child badges in toolbar buttons. Badges in\ntabs, outside toolbars, or nested in another child keep their existing styling.\nTheme opt-outs on the toolbar, group, button or badge remain supported.

\n

Preferred overlay actions

\n

For iOS alerts and action sheets, set role: 'preferred' on a button to give it a filled --ion-color-primary background and --ion-color-primary-contrast text and icons. While pressed, the background uses --ion-color-primary-shade. This is a theme convention using Ionic's custom button roles; it does not automatically select or invoke the action. Dismissal reports the role as preferred.

\n
buttons: [\n  { text: \'Cancel\', role: \'cancel\' },\n  { text: \'Continue\', role: \'preferred\' },\n];
\n\n

Choose the role by action semantics:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
RoleAppearance and behavior
preferredFilled primary action; dismissal reports preferred. Does not automatically select or invoke it.
No role or defaultNormal text color.
cancelRetains Ionic's cancellation behavior.
selectedRetains selection state.
destructiveUses --ios-theme-destructive-color.
confirmNot treated as preferred. Use preferred for a recommended action, not simply any confirmation.
\n

Floating iPad sheets

\n

Choose the sheet's scrolling behavior with expandToScroll:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
SettingiPad appearanceScrolling and resizing
falseFloating lower corners and a 20px bottom gap.Content scrolls within the current breakpoint; dragging the handle resizes the sheet. Ionic sizes the visible page at each breakpoint so CSS can style it.
true (default)Ionic's bottom-attached layout.Scroll-to-expand behavior.
\n

Tab bar position

\n

Choose a class on an iOS ion-tab-bar to position the whole bar within its safe area:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ClassPlacement
tab-bar-position-startStart of the reading direction.
tab-bar-position-centerCenter.
tab-bar-position-endEnd of the reading direction.
NoneExisting placement unchanged.
\n

All three classes support slot="top" and slot="bottom", preserve width and press animation, and resolve start/end in RTL.

\n
<ion-tab-bar slot="bottom" class="tab-bar-position-center">\n  <ion-tab-button tab="home">Home</ion-tab-button>\n  <ion-tab-button tab="settings">Settings</ion-tab-button>\n</ion-tab-bar>
\n\n

These classes do not reposition a separate ion-fab; leave room for it when choosing the bar's position.

\n

Support iPhone Duo

\n

iPhone Duo support, including standalone Vertical Bars, is stable starting with version 2.0.0.

\n

iPhone Duo support — the vertical system rail, hinge posture, and the posture-driven split-pane layout — is independent of the iOS 27 theme and the full Native UI. See Device layout and split panes for the complete setup, including device-layout monitoring without a projection runtime.

\n

See Vertical Bars for rail layout classes, control eligibility and native button appearance.

\n

For standalone setup while keeping your existing theme, see iPhone Duo with your existing theme.

\n

Two-line inset list items

\n

Place an unslotted ion-label immediately alongside an unslotted ion-note to render a two-line item. When using the iOS-style inset-list background, wrap the items in ion-item-group; keep ion-list-header outside the group.

\n
<ion-list inset="true">\n  <ion-list-header>\n    <ion-label>Connections</ion-label>\n  </ion-list-header>\n  <ion-item-group>\n    <ion-item>\n      <ion-label>Network &amp; internet</ion-label>\n      <ion-note>Mobile, Wi-Fi, hotspot</ion-note>\n    </ion-item>\n  </ion-item-group>\n</ion-list>
\n\n
\n
Preview
\n\n \n Connections\n \n \n \n Network & internet\n Mobile, Wi-Fi, hotspot\n \n \n\n
\n\n

Use slot="end" on ion-note when you want the standard trailing-note layout instead.

\n

Inset-list section headers

\n

Add .item-group-header to an ion-item-group to create the centered icon, title, and description used at the top of the component demo pages.

\n

This is an introductory group. Place regular list items in a separate ion-item-group that follows it.

\n
<ion-list inset="true">\n  <ion-item-group class="item-group-header">\n    <ion-item>\n      <ion-label>\n        <ion-icon name="list" style="background: var(--ion-color-primary)"></ion-icon>\n        <h2>Lists</h2>\n        <ion-text>Inset-list examples</ion-text>\n      </ion-label>\n    </ion-item>\n  </ion-item-group>\n  <ion-item-group>\n    <ion-item><ion-label>First item</ion-label></ion-item>\n  </ion-item-group>\n</ion-list>
\n\n
\n
Preview
\n\n \n \n \n \n

Lists

\n Inset-list examples\n
\n
\n
\n \n First item\n \n
\n
\n\n

Full-width segments

\n

Add .segment-style-glass to give a segment the same glass surface and selected indicator treatment as the tab bar. The class preserves the segment's existing dimensions and text colors, supports scrollable segments, and respects Ionic's public --background property.

\n
<ion-segment class="segment-style-glass" value="available">\n  <ion-segment-button value="available">Available</ion-segment-button>\n  <ion-segment-button value="away">Away</ion-segment-button>\n</ion-segment>
\n\n

For colored segments, use Ionic's color property (for example, color="primary" or color="secondary"). Ionic uses the palette's base color for the softly tinted track while keeping the selected surface and labels neutral. A surrounding colored toolbar only supplies colors when the segment has no color of its own. The optional moving glass inherits the selected surface color, and custom Ionic palettes work without additional registration.

\n

Add .segment-expand when segment buttons should divide the available width evenly. The class also changes the Liquid Glass effect sizing when registerSegmentEffect is used.

\n

Segment size and press behavior

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PlacementMinimum heightContainer behavior
In content32pxCompact, flat background and indicator; outer bounds stay fixed.
Inside ion-toolbar48pxGlass container; outer container scales while pressed.
.segment-expand, including in a toolbar32pxCompact, flat background and indicator; outer bounds stay fixed.
\n

The optional moving glass lens is independent of the container's background.

\n
<ion-segment class="segment-expand" value="new">\n  <ion-segment-button value="new"><ion-label>New</ion-label></ion-segment-button>\n  <ion-segment-button value="replied"><ion-label>Replied</ion-label></ion-segment-button>\n</ion-segment>
\n\n
\n
Preview
\n\n New\n Replied\n\n
\n\n

Classic search bar in a condense header

\n

The theme gives iOS search bars the iOS 27 appearance by default. Add .searchbar-classic to the search field shown beneath a large title in an ion-header with collapse="condense". It uses the conventional filled iOS appearance and collapses with the large title instead of remaining in the fixed header.

\n

Place it in a toolbar with a color, such as color="light"; the classic background is derived from that color's contrast value.

\n

The example uses Ionic's standard collapsible large-title structure. Scroll the preview to collapse the large title and reveal the fixed header.

\n
<div class="ion-page">\n  <ion-header translucent="true">\n    <ion-toolbar color="light">\n      <ion-title>Search</ion-title>\n    </ion-toolbar>\n  </ion-header>\n  <ion-content color="light" fullscreen="true">\n    <ion-header collapse="condense">\n      <ion-toolbar color="light">\n        <ion-title size="large">Search</ion-title>\n      </ion-toolbar>\n      <ion-toolbar color="light">\n        <ion-searchbar class="searchbar-classic" placeholder="Filter results"></ion-searchbar>\n      </ion-toolbar>\n    </ion-header>\n    <ion-list inset="true">\n      <ion-item-group>\n        <ion-item><ion-label>Recent item 1</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 2</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 3</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 4</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 5</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 6</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 7</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 8</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 9</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 10</ion-label></ion-item>\n      </ion-item-group>\n    </ion-list>\n  </ion-content>\n</div>
\n\n
\n
Preview
\n
\n \n \n Search\n \n \n \n \n \n Search\n \n \n \n \n \n \n \n Recent item 1\n Recent item 2\n Recent item 3\n Recent item 4\n Recent item 5\n Recent item 6\n Recent item 7\n Recent item 8\n Recent item 9\n Recent item 10\n \n \n \n
\n
\n\n

The .ion-page wrapper makes this embedded preview behave like a complete routed page. An application using ion-router-outlet normally receives that page container automatically. The inset list and its items only provide enough content to demonstrate scrolling; they are not required by .searchbar-classic.

\n

Opting out

\n

Add .ios-theme-disabled to an individual Ionic component when it must retain Ionic's standard iOS styling.

\n

.ios26-disabled is deprecated but remains supported as an alias with the same behavior. Use .ios-theme-disabled for new code.

\n
<ion-button>iOS 27 theme</ion-button> <ion-button class="ios-theme-disabled">Standard Ionic button</ion-button>
\n\n
\n
Preview
\niOS 27 theme Standard Ionic button\n
\n\n

For the background model behind inset lists, see Using ion-item-group.

\n'; + '

Special markup and classes

\n

Most Ionic markup works without changes. The combinations below are explicit opt-ins provided by the theme.

\n

\n

Submit buttons

\n

Solid submit buttons use the Ionic color's contrast value for their foreground. Their directional edge treatment follows the iOS 27 prominent-button appearance and does not require an additional brightness color.

\n
<ion-button type="submit" color="primary">Submit</ion-button>\n<ion-button class="button-submit" fill="solid" color="primary">Continue</ion-button>
\n\n
\n
Preview
\nSubmit\nContinue\n
\n\n

Use .button-submit when the button needs the same treatment but cannot use type="submit".

\n

Toolbar button badges

\n

Place ion-badge directly inside an ion-button in an ion-toolbar. Both\nstandalone buttons and buttons inside ion-buttons support this markup.\nAn empty badge shows an unread indicator; text such as 3 or 99+ shows a count.\nFor an indicator, keep the contents completely empty (<ion-badge></ion-badge>),\nwithout spaces or line breaks between the tags.

\n

Standalone toolbar button:

\n
<ion-toolbar>\n  <ion-button slot="end" aria-label="Notifications">\n    <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n    <ion-badge>3</ion-badge>\n  </ion-button>\n</ion-toolbar>
\n\n
\n
Preview
\n\n \n \n 3\n \n\n
\n\n

Grouped toolbar buttons, with empty, numeric and wide badges:

\n
<ion-toolbar>\n  <ion-buttons slot="end">\n    <ion-button aria-label="Unread notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge></ion-badge>\n    </ion-button>\n    <ion-button aria-label="3 notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge>3</ion-badge>\n    </ion-button>\n    <ion-button aria-label="99 or more notifications">\n      <ion-icon name="ellipsis-horizontal" slot="icon-only"></ion-icon>\n      <ion-badge>99+</ion-badge>\n    </ion-button>\n  </ion-buttons>\n</ion-toolbar>
\n\n
\n
Preview
\n\n \n \n \n \n \n \n \n 3\n \n \n \n 99+\n \n \n\n
\n\n

Use the badge's color property to choose an Ionic color. Setting hidden or\ndisplay: none, or removing the badge, hides it without changing the action's\nlayout. Include the notification state in the action's accessible label.

\n

The treatment is limited to direct-child badges in toolbar buttons. Badges in\ntabs, outside toolbars, or nested in another child keep their existing styling.\nTheme opt-outs on the toolbar, group, button or badge remain supported.

\n

Preferred overlay actions

\n

For iOS alerts and action sheets, set role: 'preferred' on a button to give it a filled --ion-color-primary background and --ion-color-primary-contrast text and icons. While pressed, the background uses --ion-color-primary-shade. This is a theme convention using Ionic's custom button roles; it does not automatically select or invoke the action. Dismissal reports the role as preferred.

\n
buttons: [\n  { text: \'Cancel\', role: \'cancel\' },\n  { text: \'Continue\', role: \'preferred\' },\n];
\n\n

Choose the role by action semantics:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
RoleAppearance and behavior
preferredFilled primary action; dismissal reports preferred. Does not automatically select or invoke it.
No role or defaultNormal text color.
cancelRetains Ionic's cancellation behavior.
selectedRetains selection state.
destructiveUses --ios-theme-destructive-color.
confirmNot treated as preferred. Use preferred for a recommended action, not simply any confirmation.
\n

Floating iPad sheets

\n

Choose the sheet's scrolling behavior with expandToScroll:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
SettingiPad appearanceScrolling and resizing
falseFloating lower corners and a 20px bottom gap.Content scrolls within the current breakpoint; dragging the handle resizes the sheet. Ionic sizes the visible page at each breakpoint so CSS can style it.
true (default)Ionic's bottom-attached layout.Scroll-to-expand behavior.
\n

Tab bar position

\n

Choose a class on an iOS ion-tab-bar to position the whole bar within its safe area:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ClassPlacement
tab-bar-position-startStart of the reading direction.
tab-bar-position-centerCenter.
tab-bar-position-endEnd of the reading direction.
NoneExisting placement unchanged.
\n

All three classes support slot="top" and slot="bottom", preserve width and press animation, and resolve start/end in RTL.

\n
<ion-tab-bar slot="bottom" class="tab-bar-position-center">\n  <ion-tab-button tab="home">Home</ion-tab-button>\n  <ion-tab-button tab="settings">Settings</ion-tab-button>\n</ion-tab-bar>
\n\n

These classes do not reposition a separate ion-fab; leave room for it when choosing the bar's position.

\n

Support iPhone Duo

\n

iPhone Duo support, including standalone Vertical Bars, is stable starting with version 2.0.0.

\n

iPhone Duo support — the vertical system rail, hinge posture, and the posture-driven split-pane layout — is independent of the iOS 27 theme and the full Native UI. See Device layout and split panes for the complete setup, including device-layout monitoring without a projection runtime.

\n

See Vertical Bars for rail layout classes, control eligibility and native button appearance.

\n

For standalone setup while keeping your existing theme, see iPhone Duo with your existing theme.

\n

Two-line inset list items

\n

Place an unslotted ion-label immediately alongside an unslotted ion-note to render a two-line item. When using the iOS-style inset-list background, wrap the items in ion-item-group; keep ion-list-header outside the group.

\n
<ion-list inset="true">\n  <ion-list-header>\n    <ion-label>Connections</ion-label>\n  </ion-list-header>\n  <ion-item-group>\n    <ion-item>\n      <ion-label>Network &amp; internet</ion-label>\n      <ion-note>Mobile, Wi-Fi, hotspot</ion-note>\n    </ion-item>\n  </ion-item-group>\n</ion-list>
\n\n
\n
Preview
\n\n \n Connections\n \n \n \n Network & internet\n Mobile, Wi-Fi, hotspot\n \n \n\n
\n\n

Use slot="end" on ion-note when you want the standard trailing-note layout instead.

\n

Inset-list section headers

\n

Add .item-group-header to an ion-item-group to create the centered icon, title, and description used at the top of the component demo pages.

\n

This is an introductory group. Place regular list items in a separate ion-item-group that follows it.

\n
<ion-list inset="true">\n  <ion-item-group class="item-group-header">\n    <ion-item>\n      <ion-label>\n        <ion-icon name="list" style="background: var(--ion-color-primary)"></ion-icon>\n        <h2>Lists</h2>\n        <ion-text>Inset-list examples</ion-text>\n      </ion-label>\n    </ion-item>\n  </ion-item-group>\n  <ion-item-group>\n    <ion-item><ion-label>First item</ion-label></ion-item>\n  </ion-item-group>\n</ion-list>
\n\n
\n
Preview
\n\n \n \n \n \n

Lists

\n Inset-list examples\n
\n
\n
\n \n First item\n \n
\n
\n\n

Full-width segments

\n

Add .segment-style-glass to give a segment the same glass surface and selected indicator treatment as the tab bar. The class preserves the segment's existing dimensions and text colors, supports scrollable segments, and respects Ionic's public --background property.

\n
<ion-segment class="segment-style-glass" value="available">\n  <ion-segment-button value="available">Available</ion-segment-button>\n  <ion-segment-button value="away">Away</ion-segment-button>\n</ion-segment>
\n\n

For colored segments, use Ionic's color property (for example, color="primary" or color="secondary"). Ionic uses the palette's base color for the softly tinted track while keeping the selected surface and labels neutral. A surrounding colored toolbar only supplies colors when the segment has no color of its own. The optional moving glass inherits the selected surface color, and custom Ionic palettes work without additional registration.

\n

Add .segment-expand when segment buttons should divide the available width evenly. The class also changes the Liquid Glass effect sizing when registerSegmentEffect is used.

\n

Segment size and press behavior

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PlacementMinimum heightContainer behavior
In content32pxCompact, flat background and indicator; outer bounds stay fixed.
Inside ion-toolbar48pxGlass container; outer container scales while pressed.
.segment-expand, including in a toolbar32pxCompact, flat background and indicator; outer bounds stay fixed.
\n

The optional moving glass lens is independent of the container's background.

\n
<ion-segment class="segment-expand" value="new">\n  <ion-segment-button value="new"><ion-label>New</ion-label></ion-segment-button>\n  <ion-segment-button value="replied"><ion-label>Replied</ion-label></ion-segment-button>\n</ion-segment>
\n\n
\n
Preview
\n\n New\n Replied\n\n
\n\n

Classic search bar in a condense header

\n

The theme gives iOS search bars the iOS 27 appearance by default. Add .searchbar-classic to the search field shown beneath a large title in an ion-header with collapse="condense". It uses the conventional filled iOS appearance and collapses with the large title instead of remaining in the fixed header.

\n

Place it in a toolbar with a color, such as color="light"; the classic background is derived from that color's contrast value.

\n

The example uses Ionic's standard collapsible large-title structure. Scroll the preview to collapse the large title and reveal the fixed header.

\n
<div class="ion-page">\n  <ion-header translucent="true">\n    <ion-toolbar color="light">\n      <ion-title>Search</ion-title>\n    </ion-toolbar>\n  </ion-header>\n  <ion-content color="light" fullscreen="true">\n    <ion-header collapse="condense">\n      <ion-toolbar color="light">\n        <ion-title size="large">Search</ion-title>\n      </ion-toolbar>\n      <ion-toolbar color="light">\n        <ion-searchbar class="searchbar-classic" placeholder="Filter results"></ion-searchbar>\n      </ion-toolbar>\n    </ion-header>\n    <ion-list inset="true">\n      <ion-item-group>\n        <ion-item><ion-label>Recent item 1</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 2</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 3</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 4</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 5</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 6</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 7</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 8</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 9</ion-label></ion-item>\n        <ion-item><ion-label>Recent item 10</ion-label></ion-item>\n      </ion-item-group>\n    </ion-list>\n  </ion-content>\n</div>
\n\n
\n
Preview
\n
\n \n \n Search\n \n \n \n \n \n Search\n \n \n \n \n \n \n \n Recent item 1\n Recent item 2\n Recent item 3\n Recent item 4\n Recent item 5\n Recent item 6\n Recent item 7\n Recent item 8\n Recent item 9\n Recent item 10\n \n \n \n
\n
\n\n

The .ion-page wrapper makes this embedded preview behave like a complete routed page. An application using ion-router-outlet normally receives that page container automatically. The inset list and its items only provide enough content to demonstrate scrolling; they are not required by .searchbar-classic.

\n

\n

Disable the theme for a component

\n

Add .ios-theme-disabled to an individual Ionic component when it must retain Ionic's standard iOS styling.

\n

.ios26-disabled is deprecated but remains supported as an alias with the same behavior. Use .ios-theme-disabled for new code.

\n
<ion-button>iOS 27 theme</ion-button> <ion-button class="ios-theme-disabled">Standard Ionic button</ion-button>
\n\n
\n
Preview
\niOS 27 theme Standard Ionic button\n
\n\n

For the background model behind inset lists, see Using ion-item-group.

\n'; From 9198fec94ef7d6ad7e7ed38e0cb432e858b6f071 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 21:04:16 +0900 Subject: [PATCH 6/7] docs: separate getting started from detailed guidance --- README.md | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 8d1100b5a..bac0d7575 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ionic Theme iOS27 -Apply iOS 27 Liquid Glass styling and animations to Ionic components. For native iOS controls, add Capacitor Native UI. +Apply iOS 27 Liquid Glass styling and animations to Ionic components in the browser or a WebView. For native iOS controls, add Capacitor Native UI. **[Ionic 9 demo](https://ionic-theme-ios27.rdlabo.dev/) · [Setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup)** @@ -16,6 +16,8 @@ The setup guide shows Ionic 9. On Ionic 8 (8.8.1 or later), Angular apps import + + ## What would you like to do? | Goal | Guide | @@ -28,37 +30,8 @@ The setup guide shows Ionic 9. On Ionic 8 (8.8.1 or later), Angular apps import | Configure styles, dark mode and animations individually | [Configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) | | Upgrade an existing installation | [Migration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration) | -## Get started - -For device-driven layout, follow the [device layout guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/vertical-bars-layout). For Cordova, first pass `ios27ThemeConfig` to your Ionic initializer, then follow the [Cordova setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/cordova). - -Install the theme, add one global theme stylesheet after Ionic's base CSS, and pass the theme configuration to your existing Ionic initializer. See the [setup guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/setup) for Angular, React and Vue. - -```sh -npm install @rdlabo/ionic-theme-ios27 -``` - -```css -@import '@rdlabo/ionic-theme-ios27/styles/system.css'; -``` - -```ts -import { ios27ThemeConfig } from '@rdlabo/ionic-theme-ios27'; - -provideIonicAngular({ - ...ios27ThemeConfig, - // animated: false, -}); -``` - -Choose `styles/class.css` for application-controlled dark mode or `styles/always.css` for always-dark mode. The stylesheet includes the matching Ionic dark palette. The theme configuration defaults to iOS mode and its animations, with application options taking precedence. Ionic compatibility is `>=8.8.1 <10`. Browser-only apps do not need a native Capacitor project. - -The theme styles toolbars, tabs, lists, buttons, search, and overlays, with light and dark appearances. It does not activate native controls. Once the Web theme is working, you can optionally [add Native UI](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/add-native-ui). - ## Customize your app -Use [configuration](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/configuration) for individual CSS and animation settings. Existing applications can optionally simplify their setup using the [migration guide](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/migration#optional-simplify-the-setup). - - [Features](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/features): CSS variables, Liquid Glass, and selective component imports. - [Special markup and classes](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/special-markup): opt-in component behavior. - [Using ion-item-group](https://webview-native-ui.com/projects/ionic-theme-ios27/docs/using-ion-item-group): inset list markup. From 1d0b4e7f007cac5c7f1fa1d1abb82bb1a642759a Mon Sep 17 00:00:00 2001 From: rdlabo Date: Wed, 18 Nov 2026 21:09:38 +0900 Subject: [PATCH 7/7] docs: address final package guide review --- docs/cordova.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/cordova.md b/docs/cordova.md index 0995690bd..84bd9b2f2 100644 --- a/docs/cordova.md +++ b/docs/cordova.md @@ -26,10 +26,12 @@ import { defineConfig } from 'vite'; export default defineConfig({ resolve: { - alias: [{ - find: /^@rdlabo\/capacitor-native-ui\/integration$/, - replacement: '@webview-native-ui/cordova-plugin/integration', - }], + alias: [ + { + find: /^@rdlabo\/capacitor-native-ui\/integration$/, + replacement: '@webview-native-ui/cordova-plugin/integration', + }, + ], }, }); ```