Skip to content

Themes Overview

The FRS ecosystem includes two Blocksy child themes designed for Hub experiences.

Theme Comparison

FeatureWorkspacesWorkspaces Directory
PurposeLender/Agent/Partner HubsDirectory Hub
SidebarFixed 320pxFixed 320px
Menu SystemHub-specific menusTaxonomy-agnostic dynamic menus
NavigationHub shortcodesTaxonomy-based routing
Use CaseLender Hub, Agent Hub, Partner HubDirectory Hub workspace
Tutor LMSOptional supportFull dashboard integration

Shared Features

Both themes share:

  • Blocksy Parent - Requires Blocksy theme
  • Fixed Sidebar Frame - 320px persistent left sidebar
  • WordPress Interactivity API - Dynamic PHP templates with declarative interactivity
  • wp-scripts - WordPress official build tooling
  • Design Tokens - Shared color palette and typography

Design System

Color Palette

Both themes use a consistent color palette defined in theme.json:

TokenValueUsage
primary-blue#2563EBPrimary actions, links
rich-teal#20D4DAAccents, highlights
dark-charcoal#171A1FText, dark backgrounds
navy-base#263042Secondary backgrounds
off-white#F8F7F9Light backgrounds

Typography

TokenFontWeightUsage
headingMona Sans600-800Headlines
bodyMona Sans400Body text
monoui-monospace400Code

Spacing Scale

10-step spacing scale from 4px to 96px:

10: 4px   |  50: 24px  |  90: 80px
20: 8px   |  60: 32px  |  100: 96px
30: 12px  |  70: 48px
40: 16px  |  80: 64px
┌─────────────────────────────────────────────────┐
│              Blocksy Header                      │
├──────────────┬──────────────────────────────────┤
│   SIDEBAR    │     Header Bar (60px)            │
│   (320px)    │     ┌─────────────────────────┐  │
│              │     │ Toggle │ Title │ Clock  │  │
│ ┌──────────┐ │     └─────────────────────────┘  │
│ │  Header  │ ├──────────────────────────────────┤
│ │  Widget  │ │                                  │
│ │  (16:9)  │ │                                  │
│ └──────────┘ │        Main Content              │
│              │        (scrollable)              │
│ ┌──────────┐ │                                  │
│ │   Menu   │ │                                  │
│ └──────────┘ │                                  │
│              │                                  │
│ ┌──────────┐ │                                  │
│ │ Profile  │ │                                  │
│ │   Card   │ │                                  │
│ └──────────┘ │                                  │
└──────────────┴──────────────────────────────────┘

Interactivity API Stores

Both themes use WordPress Interactivity API (WP 6.5+):

StoreNamespacePurpose
Sidebar Toggleworkspaces/sidebarCollapse/expand with localStorage
Date/Timeworkspaces/datetimeLive clock display
Navigationhub-navigationHub page navigation

Custom Nav Walkers

Both themes include custom navigation walkers:

Workspace_Nav_Walker

  • Renders sidebar menu with Lucide icons
  • Collapsible submenus with chevron animation
  • Active state highlighting
  • Icon from _menu_item_icon post meta

User_Menu_Walker

  • Simple user dropdown menu
  • Icon support
  • Compact styling

Build System

bash
# Development (watch mode)
npm run start

# Production build
npm run build

Uses @wordpress/scripts for building Interactivity API view.js files and block assets.

Deployment

Both themes deploy via GitHub:

bash
# Standard workflow
git add . && git commit -m "message"
git push origin main
git checkout production && git merge main && git push origin production
git checkout main

Production: Cloudron at myhub21.com

Hub21 Platform Documentation