Skip to main content

Styles

Use Styles to control the visual appearance of the Hosted Pages login box and keep branding consistent across Auth, Profile, and Workflow pages. You create multiple style sets, mark one as Default, and use CSS variables to align surrounding page elements.

Style Sets

  • Create one or more style sets in the Admin Console
  • Mark a single style set as Default for the template
  • Duplicate and adjust style sets to test variations quickly

Properties

Most properties style the login box; Page Background can style the entire page.

  • Card: background, text color, border radius, width, padding
  • Buttons: primary background, text color, border radius
  • Inputs: background, border color, text color, radius
  • Social: button style and icon appearance
  • Footer: text and link colors
  • Page Background: overall page background color

CSS Variables

Use style‑generated CSS variables to keep page elements consistent with the login box.

CategoryPropertyCSS VariableExample Value
LogoShow Logo--sdk-show-logo"true"
LogoLogo URL--sdk-logo-url"https://example.com/logo.png"
BackgroundBackground Color--page-background"#f0f0f0"
TypographyFont Family--sdk-font-family"Arial, sans-serif"
TypographyText Alignment--sdk-text-align"center"
TypographyHeader Font Size--sdk-header-font-size"24px"
TypographyHeader Font Weight--sdk-header-font-weight700
TypographySubheader Font Size--sdk-subheader-font-size"18px"
TypographySubheader Font Weight--sdk-subheader-font-weight500
CardHover Color--sdk-brand-primary-color"#007bff"
CardPrimary Text Color--sdk-card-text-color"#333"
CardSecondary Text Color--sdk-card-subtext-color"#666"
CardBackground Color--sdk-card-bg-color"#ffffff"
CardWidth--sdk-card-width"400px"
CardPadding Top--sdk-card-padding-top"20px"
CardPadding Right--sdk-card-padding-right"20px"
CardPadding Bottom--sdk-card-padding-bottom"20px"
CardPadding Left--sdk-card-padding-left"20px"
CardBox Shadow--sdk-card-box-shadow"0 2px 4px rgba(0,0,0,0.1)"
CardBorder Radius Top Left--sdk-card-border-radius-top-left"8px"
CardBorder Radius Top Right--sdk-card-border-radius-top-right"8px"
CardBorder Radius Bottom Left--sdk-card-border-radius-bottom-left"8px"
CardBorder Radius Bottom Right--sdk-card-border-radius-bottom-right"8px"
CardBorder Width Top--sdk-card-border-top-width"1px"
CardBorder Width Right--sdk-card-border-right-width"1px"
CardBorder Width Bottom--sdk-card-border-bottom-width"1px"
CardBorder Width Left--sdk-card-border-left-width"1px"
CardBorder Color--sdk-card-border-color"#ccc"
Primary ButtonBackground Color--sdk-button-primary-bg-color"#007bff"
Primary ButtonText Color--sdk-button-primary-text-color"#ffffff"
Primary ButtonBorder Color--sdk-button-primary-border-color"#0056b3"
Primary ButtonBorder Radius--sdk-button-primary-radius"4px"
Primary ButtonBox Shadow--sdk-button-primary-shadow"0 1px 3px rgba(0,0,0,0.2)"
Secondary ButtonBackground Color--sdk-button-secondary-bg-color"#6c757d"
Secondary ButtonText Color--sdk-button-secondary-text-color"#ffffff"
Secondary ButtonBorder Color--sdk-button-secondary-border-color"#545b62"
Secondary ButtonBorder Radius--sdk-button-secondary-radius"4px"
Secondary ButtonBox Shadow--sdk-button-secondary-shadow"0 1px 3px rgba(0,0,0,0.2)"
Input FieldsBackground Color--sdk-input-bg-color"#ffffff"
Input FieldsText Color--sdk-input-text-color"#333"
Input FieldsBorder Color--sdk-input-border-color"#ccc"
LinksText Color--sdk-link-text-color"#007bff"
LinksFont Weight--sdk-link-font-weight500
SocialLayout--sdk-social-layout"horizontal"
SocialBorder Color--sdk-social-border-color"#ccc"
SocialText Color--sdk-social-text-color"#333"
SocialBackground Color--sdk-social-bg-color"#ffffff"
SocialBorder Radius--sdk-social-border-radius"4px"
SocialBox Shadow--sdk-social-box-shadow"0 1px 3px rgba(0,0,0,0.1)"
SocialShow Icon Only--sdk-social-icon-only"true"
FooterBackground Color--sdk-footer-bg-color"#f8f9fa"
FooterText Color--sdk-footer-text-color"#333"
FooterBorder Top--sdk-footer-border-top"1px solid #ccc"
AdditionalBrand Primary Ring Color--sdk-brand-primary-ring-color"#007bff"
AdditionalFavicon URL--sdk-favicon-url"https://example.com/favicon.ico"

Example (surrounding HTML):

<div style="background-color: var(--page-background);">
<h1 style="color: var(--sdk-card-text-color);">Welcome</h1>
<div id="auth-container"></div>
</div>

Example (CustomCSS targeting the login box):

.loginradius-button-container button {
background-color: var(--sdk-button-primary-bg-color);
color: var(--sdk-button-primary-text-color);
border-radius: var(--sdk-button-primary-radius);
}

Best Practices

  • Keep one strong Default style; use duplicates for experiments
  • Favor variables over hard‑coded values for maintainability
  • Validate contrast and readability across desktop and mobile
  • Preview changes in the editor before publishing