Tidgrid ships with five built-in breakpoints that power its entire responsive system. All breakpoints useDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sneikki/tidgrid/llms.txt
Use this file to discover all available pages before exploring further.
min-width media queries, which means styles cascade upward — a class applied at the sm breakpoint takes effect at 768px and stays active at every larger size. You only override what needs to change, and you do it by layering breakpoint-prefixed classes on top of your base styles.
Built-in Breakpoints
The five breakpoints are defined insrc/variant.scss as a SCSS map called $default-breakpoints. Each value is expressed in em units, making the breakpoints scale correctly when a user changes their browser’s default font size.
| Name | Min-Width | ~Pixels | Typical Target |
|---|---|---|---|
xs | 36em | 576px | Large phones, small tablets |
sm | 48em | 768px | Tablets, landscape phones |
md | 64em | 1024px | Small laptops, tablets |
lg | 75em | 1200px | Desktops |
xl | 90em | 1440px | Wide / large monitors |
Em-based breakpoints respect the user’s browser font-size preference, so
36em equals 576px only when the root font size is the browser default of 16px. If the user sets 20px as their default, 36em becomes 720px. This is intentional — it keeps your layout proportional to the user’s reading size.Mobile-First Approach
Tidgrid uses a mobile-first strategy. There are nomax-width queries involved — only min-width. This means:
- Base classes (no prefix) apply to all screen sizes, starting from the smallest.
- Breakpoint-prefixed classes (e.g.
sm:tg-mode(auto)) activate at the specified minimum width and remain active at all larger sizes above it. - To change behavior at a larger breakpoint, add another prefix for that breakpoint.
tg-mode(stacked) sm:tg-mode(auto) means “stack vertically on mobile, switch to auto-width columns at tablet size and wider.” No JavaScript, no runtime logic — just CSS cascade.
Customizing Breakpoints
If the built-in breakpoints don’t match your design system, you can override them by redefining$default-breakpoints before importing Tidgrid in your SCSS entry file. The variable is declared with !default, so any assignment that comes first in the SCSS load order wins.
You can use any number of breakpoints and any names you like. Tidgrid will generate responsive variants for every key in the map — no extra configuration needed.
2xl: prefix becomes available on every responsive utility class.
How Variants Are Generated
The@mixin generate in src/variant.scss drives all breakpoint output. It first emits the unprefixed (base) class declarations, then loops through every entry in $default-breakpoints and re-emits those same declarations wrapped in a @media only screen and (min-width: $value) query, with the breakpoint key prepended to the class name using escaped colon notation.
xs:tg-gap(lg) — and the browser matches it to the escaped CSS selector automatically.