# Designing pages in the designer

> Drag and drop, arrange with Auto layout, adjust tablet and phone separately, set colours and fonts once for the whole site — familiar if you have used Figma

Source: https://anasaki.live/docs/en/studio/designer

The Anasaki Studio designer works much like Figma: what you see on the canvas is the real page, pixel for pixel. Open it from **Pages → Design** (or **Edit the home page** on the dashboard) and from **Post templates** / **Components**. You need the &#34;Design pages, menus and templates&#34; permission (`edit_pages`).

## The screen

| Where | Name | What it is for |
| --- | --- | --- |
| Left | **Layers** | The page structure: search layers, hide/lock them and drag to reorder |
| Left | **Assets** | Ready-made sections, basic elements, data that updates itself, components and plugin blocks — drag onto the canvas, or click to add after the selected layer |
| Right | **Design** / **Content** | Design = size, colour, type and layout · Content = text, links, images and site data of the selected layer |
| Top | Breakpoints | Switch between **Desktop / Tablet / Phone** (Alt+1/2/3) |
| Top right | 🕘 **Version history** · **Save** · **Publish** | Go back to a version, save (Ctrl+S) and publish for everyone |

## What you can place

- **Ready-made sections** — a hero (big banner), 3-column features, image with text, latest posts, a contact call-to-action and a freeform area — click one and edit the text
- **Basic elements** — text, image, button, frame, shapes, embeds (Google Maps, YouTube) and a file download button
- **Data that updates itself** — post lists, navigation menus and the post content (used in templates)
- **Plugin blocks** — blocks of active plugins, such as a form from the Forms plugin

## Everyday techniques

- **Frames and Auto layout** — a frame groups layers: vertical, horizontal, 2/3/4 columns or freeform. Horizontal and column frames placed from **Assets** already stack vertically on phones. For a row you made horizontal yourself, tick **Stack on phones** under its direction buttons (CMS 2.3.0) instead of fixing every row in the phone view. In tablet/phone mode, layers that overflow the screen get a red outline and a count above the canvas. Set the number of **columns** of a horizontal auto layout to build a card grid.
- **Gaps and padding** — drag the pink bars on the canvas to change the gap and padding directly
- **Free move** — drag a layer anywhere; hold Ctrl to switch between reordering and free placement
- **Multi-colour text** — double-click a text, select words and use the toolbar to make them bold, change their colour or add a link inside the line
- **Post lists** — choose one of 4 ready card styles (image on top, horizontal, compact list, text only); edit the first card and the others follow. Pick the category, the number of posts and the order (newest, oldest, title A–Z or your manual order)
- **Automatic data** — put site data into text, such as `{{site.title}}` or `{{post.title}}`, with **Insert data (data binding)** on the Content tab
- **Shortcuts** — press Ctrl+/ to see them all (they work with Thai and English keyboard layouts; on a Mac use ⌘ instead of Ctrl). Rename a layer with F2 or Ctrl+R. Typing quickly outside a text field never switches tools.
- **Clicking an asset** — the new layer goes after the selected one; with a frame selected it goes inside that frame. **Shift+click** places it after the frame instead. In an auto layout, &#34;Bring to front / Send to back&#34; (Ctrl+Shift+[ / ]) moves the layer to the top / bottom.
- **Free placement (absolute)** — dragging a layer out of an auto layout shows a warning with an **Undo** button, because the layer then stays in the same spot on every screen size and may overflow or overlap on phones
- **Full screen height** — tick **At least the screen height** under Min H for a hero section and enter the menu bar's height in **Screen −** (e.g. 64): the section fits the screen on every device
- **Buttons with icons** — Content tab of a button → **Button icon**: pick an icon and put it before or after the text. By default the icon is a little larger than the text; set its size in **Icon size** (px)
- **Image gallery / lightbox** — tick **Open large on click** on an image's Content tab (CMS 2.4.0). Visitors click to see the image full screen; ticked images in the same frame form one gallery they page through with ‹ ›, the arrow keys or a swipe, and Esc closes it. Or place **Gallery** from Assets → Interactive and swap the images.
- **System font** — a layer's font list has **System font (system-ui)**: the visitor's own font, nothing to download
- **Field labels** — Content tab of a field → **Label (for screen readers)**: the name screen readers announce to blind visitors. Left empty, the placeholder is used.
- **Resize handles** — the size only changes after you drag more than 4 px, so a click on a handle never turns &#34;Hug contents&#34; into a fixed height
- **Hover colours** — Design tab → **On hover**: set the background, text and border colours, or pick an effect (lift, grow, glow, fade)
- **Menus: the current page's link** — Content tab of a menu → **Menu links**: spacing and corner radius of the links and the colour of the link to the page the visitor is on (for example a pink pill for the current page)
- **Name for code** — Content tab → **Name for code** lets a code block find the layer with `anasaki.ref('name')`. See [The designer API](/docs/en/developers/designer-api)
- **Searching and filtering post lists** — place a search or select field and, under **Use as a filter**, pick the post list (`q` = search words, `cat` = category; press **Use this list's categories as options**)
- **Code blocks** — press **⤢ Expand** to open a large code editor (Esc to shrink it)

### Figma-style features added in 2.2.2

| Where | What it does |
| --- | --- |
| Size → **Min W / Max H** | At least this wide / at most this tall (px), next to the existing Max W and Min H |
| Size → **Aspect ratio** | Keeps 1:1, 4:3, 16:9, 9:16 and more while the box stretches — for images, embedded videos and cards (height Hug or Fill) |
| Size → **Scroll inside** | Overflowing content scrolls horizontally, vertically or both — e.g. a row of cards that scrolls on phones |
| Layer → **Blend mode** | multiply, screen, overlay and others, like Figma's layer blend |
| Text → **At most N lines** | Cuts long text and ends it with … — good for post titles in cards |
| Stroke → **Sides with a stroke** | A stroke on the top, right, bottom or left only — e.g. a line under a heading or between list items |
| Edit menu → **Copy CSS** (`Ctrl+Alt+Shift+C`) | Copies the selected layer's CSS exactly as the live site uses it (like Dev Mode) |

## Site colours and fonts (theme)

Click an empty spot outside the canvas and the right panel shows **Site colours and fonts (theme)**:

| Value | Used for |
| --- | --- |
| Primary | Buttons, links, highlighted headings |
| Secondary | The companion of the primary colour |
| Accent | Badges, eye-catchers |
| Text / muted text | Body text / descriptions and dates |
| Soft background | Backgrounds of sections |
| Heading font / body font | Default Inter + Noto Sans Thai |
| Use the phone / tablet design below | Default ≤ 640 px / ≤ 1024 px; choose 767 if you are used to Tailwind (md = 768). One setting for every page of the site |

Press **Save theme** and every layer using a theme colour (the round buttons above the colour field) changes across the whole site. For a fixed colour on one layer, use **Detach colour**.

## Adjusting for tablets and phones

Press **Tablet** or **Phone** at the top and edit as usual: your changes apply to that screen size and smaller. The right panel lists what is adjusted separately; press ✕ to go back to the desktop value. Hide a layer on some screen sizes only with Ctrl+Shift+H.

## Save, publish and version history

1. Press **Save** (Ctrl+S) to keep your work
   - A page that is **not published yet**: saved straight to the page, and the previous version is kept (up to 25 versions per page)
   - A page that is **already published** (CMS 2.3.0): kept as a **draft** — visitors still see the published version, and the left panel shows **◐ Unpublished changes**. Edit and save as often as you like, so big changes never show up half-done.
2. Press **Publish** (Ctrl+Shift+P) for visitors to see it: the draft goes live in one go
3. Don't want your changes? Press **Discard draft** next to the ◐ mark and the page goes back to the published version
4. Made a mistake? Press 🕘 **Version history** → **Preview** → **Use this version**, then save (a published page gets it as a draft first; publish when ready)

The **▶ Preview** button shows what is in the designer at that moment, including an unpublished draft.

> [!NOTE]
> **Custom code** blocks (your own HTML/CSS/JS) can be added or edited only with the `edit_scripts` permission; other users see them locked. For binding data from code (collections, conditions, actions) see [Binding data to the designer](/docs/en/developers/designer-bindings).

Next: [Post templates and components](/docs/en/studio/templates-components)
