Coder Social home page Coder Social logo

Explain the Visualisation graph about rfs HOT 4 CLOSED

twbs avatar twbs commented on May 8, 2024
Explain the Visualisation graph

from rfs.

Comments (4)

MartijnCuppens avatar MartijnCuppens commented on May 8, 2024

The colors are just different font sizes being rescaled. For example:

.title {
  @include font-size(40px);
}

This is the green line. A font size of 40px stays 40px in viewports with a size larger than 1200px. Below 1200px, the font size is rescaled and at viewport of 360px, the font size is about 27px. Note that every font size is generated in a combination of rem and vw units, but the I've mapped this to px in the graph to make it easier to understand.

RFS Graph

The factor is a configuration variable. You don't have to understand how the factor works to make use of RFS. The higher the factor, the less difference there is between font sizes on small screens (on the graph, the lines would lay closer to each other). The lower the factor, the less influence RFS has, which results in bigger font sizes for small screens.

Did this help you a bit or did it just confuse you more, @nettiopsu?

from rfs.

nettiopsu avatar nettiopsu commented on May 8, 2024

Ah yeah I see now. Then in fact "Base font size" is "Base font sizeS", because there are multiple fonts. In addition, my focus point was somehow concentrated in breakpoint 0, where font-sizes are not marked for the lines, however it should be in fact in the breakpoint 1200. Maybe this breakpoint could be somehow marked with another color for example?

It would be nice if you could copy your explanations to README.MD if someone like me will try to understand how does it work :) It would be great

from rfs.

SilviaGars avatar SilviaGars commented on May 8, 2024

Hi
I am trying to overwrite the $rfs-breakpoint: 1200px !default; with 1024px.
body {
$rfs-breakpoint: 1024px;
}
but it doesn't work.

from rfs.

arthurshlain avatar arthurshlain commented on May 8, 2024

How to calculate the factor value and base font-size correctly? I have website layout designed with 18px paragraphs font-size on 1280px artboard and 16px paragraphs font-size on 375px mobile artboard. How deal if designer's headings and other font styles has different factor?

from rfs.

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.