npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@skybin-tech/brandkit

v1.0.24

Published

React components for brand-compliant social login buttons

Downloads

93

Readme

@skybin-tech/brandkit

A React component library providing brand-compliant social login/signup buttons for 20 platforms. Provides UI only — you wire up your own auth logic.

Features

  • 20 platform buttons with accurate brand colors, fonts, and logos
  • Light and dark themes for every button
  • Three modes: signin, signup, continue
  • Two shapes: square, rounded
  • Configurable width / height
  • Inline SVG icons — no external image assets
  • Full TypeScript support
  • Tree-shakeable ESM build (sideEffects: false)
  • Zero runtime dependencies beyond React and styled-components

Installation

npm install @skybin-tech/brandkit
# or
yarn add @skybin-tech/brandkit

Peer dependencies (must be installed separately):

npm install react react-dom styled-components

Quick Start

import { GoogleButton, GitHubButton } from '@skybin-tech/brandkit';

function LoginPage() {
  return (
    <>
      <GoogleButton onClick={() => signInWithGoogle()} />
      <GitHubButton dark onClick={() => signInWithGitHub()} />
    </>
  );
}

Available Buttons

| Component | Platform | Light default | Dark default | |---|---|---|---| | GoogleButton | Google | White + border | Dark gray bg | | GitHubButton | GitHub | White + border | Charcoal bg | | FacebookButton | Facebook | Facebook Blue bg | Dark bg + border | | LinkedInButton | LinkedIn | White + border | LinkedIn Blue bg | | AppleButton | Apple | White + border | Black bg | | MicrosoftButton | Microsoft | White + border | Dark bg | | TwitterButton | Twitter / X | White + border | Near-black bg | | DiscordButton | Discord | Blurple bg | Dark gray + border | | SlackButton | Slack | White + border | Aubergine bg | | SpotifyButton | Spotify | Green bg + black text | Dark bg + green text | | RedditButton | Reddit | Reddit Orange bg | Dark bg + orange text | | TwitchButton | Twitch | Purple bg | Black bg + purple text | | GitLabButton | GitLab | Orange bg | Dark bg + orange text | | BitbucketButton | Bitbucket | Atlassian Blue bg | Dark bg + blue text | | AmazonButton | Amazon | White + border | Dark navy bg | | TikTokButton | TikTok | Black bg | Dark bg + border | | PayPalButton | PayPal | Navy bg | Dark navy bg | | DropboxButton | Dropbox | Dropbox Blue bg | Dark bg + blue text | | ZoomButton | Zoom | Zoom Blue bg | Dark bg + blue text | | SteamButton | Steam | Dark navy bg | Darker navy bg |

Props

All buttons share the same props interface:

| Prop | Type | Default | Description | |---|---|---|---| | mode | 'signin' \| 'signup' \| 'continue' | 'signin' | Button label variant | | dark | boolean | varies by platform | Toggle dark theme | | shape | 'square' \| 'rounded' | 'square' | Border radius style | | width | string \| number | 'auto' | Button width (number = px) | | height | string \| number | '40px' | Button height (number = px) | | onClick | () => void | — | Click handler | | disabled | boolean | false | Disables the button | | className | string | — | Custom CSS class |

Platform defaults for dark

Most buttons default to dark={false}. The following default to dark={true} because their canonical brand button is dark-colored:

  • AppleButton — black is Apple's specified button color
  • LinkedInButton — blue-filled is LinkedIn's primary OAuth button
  • TwitterButton — near-black matches X's own design
  • TikTokButton — black is TikTok's specified button color
  • SteamButton — dark navy is Steam's brand color

Usage Examples

Mode variants

<GoogleButton mode="signin" />
<GoogleButton mode="signup" />
<GoogleButton mode="continue" />

Dark / light themes

// Light (default for most)
<GitHubButton dark={false} />

// Dark
<GitHubButton dark={true} />

// Apple defaults to dark — explicitly use light
<AppleButton dark={false} />

Shapes

<GoogleButton shape="square" />   // default, 4px radius
<GoogleButton shape="rounded" />  // pill shape

Custom size

<FacebookButton width={280} height={48} />
<FacebookButton width="100%" />

Disabled state

<SlackButton disabled />

With custom class

<DiscordButton className="my-login-btn" />

Tree Shaking

The package ships with "sideEffects": false and an exports field pointing to the ESM build. Modern bundlers (webpack 5+, Rollup, Vite) will automatically tree-shake unused buttons.

// Only GoogleButton will be included in your bundle
import { GoogleButton } from '@skybin-tech/brandkit';

Brand Compliance Notes

Each button follows the official brand guidelines for its platform:

  • Google — Roboto font, exact colors from Google Identity spec, hover shadow per spec
  • GitHub — GitHub Primer colors (#24292f / #ffffff)
  • Facebook — Meta blue #1877f2; dark mode uses Meta's dark UI palette
  • LinkedIn — Blue filled (#0a66c2) is the canonical OAuth button
  • Apple — Black/white only per Apple's Human Interface Guidelines, -apple-system font stack
  • Microsoft — 4-color logo with exact brand quadrant colors; Segoe UI font
  • Twitter / X — Near-black #0f1419 following current X design
  • Discord — Blurple #5865f2 on light; dark uses Discord's background palette
  • Slack — White button is the official "Sign in with Slack" style; dark uses Slack aubergine #4a154b
  • SpotifyBlack text on green (brand rule); Circular/system font; pill shape default
  • Reddit — Reddit orange #ff4500
  • Twitch — Twitch purple #9146ff; dark uses Twitch Core Black #0e0e10
  • GitLab — GitLab orange #fc6d26
  • Bitbucket — Atlassian blue #0052cc
  • AmazonWhite button is the "Sign in with Amazon" spec; orange is accent only in dark mode
  • TikTok — Black with white text; follows TikTok's login button guidelines
  • PayPal — PayPal deep navy #003087
  • Dropbox — Dropbox blue #0061ff
  • Zoom — Zoom blue #2d8cff
  • Steam — Valve/Steam dark palette

Development

yarn start           # Storybook dev server (port 6006)
yarn dev             # Vite dev server for local preview
yarn build           # Build the library to dist/
yarn build-storybook # Build Storybook static site
yarn lint            # ESLint with auto-fix
yarn format          # Prettier formatting

Changelog

v1.0.24

  • Fix: Externalize react/jsx-runtime, react/jsx-dev-runtime, and react-dom/client to eliminate CJS require() shims from the ESM build
  • Fix: Split Rollup output config per-format so "use client" banner and globals are applied correctly to ESM and UMD respectively
  • Result: dist/index.es.js now contains only import statements — no require() calls — resolving the Turbopack "dynamic usage of require is not supported" error

v1.0.23

  • Fix: Add "use client" banner to compiled output for Next.js App Router / Turbopack compatibility
  • Fix: Correct exports map — move types condition before import/require to resolve bundler warning

v1.0.22

  • Fix: Correct exports map condition order (types must precede import/require)
  • Fix: Add styled-components to devDependencies so Storybook resolves it correctly

v1.0.21

  • Add 16 new social buttons: Apple, Microsoft, Twitter/X, Discord, Slack, Spotify, Reddit, Twitch, GitLab, Bitbucket, Amazon, TikTok, PayPal, Dropbox, Zoom, Steam
  • Brand compliance audit: fixed Amazon (white is canonical), Slack (white is canonical), LinkedIn (blue-filled is canonical), Spotify (black text on green per brand rule)
  • Add dark/light themes to all buttons with brand-accurate palettes
  • Normalize prop API across all buttons (mode, dark, shape, width, height)
  • Add Storybook stories for all 20 buttons
  • Add tree-shaking support (sideEffects: false, exports field pointing to ESM build)
  • Fix: Remove hardcoded width: 240px from GitHubButton
  • Fix: Remove broken ${className} interpolation in LinkedInButton
  • Fix: Remove all: unset from FacebookButton (was breaking focus rings)
  • Fix: Wire up mode prop in FacebookButton (label was always "Continue with Facebook")
  • Update GoogleButton.types.ts: rename 'SI'|'SU'|'ctn''signin'|'signup'|'continue'

v1.0.20 and earlier

  • Initial release with Google, GitHub, Facebook, LinkedIn buttons

License

MIT — see LICENSE