fix(css): improve tokens support on global css ionic files (#30364)

Issue number: internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->


## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Add tokens usage on global css files for Ionic theme.
- Removed global background an text variables and fixed variables names
used on `body`. This resulted in some changes on test pages colors,
hence the snapshots differences.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->

---------

Co-authored-by: ionitron <hi@ionicframework.com>
This commit is contained in:
Bernardo Cardoso
2025-04-16 17:29:58 +01:00
committed by GitHub
parent 7d98a87302
commit 1e7a84f9bd
38 changed files with 20 additions and 27 deletions

View File

@@ -56,7 +56,7 @@ html.ios.ios {
html.ionic,
html.ionic.ios,
html.ionic.md {
--ionic-global-background-color: var(--background);
--ion-background-color: var(--background);
--ion-font-family: initial;
}