// docs › look and layout
Look and layout
On this page
Looks
- archhy has four looks: Light, Dark, Graphite light and Graphite dark. System follows your device's light or dark setting.
- Choose one from the ☀/☾ button in the header or Settings ▸ App. On a phone: More ▸ App.
- Signed in, Settings in your account menu opens the same place.
- Signed in, your choice is kept with your account and follows you to other devices. Signed out, this browser remembers it.
- The look changes archhy's bars and menus only. The diagram, and every PNG, SVG and GIF you download, stay light on white.
Screen: Auto, Desktop or Phone
- archhy picks its screen from the width of the window: the phone screen up to 767 px wide, and the tablet or desktop screen above that.
- To choose for yourself, open Settings ▸ App ▸ Screen (on a phone, More ▸ App) and pick Auto, Desktop or Phone.
- Desktop needs a screen at least 600 px wide; narrower screens always get the phone screen.
- On a tablet or an unfolded phone that gets the phone screen, archhy offers the desktop screen once.
- To switch back, use Screen in the status bar at the bottom. It sits on the bar whenever you have chosen a screen yourself or are on a touch screen, and is always in the bar's View ▴ menu. Pick Auto to let the screen width decide again.
- Screen used to be called Layout; Settings ▸ Diagram arranges the diagram (see "Layout direction" below).
The status bar (computer and tablet)
The bar under the canvas shows, from left to right: the tool you have armed (with Cancel), how many items are selected, the grid and snap switches, badges, and the zoom controls.
- GRID ON / OFF shows or hides the dotted grid.
- SNAP ON / OFF snaps items and rails to the grid. The size beside it (for example 20 px) is the grid size; click it to change it.
- SNAP SHAPES ON / OFF lines a dragged item up with the items round it and shows a guide. Hold Alt while dragging to move freely.
- What a snap shows: a bar on the two edges that lined up, one line to the neighbour with an arrow pointing at it, and a chip in words, such as Left edges · ↑ API. A solid line means edges, a dashed line through two dots means middles (Centres), and a short bracket means the two items meet (Side by side or Stacked).
- Equal spacing: drag an item into a row or column of two and it snaps to the same gap, beside them or centred between them. The gaps show in orange with their size: Equal gaps · 40 = 40.
- Resizing snaps too: the edge you drag lands on a nearby item's edge, with the same guide. A service card's corner grip keeps its centre and shape and grows to the nearest edge. Hold Alt, or Shift to keep a box's shape, to resize freely. A finger reaches twice as far as a mouse.
- BADGES ON / OFF shows or hides each service's type badge.
- The zoom percentage offers Fit and set zooms (25%, 50%, 100%, 200%). Beside it are Zoom out, Zoom in, Zoom to 100% (1:1), Fit and Full screen.
- Fit shows the whole diagram and forgets the view saved for the tab, wherever you choose it: the status bar, the zoom menu, the canvas menu or a phone. It used to be called Center diagram.
- In full screen, leave with Exit full screen at the top right, the same button in the status bar, or Esc.
- On a phone, the zoom percentage's menu offers Full screen where the browser allows it (Android); there is no full screen on iPhone. Swiping down from the top edge shows the system bar without moving your drawing.
- View ▴ at the right of the status bar turns the Shortcuts bar and the Mini-map on and off (so a Shortcuts bar you closed with its × comes back from here) and holds Screen.
- When the window is narrow, switches fold into View ▴ one at a time instead of wrapping, and come back to the bar as soon as there is room.
- Minimise the status bar, at its right end, shrinks it to a small zoom tab; click the tab to bring it back. Panels in the header hides or shows the bar altogether.
- On a phone there is no status bar: the grid, snap and badge switches and the Mini-map are in More ▸ Show, and the zoom percentage and Fit sit above the bottom toolbar.
Show settings
The same switches are in Settings ▸ Show (on a phone, More ▸ Show):
- Show grid shows the dotted grid (GRID ON in the status bar).
- Snap to grid snaps items and rails to the grid (SNAP ON).
- Snap to shapes lines a dragged or resized item up with the items round it (SNAP SHAPES ON).
- Grid size is the grid's step, in pixels.
- Half-grid rails lets rail runs sit half-way between grid lines, so parallel rails can run closer together.
- Type badges shows each service's type badge (BADGES ON).
Panels
Panels ▾ in the header shows and hides what sits round the canvas, each row with its state:
- Services, Draw and AI open or close those drawers.
- Shortcuts bar, Mini-map and Status bar show or hide them.
- Hide all hides every panel at once; Reset panels puts each one back as it was at first.
- On a phone there are no panels round the canvas; the Mini-map switch is in More ▸ Show.
Layout direction (LR and TB)
archhy can arrange a diagram for you. This auto-layout places items in ranks (layers), and the layout direction says which way the ranks run.
LR(Left → Right): ranks run left to right, as columns.TB(Top → Bottom): ranks run top to bottom, as rows.
To arrange the diagram again, open Settings ▸ Diagram (on a phone, More ▸ Diagram) and choose Left to right or Top to bottom. archhy asks first, then tidies the diagram in that direction. The spacing settings are in Settings ▸ Spacing (on a phone, More ▸ Spacing).
When it tidies, archhy centres fans: where one item has rails to several items stacked beside it, the middle one is put in line with it (three, five…), or it is put halfway between the middle two (two, four…). It moves either the item or the stacked items together, only when nothing ends up overlapping or outside its container and no straight rail gets a bend; locked items never move. Nothing is centred until you tidy: items you placed stay where they are.
The same menu has the diagram's Rails style at the top:
- Rails: Standard | Clean sets how rails route themselves in this diagram. It is also in the status bar's View ▴.
- Clean: each automatic rail prefers the side facing its destination and routes through available gaps. When a card blocks the simple route, it tries a detour around the card. Avoiding cards takes priority over avoiding other rails.
- Clean: compatible rails can share a trunk; arrowheads keep separate destinations, and automatic labels avoid items.
- Standard: rails route as archhy always drew them.
- A rail cannot paint over a service card's face, even when it is selected or deliberately routed behind it. Overlapping cards or a blocked chosen port can prevent a clear detour.
- New diagrams and the samples are Clean. Diagrams made before this choice existed stay Standard until you switch.
- Switching moves only rails archhy routes itself; rails you shaped by hand and labels you placed stay put.
- The style is saved with the diagram, so a shared or exported diagram keeps it. One Undo switches it back.
At the bottom, Colour rails recolours every rail so you can follow each one through the crossings:
- Lines: each its own colour works like a tube map. The rails leaving one item together are one line (Clean draws them as one trunk), and a line carries on through any item that just passes it on. Neighbouring lines get clearly different colours.
- By service colours each rail by the kind of service it serves: data stores teal, messaging and integration orange, monitoring and logs amber, security and identity red, AI violet, users and the way in blue; the rest grey.
- All grey puts every rail back to the default.
- Reset to original puts back the colours this diagram's rails had before you first used Colour rails, even after saving and reopening. It is greyed out until there is something to put back.
- Only rail colours change: no item, bend or label moves, and item outlines stay as they are. One Undo puts the old colours back, and you can still recolour a single rail in its Inspector. On a phone it is in More ▸ Diagram. The API and MCP do the same (
color_rails).
Below it, Colour groups does the same for groups, so you can tell zones apart, such as a Kubernetes cluster's edge and portal namespaces:
- Each group its own colour: a strong outline with a soft tint behind. Neighbouring groups never match, and a group never matches the one round it.
- By level: one colour per depth. Every outer group shares one colour, the groups inside them another.
- Reset to original: the colours the groups had before you first used Colour groups, even days later. It is greyed out until there is something to put back.
- Only the groups' outline and fill change: nothing moves. One Undo puts the old colours back, and you can still recolour a single group in its Inspector. On a phone it is in More ▸ Diagram. The API and MCP do the same (
color_groups). - Prefer Simple Reroute has gone from Settings; switch the diagram to Clean instead.
The same menu holds the other Tidy actions:
re-arranging anything. Items keep their order, rows and columns; gaps shrink to the smaller of Rank and Node spacing (a gap already tighter stays as it is), and nothing comes to overlap. Locked items don't move. Rails joining items that moved route themselves again; the rest keep their shape. One Undo puts it back. If there is no empty space to close, it says Nothing to compact.
- Compact: closes up the empty space in the diagram and shrinks each container to fit what it holds, without
- Tidy with spacing: tidies again with the spacing you set in Settings ▸ Spacing.
- Tidy rails: clears the bends, label places and chosen sides you set on rails, so they route themselves again in the diagram's Rails style. Items stay where they are.
- Reset and tidy: puts the spacing back to its defaults and tidies the whole diagram afresh. archhy asks first.
- Tidy used to be called Re-layout; Tidy rails was Clean rails, and Reset and tidy was Reset & Clean.
Spacing
Settings ▸ Spacing (on a phone, More ▸ Spacing; it used to be called Settings ▸ Layout) sets how Tidy places things. A change shows the next time you tidy.
- Container spacing: the room left inside a container round what it holds.
- Rank spacing: the distance between ranks (columns in Left to right, rows in Top to bottom).
- Node spacing: the distance between items in the same rank.
- Parallel rail spacing: the gap between rails that run side by side.
- Auto-snap rail heads: a rail's ends snap to the nearest side of the items they join.
- Group rails by label: rails with the same label run together.
- Animate rails: every rail shows a moving dash.
- Under Tidy options, Label gutter keeps room for rail labels between ranks (Auto unless you set it).
- Layout seed shuffles the order Tidy tries; change it to get a different arrangement.
- Keep children inside containers stops an item being dragged out of its container by accident.
- Drag preview chooses what follows the pointer while you add a service: a crosshair and the icon, or the icon alone.
- Crop filename suffix is added (with a time) to the name of an image you crop.
App
Settings ▸ App (on a phone, More ▸ App; Settings in the account menu opens it too) holds the settings for archhy itself, on this browser:
- The look (theme) and Screen, above.
- AI settings: your Gemini and OpenAI keys (archhy chooses the model).
- Inspector font size and Inspector density make the inspector's text larger or its rows tighter.
- Panel pill text size sets the text on folded panel buttons (computer and tablet only).
- The pointer settings, for a mouse or a touch screen.
- Container handle colours, selected and on hover, for a container's resize squares (computer and tablet only).
Why a TB diagram can look wide
In TB there can be only a few ranks with many items in each. Auto-layout spreads the items in a rank from left to right, so the diagram can be very wide even though the ranks still run top to bottom.
flowchart TB
subgraph R1["Rank 1 (top row)"]
A1["A"] --- A2["B"] --- A3["C"] --- A4["D"]
end
subgraph R2["Rank 2 (middle row)"]
B1["E"] --- B2["F"] --- B3["G"] --- B4["H"]
end
subgraph R3["Rank 3 (bottom row)"]
C1["I"] --- C2["J"] --- C3["K"] --- C4["L"]
end
R1 --> R2 --> R3Positions you have set are kept
archhy keeps the place of every item you move. Changing the direction alone does not move anything; items move only when you tidy. Tidy also clears rail routes you have shaped by hand, and one Undo puts everything back.