Buttons & actions / Buttons

Light Pill Download Button

Soft off-white rounded button with dark text, leading Apple icon and a layered inset highlight shadow that reads as a physical key.

Rebuilt from raycast.com in the Obsidian Launcher style.

npx shadcn@latest add https://justyoink.it/r/obsidian-launcher/blocks/light-pill-button.json

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

Usage

Props: label, requirement, altLabel, legacyLabel, href. Renders the off-white keycap pill with an Apple mark that nudges 3px on hover, plus mono metadata links below.

components/light-pill-button.tsx
import { useState } from "react";

type Props = {
  label?: string;
  requirement?: string;
  altLabel?: string;
  legacyLabel?: string;
  href?: string;
};

function AppleMark({ className = "" }: { className?: string }) {
  return (
    <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true" className={className}>
      <path d="M16.4 12.6c0-2.3 1.9-3.4 2-3.5-1.1-1.600-2.800-1.800-3.400-1.800-1.400-.1-2.800.9-3.500.9-.7 0-1.800-.8-3-.8-1.500 0-3 .9-3.800 2.300-1.600 2.800-.4 7 1.200 9.300.8 1.100 1.700 2.400 2.900 2.300 1.200 0 1.600-.7 3-.7s1.800.7 3 .7c1.300 0 2.100-1.100 2.800-2.300.9-1.300 1.300-2.600 1.300-2.700 0 0-2.500-1-2.500-3.700zM14.200 5.800c.6-.8 1.100-1.900.9-3-.9 0-2.100.6-2.700 1.400-.6.700-1.100 1.800-1 2.900 1.100.1 2.100-.5 2.800-1.300z" />
    </svg>
  );
}

export default function LightPillDownloadButton({
  label = "Get for Desktop",
  requirement = "Requires a recent desktop OS and a 64-bit chip",
  altLabel = "Use the package manager",
  legacyLabel = "Older build",
  href = "#",
}: Props) {
  const [hover, setHover] = useState(false);
  return (
    <div className="flex flex-col items-center gap-4 bg-canvas p-12 font-sans">
      <a
        href={href}
        onMouseEnter={() => setHover(true)}
        onMouseLeave={() => setHover(false)}
        onFocus={() => setHover(true)}
        onBlur={() => setHover(false)}
        className="inline-flex h-10 items-center gap-2 rounded-lg bg-[#e6e6e6] px-3.5 text-ui font-medium text-surface-elevated shadow-[0_0_0_2px_rgba(0,0,0,0.5),0_0_0_0_rgba(255,255,255,0),inset_0_-1px_0.4px_rgba(0,0,0,0.2),inset_0_1px_0.4px_#fff] transition-all duration-200 ease-in-out hover:bg-white hover:shadow-[0_0_0_2px_rgba(0,0,0,0.5),0_0_14px_rgba(255,255,255,0.19),inset_0_-1px_0.4px_rgba(0,0,0,0.2),inset_0_1px_0.4px_#fff] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-accent-red"
      >
        <AppleMark className={`transition-transform duration-200 ease-in-out ${hover ? "translate-x-[3px]" : ""}`} />
        <span className="text-[#17181a]">{label}</span>
      </a>
      <p className="font-mono text-[12px] text-tertiary opacity-40">{requirement}</p>
      <div className="flex items-center gap-2 font-mono text-[12px]">
        <button type="button" className="text-[#9c9c9d] transition-colors duration-200 ease-in-out hover:text-white focus-visible:text-white">{altLabel}</button>
        <span className="text-faint">|</span>
        <button type="button" className="text-[#9c9c9d] transition-colors duration-200 ease-in-out hover:text-white focus-visible:text-white">{legacyLabel}</button>
      </div>
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Launcher

The whole style →

AI Agent Bento Showcase

Feature sections

Blog Category Filter Row

Tab bars

Frosted Pill Navbar

Headers & nav bars

Centered Glow Hero

Heroes

Launcher Window Showcase

Media & mockups

Keycap Feature Grid

Feature sections