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

Styles: support user-specified base font size #3

Open
justjake opened this issue Jan 16, 2022 · 0 comments
Open

Styles: support user-specified base font size #3

justjake opened this issue Jan 16, 2022 · 0 comments

Comments

@justjake
Copy link
Collaborator

I would like the styles to support user-specified base font size, and ideally opt-in to Apple's dynamic system font size. This is a nice and simple guide: https://dev.to/colingourlay/how-to-support-apple-s-dynamic-text-in-your-web-content-with-css-40c0

It's a 2-step process:

  1. Add @supports (font: -apple-system-body) { html { font: -apple-system-body; } }. This will set the room em size based on the user's accessibility preference on Apple devices.
  2. Specify the rest of relevant parts of your layout using rem units.

I may contribute this once issue #2 is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant