Buttons & actions / Buttons

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://yoink-app.fly.dev/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.

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>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery Graphite Editorial

The whole style →

Outlined Arrow Pill Button

Buttons

Square Outline Cookie Panel

Toasts & snackbars

Rounded Showreel Video Frame

Media & mockups

Line-Art Blueprint Illustration

Animated graphics

Tracked Micro Label

Badges & tags

Hairline Minimal Header

Headers & nav bars