# Shapes, the pen and tables

URL: https://docs.xodia.ai/editing/shapes-and-tables
Last updated: 2026-11-21

Draw shapes with the Shape tool or your own outline with the Pen, round their corners in the Points panel, and add tables that turn into cards on phones. Each is a real element in your site's code, on every plan.

_Picture: Drawing in Xodia: Rectangle is picked from the Shape tool's list and drawn under the bakery's hero button; the Points panel rounds its top right corner, which makes it your own shape, and the Style panel's Styles group fills it with a gradient of three colours._

## Draw a shape

1. Pick the shape

   In the canvas tools under the page, the small arrow beside the Shape button lists the shapes: Rectangle, Oval, Triangle, Polygon, Star, Diamond, Heart, Cloud, Speech bubble, Cross, Ring, Arrow, Wave, Squircle and Blob. `R` picks a rectangle and `O` an oval.
2. Drag it onto the page

   Drag where it should go; a click puts in a 160px one. Shift keeps it square, Esc stops.
3. Style it

   The Style panel's Shape group changes its type, the points of a star or the sides of a polygon, and adds an outline in any colour and width. Under Styles, Fill takes a colour, a picture or a gradient.

Add elements has a Shapes group too, with the same shapes plus Badge, Pill and Line, to add after the element you selected or drag onto the page.

_Picture: The Add elements panel open on Shapes: rectangle, oval, polygon, star, triangle, diamond, heart, cloud, speech bubble, badge, cross, ring, arrow, wave, squircle, blob, pill and line, ready to add after the selected element or drag onto the page._

### Draw your own outline with the Pen

Choose the Pen in the canvas tools (`P`) to draw a [vector path](https://xodia.ai/glossary/vector-path) of your own. Click to place a point, drag for a curve, click the first point to close the shape, press Enter to finish it open, or Esc to stop.

### Move points and round corners

Double-click a shape to edit its points. The Points panel floats over the canvas:

- Click a point to see where it is from the shape's top left corner, and type a new place.
- On a sharp point, Corner rounds it: a radius in px and a smoothing in % for a softer curve, then Round.
- Curve makes the point Sharp, Smooth (its handles in one line) or Free (each handle moves on its own).
- Add point, Delete point and Done; click the outline to add a point where you clicked.

Keys: `C` sharp or smooth, `Delete` removes the point, the arrows nudge it (Shift for 10), `Tab` goes to the next one, Alt-drag moves one handle alone, and `Esc` is done.

### Gradients with several colours

Under Styles, set Fill to Gradient, then pick a Direction: Down, Up, Across, Diagonal or From the centre. Colours shows a bar with a handle for each colour: click the bar to add one, drag a handle to move it, and set each colour and its place in %. Remove a colour with the minus beside it; a gradient keeps at least two.

## Tables

Choose Table in Add elements, under Basics. It starts with a header row and two rows, and you type into each cell. Select the table, a row or a cell and the Table bar opens over the canvas:

- Row: add a row above or below, or remove the row.
- Column: add a column left or right, or remove the column.
- The header row, on or off.

Each is one change and one undo step. Drag the bar by its title, or close it with its x until you select a table again.

_Picture: A bakery's Classes table in Xodia with All sizes on: a row is selected with the Table bar over the canvas to add or remove rows and columns, the tablet page keeps the columns, and on the phone page each row shows as a card with its headings._

### The Table group

The Style panel's Table group sets Lines (None, Rows or All) and their colour, Stripes, Row hover, the header's fill and text colour, and Cell space (Tight, Normal or Roomy). Select one row or cell to colour it alone.

Small screens chooses what happens on phones: Cards stacks each row as a card with its column's headings, and Scroll keeps the columns and scrolls sideways. Cards on picks from which size: Small phones, Phone (below Tablet) or Tablet (below Desktop). A new table starts with Cards below Tablet.

_Picture: The Style panel on a table: the Table group with lines between rows, their colour, a header fill, normal cell space, and Cards on small screens from the Phone size, beside the bakery's Classes table with the Table bar._

### Collection tables

In Add elements, CMS, pick a collection and choose Collection table. Its rows come from the collection's items, so a new item shows up by itself; the Table bar says to add or remove items in Content, and a column you add changes every row. Collections are part of [Xodia CMS](https://docs.xodia.ai/content/bind).

_Picture: A Collection table on the bakery's journal page in Xodia: the table is selected, its rows are the Journal collection's posts, and the Table bar says rows come from the collection, so items are added or removed in Content._

> **Note:** Shapes and tables are written as your site's own code: a shape is an element with Tailwind classes, sized in rem so it scales with the page, and a table is a real table. Step by step: [Draw shapes and your own outlines](https://xodia.ai/guides/draw-shapes-and-outlines) and [Add a table to your website](https://xodia.ai/guides/add-a-table-to-your-website).
