Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

258.20. union-6.8.2

Union — KDE's CSS-driven style engine for Qt Widgets, Qt Quick and Kirigami

6.8.2-1 · (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND BSD-2-Clause AND LGPL-2.0-or-later AND MIT · 6.4 SBU · 7.5 MiB, 173 files · 43_toolkits, 193 of 344 · ports/core/kde/union

Homepage: https://invent.kde.org/plasma/union

Union is the style engine KDE is moving Plasma and its applications to: one description of how controls look, written as CSS, drawn by three outputs, a Qt Widgets style (Union), a Qt Quick Controls style (org.kde.union) and a Kirigami platform plugin. The CSS is read by a plugin that parses it with cxx-rust-cssparser, a C++ wrapper around the Rust cssparser crate, and the colours and icons come from the Plasma colour scheme and icon theme through KDE Frameworks. Its styles are installed under /usr/share/union; the one shipped, breeze, reproduces Breeze, with mobile and right-to-left variants.

plasma-workspace requires it at configure time. KDOS builds it for that, and leaves the widget style on Breeze: Union is marked “In Development”, its theme entry is hidden from the Application Style page, and its style format changes between Plasma releases, so no KDOS style is written for it yet (see There is no KDOS widget style).

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtshadertools, kcoreaddons, kguiaddons, kconfig, kiconthemes, kcolorscheme, kirigami, cxx-rust-cssparser.

Required by (1): plasma-workspace.

Sources: union-6.8.2.tar.xz (284.3 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install union'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_TESTING=OFF \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D BUILD_TOOLS=OFF \
	-D BUILD_EXAMPLES=OFF \
	-D BUILD_WITH_KDEFRAMEWORKS=ON \
	-D BUILD_PLATFORM_PLASMA=ON \
	-D BUILD_INPUT_CSS=ON \
	-D BUILD_INPUT_PLASMASVG=OFF \
	-D BUILD_OUTPUT_QTQUICK=ON \
	-D BUILD_OUTPUT_KIRIGAMI=ON \
	-D BUILD_OUTPUT_QTWIDGETS=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libUnion.so, libUnionQuickImpl.so, libUnionQuickStyle.so.

Directories: /usr/include/union, /usr/lib/cmake/Union, /usr/lib/qt6/plugins/union, /usr/lib/qt6/qml/org/kde/kirigami/styles/org.kde.union, /usr/lib/qt6/qml/org/kde/union, /usr/share/licenses/union, /usr/share/union.

plasma-integration’s platform theme switches Qt Quick programs to the org.kde.union style only when the widget style in kdeglobals is union; with KDOS’s Breeze default, nothing on the desktop draws with Union until somebody selects it.