Skip to content
fse-architecture logo

FSE Architecture

fse-architecture

Oh My Brand! theme architecture and project structure. Directory layout, data flow, asset pipeline, and theme.json configuration. Use for understanding project organization.

SKILL.md

Full skill instructions

FSE Architecture

Project architecture and structure for the Oh My Brand! WordPress FSE theme.


When to Use

  • Understanding the project directory structure
  • Locating files and understanding their purpose
  • Understanding how blocks are organized
  • Understanding the build process and asset flow
  • Configuring theme.json settings

Reference Files

FilePurpose
theme.jsontheme.json structure and tokens

Project Structure

oh-my-brand/
├── AGENT.md               # AI assistant guidelines
├── functions.php          # Theme setup, hooks, registration
├── style.css              # Theme metadata (required by WP)
├── theme.json             # Global styles, settings, blocks
│
├── src/                   # Source files (@wordpress/​scripts)
│   └── blocks/           # Native WordPress blocks
│       ├── gallery/      # Gallery carousel block
│       ├── faq/          # FAQ accordion block
│       └── utils/        # Shared utilities
│
├── build/                 # Compiled output (generated)
│   └── blocks/           # Built block assets
│
├── blocks/                # ACF custom blocks
│   ├── acf-faq/          # FAQ ACF block
│   └── acf-gallery-block/# Gallery ACF block
│
├── assets/                # Static assets
│   ├── css/              # Global stylesheets
│   ├── js/               # Compiled JavaScript
│   └── icons/            # SVG icons
│
├── includes/              # PHP includes
│   ├── assets.php        # Asset registration
│   └── block-helpers.php # Block utilities
│
├── acf-json/              # ACF field groups (auto-sync)
├── patterns/              # Block patterns
├── tests/                 # Test files
└── docs/                  # Documentation

Theme Architecture

Parent-Child Relationship

WordPress Core
      │
      ▼
Ollie Parent Theme
  • Base FSE templates
  • Default block styles
      │
      ▼
Oh My Brand! Child Theme
  • Custom blocks (native + ACF)
  • Extended theme.json
  • Brand-specific styles

File Loading Order

  1. WordPress Core loads first
  2. Ollie Parent Theme functions.php
  3. Oh My Brand! functions.php
  4. theme.json merges (child overrides parent)
  5. Block assets loaded per-block when rendered

Block Organization

Native Blocks (src/​blocks/)

Built with @wordpress/​scripts, compiled to build/​blocks/:

FilePurpose
block.jsonBlock metadata
index.jsRegistration entry
edit.tsxEditor component
render.phpServer-side render
helpers.phpHelper functions
style.cssFrontend styles
view.tsFrontend Web Component

ACF Blocks (blocks/)

ACF PRO blocks, not compiled:

FilePurpose
block.jsonACF block metadata
render.phpRender template
helpers.phpHelper functions
style.cssBlock styles

Key Differences

AspectNative BlockACF Block
Locationsrc/​blocks/blocks/
Name prefixtheme-oh-my-brand/acf/
Data source$attributesget_field()
Editor UIReact componentACF fields
BuildRequiredNot required

Asset Pipeline

Build Process

Source                    Build Output
──────                    ────────────
src/​blocks/​gallery/
├── index.js         →    build/​blocks/​gallery/
├── edit.tsx              ├── index.js
├── view.ts               ├── view.js
├── style.css             ├── style-index.css
└── editor.css            └── index.css

Commands

CommandPurpose
pnpm run buildProduction build
pnpm run startWatch mode
pnpm run lintRun all linters

Asset Loading

PropertyWhen Loaded
styleBlock rendered (frontend + editor)
editorStyleBlock in editor
viewScriptBlock on frontend page

Data Flow

Native Block Data Flow

block.json (attributes) → edit.tsx (editor state)
      ↓
$attributes (saved to post)
      ↓
render.php (server render)
      ↓
view.ts (frontend interactivity)

ACF Block Data Flow

ACF Field Group (acf-json/) → WordPress Editor (ACF forms)
      ↓
get_field() (post meta)
      ↓
render.php (server render)

theme.json Configuration

Structure

See theme.json for complete structure example.

Design Tokens

Token TypeCSS Variable
Colorsvar(--wp--preset--color--primary)
Spacingvar(--wp--preset--spacing--20)
Typographyvar(--wp--preset--font-family--body)
Layoutvar(--wp--style--global--content-size)

Related Skills


References

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View