Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:59
f7020e6

Design quality for mockups, especially ones built by AI agents: visual effects, real typography and bundled fonts, a design system (styles, token bindings, UI components), richer auto layout, and agent tools to preview, diff and lint a design. Plus a website with a live demo of the editor that runs in the browser.

Added

  • Website and live demo at baebranch.github.io/openboard: a landing page and the OpenBoard editor running entirely in the browser, with autosave, Open/Save of .openboard files, undo/redo, light and dark mode and a sample dashboard.

  • WebMCP: in browsers that support it, the demo registers the five agent tools with document.modelContext, so a browser agent can build boards in the page. Scripts and destructive actions ask for confirmation.

  • Visual effects on shapes, frames, stickies and flow nodes, rendered the same on the canvas and in SVG, PNG and PDF exports:

    • shadows: up to 8 drop and inner shadows per element (x, y, blur, spread, color, opacity) that follow the exact outline and corner radii.
    • fillGradient and strokeGradient: linear, radial and angular gradients with 2 to 16 stops.
    • strokeAlign (inside, center, outside), per-side borderWidths, and custom strokeDash: [dash, gap] (also on lines, arrows, icons and edges).
    • blendMode on every element type.
  • Properties panel controls for all of the above: an Effects section with a shadow list, gradient editors under Fill and Stroke, stroke position, dash and border sides. Every edit is one undo step.

  • The element tools and code mode accept the new properties with per-member error messages (for example "style.shadows (rectangle)[0].blur" must be a number from 0 to 500); null removes an effect. The elements, actions, code-mode and overview skill topics document them.

  • Blur: layerBlur blurs a whole element, and backgroundBlur gives frosted glass by blurring what is behind an element inside its outline. On the canvas, background blur uses the browser's backdrop filter; exports render a blurred copy of the elements beneath. Both are in the Effects section.

  • Typography on text, stickies and flow nodes: letterSpacing, lineHeight, paragraphSpacing, textTransform, textDecoration, maxLines (cut with an ellipsis), textFit: "shrink" and textGradient. Runs can set their own color, fontWeight and strike, so one text can mix weights and colors. Ctrl/Cmd+Shift+X toggles strikethrough while editing. All of them are in the Text section of the properties panel.

  • Bundled fonts: Inter, Roboto, Open Sans and Poppins (Latin, weights 400 to 700) ship with OpenBoard. They render on the canvas and are embedded in SVG, PNG and PDF exports, so text looks the same on every machine.

  • Project fonts: openboard.font.register (or Add font file… in the font picker) stores a TTF, OTF, WOFF or WOFF2 file in the board, and font.list and font.remove manage them. Registered fonts render everywhere and are embedded in exports.

  • Font warnings: element.create and element.update return a warnings list when a font is not bundled, registered or installed, and the font picker shows the same warning. Missing fonts fall back to sans-serif, never serif.

  • openboard.board.preview returns a snapshot id; pass it back as compareTo to get the ids added, removed and changed since then.

  • openboard.board.lint: design checks for text overflow, overlaps, missing or approximate fonts, low contrast (WCAG AA), off-grid values, inconsistent spacing, hard-coded colors that match a token and empty text, with suggested fixes.

  • openboard.batch takes continueOnError: true: failing operations are skipped and listed in errors, the rest apply as one undo step.

  • Named styles: openboard.style.create, update, delete, list and apply manage text, effect and color styles; elements link them with styleRefs, and updating a style restyles every linked element.

  • Number-token bindings: bindings ties cornerRadius, strokeWidth, opacity, blurs and numeric typography to number tokens. Shadow colors and gradient stops accept color tokens and follow light and dark mode.

  • Layout: wrapping stacks (layout.wrap, rowGap), grids (layout.mode: "grid", columns), child alignSelf, minWidth / maxWidth / minHeight / maxHeight, and constraints for children of frames without layout. The properties panel edits wrap, grid mode, columns, row gap, align self and size limits.

  • openboard.ui.create (code mode ob.board().ui.<component>()) inserts tokenized button, input, card, navbar, modal, table, badge, avatar, toggle, tabs and list components with a light and dark theme.

  • Device frames: iPhone SE, Android phone, iPad Pro and desktop presets in the library.

  • Code mode gains preview, lint, batch, attempt, fonts, registerFont and style helpers; a new design skill topic covers the mockup workflow, and the MCP server instructions point agents at the preview and lint loop.

  • Connection points: the connector drag points on element sides show while Alt (Option on macOS) is held, or always when pinned with the new Show connection points toggle in the tool palette or the openboard.showConnectionPoints setting.

Changed

  • Text is measured with real font metrics for bundled and registered fonts, so wrapping, hug sizing and the on-canvas editor match what is drawn. Other fonts keep the previous estimate. hug now includes the text padding of stickies and flow nodes.
  • Board files have schema version 3. Boards that use a visual effect, typography field, registered font, named style, binding or the new layout options are saved as version 3; other boards are still saved as version 1 or 2, so older builds keep opening them. Older builds open version 3 boards read-only.
  • Hovering an element with the select tool shows the blue selection box with a thin line instead of the connection dots. Line weight now tells the states apart: 1px on hover, 1.5px for each element of a multi-selection, 2px for the selection box.
  • The internal registry has 50 actions (was 40); openboard_read_skill has a new design topic. The five exposed agent tools are unchanged.
  • Only top-level frames show a name label on the canvas and in exports. Nested frames (rows, cards and buttons inside a mockup) no longer draw their names over neighbouring content; the name is still shown in the properties and layers panels.
  • The zoom controls sit 2px from the minimap, the same spacing as the properties panel below the export group and the sidebar beside the tool palette.
  • The React Flow attribution moved to the bottom-left corner.
  • The shared core no longer uses Node APIs: PNG and PDF compression use fflate, base64 no longer needs Buffer, and hosts supply the QuickJS WebAssembly and font decompression. The extension behaves as before.
  • Registering a WOFF2 font where Brotli is unavailable (the web demo) now says to use a TTF, OTF or WOFF file instead.
  • The repository, issue and homepage links point to github.com/baebranch/openboard and the new site.

Fixed

  • Built-in library UI kit components (button, input field, card, ...) rendered at 1% opacity.
  • Auto layout kept children in the order they were created only by chance. Stacks ordered children by their center, so the parts of a new UI component (all created at one point) were sorted by size, putting a navbar's button before its title or a card's body text above its title. Stacks now order by each child's leading edge, with creation order breaking ties.
  • openboard.ui.create and openboard.element.create without x/y append a new child to the end of a stack frame. Before, it went to the frame's origin and could land before existing children.

The same openboard-0.2.0.vsix is published to the Visual Studio Marketplace and Open VSX.

SHA-256: b62d38511555b11ed38062e358ca7d843d8bc2268750cb92a32f4b7b42e17e2a