shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
A compact centered hero on a tactile surface, for React with Base UI, shown here for Pressmark, a writing app. A sheet of paper sits between the page's solid side rails, framed by hairlines with + marks on its four corners. Paper lays a fine texture over it: a tooth of noise lit from the top left, a soft mottle and a scatter of short ink fibres, drawn in your theme's card and foreground colours, so it adds warmth without competing with the words. On it sit an announcement pill that links to the latest release, a two-line headline, a short promise, three features in a row and two actions: the filled Shine Button and an outline Button. Built with Paper, Guides, Announcement, Badge, Status, Shine Button and Button, with Lucide icons, Tailwind CSS and a CSS entrance that stays still under reduced motion. For writing tools, editorial products, design platforms and any hero that should feel crafted rather than flat.
FAQ
How do I make the texture stronger or fainter?
Use Paper's props. fibers sets how many fibres lie in the sheet (0.28 here; 0 for none, up to 1), and fiberColor their ink, your foreground colour by default. bg-card on the Paper keeps the sheet your theme's card colour; for a sheet of another colour, such as a cream, pass color with tint={1}. crumple adds soft creases for a sheet that was folded.
Why a paper texture instead of a flat noise layer?
A single noise filter at low opacity reads as a dirty screen in some themes and vanishes in others. Paper is a sheet: the noise is a tooth lit from one side, with a soft mottle and a few fibres, and it takes the theme's colours, so it looks like paper in light and dark mode and in every preset. For moving film grain instead, put Grain in its place, with bg-card on it, since Grain lays its speckle over the element's own background.
How is the sheet framed, and can I drop the frame?
The sheet's wrapper is relative and starts with <Guides extend="sm" marks="corners" />, which draws four hairlines around it that run a little past each corner, with a + mark on each. The sheet itself is square and has only a faint shadow, so the hairlines are its edge. Delete that one line and the sheet stands on its own; the page's rails and top rule come from the Guides at the top of the column and stay either way.
Does the texture move?
Barely. The light on the sheet swings a few degrees and back, in a WebGL scene that runs only while it's on screen; the fibres and the mottle hold still. With reduced motion the sheet is still, and the copy's entrance, a short CSS fade and rise in sequence, is skipped. The Shine Button's light only runs when the pointer arrives, the button takes keyboard focus or it's pressed, and with reduced motion it fades in where it stands.
Is it accessible, and where do the links go?
The texture sits under the content, is hidden from assistive technology and never takes the pointer, and it's faint enough that the headline, the promise and the features keep their contrast in light and dark mode. In forced colors mode it's hidden. The headline is the page's one h1, the check marks and the status dot are decorative, and the pill and both actions are links named by their text, all pointing at # for you to replace. On Base UI each button renders its link with render={<a href="#" />} and nativeButton={false}.
How does the hero fit on a phone?
Below the sm breakpoint the sheet sits one gutter in from the rails, the headline drops its forced line break and wraps, balanced, at text-4xl, and the three features wrap onto two centered lines. The two actions stack, and the Shine Button ends about 460 px down the first screen. The texture's tiles keep their size at any width, so it never stretches or blurs. From lg the sheet is 48 rem wide and centered between the rails.





