Minimal lens layout
A lens frame with content-height sheets, folded corner buttons and search in the sidebar head.
About the package
Places the sidebar, page and settings in one lens frame. The sheets fit their content and scroll inside
when they reach the window insets. A folded sheet leaves a square button in its corner.
Cards can open over the right settings panel, in a centered modal, or next to the trigger.
The lens build includes the card host from card/ alongside the layout entry points.
The layout reads style tokens and uses the project's component library. The choice is layout:
on Design. Run shtuk run lenses build after changing it.
Actions 1
| Name | What it does | File | When |
|---|---|---|---|
| adopt | Select the minimal layout when the project has no layout | actions/adopt.ts | after install after update |
shtuk check runs the checks; shtuk run layout-minimal <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.
Pages 5
They go into the project at these paths.
- /design/
- Minimal lens layout page
- /design/layout-minimal/
- layout.css file
- layout.js file
- /design/layout-minimal/card/
- card.css file
- card.js file
Package files 6
They go into .shtukbase/packages/layout-minimal/; actions run from there.