Theme navigation

Breakpoints

Breakpoints

Responsive breakpoints are min-width thresholds. Utilities become active when the viewport reaches a threshold. Hulian UI uses five breakpoints defined in preset.css.

Live breakpoint

Resize the browser window to highlight the largest matching breakpoint.

< smsmmdlgxl2xl

Breakpoint table

PrefixMinimum widthrem
sm:640px40rem
md:768px48rem
lg:1024px64rem
xl:1280px80rem
2xl:1536px96rem

Responsive usage

Use unprefixed classes for the narrowest viewport, then override them at wider breakpoints. The grid below changes from one to two to four columns.

Card 1
Card 2
Card 3
Card 4
<div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">

Source and customization

The five breakpoints are declared in the preset.css @theme block. Editing them updates both utility behavior and this table from one source of truth.

@theme {
  --breakpoint-sm: 40rem;  /* 640px */
  --breakpoint-md: 48rem;  /* 768px */
  --breakpoint-lg: 64rem;  /* 1024px */
  --breakpoint-xl: 80rem;  /* 1280px */
  --breakpoint-2xl: 96rem; /* 1536px */
}