By default, the subscription form widget uses a neutral style that works on most pages. After you add the embed code , you can match it to your site’s visual identity by setting CSS custom properties on the pushwoosh-subscribe-widget element. The values in the tables below replace the defaults.
Developer assistance needed
You might need assistance from your development team to apply these widget style changes on your website.
Variable Description Default --esw-primary-colorPrimary color for buttons, links, and accents #0E72E5--esw-primary-hoverPrimary elements hover color #1A85FF--esw-text-colorMain text color #4B5057--esw-text-secondarySecondary text (placeholders, captions) #969CA3--esw-backgroundWidget background #FFFFFF--esw-surface-colorSurface color (hovers, secondary background) #F7F9FA--esw-border-colorBorder color #DCE1E5--esw-border-color-focusBorder color in focus state #0E72E5--esw-error-colorError color #E52E59--esw-success-colorSuccess color #479900--esw-success-bgSuccess message background #F7F9FA
Variable Description Default --esw-font-familyFont family Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif--esw-font-size-baseBase font size 14px--esw-font-size-titleTitle font size 18px--esw-font-size-labelField label font size 12px--esw-font-size-smallSmall text (errors, notes) 12px--esw-font-weight-regularRegular weight 400--esw-font-weight-mediumMedium weight 500--esw-font-weight-boldBold weight 700--esw-line-height-baseBase line height 1.4--esw-line-height-titleTitle line height 1.2
Variable Description Default --esw-input-heightInput field height 36px--esw-button-heightButton height 36px--esw-spacing-xsExtra small spacing 4px--esw-spacing-smSmall spacing 8px--esw-spacing-mdMedium spacing 16px--esw-spacing-lgLarge spacing 24px--esw-popup-widthModal width 380px--esw-popup-max-widthModal max width 90vw
Variable Description Default --esw-border-radiusCorner radius for elements 4px--esw-border-radius-popupModal corner radius 8px--esw-shadow-popupModal box shadow 0 0 6px rgba(0, 0, 0, 0.06), 0 10px 16px rgba(0, 0, 0, 0.1)
pushwoosh-subscribe-widget {
--esw-primary-color : # ff6b6b ;
--esw-border-radius : 12 px ;
--esw-font-family : " Inter " , sans-serif ;
< pushwoosh-subscribe-widget
formCode = " YOUR_FORM_CODE "
style = " --esw-primary-color: #ff6b6b; --esw-border-radius: 12px; "
></ pushwoosh-subscribe-widget >