Giter Club home page Giter Club logo

modern-fluid-typography-editor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

modern-fluid-typography-editor's Issues

Store clamp values in link

In would be cool if I can write right into style something like

h1 {
  font-size: clamp(1rem, 2.5vw, 2rem);  /* Explainer: modern-fluid-typography.vercel.app/#/1/2.5/2 */
}

an idea

It would be better if the font size was calculated using a linear function in my opinion.
For example:
If the width of the container is 14rem then the font size should be 1rem. If the container is 60rem wide, then the font size should be 1.25rem.
Then you could calculate a linear function using the two points (14/1) and (60/1.25) and the font size should then change depending on the width of the container and the font size set by the user in the browser.
What do you say to this?

p {
font-size: calc((100cqi/280) + 17px) / 16 * 1rem;
}

Potential enhancement: cache parameters in localStorage

It may be useful to cache a user's parameters in localStorage and load them the next time they return to the app. A reset button could also be added somewhere in the UI to reset to the defaults. What are your thoughts on this? And if you think it's worth adding to the app, would you be open to me putting in a PR?

Use this but with a modular scale

Hi,

What would be the best way of using this to generate a set of font-sizes for H1 => H6 but using one type scale such as 1.125 for the minimum value and 1.250 for the maximum value.

I've had a go using Sass but the output doesn't appear to be correct.

Any suggestions?

generate the middle clamp value by setting min / max screen size

Well done, it’s a very nice tool!
But I think it might be better if the user only entered the min/max font-size and min/max screen sizes and then the tool returned the clamp();

My first impression was that I would be able to move the handles and lines in the graph and that all the fields would automatically update.

If I have time I will try to make a fork.

Support for REM Font Units and Increased Fluid Size Range

I am writing to propose a couple of enhancements that I believe would significantly improve the user experience and functionality of this already impressive product.

  1. Support for REM Font Units: Currently, the left panel offers font size adjustments in px units. It would be highly beneficial if there was an option to change these font units to REM.

  2. Expanded Fluid Size Range: The existing fluid size range of up to 5vw has been quite useful. However, extending this range to 10vw would offer greater versatility in responsive design, allowing for more dynamic scaling across different screen sizes.

CleanShot 2023-11-21 at 6β€― 28 34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.