Skip to content
Back to skills

Rmlui

ASecurity

Where RmlUi fits in Pulp, and when not to use it. Load before proposing, building or porting an RmlUi (RML/RCSS, Lua skin) plugin editor, before touching Pulp's pulp/view/rmlui_* headers, and whenever a task asks which UI technology an editor should use. The default UI is Vellum on Skia/Dawn; RmlUi is an opt-in Vellum component for products that already ship RML/RCSS skins or Lua skin scripts, or for a developer who asks for it. Covers where the code lives (Vellum's standalone-buildable rmlui...

  • 23 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
developmentawsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add danielraffel/pulp --skill rmlui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rmlui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rmlui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielraffel-rmlui/badge)](https://www.skillsdirectory.com/skills/danielraffel-rmlui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rmlui
description: Where RmlUi fits in Pulp, and when not to use it. Load before proposing, building or porting an RmlUi (RML/RCSS, Lua skin) plugin editor, before touching Pulp's pulp/view/rmlui_* headers, and whenever a task asks which UI technology an editor should use. The default UI is Vellum on Skia/Dawn; RmlUi is an opt-in Vellum component for products that already ship RML/RCSS skins or Lua skin scripts, or for a developer who asks for it. Covers where the code lives (Vellum's standalone-buildable rmlui/ subproject, not Pulp), the pay-only-for-what-you-use build rule, bringing your own RmlUi build or renderer, and the licence line around GPL renderers.
---

# RmlUi in Pulp

**TL;DR.** RmlUi is not Pulp's UI and is not an equal choice next to Vellum. The
default editor stack is Vellum on Skia/Dawn (`CLAUDE.md`, "Choosing a UI
stack"). Use RmlUi only when a stated reason applies, keep it out of every build
that does not ask for it, and put RmlUi work in Vellum, not Pulp.

## When RmlUi is the right answer

Use it only when one of these is true:

- the product already ships RML/RCSS skins or Lua skin scripts, and porting them
  to Vellum would mean rewriting the skins (an emulator plug-in with user skins is
  the typical case);
- the developer explicitly asks for RmlUi.

Otherwise, use Vellum. "It looks lighter" or "it's HTML-like" are not reasons:
Vellum already imports HTML/CSS designs, and an agent that picks RmlUi on its
own leaves the product on the less-supported path. Don't mix RmlUi and a Vellum
view tree in one editor without a stated reason.

## Where the code lives

| Piece | Location | Notes |
|---|---|---|
| RmlUi support | Vellum `rmlui/` subproject | Its own CMake project (`cmake -S rmlui`); also added to a Vellum build by `VELLUM_ENABLE_RMLUI=ON`, which is OFF by default. Targets: `VellumRmlUi::Core`, `::SoftRenderer`, `::DevAssets`, `::Lua`, and `::VellumRenderer`. Only `::VellumRenderer` links Vellum itself. |
| RmlUi itself | fetched upstream, pinned | Used as-is. No fork and no vendored copy. |
| Pulp `pulp/view/rmlui_host_bridge.hpp`, `rmlui_importer_adapter.hpp` | Pulp `core/view` | A frozen seam behind `PULP_ENABLE_RMLUI_IMPORTER_ADAPTER=OFF`. It duplicates Vellum's `vellum/rmlui/host_bridge.hpp` and leaves Pulp along with `core/view`. Don't build new work on it or extend it. |
| How an RmlUi editor reaches the host | Pulp editor-host contract (`pulp/format/editor_host.hpp`) | A UI package's `EditorFactory`. It doesn't use `create_view()` or `ViewBridge`. |

An RmlUi editor that can be resized must override `Editor::size_hints()` and
declare its minimum size. An editor that declares no minimum is fixed-size. The
VST3, CLAP and AU v2 hosts then keep it at one size: the host's resize call
still succeeds, but `set_size()` is never called. The editor-host slice editors
hit this. A resize check should read `editor->size()` back, not just the host
call's return value. The slice's fixed-size control (`run_*_fixed` in
`test/editor_host_slice/format_hosts_main.mm`) runs a no-minimum editor through
each of the three hosts and checks both facts.

A change to RmlUi support is Vellum work. Route the paths with the
`pulp-vellum-change-routing` skill before writing anything that crosses the two
repositories.

## Nobody compiles what they don't use

- A Pulp build with no UI package must not fetch or compile RmlUi, Skia or Dawn
  because of RmlUi.
- A default Vellum build must not fetch RmlUi.
- An RmlUi build must not need Skia or Dawn, unless it asks for the Vellum
  renderer.

When you add an RmlUi option, target or example, keep it OFF by default and
behind its own switch. Make it something a consumer opts into, never something
it must opt out of. A machine-wide FetchContent cache hides a violation: "nothing
was downloaded" can mean "it was already cached". So prove a dependency is
unused from what was *requested*, not from what was downloaded.

## Bring your own RmlUi or renderer

A product may supply its own RmlUi build, including a fork, and its own
`Rml::RenderInterface`. Design every seam for that:

- Take RmlUi and renderer objects as inputs. Never construct a Pulp-chosen RmlUi
  inside a seam a product cannot replace.
- Don't put Pulp types in a renderer. A renderer that depends only on RmlUi and
  the platform graphics API can serve any RmlUi user.
- Keep `Rml::Initialise` process-scoped. Two RmlUi copies in one process (a
  shared-library build plus a product's own) must not interpose on each other.

For Pulp's native Metal adapter, enable `PULP_ENABLE_RMLUI_ADAPTER` only with
the main Vellum SDK and the matching optional RmlUi SDK prefix in
`CMAKE_PREFIX_PATH`, exporting `VellumRmlUi::Native` and
`VellumRmlUi::Metal`. `find_package(VellumRmlUiNative ...)` names the package,
but its targets keep the `VellumRmlUi::` namespace: a `VellumRmlUiNative::`
target does not exist, and only the advisory `rmlui-native` lane builds this adapter to catch it.
Build a
`MetalRenderInterface` on the `MetalSurface::device()` and pass
`metal_renderer_hooks(renderer)` to `RmlUiSurface`; the hooks preserve the
drawable viewport and backing scale and clear each drawable before RmlUi draws.
The `rmlui-metal-demo` example is the smoke path for this wiring.
In this adapter every `px` length, not only text, is a device pixel, because the
context is sized in drawable pixels; use `dp` (a point) for anything that must
keep its physical size across backing scales. The configure requires a Vellum
RmlUi SDK that defines the API macros in `native.hpp` (density ratio, warm and
renderer trim, from Vellum commit 37777f3) and fails on an older one, so the
density ratio cannot silently switch off.

## Licence line

Some RmlUi renderers in the wild are GPL, for example the Metal renderer in
gearmulator. GPL code never enters Pulp or Vellum. Don't read a GPL renderer to
write a permissive one: a clean-room renderer is written from RmlUi's own
interface and the platform vendor's documentation, by someone who has not read
the GPL source. A product that uses a GPL renderer keeps it in its own
repository.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.