Skip to content

Commit fb1eea0

Browse files
committed
docs: add HTML import/export and margin-auto for 0.14.0
Made-with: Cursor
1 parent 9772ab6 commit fb1eea0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

content/editor/design-controls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Set margin and padding using the visual box-model editor. The diagram shows marg
4444
- **Shift + drag** — Update all sides at once
4545
- **Alt + drag** — Update opposite sides together (top/bottom or left/right)
4646

47-
Values support px, rem, em, and percentage units.
47+
Values support px, rem, em, and percentage units. Use the **center block** button in the Spacing section header to set left and right margins to `auto`, horizontally centering the element within its parent.
4848

4949
## Sizing
5050

content/editor/layers.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ Double-click a layer name in the tree to rename it. Renaming helps you identify
4949

5050
**Lock** — Toggle the lock icon to prevent accidental edits. Locked elements remain visible but cannot be selected or modified until you unlock them.
5151

52+
## HTML Import and Export
53+
54+
You can import HTML into the layer tree or export layers as HTML.
55+
56+
**Import HTML** — Right-click a layer and choose **Import HTML**. Paste or type HTML in the code editor dialog and click **Import**. The HTML is converted to layers and added as children of the selected layer. Supported features include standard HTML tags, Tailwind CSS classes, and inline styles — all converted to Ycode design properties automatically.
57+
58+
**Export as HTML** — Right-click a layer and choose **Export as HTML**. The layer and its children are converted to clean HTML with Tailwind classes. Copy the output to use in other projects or share with developers.
59+
5260
<Callout type="info" title="Tip">
5361
Use folders in the Layers panel to group related elements. Folders do not affect the DOM; they only organize the tree for easier navigation.
5462
</Callout>

0 commit comments

Comments
 (0)