UI.MD

Brand Marks

The real Google, GitHub, Microsoft and Apple logos, for sign-in buttons and anywhere else a provider's mark shows.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/brand-marks.json

Usage

import { GoogleMark, GitHubMark, MicrosoftMark, AppleMark } from "@/components/ui/brand-marks"

Examples

In a sign-in button

Pass the mark to iconStart and the button sizes it. Keep the button neutral: Google's rules require the four-color G, so there is no one-color version for a colored button.

All four

Google and Microsoft keep their brand colors. GitHub and Apple take the text color, so they switch with the theme.

API Reference

PropTypeDefaultDescription
...propsReact.ComponentProps<"svg">-Every <svg> prop. Size it with className (size-4) when it is not inside a Button. Hidden from screen readers; the label beside it names the provider.
...propsReact.ComponentProps<"svg">Every <svg> prop. Size it with className (size-4) when it is not inside a Button. Hidden from screen readers; the label beside it names the provider.