Modify CSS variables
Client-Side
- | Brick |
Customization moment | When rendering Brick |
Property | customization.visual.style.customVariables.{textPrimaryColor, textSecondaryColor, inputBackgroundColor, formBackgroundColor, baseColor, baseColorFirstVariant, baseColorSecondVariant, errorColor, successColor, outlinePrimaryColor, outlineSecondaryColor, buttonTextColor, fontSizeExtraSmall, fontSizeSmall, fontSizeMedium, fontSizeLarge, fontSizeExtraLarge, fontWeightNormal, fontWeightSemiBold, formInputsTextTransform, inputVerticalPadding, inputHorizontalPadding, inputFocusedBoxShadow, inputErrorFocusedBoxShadow, inputBorderWidth, inputFocusedBorderWidth, borderRadiusSmall, borderRadiusMedium, borderRadiusLarge, formPadding} |
Type | string |
Comments | Size values ââsuch as fontSize and padding accept values ââin px, rem, em, and %. These settings change the CSS variables that control the theme. |
const settings = {
...,
customization: {
visual: {
style: {
customVariables: {
textPrimaryColor: 'string',
textSecondaryColor: 'string',
...,
},
},
}
...,
},
}
const customization = {
visual: {
style: {
customVariables: {
textPrimaryColor: 'string'
textSecondaryColor: 'string'
}
}
}
};