Design responsive layouts
Responsive design is authored in the document’s CSS. Strukt does not keep a second set of per-device property overrides. A flexible layout should respond to the space available to its own container and to the content it holds.
Before you start
Section titled “Before you start”- Create a simple section with text and an image. Know which parent controls the layout before changing its children.
-
Select the parent container and start with flexible Grid or Flexbox rules. Prefer gaps and padding over text characters or empty elements used as spacers. Avoid fixed widths that exceed the smallest intended screen.
-
Use
clamp()for fluid sizes when appropriate. For a component that changes layout with its available width, establish a CSS container and place an@containerrule in the authored CSS. Keep the rule with the component it describes. -
Resize a Design frame and then inspect Preview at narrow and wide widths. Check long headings, navigation wrapping, image aspect ratios and form controls with actual content rather than only short sample labels.
-
Publish the reviewed version and test the public page on a narrow viewport. Confirm that reading and keyboard order still follow the intended document order.
Check the result
Section titled “Check the result”- The page has no unintended horizontal scrolling, overlapping controls or clipped text at the widths you checked.
Troubleshooting
Section titled “Troubleshooting”When a rule appears ineffective, inspect the selected parent, container name and generated CSS. A viewport width change does not necessarily change a nested container’s width. Test the actual component context before adding more overrides.
Related guides
Section titled “Related guides”- Manage styles and CSS variables
- Preview behavior and diagnose script errors
- Reuse and publish shared sections
Applies to Strukt c02552848c92 · 2026-10-31