Blog Post
Full blog article pages — an inline hero article, a long-form body with table of contents, and a floating-header layout with related posts.
Preview
@props([])
{{-- Blog post page — composes marketing blocks around an inline article body built from primitives. --}}
<div class="min-h-screen bg-background text-foreground">
<x-blocks.header-navbar brand="Northstar" cta="{{ __('Get started') }}" />
<main>
<article class="mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-24 lg:px-8">
{{-- Category + title --}}
<header class="text-center">
<x-ui.badge variant="secondary">{{ __('Engineering') }}</x-ui.badge>
<h1 class="mt-6 text-balance text-4xl font-bold tracking-tight sm:text-5xl">
{{ __('Designing a token-first UI system your whole team can ship on') }}
</h1>
{{-- Meta row --}}
<div class="mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-4 text-sm text-muted-foreground">
<div class="flex items-center gap-4">
<x-ui.avatar size="sm" fallback="MS" alt="{{ __('Mara Singh') }}" />
<span class="font-medium text-foreground">{{ __('Mara Singh') }}</span>
</div>
<x-ui.separator orientation="vertical" class="h-4" />
<time datetime="2026-06-15">{{ __('June 15, 2026') }}</time>
<x-ui.separator orientation="vertical" class="h-4" />
<span>{{ __('8 min read') }}</span>
</div>
</header>
{{-- Hero image area --}}
<figure class="mt-12">
<div class="aspect-[16/9] w-full rounded-lg bg-muted" role="img" aria-label="{{ __('Article hero illustration') }}"></div>
<figcaption class="mt-4 text-center text-sm text-muted-foreground">
{{ __('Semantic tokens flow from a single source of truth into every surface.') }}
</figcaption>
</figure>
{{-- Article body --}}
<div class="mt-12 space-y-6 text-sm leading-relaxed text-muted-foreground">
<p>
{{ __('Most design systems start strong and drift within a quarter. A button gets a one-off shade here, a card borrows a hard-coded radius there, and before long the codebase carries a dozen near-identical components nobody trusts. The fix is rarely more components — it is fewer, sharper decisions encoded as tokens.') }}
</p>
<p>
{{ __('When colour, spacing, radius and motion live as named tokens instead of literal values, a theme change becomes a config edit rather than a search-and-replace marathon. Components stop owning appearance and start owning behaviour, which is exactly where their value lives.') }}
</p>
<h2 class="pt-6 text-2xl font-bold tracking-tight text-foreground">{{ __('Start with the smallest stable primitive') }}</h2>
<p>
{{ __('Every robust system bottoms out in a handful of primitives — a button, a badge, an avatar, a separator. Get their data-slots, focus rings and dark-mode behaviour right once, and every block you compose inherits that quality for free. Skip this step and you will paper over the gaps in each new layout.') }}
</p>
<blockquote class="border-s-4 border-primary ps-6 text-2xl font-medium italic text-foreground">
{{ __('A design system is not a library of components. It is a set of agreements your team can ship on without re-litigating them.') }}
</blockquote>
<h2 class="pt-6 text-2xl font-bold tracking-tight text-foreground">{{ __('Compose, don\'t copy') }}</h2>
<p>
{{ __('Once the primitives are solid, blocks are mostly arrangement. A pricing section is cards in a grid; a marketing page is blocks in an order. Because the appearance is delegated to tokens, you can drop the same block into a customer site or an admin surface and it adapts to its context automatically.') }}
</p>
<p>
{{ __('The payoff compounds. New contributors ship on-brand work on day one, audits get boring in the best way, and the system survives the redesign that kills most others.') }}
</p>
</div>
{{-- Tags --}}
<div class="mt-12 flex flex-wrap items-center gap-2">
<span class="text-sm font-medium text-foreground">{{ __('Tagged') }}</span>
<x-ui.badge variant="outline">{{ __('Design systems') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Tokens') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Laravel') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Blade') }}</x-ui.badge>
</div>
<x-ui.separator class="my-10" />
{{-- Share / back row --}}
<div class="flex flex-wrap items-center justify-between gap-4">
<x-ui.button href="#" variant="outline" size="sm">{{ __('Back to blog') }}</x-ui.button>
<div class="flex items-center gap-2">
<x-ui.button variant="ghost" size="sm">{{ __('Share') }}</x-ui.button>
<x-ui.button variant="ghost" size="sm">{{ __('Copy link') }}</x-ui.button>
</div>
</div>
</article>
<x-blocks.waitlist />
</main>
<x-blocks.footer-columns brand="Northstar" />
</div>
Installation
php artisan ui:add pages/blog-post-inline
Registry contract
Install confidence
php artisan ui:add pages/blog-post-inline
writes only the generated targets below. The CLI validates each file hash before writing and
prompts before replacing local changes unless --force is used.
- Version
- 1.0.6
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/pages/blog-post-inline.blade.php |
Registry dependencies
Package dependencies
composer: jml/brok:^0.2
Use with AI
A brief for your coding agent: what the page is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this page in an assistant.
# Brok UI page: Blog Post (`blog-post-inline`)
A full blog article detail page composing a navbar, an inline article body with hero, prose, pull-quote and tags, a newsletter CTA and a footer.
Brok UI is a Laravel Blade registry. `ui:add` copies this page into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.
## Install
```bash
php artisan ui:add pages/blog-post-inline
```
## Render it
```blade
<x-pages.blog-post-inline />
```
## Use when
- A blog article detail page: a navbar, an inline article body with a hero image, prose, a pull-quote and tags, a newsletter call-to-action and a footer.
- It composes blocks/header-navbar, blocks/waitlist, blocks/footer-columns and primitives (avatar, badge, separator, button) for the article body.
## Avoid when
- Wanting a table-of-contents article layout; use blog-post-with-toc instead. Wanting related posts instead of a newsletter call-to-action; use blog-post-related instead.
## Rules
- Render the installed page with `<x-pages.blog-post-inline />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.
## Links
- Docs: https://brokui.dev/pages/blog-post-inline
- Registry JSON (files, props, contract): https://brokui.dev/r/open/pages/blog-post-inline.json
Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.
Guidance
Use when
- A blog article detail page: a navbar, an inline article body with a hero image, prose, a pull-quote and tags, a newsletter call-to-action and a footer.
- It composes blocks/header-navbar, blocks/waitlist, blocks/footer-columns and primitives (avatar, badge, separator, button) for the article body.
Avoid when
- Wanting a table-of-contents article layout; use blog-post-with-toc instead. Wanting related posts instead of a newsletter call-to-action; use blog-post-related instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
Usage
Render the page as a component, or wire it to a route. Pass data where useful:
<x-pages.blog-post-inline />
Built from blocks & primitives
This page composes installed <brok:*> primitives and semantic design
tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by
editing CSS variables; flip the preview to RTL to confirm it mirrors.
Source
The exact, editable file ui:add writes
into your app. The preview above renders this same source — there are no preview-only pages.
@props([])
{{-- Blog post page — composes marketing blocks around an inline article body built from primitives. --}}
<div class="min-h-screen bg-background text-foreground">
<x-blocks.header-navbar brand="Northstar" cta="{{ __('Get started') }}" />
<main>
<article class="mx-auto max-w-3xl px-4 py-16 sm:px-6 sm:py-24 lg:px-8">
{{-- Category + title --}}
<header class="text-center">
<x-ui.badge variant="secondary">{{ __('Engineering') }}</x-ui.badge>
<h1 class="mt-6 text-balance text-4xl font-bold tracking-tight sm:text-5xl">
{{ __('Designing a token-first UI system your whole team can ship on') }}
</h1>
{{-- Meta row --}}
<div class="mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-4 text-sm text-muted-foreground">
<div class="flex items-center gap-4">
<x-ui.avatar size="sm" fallback="MS" alt="{{ __('Mara Singh') }}" />
<span class="font-medium text-foreground">{{ __('Mara Singh') }}</span>
</div>
<x-ui.separator orientation="vertical" class="h-4" />
<time datetime="2026-06-15">{{ __('June 15, 2026') }}</time>
<x-ui.separator orientation="vertical" class="h-4" />
<span>{{ __('8 min read') }}</span>
</div>
</header>
{{-- Hero image area --}}
<figure class="mt-12">
<div class="aspect-[16/9] w-full rounded-lg bg-muted" role="img" aria-label="{{ __('Article hero illustration') }}"></div>
<figcaption class="mt-4 text-center text-sm text-muted-foreground">
{{ __('Semantic tokens flow from a single source of truth into every surface.') }}
</figcaption>
</figure>
{{-- Article body --}}
<div class="mt-12 space-y-6 text-sm leading-relaxed text-muted-foreground">
<p>
{{ __('Most design systems start strong and drift within a quarter. A button gets a one-off shade here, a card borrows a hard-coded radius there, and before long the codebase carries a dozen near-identical components nobody trusts. The fix is rarely more components — it is fewer, sharper decisions encoded as tokens.') }}
</p>
<p>
{{ __('When colour, spacing, radius and motion live as named tokens instead of literal values, a theme change becomes a config edit rather than a search-and-replace marathon. Components stop owning appearance and start owning behaviour, which is exactly where their value lives.') }}
</p>
<h2 class="pt-6 text-2xl font-bold tracking-tight text-foreground">{{ __('Start with the smallest stable primitive') }}</h2>
<p>
{{ __('Every robust system bottoms out in a handful of primitives — a button, a badge, an avatar, a separator. Get their data-slots, focus rings and dark-mode behaviour right once, and every block you compose inherits that quality for free. Skip this step and you will paper over the gaps in each new layout.') }}
</p>
<blockquote class="border-s-4 border-primary ps-6 text-2xl font-medium italic text-foreground">
{{ __('A design system is not a library of components. It is a set of agreements your team can ship on without re-litigating them.') }}
</blockquote>
<h2 class="pt-6 text-2xl font-bold tracking-tight text-foreground">{{ __('Compose, don\'t copy') }}</h2>
<p>
{{ __('Once the primitives are solid, blocks are mostly arrangement. A pricing section is cards in a grid; a marketing page is blocks in an order. Because the appearance is delegated to tokens, you can drop the same block into a customer site or an admin surface and it adapts to its context automatically.') }}
</p>
<p>
{{ __('The payoff compounds. New contributors ship on-brand work on day one, audits get boring in the best way, and the system survives the redesign that kills most others.') }}
</p>
</div>
{{-- Tags --}}
<div class="mt-12 flex flex-wrap items-center gap-2">
<span class="text-sm font-medium text-foreground">{{ __('Tagged') }}</span>
<x-ui.badge variant="outline">{{ __('Design systems') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Tokens') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Laravel') }}</x-ui.badge>
<x-ui.badge variant="outline">{{ __('Blade') }}</x-ui.badge>
</div>
<x-ui.separator class="my-10" />
{{-- Share / back row --}}
<div class="flex flex-wrap items-center justify-between gap-4">
<x-ui.button href="#" variant="outline" size="sm">{{ __('Back to blog') }}</x-ui.button>
<div class="flex items-center gap-2">
<x-ui.button variant="ghost" size="sm">{{ __('Share') }}</x-ui.button>
<x-ui.button variant="ghost" size="sm">{{ __('Copy link') }}</x-ui.button>
</div>
</div>
</article>
<x-blocks.waitlist />
</main>
<x-blocks.footer-columns brand="Northstar" />
</div>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.6 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0