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.
npx shadcn@latest add https://justyoink.it/r/obsidian-farewell-editorial/mine/outline-cta-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
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> ); }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-xl border border-foreground bg-background text-foreground font-sans text-obsidian-body-lg " + "transition-[background-color,transform] duration-200 hover:bg-foreground " + "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-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- 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.