flexo

A lightweight, utility-first CSS framework built on flexbox. Fast layouts, responsive grids, and zero dependencies.

Why flexocss

Everything you need, nothing you don't.

Lightweight

A single CSS file with no JavaScript and no runtime overhead. Just pure CSS that works everywhere.

Flexbox-first

Built entirely on flexbox for predictable, powerful layouts without the complexity of float or grid hacks.

Fully configurable

Grid columns, gap steps, padding, container width, transitions, and more. Every aspect is controlled via SCSS variables.

6 breakpoints

From small mobile to ultrawide monitors: sm, md, lg, sp, mg, ut. Full control at every screen size.

Utility classes

Responsive padding, margin, gap, alignment, visibility, and more. All following a consistent naming convention.

Wireframe mode

Debug your layouts instantly with a single ID. See column boundaries, sizes, and breakpoint info at a glance.

Gap-aware

Column widths are calculated accounting for gaps automatically. No more broken layouts from spacing math.

Zero dependencies

No JavaScript frameworks required. Use the prebuilt CSS directly or customize via SCSS with your preferred build tool.

Scaffolding

A fully customizable responsive grid with gap-aware calculations.

Build complex layouts in seconds with a flexible grid system that defaults to 16 columns but can be configured to any number you need. Gaps, padding steps, container widths, and transitions are all customizable via SCSS variables. Every width calculation accounts for gaps automatically, and six responsive breakpoints let you adapt any layout from mobile to ultrawide.

Justify
Padding
Nested
Align

Wireframe

Debug your layouts visually during development.

Enable wireframe mode with a single ID on the body tag and instantly see your grid structure highlighted with colored outlines. Each column shows its breakpoint name and size, making it easy to spot alignment issues and fine-tune your responsive layouts before going to production.

#bp info
#bp info
#bp info
#bp info
#bp info
#bp info
#bp info
#bp info
#bp info
#bp info

Breakpoints

Six responsive steps from mobile to ultrawide.

Each breakpoint uses a mobile-first approach with min-width media queries. Classes follow the pattern fl-{breakpoint}-{property}-{value} for a consistent, predictable API.

Breakpoint
Prefix
Min-width
Target
Small
sm
0px
Small phones
Medium
md
576px
Large phones
Large
lg
768px
Tablets
Super
sp
1024px
Laptops / small desktops
Mega
mg
1420px
Large desktops
Ultra
ut
1860px
Ultrawide monitors

Get Started

Install flexocss in your project in seconds.

Choose your preferred method: install via npm to customize grid columns, gaps, padding, container width, transitions and more via SCSS — or include the CDN link for zero configuration.

npm
npm install @daveaki/flexocss
CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@daveaki/flexocss@2.0.2/dist/flexo.min.css">