Buttons & actions / Buttons

Outline Logo Button

White pill or rounded rectangle with a 1px black border, a small logo glyph and dark label. Used in the banner and as a closing CTA.

Rebuilt from arc.net in the Obsidian Farewell Editorial style.

npx shadcn@latest add https://justyoink.it/r/obsidian-farewell-editorial/blocks/outline-cta-button.json

Looks exactly like arc.net: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: label, href (renders an anchor if set), onClick, className. Hover fills light grey over 200ms; press scales down over 150ms with an expo-out curve.

components/outline-cta-button.tsx
import { useState } from "react";

type Props = {
  label?: string;
  href?: string;
  onClick?: () => void;
  className?: string;
};

export default function OutlineLogoButton({
  label = "Download Northwind",
  href,
  onClick,
  className = "",
}: Props) {
  const [pressed, setPressed] = useState(false);
  const cls =
    "inline-flex items-center gap-2.5 h-[62px] px-6 rounded-lg border border-ink bg-canvas text-ink font-sans text-body-lg " +
    "transition-[background-color,transform] duration-200 hover:bg-surface-tint " +
    "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring " +
    "motion-reduce:transition-none " +
    className;
  const style = {
    transform: pressed ? "scale(0.96)" : "scale(1)",
    transitionDuration: pressed ? "150ms" : undefined,
    transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
  } as React.CSSProperties;
  const handlers = {
    onPointerDown: () => setPressed(true),
    onPointerUp: () => setPressed(false),
    onPointerLeave: () => setPressed(false),
    onBlur: () => setPressed(false),
  };
  const glyph = (
    <svg aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
      <path d="M3 19a9 9 0 0 1 18 0v1H3z" />
    </svg>
  );
  if (href) {
    return (
      <a href={href} className={cls} style={style} {...handlers}>
        {glyph}
        <span>{label}</span>
      </a>
    );
  }
  return (
    <button type="button" onClick={onClick} className={cls} style={style} {...handlers}>
      {glyph}
      <span>{label}</span>
    </button>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Farewell Editorial

The whole style →

Hairline FAQ Accordion

Accordions

Signature Scatter Hero

Heroes

Sticky Glass Promo Banner

Toasts & snackbars

Fading Vertical Timeline

Lists

Centered Serif Section Header

Other

Pill Tab Switcher

Tab bars