feat: add dynamic type variables (#27745)

This commit is contained in:
Liam DeBeasi
2023-07-06 15:17:09 -04:00
committed by GitHub
parent 155864035d
commit 937c44d22f
3 changed files with 14 additions and 0 deletions

View File

File diff suppressed because one or more lines are too long

View File

@@ -13,6 +13,7 @@ html.md {
}
html {
--ion-default-dynamic-font: -apple-system-body;
--ion-font-family: var(--ion-default-font);
}

View File

@@ -32,6 +32,16 @@ html {
font-family: var(--ion-font-family);
}
/**
* Dynamic Type is an iOS-only feature, so
* this should only be enabled on iOS devices.
*/
@supports (-webkit-touch-callout: none) {
html {
font: var(--ion-dynamic-type);
}
}
a {
background-color: transparent;
color: ion-color(primary, base);