বিষয়বস্তুতে যান

Customize the subscription form widget

এই বিষয়বস্তু এখনও আপনার ভাষায় উপলব্ধ নয়।

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.

Customize colors

Anchor link to
VariableDescriptionDefault
--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

Typography

Anchor link to
VariableDescriptionDefault
--esw-font-familyFont familyRoboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
--esw-font-size-baseBase font size14px
--esw-font-size-titleTitle font size18px
--esw-font-size-labelField label font size12px
--esw-font-size-smallSmall text (errors, notes)12px
--esw-font-weight-regularRegular weight400
--esw-font-weight-mediumMedium weight500
--esw-font-weight-boldBold weight700
--esw-line-height-baseBase line height1.4
--esw-line-height-titleTitle line height1.2

Sizes and spacing

Anchor link to
VariableDescriptionDefault
--esw-input-heightInput field height36px
--esw-button-heightButton height36px
--esw-spacing-xsExtra small spacing4px
--esw-spacing-smSmall spacing8px
--esw-spacing-mdMedium spacing16px
--esw-spacing-lgLarge spacing24px
--esw-popup-widthModal width380px
--esw-popup-max-widthModal max width90vw

Appearance

Anchor link to
VariableDescriptionDefault
--esw-border-radiusCorner radius for elements4px
--esw-border-radius-popupModal corner radius8px
--esw-shadow-popupModal box shadow0 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: 12px;
--esw-font-family: "Inter", sans-serif;
}