--device-sm: 576px;

--device-md: 768px;

--device-lg: 992px;

--device-xl: 1200px;

--device-xxl: 1400px;

Home

The Breakpoints Support Strategy

Before starting your project, you need to define the breakpoints you will use. The breakpoints are the points where the layout of your web application will change. TFCSSF supports several breakpoints, from generics (all devices) to mobile, tablet, desktop, and widescreen.

First, check your designs

The first step is to check your designs and identify the breakpoints needs. Most designs requiere only two breakpoints: mobile and desktop. But some other designs requiere tablet, widescreen, and other breakpoints. Here is a list of the most common strategies for breakpoints and this framework:

Breakpoint scales

The framework supports several breakpoints. From start, breakpoints only work if you specify the modifier --sm,--md, --lg, --xl, or --xxl. Unless you are usign these, then you will have true effect when resizing the screen. Otherwise, you will be applying mostly generic classes.

ConditionMobileTabletsDesktop (Small)Desktop (Laptop)Desktop (Widescreen)
Extensionsm-md-lg-xl-xxl-
min-width+768px+992px+1200px+1400px
max-width-576px

Most projects will only need the generics.css file along with the sm.css and md.css files. But if you need more breakpoints, you can add the files you need.

If you only need one design, you don't need to use breakpoints, everything it is supported by the generics.css rules. The generic rules work accross all the breakpoints. The rules are breakpoint agnostic. An example rule is:

Find out which breakpoint you're watching

The BreakpointIndicator component (React only) is really useful when you are building grids and layouts or working in anything else. It will display the current breakpoint you are watching and tell you the exact modifier: --sm, --md, --lg, --xl, or --xxl.

export default function Home(props) {
  return (
    <>
      <BreakpointIndicator />
    </>
    );
}