OG Image
Open Graph social-card templates (1200×630) — minimal, editorial, product, profile, stat, quote and more — token-themed and ready to screenshot in an OG route.
Preview
@props([
'kicker' => 'Feature',
'title' => 'Design that ships itself',
'meta' => 'Issue 04 — 2026',
'ghost' => 'Design',
'brand' => 'ogimagecn',
'logo' => null,
])
{{--
Open Graph card — "Editorial". A poster-style 1200×630 card on a light
editorial surface: a giant faint ghost word anchored to the bottom-end, a
kicker pill at the top-start, a massive display title, and a bottom row
(separated by a top border) carrying the brand mark and muted meta. Adapted
from ogimagecn.com to our system: the rose accent maps to the `destructive`
token, the warm paper background becomes `bg-muted`, and the card follows
the active theme. Render it inside a 1200×630 viewport in your OG image
route (e.g. a Browsershot screenshot) for pixel-accurate social cards.
--}}
<figure
data-slot="og-image"
data-variant="editorial"
{{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col justify-between overflow-hidden rounded-lg border border-border bg-muted p-8 text-foreground sm:p-12 lg:p-20']) }}
>
{{-- Oversized faint ghost word anchored to the bottom-end (decorative). --}}
<span
aria-hidden="true"
class="pointer-events-none absolute -bottom-12 end-0 -z-10 select-none text-[10rem] font-bold leading-none tracking-tight text-foreground/5 sm:text-[16rem] lg:text-[22rem]"
>{{ __($ghost) }}</span>
<x-ui.badge variant="destructive" class="self-start uppercase tracking-wide">{{ __($kicker) }}</x-ui.badge>
<figcaption class="max-w-4xl">
<h2 class="text-balance text-5xl font-bold leading-[0.98] tracking-tight sm:text-7xl lg:text-8xl">{{ __($title) }}</h2>
</figcaption>
<div class="flex items-center justify-between border-t border-border pt-8">
<div class="flex items-center gap-4">
@if ($logo)
<img src="{{ $logo }}" alt="" class="size-7 rounded-md object-contain sm:size-8" />
@else
<span class="size-7 rounded-md bg-destructive sm:size-8" aria-hidden="true"></span>
@endif
<span class="text-lg font-bold sm:text-2xl">{{ __($brand) }}</span>
</div>
<p class="text-sm text-muted-foreground sm:text-xl">{{ __($meta) }}</p>
</div>
</figure>
Installation
php artisan ui:add blocks/og-image-editorial
Registry contract
Install confidence
php artisan ui:add blocks/og-image-editorial
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.3
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/og-image-editorial.blade.php |
Registry dependencies
Package dependencies
composer: jml/brok:^0.2
Use with AI
A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.
# Brok UI block: OG Editorial (`og-image-editorial`)
A poster-style Open Graph card on a light editorial surface with a giant ghost word, a kicker pill, a massive display title and a bordered brand/meta footer.
Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.
## Install
```bash
php artisan ui:add blocks/og-image-editorial
```
## Render it
```blade
<x-blocks.og-image-editorial />
```
## Props
- `kicker` (string, default `Feature`) — Small kicker badge shown above the title.
- `title` (string, default `Design that ships itself`) — Large display headline.
- `meta` (string, default `Issue 04 — 2026`) — Meta text shown in the bottom-end of the footer row.
- `ghost` (string, default `Design`) — Word rendered as the oversized faint background type.
- `brand` (string, default `ogimagecn`) — Brand name shown beside the logo mark in the footer.
- `logo` (mixed|null, default `null`) — Optional logo image URL; falls back to a solid token square when null.
## Use when
- Use for a poster-style editorial card on a light muted surface, with a giant faint ghost word, a kicker pill and a massive display title.
- Suited to magazine-style feature articles or issue-based content where a strong typographic poster look fits better than a photo card.
## Avoid when
- Avoid when a photo, product shot or author byline is central to the story; use og-image-photo (photo) or og-image-blog (blog) instead.
## Rules
- Render the installed block with `<x-blocks.og-image-editorial />` 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/blocks/og-image-editorial
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/og-image-editorial.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
- Use for a poster-style editorial card on a light muted surface, with a giant faint ghost word, a kicker pill and a massive display title.
- Suited to magazine-style feature articles or issue-based content where a strong typographic poster look fits better than a photo card.
Avoid when
- Avoid when a photo, product shot or author byline is central to the story; use og-image-photo (photo) or og-image-blog (blog) instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.og-image-editorial />
Built from primitives
This block 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 blocks.
@props([
'kicker' => 'Feature',
'title' => 'Design that ships itself',
'meta' => 'Issue 04 — 2026',
'ghost' => 'Design',
'brand' => 'ogimagecn',
'logo' => null,
])
{{--
Open Graph card — "Editorial". A poster-style 1200×630 card on a light
editorial surface: a giant faint ghost word anchored to the bottom-end, a
kicker pill at the top-start, a massive display title, and a bottom row
(separated by a top border) carrying the brand mark and muted meta. Adapted
from ogimagecn.com to our system: the rose accent maps to the `destructive`
token, the warm paper background becomes `bg-muted`, and the card follows
the active theme. Render it inside a 1200×630 viewport in your OG image
route (e.g. a Browsershot screenshot) for pixel-accurate social cards.
--}}
<figure
data-slot="og-image"
data-variant="editorial"
{{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col justify-between overflow-hidden rounded-lg border border-border bg-muted p-8 text-foreground sm:p-12 lg:p-20']) }}
>
{{-- Oversized faint ghost word anchored to the bottom-end (decorative). --}}
<span
aria-hidden="true"
class="pointer-events-none absolute -bottom-12 end-0 -z-10 select-none text-[10rem] font-bold leading-none tracking-tight text-foreground/5 sm:text-[16rem] lg:text-[22rem]"
>{{ __($ghost) }}</span>
<x-ui.badge variant="destructive" class="self-start uppercase tracking-wide">{{ __($kicker) }}</x-ui.badge>
<figcaption class="max-w-4xl">
<h2 class="text-balance text-5xl font-bold leading-[0.98] tracking-tight sm:text-7xl lg:text-8xl">{{ __($title) }}</h2>
</figcaption>
<div class="flex items-center justify-between border-t border-border pt-8">
<div class="flex items-center gap-4">
@if ($logo)
<img src="{{ $logo }}" alt="" class="size-7 rounded-md object-contain sm:size-8" />
@else
<span class="size-7 rounded-md bg-destructive sm:size-8" aria-hidden="true"></span>
@endif
<span class="text-lg font-bold sm:text-2xl">{{ __($brand) }}</span>
</div>
<p class="text-sm text-muted-foreground sm:text-xl">{{ __($meta) }}</p>
</div>
</figure>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.3 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0