THE AEGIS FRAMEWORK
Engineered for Velocity
The framework inside Aegis has no global stylesheet or script bundle. Every style and script is tied to a block or feature, and only ships when a page actually uses it.
WordPress 7.0+ · PHP 8.1+ · GPL-2.0-or-later

0
Assets Loaded by Default
173
CSS Partials on Demand
26
Script Modules on Demand
21
Inspector Controls
6
Composer Packages
Performance
Nothing Loads Until It Is Needed
Most themes ship one large stylesheet and script bundle to every page. Aegis builds each page’s assets from what is actually on it.
Step 1
Scan
The framework reads the rendered template and notes which blocks, styles, and features the page uses.
Step 2
Inline
Only the matching CSS partials are combined into a single inline stylesheet — no extra requests to block rendering.
Step 3
Defer
Scripts load deferred. Heavier libraries, like the slider and masonry engines, wait until their block scrolls near the screen.

Design system
One Source of Truth
Every color, size, and space on an Aegis site comes from a token, so a single change in Global Styles updates the whole site.
Color
Color Palette
40 semantic tokens in Primary, Neutral, Success, Info, Warning, and Error scales. Patterns never hard-code hex values.
Type
Fluid Typography
23 clamp()-based sizes, 9 weight tokens, and three self-hosted variable fonts: Lexend, Lexend Deca, and JetBrains Mono.
Space
Spacing Scale
11 steps from 4px to 96px, seven of them fluid, kept separate from font sizes so rhythm stays predictable.
Effects
Depth and Effects
8 shadow presets, 31 gradients, and 10 duotones, all driven by the same color tokens.
Modes
Dark Mode
A class, not a second theme. Tokens remap per page or per section, and visitors can switch with a remembered toggle.
Variations
60 Style Variations
Complete palettes with their own dark mapping. Switch one and every block, pattern, and template follows.
Palette
Semantic Color, Ready for Any Brand
These swatches are live tokens. Switch the style variation and they change with it.
Primary
25
50
100
200
300
400
500
600
700
800
900
950
Neutral
0
50
100
200
300
400
500
600
700
800
900
950
Status
Success 100
Success 500
Success 600
Info 100
Info 500
Info 600
Warning 100
Warning 500
Warning 600
Error 100
Error 500
Error 600

Padding and margins
Spacing You Can Reason About
Fluid steps, root-padding-aware alignments, and a 720px content / 1200px wide layout keep every page on the same rhythm.
| Token | Value | Typical use |
|---|---|---|
| XXXS | 4px | Icon gaps, hairline offsets |
| XXS | 8px | Tight inline groups |
| 2XS | 12px | Compact controls |
| XS | 16px | Card padding on mobile |
| SM | 20–24px | Default block gap |
| MD | 24–32px | Card padding |
| ML | 24–40px | Sub-section spacing |
| LG | 24–48px | Section padding and root gutter |
| XL | 40–64px | Large section padding |
| XLL | 48–80px | Hero breathing room |
| XXL | 56–96px | Landmark sections |
Grid system
Intrinsic Layouts, Precise Control
Layouts adapt to their container first, and you only step in where a breakpoint needs something different.
Grid
Grid Variation
A CSS grid container on the Core Group Block, with equal-height rows by default.
Columns
Responsive Columns
Set column counts per breakpoint — mobile, tablet from 782px, and desktop from 1024px.
Control
Per-breakpoint Layout
Display, order, position, offsets, z-index, width, and grid placement per screen size.
Content
Query Layouts
Responsive columns, featured first post, equal-height cards, and custom empty states on the Query Loop.
Image placeholders
Layouts That Never Collapse
An empty Image block renders a styled placeholder with the right ratio, so pages look finished while content is still in progress — and the placeholder styles load only when one is on the page.
- Keeps aspect ratio, crop, and alignment of the final image
- Follows light and dark mode tokens
- Replaced automatically the moment you choose an image

Under the hood
Standards-Based, Top to Bottom
The framework uses WordPress Core APIs and the native block editor, so it moves forward with WordPress instead of around it.
Front end
Vanilla JavaScript
Frontend behavior is written in small, deferred vanilla modules. No jQuery is loaded on the front end.
Editor
React in the Editor
Inspector controls are built with @wordpress/scripts and core components, so they feel native to the block editor.
Server
Modern PHP
PHP 8.1 with strict types and PSR-4 services, split into Composer packages: framework, utilities, icons, DOM, hooks, and container.
Extend
Hooks and Filters
Before/after hooks on every template part and the content area, plus filters for patterns, fonts, dark mode, and more.

Editor controls
21 Controls, Inside the Native Inspector
Each control adds its CSS and script only to the blocks that use it.
- Animation
- Backdrop blur
- Box and text shadow
- CSS filters
- Transform
- Opacity
- Responsive layout
- Visibility
- Sub-heading
- Template tags and reading time
- Query layout
- Query enhancements
- Query empty state
- Image options
- Inline color
- Inline SVG
- Copy to clipboard
- Click actions
- Placeholders
- Additional styles
Why Aegis
How Aegis Differs From Other Themes
A framework built on the platform, not on top of it.
| Aegis | Typical Theme | Page Builder | |
|---|---|---|---|
| Assets loaded by default | None | Global bundle | Builder runtime |
| Front-end jQuery | No | Often | Often |
| Where you design | Site Editor | Theme options panel | Proprietary editor |
| Content after switching | Core blocks, portable | Shortcodes may remain | Locked to the builder |
| Design tokens | theme.json | Partial | Builder-specific |
| Accessibility checks | Automated WCAG 2 AA tests | Varies | Varies |
| Keeps pace with WordPress | Built on Core APIs | Depends on theme updates | Depends on builder updates |
Benefits
What It Means for Your Site
Faster Pages
Less code per page means quicker loads and better Core Web Vitals.
Less Maintenance
Core APIs and blocks mean fewer breaking changes with each WordPress release.
Portable Content
Everything is core blocks, so content survives a redesign or a theme switch.
Accessible Foundation
Landmarks, focus styles, and keyboard support are built in, aiming at WCAG 2.2 AA.
Developer-friendly
Child-theme ready, documented hooks, and typed, testable PHP.
Secure by Design
Sanitized SVG handling and no third-party runtime on the front end.
FAQ
Framework Questions
Is the framework a separate download?
No. It is bundled with the Aegis theme and works the moment you activate it.
What does “no global bundle” mean?
Aegis has no site-wide stylesheet or script file. The CSS and JavaScript on each page are built from the blocks and settings it uses, so simple pages stay light.
Do I need to know React?
No. You build with the block editor. React matters only if you want to write your own editor controls.
Does it use jQuery?
Not on the front end. Interactive features are vanilla JavaScript modules loaded only when needed.
Can I use it in a child theme?
Yes. The framework reads patterns and icons from the child theme and exposes hooks and filters for customization.
How do I change the design tokens?
In Global Styles, or in theme.json for code-level control. Style variations swap the whole token set at once.
What are the requirements?
WordPress 7.0 or later and PHP 8.1 or later.
Is it open source?
Yes. The theme and framework are GPL-2.0-or-later and developed in the open on GitHub.
Build on a Faster Foundation
Download Aegis free and see how little a page really needs to load.