Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(migration): add info about removing old light palette colors #3586

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Changes from 1 commit
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
20 changes: 20 additions & 0 deletions docs/updating/8-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,26 @@ npm install @ionic/core@next

The following changes are not required to update to Ionic 8 as your application will continue to work. However, we recommend making the following changes to ensure you can use the new features in Ionic 8.

### Light Theme

Previous versions shipped a set of default color variables for the light theme:

```css
/** Ionic CSS Variables **/
:root {
/** primary **/
--ion-color-primary: #3880ff;
--ion-color-primary-rgb: 56, 128, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
...
}
```

If you are not using a custom color scheme, these color variables should all be removed. In Ionic Framework version 8, the default colors have been updated to improve accessibility. The new palette is also automatically included with all Ionic apps. Removing the old color variables ensures that the latest palette is not overwritten.
averyjohnston marked this conversation as resolved.
Show resolved Hide resolved

You can read more about the new color palette in the [Ionic v8 announcement](https://ionic.io/blog/announcing-the-ionic-8-beta).

### Dark Theme

In previous versions, it was recommended to define the dark theme in the following way:
Expand Down
Loading