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

[font-sizes] [responsive] Create two new dynamic settings that will help with responsive fonts #8366

Open
djekanovic opened this issue Jan 27, 2023 · 2 comments

Comments

@djekanovic
Copy link

font-size:( 20px 25px 45px);
Font size will break on specified breakpoints based on values above.

font-size: linear( 20px 25px 45px);
Font size will change linerly from defined breakpoints, this will also mean definin breakpoints with something new if possible like

breakpoints {

768px;
1024px;
3rd value is above 1024px

}
this would lead to simplifying media queries that are used the most and using expression like div {
width: 200px 300px 400px; }
Or
div {
padding-inline: 100px 40px 20px; }

These are the ideas to simplify and unify responsive editing

@djekanovic
Copy link
Author

Here is an example what we have to do to reach something like this.
https://codepen.io/djekanovic/full/WNKKbzz
Inspired originally by Dannie Vinther from 2020 codepen
https://codepen.io/dannievinther/full/poompMj

@fantasai
Copy link
Collaborator

fantasai commented Jun 1, 2023

There's been some discussion around interpolation, see

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

No branches or pull requests

2 participants