Skip to content
Storybook

Social button

Sign in with a third-party account. Brand and color themes from Figma.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Usage

  • Stack social buttons above the email form with a Divider labelled “OR”.
  • Keep the provider name in the label.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

API reference

Class / attributeTypeDescription
px-socialclassLight theme (Figma Theme = Color).
px-social--darkclassDark brand theme.

Figma properties

Social button90 variants · page “Buttons”Open
PropertyTypeValues
SocialVariantGoogle Facebook Apple Twitter Figma
Supporting textVariantTrue False
ThemeVariantBrand Color Color with brand
StateVariantDefault Hover Focused

Accessibility

  • The provider logo is decorative; the label says the provider.