Skip to main content

Button Customization

OneTap Login offers extensive customization options for the "Sign in with Google" button. This guide covers all available styling options.

Button Preview Panel

The settings page includes a live preview showing your button in real-time:

Settings Button Preview Panel

Features:

  • Updates instantly as you change settings
  • Shows button on both light and dark backgrounds
  • Displays actual Google button component

FREE Customization Options

These options are available in the free version.

Button Text

Field: Button text Default: continue_with

Controls the text displayed on the button.

ValueDisplayed TextBest For
continue_with"Continue with Google"General use, returning users
signin_with"Sign in with Google"Login pages
signup_with"Sign up with Google"Registration pages
signin"Sign in"Compact layouts

Button Text Options

Recommendation

Use "Continue with Google" for most sites—it works for both new and returning users.

Button Theme

Field: Theme Default: filled_blue

Controls the button's color scheme.

Outline (Light)

Theme: outline

Button Theme Outline

  • White background
  • Gray border
  • Dark text
  • Best for: Dark backgrounds, minimalist designs

Filled Blue

Theme: filled_blue

Button Theme Filled Blue

  • Google blue background (#4285F4)
  • White text
  • High visibility
  • Best for: Most websites, calls-to-action

Filled Black

Theme: filled_black

Button Theme Filled Black

  • Black/dark background
  • White text
  • Neutral appearance
  • Best for: Modern designs, dark themes

Button Shape

Field: Shape Default: pill

Controls the button's corner style.

Pill (Rounded)

Shape: pill

Button Shape Pill

  • Fully rounded corners
  • Modern appearance
  • Friendly, approachable feel

Rectangular

Shape: rectangular

Button Shape Rectangular

  • Square corners
  • Traditional appearance
  • Professional, corporate feel

PRO Customization Options

These options require OneTap Login PRO.

Button Type

Field: Button type Default: standard

TypeDescriptionDimensions
standardFull button with textVariable width
iconGoogle "G" logo onlyFixed square

Icon mode:

  • Compact for tight spaces
  • Shows only the Google "G"
  • Good for social login button rows

Button Size

Field: Button size Default: large

SizeHeightUse Case
large40pxDefault, most visible
medium32pxCompact layouts
small20pxInline with text

Button Size Comparison

Button Width

Field: Button width Default: auto

OptionBehavior
autoFits content
Fixed (px)Specific width (200-400px)
100%Full container width

Custom width examples:

200px - Compact
300px - Standard
400px - Wide
100% - Full width

Button Alignment

Field: Button alignment Default: center

AlignmentCSS
lefttext-align: left
centertext-align: center
righttext-align: right

Button Alignment Options

Logo Alignment

Field: Logo alignment Default: left

Controls where the Google "G" logo appears:

AlignmentAppearance
left[G] Continue with Google
centerContinue [G] with Google

Theme Compatibility

Light Backgrounds

Recommended settings:

Theme: filled_blue or filled_black
Shape: pill or rectangular

The blue and black themes provide good contrast on white/light backgrounds.

Dark Backgrounds

Recommended settings:

Theme: outline
Shape: pill or rectangular

The outline theme provides visibility on dark backgrounds.

Brand Color Matching

Your BrandRecommended Theme
Blue-focusedfilled_blue
Minimalistoutline
Dark/modernfilled_black
Colorfuloutline (neutral)

CSS Customization

For advanced styling, you can add custom CSS:

/* Container wrapper */
.onetap-button-wrapper {
margin: 20px 0;
}

/* Button alignment override */
.onetap-button-wrapper.align-center {
text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
.onetap-button-wrapper {
width: 100%;
}
}
Google's Brand Guidelines

Google requires specific branding for their sign-in buttons. Major visual changes may violate their guidelines. The plugin's options are pre-approved by Google.

Skeleton Loading (CLS Prevention)

The plugin includes a skeleton placeholder to prevent layout shift:

CLS Skeleton Loading

How it works:

  1. Placeholder shown immediately on page load
  2. Same dimensions as final button
  3. Google button loads and replaces placeholder
  4. No layout shift (good Core Web Vitals)

Skeleton appearance:

  • Gray background
  • Matches button dimensions
  • Subtle pulse animation

Configuration Examples

Default E-commerce

Text: continue_with
Theme: filled_blue
Shape: pill
Size: large (PRO)
Alignment: center (PRO)

Best for: Most WooCommerce stores

Corporate / B2B

Text: signin_with
Theme: filled_black
Shape: rectangular
Size: large (PRO)
Alignment: left (PRO)

Best for: Professional services, B2B portals

Minimalist Blog

Text: signin
Theme: outline
Shape: pill
Size: medium (PRO)
Alignment: center (PRO)

Best for: Clean, minimal designs

Mobile-First

Text: continue_with
Theme: filled_blue
Shape: pill
Size: large (PRO)
Width: 100% (PRO)

Best for: Mobile-optimized sites

Settings Summary

SettingOptionsDefaultVersion
Button text4 optionscontinue_withFREE
Theme3 optionsfilled_blueFREE
Shape2 optionspillFREE
Type2 optionsstandardPRO
Size3 optionslargePRO
Widthauto/fixed/100%autoPRO
Alignment3 optionscenterPRO
Logo alignment2 optionsleftPRO

Preview Checklist

Before saving, verify in the preview:

  • Button visible on light background
  • Button visible on dark background (if applicable)
  • Text is readable
  • Size appropriate for your layout
  • Alignment matches your design

Next Steps