Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 16 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,39 @@
# Ionic Theme iOS26

A CSS/JS theme library that applies iOS26 design system to Ionic applications.
Apply iOS 26 styling and Liquid Glass interactions to Ionic components.

[Set up the theme](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/setup) · [Try the browser demo](https://ionic-theme-ios26.rdlabo.dev/)

The setup guide shows Ionic 9. On Ionic 8 (8.8.1 or later), Angular apps import `provideIonicAngular` from `@ionic/angular/standalone`.

<!-- rdlabo-docs-pick -->

![iOS 26 themed Ionic screens with Liquid Glass tab bar, lists, and controls](https://raw.githubusercontent.com/rdlabo-dev/ionic-theme-ios26/v3.0.0/screenshots/ios26.png)

<!-- /rdlabo-docs-pick -->

DEMO is here: https://ionic-theme-ios26.rdlabo.dev/

## Installation

```sh
npm install @rdlabo/ionic-theme-ios26
```

After Ionic's base CSS, add the system-dark stylesheet to your global stylesheet.

```css
@import '@rdlabo/ionic-theme-ios26/styles/system.css';
```

Spread `ios26ThemeConfig` into your existing Ionic initializer's options. The
configuration supplies iOS mode and theme animations.

```ts
import { ios26ThemeConfig } from '@rdlabo/ionic-theme-ios26';

const ionicConfig = {
...ios26ThemeConfig,
// animated: false,
};
```

Follow [Set up the theme](docs/setup.md) for Angular, React, and Vue examples,
dark-mode selection, and a preview. Use [Configuration](docs/configuration.md)
for individual CSS and animation exports, custom options, and iOS 26 with MD3.
Existing applications can adopt the wrappers using [Migration](docs/migration.md).
Follow the [setup guide](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/setup) to load the stylesheet and enable theme animations in your framework.

## Documentation

- [Using ion-item-group](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/using-ion-item-group) — required markup for inset lists.
- [Special markup and classes](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/special-markup) — opt-in markup and utility classes used by the theme.
- [ESLint](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/eslint) — check list structure with ESLint rules.
- [Features](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/features) — CSS variables, Liquid Glass, selective imports, and dark mode.
- [Experimental Animation](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/experimental-animation) — tab bar and searchable effects.
- [iOS 18](https://docs.rdlabo.dev/projects/ionic-theme-ios26/docs/ios-18) — load the theme only on iOS 26.
- [Migration](docs/migration.md) — optional wrapper adoption and version-specific upgrade steps.
- [Configuration](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/configuration) — individual stylesheets and animation options.
- [Using ion-item-group](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/using-ion-item-group) — required markup for inset lists.
- [Special markup and classes](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/special-markup) — opt-in markup and utility classes used by the theme.
- [ESLint](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/eslint) — check list structure with ESLint rules.
- [Features](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/features) — CSS variables, Liquid Glass, selective imports, and dark mode.
- [Experimental Animation](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/experimental-animation) — tab bar and searchable effects.
- [iOS 18](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/ios-18) — load the theme only on iOS 26.
- [Migration](https://webview-native-ui.com/projects/ionic-theme-ios26/docs/migration) — optional wrapper adoption and version-specific upgrade steps.

<!-- rdlabo-docs-omit -->

**Full documentation:** [https://docs.rdlabo.dev/projects/ionic-theme-ios26](https://docs.rdlabo.dev/projects/ionic-theme-ios26)
**Full documentation:** [https://webview-native-ui.com/projects/ionic-theme-ios26](https://webview-native-ui.com/projects/ionic-theme-ios26)

## Development & Testing

Expand Down Expand Up @@ -129,4 +111,5 @@ Only `npm run release` can create a release tag. Stable `ios26-vX.Y.Z` tags (maj
## Maintainers

- [rdlabo](https://rdlabo.dev/)

<!-- /rdlabo-docs-omit -->
2 changes: 1 addition & 1 deletion demo/src/app/docs/docs-content.generated.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set up the iOS 26 theme

Use an existing Ionic Angular, React, or Vue application with `@ionic/core >=8.8.1 <10`.
Apply the iOS 26 theme to an Ionic Angular, React, or Vue app. This setup supports `@ionic/core >=8.8.1 <10`.

## 1. Install

Expand Down
16 changes: 10 additions & 6 deletions docs/special-markup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ 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
<a id="primary-submit-buttons"></a>

Solid primary submit buttons use `--ion-color-primary-brightness` for their foreground and border treatment. Define a value with sufficient contrast for your primary color.
## Submit buttons

Set the brightness variable for the Ionic color used by a solid submit button. For example, a danger-colored button reads `--ion-color-danger-brightness` for its foreground and edge.

```css
:root {
--ion-color-primary-brightness: #96feff;
--ion-color-danger-brightness: #fff;
}
```

```html preview
<ion-button type="submit" color="primary">Submit</ion-button>
<ion-button class="button-submit" fill="solid" color="primary">Continue</ion-button>
<ion-button type="submit" color="danger">Submit</ion-button>
<ion-button class="button-submit" fill="solid" color="danger">Continue</ion-button>
```

Use `.button-submit` when the button needs the same treatment but cannot use `type="submit"`.
Expand Down Expand Up @@ -219,7 +221,9 @@ Add `.toolbar-searchbar` when an `ion-toolbar` combines a search bar with start
</ion-toolbar>
```

## Opting out
<a id="opting-out"></a>

## Disable the theme for a component

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

Expand Down
Loading