# Asterion Bricks โ€” Child theme (minimalist, Bricks-first) Custom WordPress child theme for **asterionvr.com**, built on top of [Bricks Builder](https://bricksbuilder.io). The whole site is rendered by Bricks Templates and Bricks-edited pages โ€” this theme exists only to give Bricks a design system, GDPR-compliant fonts, and the project's Custom Post Types. ## What this theme does - ๐ŸŽจ Loads `assets/css/tokens.css` on the public frontend AND inside the Bricks builder iframe โ€” so every `--color-*`, `--space-*`, `--font-*` variable defined there is available to Bricks elements via the **CSS Class** field or **Custom CSS** panel. - ๐Ÿ”ค Self-hosts Inter Variable (latin subset) for RGPD compliance, with a `` injected on every page. - ๐Ÿ“ฐ Registers two Custom Post Types โ€” `case_study` (slug `/customers/`) and `scenario` (slug `/scenarios/`) โ€” plus the shared `industry` taxonomy. - ๐Ÿ“ Adds three image sizes : `av-hero` (2400ร—1350), `av-card` (800ร—600), `av-thumb` (400ร—300). - ๐ŸŒ Ships an `asterion-bricks` text domain for future i18n. ## What this theme does NOT do (intentionally) - โŒ No `header.php` / `footer.php` / `page.php` / `front-page.php` / `index.php`. Bricks Templates (Header / Footer / Single โ€” Page) drive every screen. - โŒ No Custom Page Templates (`templates/page-*.php`). Pages render through their Bricks data (`_bricks_page_content_2` post meta). - โŒ No PHP renderers, Gutenberg block helpers, shortcodes. Content lives in Bricks data and WPML translations. If you find yourself adding any of the above back, stop and revisit `RESTART-PLAN.md` at the repo root โ€” there are usually better Bricks-native alternatives. ## File map ``` asterion-bricks/ โ”œโ”€โ”€ style.css # WP theme metadata only โ”œโ”€โ”€ functions.php # enqueue tokens, preload font, theme support, CPT include โ”œโ”€โ”€ theme.json # Gutenberg color/typo palette aligned with tokens.css โ”œโ”€โ”€ README.md # this file โ”œโ”€โ”€ inc/ โ”‚ โ””โ”€โ”€ cpt.php # case_study, scenario, industry taxonomy โ””โ”€โ”€ assets/ โ”œโ”€โ”€ css/ โ”‚ โ”œโ”€โ”€ tokens.css # design system source of truth (single file, big) โ”‚ โ””โ”€โ”€ utilities.css # skip-link, sr-only, focus-visible, reduced motion โ”œโ”€โ”€ fonts/ โ”‚ โ”œโ”€โ”€ Inter-Variable.woff2 โ”‚ โ””โ”€โ”€ Inter-Variable-Italic.woff2 โ””โ”€โ”€ img/ ``` Total : ~10 files, < 700 lines of code (with tokens.css being the lion's share). ## Where the content copy lives The textual copy from the Strategy & Content PDF (page-by-page EN copy, deliverable D.1 to D.29) lives at the repo root in `/content-source/`. Those are PHP arrays keyed by page slug โ€” they are not loaded at runtime. Their job is twofold: - **Reference** when building a Bricks page : copy/paste the appropriate strings into the Bricks elements as you build. - **Source for programmatic generation** when we replicate a Bricks-built archetype across its variants (e.g. the 4 industry detail pages, the 6 technology pillars). ## Activation 1. Install Bricks parent theme (`wp-content/themes/bricks/`) โ€” the ZIP lives in `ThirdParty/`. 2. Install + activate WPML core (also in `ThirdParty/`). 3. WP Admin โ†’ Appearance โ†’ Themes โ†’ activate **Asterion Bricks**. 4. WP Admin โ†’ Bricks โ†’ Settings โ†’ check **Page** in ยซ Builder access ยท Post types ยป. ## Tokens to know The full design system lives in `assets/css/tokens.css`. The most-referenced tokens: | Variable | Value | |---|---| | `--color-brand-navy` | `#0B1F3A` | | `--color-brand-gold` | `#C9A45A` | | `--color-text-primary` | `#0B1F3A` | | `--font-display` | Inter Display fallback to Inter | | `--font-body` | Inter | | `--space-1..32` | 8-pt grid (4px โ†’ 128px) | | `--container-max` | 1280px | | `--ease-default` | `cubic-bezier(0.16, 1, 0.3, 1)` | | `--shadow-sm`/`--shadow-md`/`--shadow-lg` | navy-tinted elevation | Reference them inside Bricks via Custom CSS: ```css %root% { background: var(--color-brand-navy); color: var(--color-text-on-dark); padding-block: var(--space-20); } ``` ## License GPL v2 or later, matching WordPress core.