GithubHelp home page GithubHelp logo

Comments (8)

tenphi avatar tenphi commented on May 27, 2024

There is no need to create such scaling. Font size depends on logical pixel density which should be similar across the devices.

from numl.

shubham-kaushal avatar shubham-kaushal commented on May 27, 2024

There is no need to create such scaling. Font size depends on logical pixel density which should be similar across the devices.

I am discussing default size https://numl.design/reference/styles/size Instead of defining s, m, lg, h1, h2, etc. we can define a clear default font size like the proposed method (caption, body, subheading, etc.). And, I disagree with having similar density font sizes across the devices because it's not very much responsive, and neither a good example of accessibility. If our intention is to create a Design System as a Service then we should define our default the way we actually implement it while creating the style guide of any project.

from numl.

tenphi avatar tenphi commented on May 27, 2024

Numl should stay as a universal solution.
caption, body, subheading, etc - all of them are not universal and depend on a project.

having similar density font sizes across the devices because it's not very much responsive, and neither a good example of accessibility

Never heard of it. Let me some time to research.

from numl.

shubham-kaushal avatar shubham-kaushal commented on May 27, 2024

Few Ref.:
https://material.io/develop/web/docs/typography
https://material.io/design/typography/the-type-system.html#type-scale
https://orbit.kiwi/foundation/typography/
https://polaris.shopify.com/design/typography#section-type-scale
https://polaris.shopify.com/components/titles-and-text/display-text#navigation

cc: @tenphi

from numl.

tenphi avatar tenphi commented on May 27, 2024

So only Material Design uses different scales for mobile. Well, in Cube Dev we use it too but it doesn't mean everyone should use them.
It's very simple to customize scales in Numl for every screen width. So I don't see any reason it should be built-in. Default scale works for every device.
Also, you can scale down the size in place: size="h1|h3".

from numl.

tenphi avatar tenphi commented on May 27, 2024

Built-in adaptive scales would introduce the unwanted complication of the Design System the users should care about. There is always a compromise to achieve both simplicity and flexibility.

from numl.

shubham-kaushal avatar shubham-kaushal commented on May 27, 2024

I highly recommend Responsive Font. And naming it as caption, body, subheading is actually will simplify the complexity and it's an anatomy of any app typography (writing it as h1, h2 is primitive). Even Tailwind is considering this and I feel tailwind is one of the alternatives to Numl in terms of modern approach https://tailwindcss.com/docs/font-size Maybe you can check the Shopify polaris from the above link, there approach also looks promising by making certain ex.: h3 default for large screen and naming it as subheading and making it responsive according to screen size etc. In this way you are not removing the existing, instead, you are introducing a default method.

Note: Custom theming is a different case. We can only think to make it more and more customized friendly but for the default version, I will always move to new ways to make it more accessible.

Story: Back in the days we used to create m.example.com and example.com (two different apps because responsive was not coming into the picture) but after bootstrap, we don't need to create the two different versions to create for mobile responsive. Like the same turbolinks got replaced by SPA.

from numl.

tenphi avatar tenphi commented on May 27, 2024

We can discuss different naming. But adaptive font scales are almost impossible in the current approach of Numl.
Even with default responsive breakpoints, it would not be easy to implement adaptive scales.
And so far, it's just not so important to implement a new approach.

from numl.

Related Issues (20)

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.