Updated to add an example tab to showcase the size#4
Updated to add an example tab to showcase the size#4juneate wants to merge 1 commit intocodeAdrian:developfrom
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/codeadrian/modern-fluid-typography-editor/5f3QWZdRYqkSbaE73KNfbsshZDBQ |
|
Hi @juneate I've changed the target branch to Thanks once again! |
|
Hi @juneate, I think this is a good starting point for the preview feature. It would be awesome if the preview could also take Root Font Size value into account. Additionally, I would like it to have more functionality. First off, It would be more beneficial for both desktop and mobile users to have a range input and a regular text input so they can set the screen size manually without the need to resize the window or the container. Second, it would be even more beneficial to explore the accessibility implications of the fluid font - how the user zoom affects the perceived font size. Let me know what you think. Thanks, |
Added an "Example" tab for demonstration. The font-size is set from the string value passed as a prop in index.svelte, computed using
clampValue. May want to recompute here for precision.