Responsive grid layout with percentage and fraction-based columns.

Overview

Pure Admin uses a custom flexbox grid system with intuitive naming. Columns use pc-col-{size} for percentages and pc-col-{x}-{y} for fractions.

Key Features

  • Gutter: 0.8rem (8px) per side, 1.6rem (16px) total gap
  • Percentage columns: 5% increments (5, 10, 15... 100)
  • Fraction columns: Halves, thirds, quarters, fifths, sixths, twelfths
  • Responsive: All columns have breakpoint variants
  • Offsets: Left margin in 5% increments

Breakpoints

PrefixMin WidthExample
sm 576px pc-col-sm-50
md 768px pc-col-md-50
lg 992px pc-col-lg-50
xl 1200px pc-col-xl-50

Basic Usage

Auto-equal width columns with .pc-col

Two Equal Columns

.pc-col
.pc-col

Three Equal Columns

.pc-col
.pc-col
.pc-col

Four Equal Columns

.pc-col
.pc-col
.pc-col
.pc-col

Auto Width Column

.pc-col (fills remaining)
.pc-col-auto (content width)

Percentage Columns

Fixed widths in 5% increments: .pc-col-5 through .pc-col-100
.pc-col-25
.pc-col-75
.pc-col-1-3
.pc-col-2-3
.pc-col-50
.pc-col-50
.pc-col-40
.pc-col-60
20
20
20
20
20
.pc-col-100 (full width)

Fraction Columns

Intuitive naming for common layouts: .pc-col-1-3, .pc-col-2-3, etc.

Halves (1/2)

.pc-col-1-2 (50%)
.pc-col-1-2 (50%)

Thirds (1/3, 2/3)

.pc-col-1-3 (33.3%)
.pc-col-2-3 (66.7%)
1/3
1/3
1/3

Quarters (1/4, 3/4)

.pc-col-1-4 (25%)
.pc-col-3-4 (75%)
1/4
1/4
1/4
1/4

Fifths (1/5, 2/5, 3/5, 4/5)

1/5
4/5
2/5
3/5

Sixths (1/6, 5/6)

1/6
5/6
1/6
1/6
1/6
1/6
1/6
1/6

Twelfths (1/12, 5/12, 7/12, 11/12)

1/12
11/12
5/12
7/12

Responsive Grid

Stack on mobile, columns on larger screens. Resize your browser to see the effect.

Mobile-First Pattern

Full width on mobile, 50% on medium screens and up:

.pc-col-100 .pc-col-md-50
.pc-col-100 .pc-col-md-50

Progressive Columns

Different layouts at each breakpoint:

100% → 50% → 25%
100% → 50% → 25%
100% → 50% → 25%
100% → 50% → 25%

Responsive Fractions

Fractions also support breakpoints:

.pc-col-100 .pc-col-md-1-3
.pc-col-100 .pc-col-md-2-3

Offsets

Push columns with left margin: .pc-offset-{size}

Centering with Offsets

.pc-col-50 .pc-offset-25
.pc-col-1-3 .pc-offset-33

Asymmetric Layouts

.pc-col-30 .pc-offset-10
.pc-col-40 .pc-offset-10

Row Alignment

Control horizontal and vertical alignment of columns

Horizontal Alignment

.pc-row--center

Centered

.pc-row--end

Right aligned

.pc-row--between

Left
Right

.pc-row--around

A
B
C

Vertical Alignment

.pc-row--top

Top
Top

.pc-row--middle

Middle
Middle

.pc-row--bottom

Bottom
Bottom

No Gutter

Remove spacing between columns with .pc-row--no-gutter

Default (with gutter)

1/3
1/3
1/3

No Gutter

1/3
1/3
1/3

Visibility Utilities

Show/hide elements at different breakpoints

ClassDescription
.pc-hide Always hidden
.pc-show Always visible
.pc-hide-{bp} Hidden at breakpoint and up
.pc-show-{bp} Visible at breakpoint and up
.pc-hide-below-{bp} Hidden below breakpoint
.pc-show-below-{bp} Visible below breakpoint

Live Demo (resize browser)

Mobile Only
.pc-hide-md
Desktop Only
.pc-hide-below-md

Nested Grids

Grids can be nested inside columns

1/3

Nested grid inside 2/3 column:

Nested 1/2
Nested 1/2

pc-grid — CSS-Grid layout primitive

Two-dimensional cell co-alignment + a ruled box-matrix that prints (real borders). Companion to the flex grid/column.

3 columns, ruled

col_span=2
cell
cell
cell
cell

pa-table--plain (neutral ruled grid)

is_plain strips the themed header/stripe fills so the table reads as a plain ruled grid — for paper forms and embedded sheet grids. Pair with is_bordered.

FieldValue
Gross weight 2.4 kg
Country of origin DE

Quick Reference

Percentage Classes

.pc-col-5 .pc-col-10 .pc-col-15 .pc-col-20 .pc-col-25
.pc-col-30 .pc-col-35 .pc-col-40 .pc-col-45 .pc-col-50
.pc-col-55 .pc-col-60 .pc-col-65 .pc-col-70 .pc-col-75
.pc-col-80 .pc-col-85 .pc-col-90 .pc-col-95 .pc-col-100

Fraction Classes

.pc-col-1-2
.pc-col-1-3 .pc-col-2-3
.pc-col-1-4 .pc-col-3-4
.pc-col-1-5 .pc-col-2-5 .pc-col-3-5 .pc-col-4-5
.pc-col-1-6 .pc-col-5-6
.pc-col-1-12 .pc-col-5-12 .pc-col-7-12 .pc-col-11-12

Code Examples

Basic Grid

<.grid>
  <.column size="50">Left half</.column>
  <.column size="50">Right half</.column>
</.grid>

<!-- Thirds -->
<.grid>
  <.column size="1-3">One third</.column>
  <.column size="2-3">Two thirds</.column>
</.grid>

Responsive Grid

<!-- Stack on mobile, columns on desktop -->
<.grid>
  <.column size="100" md="50">
    Full on mobile, half on desktop
  </.column>
  <.column size="100" md="50">
    Full on mobile, half on desktop
  </.column>
</.grid>

<!-- Progressive breakpoints -->
<.column size="100" sm="50" lg="25">
  100% → 50% → 25%
</.column>

Grid Props

<!-- Alignment -->
<.grid align="center">...</.grid>
<.grid align="between">...</.grid>
<.grid valign="middle">...</.grid>

<!-- Same height columns -->
<.grid is_same_height>...</.grid>

<!-- No gutter -->
<.grid is_no_gutter>...</.grid>

Column Props

<!-- Sizes (percentage or fraction) -->
<.column size="50">Half</.column>
<.column size="1-3">One third</.column>

<!-- Responsive -->
<.column size="100" md="50" lg="25">
  Mobile → Tablet → Desktop
</.column>

<!-- Offset -->
<.column size="50" offset="25">
  Centered 50%
</.column>

John Doe

Administrator

Settings

Press Ctrl+K to preview the palette.
Sidebar
Display
Profile Panel
Body text size. All elements scale proportionally.
Commands
🚀
Deploy to Environment
Deploy a branch to an environment
g d
👤
Assign to User
Assign an item to a team member
g a
🧭
Go to Page
Navigate to a page
g g
🎨
Switch Theme
Change the visual theme
g t
Search
📦
Products
Search products
:products
📋
Orders
Search orders
:orders
👥
Users
Search users
:users
🧾
Invoices
Search invoices
:invoices