- LaralCN-UI: shadcn-style Blade components and blocks you own · part 22 of 26
- Laravel
- Frontend
- UI
- LaralCN-UI
LaralCN-UI social card: Plate II, drawn in the site's own colours
The link preview for LaralCN-UI still showed Plate I from August: a warm brown plate with 25 components, for a library that now has 41. I redrew it as Plate II in the docs site's own dark tokens, and found that every Arabic page had been pointing its preview at a 404.
5 min read
The link preview for LaralCN-UI still showed Plate I from August: a warm brown plate with 25 components, for a library that now has 41. I redrew it as Plate II in the docs site's own dark tokens, and found that every Arabic page had been pointing its preview at a 404.
Plate I had fallen behind
Plate I went in on 2 August. It was a "taxonomic plate": every component drawn as a small numbered specimen, the way a natural history book lays out beetles, on warm paper tones with Jura for the wordmark and Red Hat Mono for labels. It described the library as it was then, 25 primitives.
Since then the registry gained ten more components, then the six new ones from PR #7. Anyone sharing a link to the docs got a card advertising 25 components on a site that listed 41. The colours were wrong as well: the site has never been brown, so the preview looked nothing like the page it opened.
Same rules, different substrate
The plate follows a design philosophy I wrote for Plate I, kept in design/og/PHILOSOPHY.md. Its core rule is that every mark must survive alone, cut from the composition, the same idea as a component you copy into your own app. Plate II keeps every rule and changes the material. The new section in that file puts it this way: "Plate I was printed on warm paper; Plate II is printed in the colours of the house it describes."
In practice that means the colours come straight from the site's dark theme. build.py declares them at the top:
GROUND = "#0A0A0A" # --background oklch(0.145 0 0)
INK_1 = "#FAFAFA" # --foreground oklch(0.985 0 0)
INK_2 = "#A1A1A1" # --muted-foreground
INK_3 = "#5C5C5C" # hairline / tertiary
INK_4 = "#262626" # --muted / --accent
ACCENT = "#155DFC" # brand blue from --sidebar-primary, one step lighter so it reads at 9px; used exactly three times
The accent is rationed. Blue appears on the switch thumb, once more on the 0 beside "dependencies", and a last time on the closing corner mark. Everything else is neutral. The type moved to the site's too: Instrument Sans, the face the docs are set in, for the wordmark, and Geist Mono for the labels.
Sixteen new specimens
Going from 25 to 41 specimens means a 7 by 6 grid, with one cell left over. Each specimen is drawn in a 96 by 46 box and set at 0.8 scale, with the same line weights as Plate I, so the new drawings should be impossible to pick out.
Sixteen were new. Ten of them were components that already existed but had arrived after August: alert-dialog, aspect-ratio, carousel, hover-card, pagination, progress, scroll-area, slider, toggle, toggle-group. The other six came from PR #7: combobox, command, data-table, date-picker, file-upload and stepper.
The data column beside the grid lists 41 components, 15 blocks, 0 dependencies, LTR and RTL, and Tailwind v4.
How the image gets built
There is no design tool in the loop. python3 design/og/build.py writes og.html, an SVG plate that loads the fonts from design/og/fonts/. Chrome renders that page at device scale factor 2 into design/og/og-image.png, and the result is scaled down to 1200 by 630 for website/public/og-image.png, which comes out at 103 KB.
The Arabic pages pointed at a 404
While wiring the new image in, I checked the tags on an Arabic page and found the bug. The layout built the image URL with url('og-image.png'). Since the RTL work in part 9, a middleware makes url() and route() add the /ar prefix on Arabic pages, so every Arabic page advertised /ar/og-image.png. That file does not exist. Anyone sharing an Arabic docs link got a preview with no image.
asset() does not get the prefix, so the fix is one function. The tags also moved out of the main layout into one partial, partials/og.blade.php, which the block full-screen preview now includes too; before this it had no social tags at all:
@php
$ogImage = asset('og-image.png') . '?v=2';
$ogLocale = app()->getLocale() === 'ar' ? 'ar_AR' : 'en_US';
@endphp
<meta property="og:locale" content="{{ $ogLocale }}">
<meta property="og:image" content="{{ $ogImage }}">
The ?v=2 is there because crawlers cache previews by URL. With the same filename and the same URL, a crawler that already cached Plate I has no reason to fetch the file again. Arabic pages also get og:locale set to ar_AR and an Arabic alt text through __(). I checked the tags on /, /ar/components/button and both block previews, and the 15 website tests still pass.
The GitHub page caught up too
The repository itself was the last stale surface. I set its description to "shadcn-style Blade components for Laravel that you copy into your app and own. Tailwind v4, no JS package, RTL ready. 41 components and 15 blocks.", pointed its website field at the docs, and added 16 topics, from laravel and blade-components to rtl, arabic and tailwind-v4.
Where it is
composer require --dev safi/laralcn-ui
php artisan ui:init
php artisan ui:add button
Share https://laralcn-ui.abdulkadersafi.com (or any /ar/... page) to see Plate II. The philosophy and the build script are in design/og/ on GitHub: https://github.com/Abdulkader-Safi/LaralCN-UI. MIT licensed.
Next: usage examples for every component, from click handlers and forms to Livewire and Alpine.
Last updated 1 Dec 2026 · filed under Laravel, frontend, ui, laralcn-ui