New: theme builder and per-component overrides

The design system Qt Quick was missing

Accessible, themeable components for desktop apps, shells and touch panels. Copy the source into your project, then customize, extend and rice it into something that’s yours.

Live HTML mirrors of the QML components, drawn from the same tokens. Click around.

One system for every surface Qt draws on.

Web kits size for the browser. qmlcn sizes for the device: set a density and every control follows.

Desktop apps

Compact and default densities, the system UI font and the user’s text size, keyboard focus rings. Linux, Windows and macOS.

Theme.density = "compact"

Shells and rices

Works in Quickshell as it is. Translucent surfaces, shadows, your own motion, and overrides on every component.

Menu { backgroundColor: "#e61e1e2e" }

Touch panels

44 px targets and larger type in touch density. Runs on Qt’s software renderer, so no GPU is needed.

QT_QUICK_BACKEND=software

Make it yours. All of it.

A theme is one small file: two color schemes and the feel. Radius, borders, focus rings, translucency, shadows, label weight and motion. Already have a palette in CSS? It converts in one command. Then any single component can break the rules.

// ui/theme.mjs
export const theme = {
  "radius": 16,
  "surfaceOpacity": 0.72,
  "shadow": { "enabled": true, "blur": 0.8, "offsetY": 8 },
  "motion": { "scale": 1.3, "easing": "outBack" },
  "dark": { "primary": "#7aa2f7", … }
}
Button { text: "Pill"; radius: height / 2 }
Switch { checkedColor: "#88c0d0" }
Slider { trackHeight: 10; handleSize: 22 }

Open code. Copied in, not installed.

qmlcn add writes plain QML into your project. There’s no package to update and no upstream to fight. Behavior comes from Qt Quick Templates, so keyboard, focus and accessibility work the way Qt users expect.

curl -fsSL https://raw.githubusercontent.com/sudarshanmg/qmlcn/main/bin/qmlcn -o ~/.local/bin/qmlcn && chmod +x ~/.local/bin/qmlcn
$ qmlcn init
$ qmlcn add button card switch
  wrote    ui/FocusRing.qml
  wrote    ui/Elevation.qml
  wrote    ui/Button.qml
  wrote    ui/Card.qml
  wrote    ui/Switch.qml

Rendered by Qt, not a browser.

The examples above are HTML so you can try them here. This is the gallery running in Qt Quick on the same tokens.

The qmlcn gallery rendered by Qt Quick: buttons, toggles, switches, checkboxes, sliders, inputs, a select, tabs, badges, avatars and menus in a dark theme.

Start building.

23 components today. Menu bar, toolbar, split view, tree and table views are next.