Get the FREE Ultimate OpenClaw Setup Guide →

unlayer

npx machina-cli add skill unlayer/unlayer-skills/unlayer --openclaw
Files (1)
SKILL.md
3.3 KB

Unlayer

Overview

Unlayer is a visual drag-and-drop editor for emails, web pages, popups, and documents. This skill routes to feature-specific sub-skills.

Skill Version Check

Skill installed on: !stat -f "%Sm" -t "%Y-%m-%d" SKILL.md 2>/dev/null || stat -c "%y" SKILL.md 2>/dev/null | cut -d' ' -f1

⚠️ If this skill was installed more than 30 days ago, tell the user to update it:

npx skills update

Sub-Skills

TaskSkillUse When
Framework setupunlayer-integrationAdding Unlayer to React, Vue, Angular, or plain JavaScript
Custom toolsunlayer-custom-toolsBuilding custom drag-and-drop tools, property editors, widgets
Exporting contentunlayer-exportHTML/PDF/Image export, saving designs, auto-save, Cloud API
Editor configurationunlayer-configFeatures, appearance, merge tags, security, file storage

Routing Examples

User SaysRoute To
"Add Unlayer to my React/Vue/Angular app"unlayer-integration
"Create a custom drag-and-drop tool"unlayer-custom-tools
"Export HTML" / "Save the design" / "Generate thumbnail"unlayer-export
"Set up merge tags" / "Configure features" / "HMAC security"unlayer-config
"Upload images to my server" / "Dark theme" / "Custom fonts"unlayer-config
"My merge tags aren't working" / "Editor won't load"Check unlayer-config or unlayer-integration

Multiple skills needed? Common flow:

  1. Start with unlayer-integration to add the editor to your app
  2. Use unlayer-config to customize features, merge tags, appearance
  3. Use unlayer-export to save designs and export content
  4. Use unlayer-custom-tools if you need custom drag-and-drop blocks

Common Setup

Prerequisites

  1. An Unlayer account at console.unlayer.com
  2. A Project ID — find it in Dashboard > Project > Settings
  3. A Project Secret (for HMAC security only) — find it in Dashboard > Project > Settings > API Keys

Minimal Init

unlayer.init({
  id: 'editor-container',        // HTML div ID where editor mounts
  projectId: YOUR_PROJECT_ID,     // From Dashboard > Project > Settings
  displayMode: 'email',           // 'email' | 'web' | 'popup' | 'document'
});

Display Modes

ModeUse ForHTML Output
emailEmail templatesTable-based (Outlook/Gmail safe)
webLanding pagesDiv-based (modern CSS)
popupModal overlaysDiv-based with popup positioning
documentPrint-ready docsDiv-based with page breaks

Out of Scope

These skills cover the Unlayer editor SDK. For other needs:

Resources

Source

git clone https://github.com/unlayer/unlayer-skills/blob/main/unlayer/SKILL.mdView on GitHub

Overview

Unlayer is a visual drag-and-drop editor for emails, web pages, popups, and documents. This skill acts as a routing layer to feature-specific sub-skills for framework integration, custom tools, content export, and editor configuration.

How This Skill Works

The skill itself delegates functionality to dedicated sub-skills named unlayer-integration, unlayer-custom-tools, unlayer-export, and unlayer-config. It also outlines prerequisites and provides a minimal init snippet to get started, then directs you to the appropriate sub-skill workflow based on your needs.

When to Use It

  • Add Unlayer to a React, Vue, Angular, or plain JavaScript app (unlayer-integration)
  • Build a custom drag-and-drop tool or widget (unlayer-custom-tools)
  • Export content as HTML/PDF/Image or save designs (unlayer-export)
  • Configure features, appearance, merge tags, and security (unlayer-config)
  • Upload images to a server or apply a dark theme and custom fonts (unlayer-config)

Quick Start

  1. Step 1: Identify the target sub-skill you need (unlayer-integration, unlayer-export, unlayer-config, or unlayer-custom-tools)
  2. Step 2: Ensure prerequisites: an Unlayer account, a Project ID, and optionally a Project Secret
  3. Step 3: Implement the Minimal Init snippet and follow the chosen sub-skill's setup flow

Best Practices

  • Start with unlayer-integration to embed the editor in your app
  • Use unlayer-config early to tailor features, merge tags, appearance, and security
  • Leverage unlayer-export to save designs and export content (HTML/PDF/Image)
  • Plan custom functionality with unlayer-custom-tools only after core integration
  • If the skill is older than 30 days, run npx skills update to get the latest fixes

Example Use Cases

  • Embed Unlayer in a React app via unlayer-integration and initialize with your projectId
  • Develop a custom drag-and-drop tool using unlayer-custom-tools and attach it to the editor
  • Export a design as HTML and store it through a Cloud API using unlayer-export
  • Configure merge tags, features, and security settings with unlayer-config
  • Apply a dark theme and host custom fonts or assets through unlayer-config

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers