RmlUi turns HTML and CSS-like documents into vertices and indices, and leaves the renderer to you
RmlUi - The HTML/CSS User Interface library evolved
At a glance
- What is it?
- A C++17 user interface library forked from libRocket, with its own layout engine, a CSS2 base plus chosen CSS3 features, and no built-in renderer or input handling. You supply the render interface, and the library supplies geometry.
- Who is it for?
- Choose RmlUi if you write a C++ game or tool with its own renderer and want interfaces authored in markup and stylesheets, with data binding and animations, and you accept writing the render and input glue yourself. Pass if you want a ready-made widget toolkit that draws itself, or full browser-grade CSS compliance, which the project says it does not aim for.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 2 days ago.
- What is it written in?
- Mainly C++, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- mikke89/RmlUi4,658 ★ · +160
| Repository | 2026-10-09 | 2026-11-23 |
|---|---|---|
| mikke89/RmlUi | 4.5k | 4.7k |
160 Stars in the last 45 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
RmlUi emits vertices, indices and draw commands, and your engine draws them
RmlUi is a C++ user interface package based on the HTML and CSS standards. Its core pipeline is stated in one sentence: it takes your HTML/CSS-like source files and turns them into vertices, indices and draw commands, and then you bring your own renderer to draw them. The library also gives you full access to the element hierarchy and DOM, event handling, and the interactivity and customizability you would expect, directly from C++ or, optionally, from scripting languages through plugins.
That design puts the boundary between library and application in a specific place. RmlUi owns parsing, styling, layout, animation and event dispatch. Your code owns the GPU. The README says the core library compiles down to fractions of the size it takes to integrate a fully fledged web browser, which is a claim by the project, with no size figure given.
The repository is split to match. There is a Source folder and an Include folder for the library, a Backends folder for ready-made integrations, and Samples for demonstration programs. If you already run Vulkan, Direct3D or a custom renderer, the Backends folder is where you look for an example before writing your own.
The library never runs in the background, so your update loop calls it
A short section of the README, titled Controllable, lists the terms of that bargain. You control your own update loop and call into RmlUi as you like. The library strictly runs as a result of calls to its API and never in the background. Input handling and rendering are performed by you, and the library generates vertices, indices and textures for you to render however you like. File handling and the font engine can optionally be fully replaced.
For a game developer this is a plus and a cost. There are no hidden threads to reason about, and no window or event loop fighting yours. The price is that nothing happens until you feed mouse, keyboard and time into the library and ask it to render. A project that expects a button to appear after loading one document will find a blank screen until the integration code exists.
The extensibility list backs the same idea. It names abstracted interfaces for plugging into any game engine, a decorator engine for custom application-specific effects on any element, a generic event system, and a Lua scripting plugin. The Samples folder includes a lua_invaders program, which is the place to see the Lua route in use.
CSS2 is the base, and the project says outright that it will not match the web
RmlUi is based around the XHTML1 and CSS2 standards, integrates features from HTML5 and CSS3, and extends them with features suited to real-time applications. The Conformance section is blunt: the project does not aim to be fully compliant with CSS or HTML, in particular when that conflicts with lightness and performance. Users are generally expected to author documents specifically for RmlUi, though web design skills should transfer.
What is supported beyond CSS2 is listed. Animations and transitions, transforms with full interpolation support, flexbox layout, media queries, border radius, custom properties and variables, box shadows and mask images. Gradients are linear, radial and conic, and they are applied as decorators. Filters and backdrop filters are supported with all CSS filter functions. Common HTML elements include input, textarea and select.
The consequence is concrete. A stylesheet copied from a website may use a property RmlUi does not implement, and the result is a missing effect, not an error you can predict. The README sends you to the RCSS Property index for supported properties and differences from CSS, and the RML Element index for elements. Check both before porting any web design.
Six additions go past CSS where games need them
The Enhancements section names features RmlUi adds over CSS and HTML where it makes sense. Data binding gives model-view-controller style synchronization between application data and the interface. Decorators give full control over the styling of all elements. Sprite sheets let you define and use sprites with easy high DPI support. Templates keep windows looking consistent. Localization translates any text in the document. Spatial navigation is described as suitable for controllers.
The last item is the one a web developer would not expect, and it is a mark of the target audience. A game interface has to work with a gamepad, so focus moves by direction, not by tab order and mouse position. The README points to the user interface page of the RCSS docs for the nav properties.
The feature list adds a runtime visual debugging suite, an efficient application-wide styling system built on a custom templating engine, and a control set that includes buttons, sliders and drop-downs. Platform coverage in the README reads Windows, Linux, macOS, Android, iOS, Switch and more. Open a sample to see the debugger before you rely on it for layout work.
FreeType and the standard library are the only dependencies, with C++17 required
The Dependencies section is short. FreeType, which can be fully replaced by a custom font engine, and the standard library. A C++17 compatible compiler is required. If you cannot take FreeType, the replacement path is the font engine interface documented in the C++ manual.
There are three ways to get the library. CMake with your favorite compiler is the source route, and Windows binaries are available from the latest release. The vcpkg route is one line:
vcpkg install rmluiConan is the third, and the README says RmlUi is readily available from ConanCenter. The CMake options are documented on the building page of the manual and not repeated in the README.
The project also keeps a Dependencies folder in the repository, a CMake folder with build scripts, a CMakePresets.json file, and a Tests folder. AppVeyor and GitHub Actions workflows build it, shown by the build badges and the .appveyor.yml file. The code carries an .clang-format and an .editorconfig, so contributors get formatting rules from the repository.
Building the samples needs freetype, glfw3 and a GLFW_GL3 backend flag
To build with the included samples, the README uses git and CMake together with vcpkg for dependencies:
vcpkg install freetype glfw3
git clone https://github.com/mikke89/RmlUi.git
cd RmlUi
cmake -B Build -S . --preset samples -DRMLUI_BACKEND=GLFW_GL3 -DCMAKE_TOOLCHAIN_FILE="<path-to-vcpkg>/scripts/buildsystems/vcpkg.cmake"
cmake --build BuildReplace <path-to-vcpkg> with your own path. This example uses the GLFW_GL3 backend, and other backends are available. When the build finishes, run a sample such as invaders, built from the rmlui_sample_invaders target. The executables should be somewhere in the Build directory, though the README does not name the exact subfolder.
The Samples folder holds basic, invaders, lua_invaders, shell and tutorial, plus an assets directory. For the full set of samples, install lua lunasvg rlottie harfbuzz as well and pass --preset samples-all during CMake configuration. Those extra packages hint at optional pieces: Lua scripting, SVG, Lottie animation and HarfBuzz text shaping. The README names only the packages, and does not describe how each is integrated, so check the sample sources when you want one in your own build.
Integration starts with writing the render interface yourself
The integration section lists general steps, with details in the integration documentation. Step one is to build RmlUi or fetch the binaries and link it to your application. Step two begins with implementing the abstract render interface. The integration documentation at mikke89.github.io/RmlUiDoc has the full list.
This step is the real work and the main reason to look at the Backends folder first. A backend couples RmlUi to a platform and a graphics API, supplying rendering and input. If your engine matches one of the supported backends, you can reuse the code. If not, you write the render interface against the abstract class.
Because rendering is yours, features that need GPU cooperation, such as filters, backdrop filters and mask images, depend on what your render interface implements. The README lists them as supported by the library, but does not say how a minimal renderer handles them. Budget time to test the visual effects you plan to use on your own renderer before building screens that rely on them.
A libRocket fork, released as 6.3 in August 2026, with a policy file on AI contributions
RmlUi is a fork of libRocket. The README says it introduces new features, bug fixes and performance improvements over that project. For anyone searching for a comparison, that is the lineage the repository documents.
Release history is clear. 6.1 was published on 20 April 2025, 6.2 on 11 January 2026 and 6.3 on 22 August 2026. The last push was on 31 October 2026. A changelog.md file in the repository records what changed in each release. The license is MIT.
Community channels are a Zulip chat linked from the README badge, and a contributing.md file. The top-level listing includes an AI_POLICY.md, which suggests the project has written rules for AI-assisted contributions, though the README does not summarize them. Read that file before sending a patch produced with an assistant.
The project's own description of itself is ambitious. It calls RmlUi a complete solution for any project's interface needs. Take that as the author's aim, and judge it from the samples and the render interface effort rather than from the tagline.
Editorial conclusion
Choose RmlUi if you write a C++ game or tool with its own renderer and want interfaces authored in markup and stylesheets, with data binding and animations, and you accept writing the render and input glue yourself. Pass if you want a ready-made widget toolkit that draws itself, or full browser-grade CSS compliance, which the project says it does not aim for. Before committing, build the invaders sample with the GLFW_GL3 backend and read the Backends folder, because that code shows how much glue your own engine will need.
Frequently asked questions
Is RmlUi good?
It is a C++17 library that turns HTML/CSS-like documents into vertices, indices and draw commands. The project states it aims to be light-weight and performant.
How does RmlUi compare with libRocket?
RmlUi is a fork of libRocket that adds new features, bug fixes and performance improvements, according to its README.
Does RmlUi include its own renderer?
No. You implement the render interface, and RmlUi generates vertices, indices and textures for you to draw. Backends and Samples folders show ready-made integrations.
How do I install RmlUi?
Build it with CMake, run vcpkg install rmlui, or fetch it from ConanCenter. A C++17 compiler and FreeType are required, though FreeType can be replaced with a custom font engine.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/mikke89-rmlui)Star history chart for your README
[](https://hysenlabs.com/projects/mikke89-rmlui)Was this useful?