About this set
A stack of full-width sign-in buttons and a row of round share buttons. The stack has Continue with Google, a white button with the four-colour G logo and a grey border, then GitHub on near-black, X on black and Facebook on its current blue, each with the brand mark in inline SVG beside the label. Below them sit three 52 pixel circles: Share on X, Share on LinkedIn and Copy link. Every button lifts 1.5 pixels with a soft shadow on hover. Use the stack on login and sign-up pages, and the round buttons under articles or in a share menu. The buttons are 290 pixels wide and shrink to fit narrow screens. The markup is plain buttons with type=”button”, so connect each one to your OAuth start URL or share handler with a click listener, or turn a share button into a link if it only navigates. Two colours were adjusted for contrast: the Google and share button borders use Google’s own #747775 grey, which reaches 3:1, and Facebook uses #0866ff so the white label reaches 4.5:1. The Bootstrap version uses flex utilities and rounded-circle.
What’s included
- Google, GitHub, X and Facebook sign-in buttons with inline brand SVGs
- Round share buttons for X, LinkedIn and copying a link
- Width capped at 290px and fluid below that
- Borders and brand blue adjusted for WCAG contrast
- Hover lift removed under reduced motion
Accessibility
The sign-in buttons are named by their visible text and the round buttons by aria-label, for example Share on LinkedIn; every logo SVG is aria-hidden. All are native buttons reachable with Tab, and focus draws a 2px blue outline outside the button. Under prefers-reduced-motion the hover lift and its transition are removed.
Customise it
In plain CSS change the fills on .sb-github, .sb-x and .sb-facebook and the width in .sb. In Bootstrap each brand sets --sb-bg, --sb-ink and --sb-line on its .btn-social-* class; in Tailwind edit the bg-, border- and text- utilities and max-w-[290px].

















