Two-Tone Split Hero
Left-aligned two-line headline where the first line is near-black and the second is emerald, with a muted paragraph offset to the right column and a button pair beneath (solid emerald + white outlined). Generous whitespace on a near-white canvas.
Rebuilt from supabase.com in the Emerald Paper Precision style.
npx shadcn@latest add https://yoink-app.fly.dev/r/emerald-paper-precision/blocks/two-tone-split-hero.json
Looks exactly like supabase.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://yoink-app.fly.dev/r/emerald-paper-precision/mine/two-tone-split-hero.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: headlineTop, headlineAccent, description, primaryLabel/primaryHref, secondaryLabel/secondaryHref. All have defaults, so it renders with no props.
components/two-tone-split-hero.tsx
export default function TwoToneSplitHero({ headlineTop = "Draft in an afternoon", headlineAccent = "Grow without limits", description = "Launch your product on a reliable relational database. Add sign-in, instant APIs, serverless functions, live updates, file storage and search in a single workspace.", primaryLabel = "Get started", primaryHref = "#", secondaryLabel = "Book a walkthrough", secondaryHref = "#", }: { headlineTop?: string; headlineAccent?: string; description?: string; primaryLabel?: string; primaryHref?: string; secondaryLabel?: string; secondaryHref?: string; }) { return ( <section className="bg-canvas px-6 py-24 md:py-32"> <div className="mx-auto grid max-w-[1088px] gap-10 md:grid-cols-2 md:items-center md:gap-16"> <div> <h1 className="font-display text-[40px] font-medium leading-[1.1] tracking-[-0.03em] md:text-[48px]"> <span className="block text-ink">{headlineTop}</span> <span className="block text-brand">{headlineAccent}</span> </h1> <div className="mt-8 flex flex-wrap gap-2"> <a href={primaryHref} className="relative inline-flex h-[38px] items-center rounded-lg border border-brand bg-brand px-4 font-sans text-sm font-medium text-white transition-colors duration-hover-color ease-hover-color hover:bg-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand" > {primaryLabel} </a> <a href={secondaryHref} className="inline-flex h-[38px] items-center rounded-lg border border-hairline bg-surface px-4 font-sans text-sm font-medium text-ink transition-colors duration-hover-color ease-hover-color hover:border-hairline-strong focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand" > {secondaryLabel} </a> </div> </div> <p className="max-w-[540px] font-sans text-base leading-6 text-ink-muted md:pt-2"> {description} </p> </div> </section> ); }export default function TwoToneSplitHero({ headlineTop = "Draft in an afternoon", headlineAccent = "Grow without limits", description = "Launch your product on a reliable relational database. Add sign-in, instant APIs, serverless functions, live updates, file storage and search in a single workspace.", primaryLabel = "Get started", primaryHref = "#", secondaryLabel = "Book a walkthrough", secondaryHref = "#", }: { headlineTop?: string; headlineAccent?: string; description?: string; primaryLabel?: string; primaryHref?: string; secondaryLabel?: string; secondaryHref?: string; }) { return ( <section className="bg-background px-6 py-24 md:py-32"> <div className="mx-auto grid max-w-[1088px] gap-10 md:grid-cols-2 md:items-center md:gap-16"> <div> <h1 className="font-sans text-[40px] font-medium leading-[1.1] tracking-[-0.03em] md:text-[48px]"> <span className="block text-foreground">{headlineTop}</span> <span className="block text-primary">{headlineAccent}</span> </h1> <div className="mt-8 flex flex-wrap gap-2"> <a href={primaryHref} className="relative inline-flex h-[38px] items-center rounded-lg border border-primary bg-primary px-4 font-sans text-sm font-medium text-primary-foreground transition-colors duration-emerald-hover-color ease-emerald-hover-color hover:bg-primary/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary" > {primaryLabel} </a> <a href={secondaryHref} className="inline-flex h-[38px] items-center rounded-lg border border-border bg-card px-4 font-sans text-sm font-medium text-foreground transition-colors duration-emerald-hover-color ease-emerald-hover-color hover:border-border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary" > {secondaryLabel} </a> </div> </div> <p className="max-w-[540px] font-sans text-base leading-6 text-muted-foreground md:pt-2"> {description} </p> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.