Nativa PHP Core

Article

Theme Comparison ... Starter vs Magazine vs Minimal

Article cover illustration: Architecture, php, themes, comparison

In Nativa Minimal we have three themes. Each is designed for a different purpose. In this article we compare when to use which, what CSS tokens they use, and what their WCAG AA contracts are.

Overview

StarterMagazineMinimal
StyleSimple, cleanFull-width, hero gridLight-first, blocky
Entrysrc/main.tssrc/magazine.tssrc/minimal.ts
ShellFrontendLayoutMagazineShellMinimalShell
CSS prefix--st-*--mag-*--min-*
FontSystem stackSerif (Georgia)System stack
CSS loadingInline (works without build)Deferred (media="print")Deferred (media="print")
Mobile menuHamburgerJS toggleCSS checkbox
SidebarNoYes (popular/tags)Yes (popular/tags)
Hero sectionNoYes (2fr + 1fr grid)Yes (centered single)
TOCNoYes (sidebar + mobile FAB)Yes (sidebar + mobile FAB)
FooterSimpleMulti-columnCentered

Starter ... the default theme

When to use: Simple sites, blogs, portfolios.

Characteristics:

  • Clean, minimalist layout
  • No sidebar
  • No hero section
  • No TOC
  • Simple footer
  • Minimal CSS

CSS tokens:

--st-accent-strong: #f59e0b;  /* button bg, white text */
--st-accent-soft: #d97706;    /* tag/link text */
--st-accent-hover: #d97706;   /* button hover */
--st-error-ink: #dc2626;      /* error text */

Usage:

/?style=starter

Magazine ... full-width layout

When to use: Magazines, news portals, large blogs.

Characteristics:

  • Full-width sticky header (64px)
  • Serif font (Georgia) for headings
  • Hero grid: 2fr + 1fr layout (featured + 2 small cards)
  • Sidebar with popular articles and tags
  • Category sections with horizontal scroll
  • TOC in sidebar (desktop) + mobile FAB panel
  • Multi-column footer (brand + quick links + feeds)
  • JS mobile menu
  • Search trigger → /blog?q=

CSS tokens:

--mag-accent: #f59e0b;        /* decorative (icons, borders) */
--mag-accent-strong: #f59e0b; /* button bg, white text */
--mag-accent-soft: #d97706;   /* tag/link text */
--mag-accent-hover: #d97706;  /* button hover */

Usage:

/?style=magazine

Minimal ... light-first editorial

When to use: Clean blogs, minimal portfolios, "less is more".

Characteristics:

  • Light-first design
  • Blocky editorial style
  • System font stack (no serif)
  • DB-driven navigation (SettingsServices::menu)
  • CSS-only checkbox mobile menu
  • Count-aware grids: --1col / --2col / --3col
  • Category sections with "View all" links
  • Sidebar widgets (popular articles + tags)
  • TOC in sidebar (desktop) + mobile FAB panel
  • Centered footer
  • CTA block on homepage

CSS tokens:

--min-accent: #f59e0b;        /* decorative (icons, borders) */
--min-accent-strong: #f59e0b; /* button bg, white text */
--min-accent-soft: #d97706;   /* tag/link text */
--min-accent-hover: #d97706;  /* button hover */

Usage:

/?style=minimal

WCAG AA contracts

All themes must meet WCAG AA (4.5:1 contrast). BuildCssAuditTest tests tokens in both themes (dark + light):

TokenPurposeDark valueLight value
--st-accent-strongButton bg + white text#f59e0b#d97706
--st-accent-softTag/link text on surface#fbbf24#92400e
--st-error-inkError banner text#dc2626#dc2626
--mag-accent-strongButton bg + white text#b45309#b45309
--mag-accent-softTag/link text on surface#fbbf24#92400e
--min-accent-strongButton bg + white text#b45309#92400e
--min-accent-softTag/link text on surface#fbbf24#92400e

Decorative tokens (--mag-accent, --min-accent) have no AA requirement ... they're for icons and borders, not text.

Why amber doesn't work directly?

#d97706 (amber-600) has only 3.1:1 contrast with white text.
That's why we use darker variants:

  • #b45309 (amber-700) = 5.0:1 ... button bg
  • #92400e (amber-800) = 7.1:1 ... hover, light theme
  • #fbbf24 (amber-400) = 4.6:1 ... link text on surface

Adaptive grids (Minimal theme)

Minimal theme has a special feature: count-aware grids.

.minimal-grid--1col { grid-template-columns: minmax(0, 1fr); }      /* 1 result */
.minimal-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 2 results */
.minimal-grid--3col { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } /* 3+ */

/* Desktop: fixed 3-col */
@media (min-width: 900px) { .minimal-grid--3col { grid-template-columns: repeat(3, 1fr); } }

/* Tablet: 2-col */
@media (max-width: 899px) and (min-width: 640px) { .minimal-grid--3col { grid-template-columns: repeat(2, 1fr); } }

/* Mobile: 2-col → 1-col */
@media (max-width: 640px) { .minimal-grid--2col { grid-template-columns: minmax(0, 1fr); } }

Tag, category and author pages with few articles don't squeeze into 1/3 width ... they adapt automatically.

Switching

Three ways to switch:

  1. Admin panel (/mark/settings) ... site.theme dropdown
  2. Query parameter (?style=magazine) ... preview without changing settings
  3. Env variable (THEME=minimal) ... force theme for entire deployment

Precedence: query param > env > setting > starter (default)

When to use which

ScenarioTheme
Simple blogStarter
Magazine with featured articlesMagazine
Clean, minimalist blogMinimal
Company websiteStarter or Custom
News portalMagazine
PortfolioMinimal

Summary

  • Starter ... simple, clean, default
  • Magazine ... full-width, hero grid, sidebar
  • Minimal ... light-first, blocky, adaptive grids
  • All meet WCAG AA (4.5:1)
  • Switch via admin, query param or env
  • Adding a new theme = 3 files (auto-discovery)

→ Theme Architecture: how auto-discovery works → Build Your Own Theme: step-by-step guide

Sources

Comments (0)

No comments yet — be the first to react.

Reader questions (0)

No questions yet — be the first to ask.

Stuck on something in this article? Ask below. Your name is shown publicly; your email is never stored. A question appears here once a moderator approves it.