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
2 changes: 1 addition & 1 deletion core/src/css/ionic/core.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

html {
--ionic-dynamic-font: -apple-system-body;
--ion-dynamic-font: -apple-system-body;
}

body {
Expand Down
10 changes: 9 additions & 1 deletion core/src/css/ionic/typography.ionic.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
@use "../../themes/ionic/ionic.globals.scss" as globals;

// TODO(ROU-10833): add font loading solution here, as a @font-face, base64 or cdn
html {
font-family: globals.$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-font, 16px #{globals.$ion-font-family});
font-family: globals.$ion-font-family;
}
}

body {
@include globals.typography(globals.$ion-body-md-regular);
}
Expand Down
Loading