EVA CSS Grids

Responsive grids that adapt automatically to screen size without media queries.

Auto-Fit Grids

Responsive grids that adapt automatically to screen size

Documentation

Modern CSS Grid with auto-fit for responsive layouts without media queries

Base class: .grid + .auto-fit-[size][suffix]

Available sizes: Based on $sizes array (220 and above)

Suffixes: none, _, __, -

Automatic gap: var(--32) by default

auto-fit-220 (Standard)

Cards with minimum width of 220px

Card 1
Card 2
Card 3
Card 4

auto-fit-356 (Larger cards)

Cards with minimum width of 356px

Feature Card

Larger minimum width for feature cards

Feature Card

Automatically adjusts to screen size

Feature Card

No media queries needed

auto-fit-220_ (Reduced size)

Cards with reduced minimum width using _ suffix

Small
Small
Small
Small
Small
Small

Classic Grid

Traditional column-based system with responsive breakpoints

Documentation

Flexbox-based grid system with dynamic column calculation using CSS variables

Container: .flex-grid or .container:flex-grid (with container queries)

Columns: .col-1 to .col-12

Container queries: Automatic column calculation based on container width

Local control: .max-col-X (1-12) to override grid columns locally

Responsive control: .xs:max-col-X, .sm:max-col-X, .md:max-col-X, .lg:max-col-X, .xl:max-col-X, .xxl:max-col-X

Breakpoints: xs (200px), sm (500px), md (700px), lg (1000px), xl (1200px), xxl (1400px)

Dynamic: Uses CSS variable --grid-columns for calculations

12-Column Layout

Traditional 12-column grid system

col-12 (Full width)
col-6
col-6
col-4
col-4
col-4
col-3
col-3
col-3
col-3

Mixed Column Layout

Combining different column sizes

Main Content (col-8)

This column takes 8/12 of the available width on desktop, automatically adjusting on tablet and mobile.

Sidebar (col-4)

This column takes 4/12 of the width.

col-2
col-10 (Wide content area)

Local Grid Control with .max-col-X

Override the global grid column count locally using .max-col-X classes

col-3 in 6-col grid
col-3 in 6-col grid
col-2
col-2
col-2
col-2

Container Query Auto Columns

Automatic column calculation using container width

col-3 auto
col-3 auto
col-2 auto
col-4 auto
col-3 auto

Responsive Max Columns

Breakpoint-based column control with responsive prefixes

col-2
col-2
col-2
col-2
col-2
col-2

Breakpoints actifs :

xs (200px+): 2 cols → sm (500px+): 4 cols → md (700px+): 6 cols → lg (1000px+): 8 cols → xl (1200px+): 12 cols

Fraction Notation

Intuitive fraction-based column system with self-contained width calculations

Documentation

Self-contained fraction notation that defines both column span and total columns

Pattern: .col-1/X where X defines the total number of columns

Available: .col-1/1 to .col-1/12

Width calculation: Each class defines its own --col-span and --grid-columns

Self-contained: No need for parent container column setup

Examples: col-1/2 = 50%, col-1/3 = 33.33%, col-1/4 = 25%

Basic Fractions

Simple fraction layouts with self-contained widths

col-1/1 (100%)
col-1/2 (50%)
col-1/2 (50%)
col-1/3 (33.33%)
col-1/3 (33.33%)
col-1/3 (33.33%)
col-1/4 (25%)
col-1/4 (25%)
col-1/4 (25%)
col-1/4 (25%)

Mixed Fraction Layouts

Combining different fraction widths in the same row

Main (col-1/2)

Half width content area

Side (col-1/4)

Quarter width

Side (col-1/4)

Quarter width

col-1/5 (20%)
col-1/5 (20%)
col-1/5 (20%)
col-1/5 (20%)
col-1/5 (20%)

Responsive Card Grid

Using fractions for responsive card layouts

Card 1

1/6 width (16.66%)

Card 2

1/6 width (16.66%)

Card 3

1/6 width (16.66%)

Card 4

1/6 width (16.66%)

Card 5

1/6 width (16.66%)

Card 6

1/6 width (16.66%)

Avantage des fractions :

Chaque classe col-1/X est autonome et définit sa propre largeur, sans dépendre d'une configuration parent.

Available Fraction Classes

Complete list of available fraction notation classes

Classes disponibles :

col-1/1 (100%) col-1/2 (50%) col-1/3 (33.33%) col-1/4 (25%) col-1/5 (20%) col-1/6 (16.66%) col-1/7 (14.28%) col-1/8 (12.5%) col-1/9 (11.11%) col-1/10 (10%) col-1/11 (9.09%) col-1/12 (8.33%)