Breakpoints
Breakpoints allow you to define responsive widget styles that adapt to different screen sizes, ensuring optimal rendering on mobile, tablet, and desktop.
Breakpoint Definitions
Key
Width (px)
Device Type
How Breakpoints Work
Example: Responsive DidomiStyle Payload
"style": {
"default": {
"backgroundColor": "#ffffff",
"padding": "12px",
"borderRadius": "4px",
"borderWidth": "1px",
"boxShadow": "0px 2px 6px rgba(0,0,0,0.1)",
"margin": "8px 0",
"color": "#000000",
"fontSize": "14px",
"lineHeight": "1.5",
"fontWeight": "400"
},
"sm": {
"fontSize": "14px"
},
"md": {
"fontSize": "16px"
},
"lg": {
"fontSize": "18px"
},
"xl": {
"fontSize": "20px"
}
}Best Practices
Last updated