The structure of a crafted landing page: a centred frame with hairline rules down both sides, sections cut by hairline rows, grid cells that share their borders, tick marks where rules cross, and one full-bleed band that breaks the frame. Border token only, no shadows.
- Landing page structure
- Hairline grid of feature cells
- Full-bleed accent band
- Rows with tick marks
- Frame for a crafted page
Examples
Installation
npx knowns-ui@latest add framePaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Frame from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/frame
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add frame
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/blocks/marketing/frame.tsx
- components/ui/knowns/blocks/marketing/frame-utils.ts
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/frame, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "frame" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- FrameRoot maxWidth
string- Default
"1200px" - The frame's width. Bleed sections keep their content to this width.
- FrameRoot fill
boolean- Default
false - Stretch to the parent's height so the side rules reach the bottom of a short page.
- FrameSection tone
"default"|"muted"|"accent"|"dark"- Default
"default" - The row's background. Parts inside follow its text, muted text and rule colours.
- FrameSection bleed
boolean- Default
false - Break out of the frame for the full page width. Use it once. The content keeps the frame's width.
- FrameSection ticks
boolean- Default
false - Ticks where the row's top rule meets the frame rules.
- FrameSection pad
"none"|"md"|"lg"- Default
"lg" - "none" lets a grid touch the rules.
- FrameGrid cols
1|2|3|4- Default
3 - Columns from the breakpoint up. One column on a phone.
- FrameGrid at
"md"|"lg"- Default
"md" - Where the columns start: 768px or 1024px.
- FrameGrid ticks
boolean- Default
false - A tick where two lines inside the grid cross. Hidden on a phone.
- FrameCell pad
"none"|"md"|"lg"- Default
"md" - Padding inside the cell.
| Prop | Type | Default | Description |
|---|---|---|---|
| FrameRoot maxWidth | string | "1200px" | The frame's width. Bleed sections keep their content to this width. |
| FrameRoot fill | boolean | false | Stretch to the parent's height so the side rules reach the bottom of a short page. |
| FrameSection tone | "default" | "muted" | "accent" | "dark" | "default" | The row's background. Parts inside follow its text, muted text and rule colours. |
| FrameSection bleed | boolean | false | Break out of the frame for the full page width. Use it once. The content keeps the frame's width. |
| FrameSection ticks | boolean | false | Ticks where the row's top rule meets the frame rules. |
| FrameSection pad | "none" | "md" | "lg" | "lg" | "none" lets a grid touch the rules. |
| FrameGrid cols | 1 | 2 | 3 | 4 | 3 | Columns from the breakpoint up. One column on a phone. |
| FrameGrid at | "md" | "lg" | "md" | Where the columns start: 768px or 1024px. |
| FrameGrid ticks | boolean | false | A tick where two lines inside the grid cross. Hidden on a phone. |
| FrameCell pad | "none" | "md" | "lg" | "md" | Padding inside the cell. |
Cells draw only the lines they share: an end line unless the cell is in the last column, a bottom line unless it is in the last row. The outer edges belong to the frame rules and the section rows, so nothing is drawn twice. Every side is logical, so the frame mirrors in right-to-left. The pure maths lives in frame-utils with tests.
What it handles
- 01Centres the page in a frame with a hairline rule down each side, the full height of the content.
- 02Cuts the page into rows with a hairline, and gives a row a muted, accent or dark tone that its contents follow.
- 03Breaks one row out of the frame to the full page width, keeping its content to the frame's width.
- 04Lays cells in one to four columns that share their lines, so no line is drawn twice, and falls to one column on a phone.
- 05Marks the crossings of the rules with small ticks, on the rows and inside the grid, and hides the inner ones on a phone.
- 06Uses only the border token and logical sides, so it has no shadows and mirrors in right-to-left.
States
- First render
- Nothing plays. It is layout only
- none
- Narrow screen
- The cells stack in one column and the inner ticks hide
- none
- Right to left
- The rules, lines and ticks mirror
- none
| State | What moves | Timing |
|---|---|---|
| First render | Nothing plays. It is layout only | none |
| Narrow screen | The cells stack in one column and the inner ticks hide | none |
| Right to left | The rules, lines and ticks mirror | none |
Works with
When to use
When to use
- The structure of a crafted landing page: hairline rules down both sides, rows between sections and boxed cells.
- A feature grid whose cells share their borders, with ticks where the rules cross.
When not to use
- Cards with gaps and shadows inside an app: use Card.
- A plain features row: use Feature Grid.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Frame to my app and wire it to my own data.
- I need the structure of a crafted landing page: hairline rules down both sides, rows between sections and boxed cells. Set that up with the Knowns UI Frame.
- Which Frame props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "frame" }) and search_docs({ query: "frame" }).