consolelog.tools logo

Breakpoint Generator

Generate responsive breakpoints for your design system

Configuration

Breakpoint Overview

sm
640px +
4 columns · 16px gutter
640px
md
768px +
8 columns · 24px gutter
768px
lg
1024px +
12 columns · 24px gutter
1024px
xl
1280px +
12 columns · 32px gutter
1280px
2xl
1536px +
12 columns · 32px gutter
1536px

Visual Representation

sm
640px
md
768px
lg
1024px
xl
1280px
2xl
1536px

Generated Code

:root {
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* sm: 640px+ */
@media (min-width: 640px) {
  .container-sm {
    max-width: 640px;
  }
}

/* md: 768px+ */
@media (min-width: 768px) {
  .container-md {
    max-width: 768px;
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .container-lg {
    max-width: 1024px;
  }
}

/* xl: 1280px+ */
@media (min-width: 1280px) {
  .container-xl {
    max-width: 1280px;
  }
}

/* 2xl: 1536px+ */
@media (min-width: 1536px) {
  .container-2xl {
    max-width: 1536px;
  }
}

Usage Example

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Frequently Asked Questions - Breakpoint Generator