Solid Ink Pill Button
Solid #121212 pill with light uppercase text, used as the primary accept action alongside outlined and plain text actions.
Rebuilt from epic.net in the Gallery Graphite Editorial style.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/blocks/filled-pill-button.json
Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/mine/filled-pill-button.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
Pass primaryLabel, secondaryLabel and tertiaryLabel to change the text, and onPrimary/onSecondary/onTertiary for click handlers. The solid ink pill inverts to an outline on hover over 200ms; the other actions are an outlined pill and a plain text link.
components/filled-pill-button.tsx
import { useState } from "react"; type Props = { primaryLabel?: string; secondaryLabel?: string; tertiaryLabel?: string; onPrimary?: () => void; onSecondary?: () => void; onTertiary?: () => void; }; export default function SolidInkPillButton({ primaryLabel = "Accept all", secondaryLabel = "Settings", tertiaryLabel = "Deny all", onPrimary, onSecondary, onTertiary, }: Props) { const [done, setDone] = useState(false); return ( <div className="flex min-h-[200px] w-full items-center justify-center bg-canvas p-8"> <div className="flex flex-wrap items-center justify-between gap-4 sm:gap-6"> <button type="button" onClick={onTertiary} className="font-sans text-label uppercase tracking-[0.08em] text-ink underline-offset-4 transition-opacity duration-200 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ink" > {tertiaryLabel} </button> <button type="button" onClick={onSecondary} className="rounded-pill border border-ink bg-transparent px-5 py-2.5 font-sans text-[11px] font-medium uppercase tracking-[0.08em] text-ink transition-colors duration-200 ease-out hover:bg-ink hover:text-canvas focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ink" > {secondaryLabel} </button> <button type="button" aria-pressed={done} onClick={() => { setDone(true); onPrimary?.(); }} className="rounded-pill border border-[#121212] bg-[#121212] px-5 py-2.5 font-sans text-[11px] font-medium uppercase tracking-[0.08em] text-white transition-colors duration-200 ease-out hover:bg-transparent hover:text-[#121212] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ink" > {primaryLabel} </button> </div> </div> ); }import { useState } from "react"; type Props = { primaryLabel?: string; secondaryLabel?: string; tertiaryLabel?: string; onPrimary?: () => void; onSecondary?: () => void; onTertiary?: () => void; }; export default function SolidInkPillButton({ primaryLabel = "Accept all", secondaryLabel = "Settings", tertiaryLabel = "Deny all", onPrimary, onSecondary, onTertiary, }: Props) { const [done, setDone] = useState(false); return ( <div className="flex min-h-[200px] w-full items-center justify-center bg-background p-8"> <div className="flex flex-wrap items-center justify-between gap-4 sm:gap-6"> <button type="button" onClick={onTertiary} className="font-sans text-gallery-label uppercase tracking-[0.08em] text-foreground underline-offset-4 transition-opacity duration-200 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-foreground" > {tertiaryLabel} </button> <button type="button" onClick={onSecondary} className="rounded-full border border-foreground bg-transparent px-5 py-2.5 font-sans text-[11px] font-medium uppercase tracking-[0.08em] text-background transition-colors duration-200 ease-out hover:bg-foreground hover:text-background focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-foreground" > {secondaryLabel} </button> <button type="button" aria-pressed={done} onClick={() => { setDone(true); onPrimary?.(); }} className="rounded-full border border-foreground bg-foreground px-5 py-2.5 font-sans text-[11px] font-medium uppercase tracking-[0.08em] text-background transition-colors duration-200 ease-out hover:bg-transparent hover:text-background focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-foreground" > {primaryLabel} </button> </div> </div> ); }
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.