npx boriskirov
boriskirov / fluiditype Goto Github PK
View Code? Open in Web Editor NEWFluiditype a simple fluid typography css helper for reading experience
License: MIT License
Fluiditype a simple fluid typography css helper for reading experience
License: MIT License
npx boriskirov
Add color tokens
Thanks for sharing your ideas!
Could you perhaps explain the vw value the font-size calculation is based on?
fontSize: calc(12px + 0.698vw)
Why 0.698vw?
Where does the number come from?
Kirsten
Hi, really like your project, it's exactly what i was looking for!
One thing I think user would like is to have the font size clamped to an arbitrary container instead of the viewport. This way, one can add [margin: 0 auto ] around the main container without having the font-size overblown on large display.
Here is an exemple of what i mean:
https://codepen.io/benasp/pen/qBdRzQW
There is probably room for optimization for sure. What do you think ?
I miss a hint under which license this library is published. It would be great to read about it in README.md
Title says it all, thanks for making this, i love this project.
add font-variant-numeric: slashed-zero; in the root, so it can provide a better reading experience when handling letters and numbers
Hi @boriskirov,
there is a little typo in your readme at:
There we decalre the global CSS variables [...]
There we declare the global CSS variables [...]
Best regards
Maurits
add font-variant-numeric: slashed-zero; in the root, so it can provide a better reading experience when handling letters and numbers
Add word-break
to make the typography responsive.
font-family is not scalable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.