Skip to content

Repository files navigation

UniWRT logo

UniWRT Portal

A clean, controller-style theme for the OpenWrt LuCI web interface.

Icon sidebar · live dashboard · network map · light, dark and auto modes · one small package, zero external requests.

Build Release Downloads Stars License OpenWrt

Screenshots · Install · Configure · FAQ · Build · Releases


UniWRT dashboard in dark mode

Quick install

Run on your router over SSH — installs or updates to the latest release (standalone, so firmware upgrades keep working):

wget -T 20 -O /tmp/uniwrt-apply.sh https://github.com/ox1d3x3/uniwrt-luci/releases/latest/download/uniwrt-apply.sh && sh /tmp/uniwrt-apply.sh

Screenshots

Dashboard in light mode Dashboard with the sidebar collapsed to an icon rail
Light mode Collapsed icon rail
Network Map showing Wi-Fi and LAN devices with live traffic Device details with a choice of icons
Network Map Rename any device and pick its icon
Firewall port forwards page with an unsaved-changes badge UniWRT theme settings page
Standard LuCI pages, fully styled Theme settings
Login page Dashboard and menu on a phone
Sign-in page Phones and tablets

Features

Navigation

  • Sidebar that collapses to a slim icon rail — click any icon to jump straight to that section
  • Sticky sub-navigation for the current section, and a menu that remembers its state between pages
  • Optionally open every menu section at once instead of only the current one
  • In single-section mode, opening a section closes its siblings; expanded mode lets sections toggle independently
  • Off-canvas menu on phones and tablets

Dashboard

  • System, CPU load, memory and uptime at a glance
  • Network interfaces, wireless radios and connected clients: Wi-Fi stations first with their signal, including stations on other access points when usteer is installed
  • Flash, RAM and swap usage
  • Live WAN throughput with peak, last-24-hour and since-boot totals
  • Quick-action tiles for the pages you use most

Network Map

  • Live map of your network: Internet → router → each Wi-Fi network and the LAN → every connected device
  • Animated links show where traffic is flowing right now, with per-device speed, signal and connection time
  • Shows which LAN port each wired device is plugged into, and works on access points too: behind another router it shows that router as the uplink and looks up device IP addresses itself
  • Device types detected automatically: phones (including iPhones and Androids that hide their real address), tablets, laptops, computers, TVs, cameras, smart plugs, printers, NAS boxes, consoles and more
  • Tap any device to rename it or pick its icon (CCTV, TV, appliance, IoT, …); choices are saved on the router and kept across upgrades
  • Built for low-end routers: one small batched request per refresh, nothing polled when the page is closed or the tab is in the background, all drawing done in your browser

Appearance

  • Light, dark, or automatic (follows your operating system), switchable from the header
  • Separate accent colours for light and dark mode
  • Adjustable base font size
  • Simplified Chinese translations for the theme's settings, dashboard, network map and sign-in screens
  • No flash of the wrong theme while a page loads

Software page

  • Upgrade all button on System → Software → Updates (OpenWrt 25.12+, apk): upgrades every package with an update in one go, with the package count and a confirmation first. It runs the page's own apk upgrade helper. With opkg (23.05 / 24.10) it is not offered, because OpenWrt warns that upgrading every package there can break a router.

Under the hood

  • Live status bar in the header: CPU, memory, throughput and uptime
  • Every stock LuCI component styled — tables, tabs, dialogs, tooltips, badges, progress bars, validation states — with checkboxes rendered as switches
  • Settings stored in UCI (/etc/config/uniwrt) and kept across upgrades
  • Architecture-independent .ipk and .apk packages
  • Fully self-contained: no web fonts, no CDNs, no telemetry

Installation

There are two ways to install UniWRT. Both install exactly the same files — the difference is whether the theme is registered with the package manager, which decides whether Attended Sysupgrade keeps working.

Standalone (recommended) Package (.apk / .ipk)
Attended Sysupgrade (LuCI page and owut) ✅ Works ❌ Fails until you remove the theme from the request
After a firmware upgrade with Keep settings ✅ Theme is still installed ❌ Theme is gone and must be reinstalled
Update Run the script again apk add / opkg install the new file
Uninstall sh uniwrt-apply.sh --uninstall apk del / opkg remove

Standalone install (recommended)

Paste this one line into an SSH session on the router. Works on OpenWrt 23.05, 24.10 and 25.12:

wget -T 20 -O /tmp/uniwrt-apply.sh https://github.com/ox1d3x3/uniwrt-luci/releases/latest/download/uniwrt-apply.sh && sh /tmp/uniwrt-apply.sh

It fetches the installer from the latest release, which then downloads the theme, verifies it against the release's SHA256SUMS, installs it and activates it. Run the same line again any time to update to the newest release. If UniWRT is already installed as a package, it switches it over to a standalone install and keeps your settings.

Command What it does
sh uniwrt-apply.sh Install, or update to the latest release, and make UniWRT the active theme
sh uniwrt-apply.sh --keep-theme Update UniWRT's files but leave LuCI on whichever theme it is using
sh uniwrt-apply.sh --version v2.0.39 Install a specific release
sh uniwrt-apply.sh --file /tmp/luci-theme-uniwrt-standalone.tar.gz Install from a downloaded archive (no internet needed on the router)
sh uniwrt-apply.sh --status Show the installed version, how it is installed, and check that every file is present
sh uniwrt-apply.sh --uninstall Remove UniWRT and switch LuCI back to Bootstrap
How it works

Attended Sysupgrade asks OpenWrt's build servers for a firmware image containing every installed package. The servers only know packages from the official feeds, so a theme installed from a downloaded package makes the request fail.

The standalone install copies the theme's files into place without registering a package, so the upgrade request never mentions it. When switching from the package, the script removes it and then checks the package database — the same files the upgrade tools read — to confirm it is really gone. It records the files in /lib/upgrade/keep.d/uniwrt-standalone — OpenWrt's standard list of extra files to keep — so sysupgrade carries the theme and your settings into the new firmware whenever Keep settings is enabled. The archive uses the same built theme files as the .ipk and also bundles UniWRT's Simplified Chinese catalog for standalone installs.

Package install

Download the package for your OpenWrt release from the latest release, copy it to the router (for example to /tmp), then install it:

OpenWrt Package manager File
25.12 and newer apk luci-theme-uniwrt-<version>-r1.apk
24.10 opkg luci-theme-uniwrt_<version>-r1_all.ipk
23.05 opkg luci-theme-uniwrt_<version>_all.ipk
# OpenWrt 25.12 and newer
apk add --allow-untrusted /tmp/luci-theme-uniwrt-*.apk /tmp/luci-i18n-uniwrt-zh-cn-*.apk

# OpenWrt 23.05 / 24.10
opkg install /tmp/luci-theme-uniwrt_*_all.ipk /tmp/luci-i18n-uniwrt-zh-cn_*.ipk

Not sure which you have? Run command -v apk on the router — if it prints a path, use the .apk. --allow-untrusted is needed because the package comes from GitHub rather than a signed OpenWrt feed.

UniWRT follows LuCI's selected language. The recommended standalone archive includes the Simplified Chinese translation. When installing the theme as a package, install the matching luci-i18n-uniwrt-zh-cn package from the same release as well. For an IPK, choose the language package whose filename includes your OpenWrt release. LuCI's own Chinese translation (luci-i18n-base-zh-cn) needs to be installed too, so the rest of LuCI switches with the theme. Then choose 简体中文 under System → System → Language and Style.

To uninstall both packages, run apk del luci-i18n-uniwrt-zh-cn luci-theme-uniwrt (25.12+) or opkg remove luci-i18n-uniwrt-zh-cn luci-theme-uniwrt (23.05 / 24.10). If only the theme is installed, omit the language package name.

Selecting the theme

Running the installer makes UniWRT the active theme, including when it is already installed and you switched to another theme in the meantime (add --keep-theme to update without switching). Package upgrades through apk/opkg keep whatever theme you have chosen. To select it yourself, go to System → System → Language and Style, or run:

uci set luci.main.mediaurlbase='/luci-static/uniwrt'
uci commit luci

After installing or updating, do one hard refresh in the browser (Ctrl+Shift+R, or Cmd+Shift+R on macOS).


Configuration

Open System → UniWRT Theme in the web interface, or edit /etc/config/uniwrt:

Option Values Default Description
mode auto · light · dark auto Default theme mode; auto follows the operating system
accent #RGB or #RRGGBB #006fff Accent colour in light mode
dark_accent #RGB or #RRGGBB #4797ff Accent colour in dark mode
font_size 13 · 14 · 16 · 18 14 Base font size in pixels
status_bar 0 · 1 1 Show the live status bar in the header
overview 0 · 1 1 Show the UniWRT dashboard in the menu
rail_collapsed 0 · 1 0 Start with the sidebar collapsed on desktop
menu_expanded 0 · 1 0 Open one section at a time (0), or start with all sections open and toggle each independently (1)
netmap_interval 3 – 60 5 Seconds between Network Map refreshes while the map is open
netmap_animate 0 · 1 1 Animate live traffic on the Network Map (browser only)
netmap_discover 0 · 1 1 On an access point, ping-sweep the LAN every 5 min while the map is open to learn device IPs

Invalid values are ignored and the default is used instead.

Example — dark mode with a green accent:

uci set uniwrt.global.mode='dark'
uci set uniwrt.global.dark_accent='#38cc65'
uci commit uniwrt

Device names and icons chosen on the Network Map are stored as config host sections in the same file, so they are kept across upgrades too.

The theme toggle in the header and the sidebar collapse button are remembered per browser and take precedence over the defaults above.


FAQ

Attended Sysupgrade fails with “Impossible package selection: missing (luci-theme-uniwrt)”

This happens when UniWRT is installed as a package. Attended Sysupgrade asks the OpenWrt build servers for an image containing every installed package, and those servers only know packages from the official feeds.

Fix it for good: switch to the standalone install. It keeps your settings, removes the package, and from then on upgrades work from both the LuCI page and owut, with the theme carried into the new firmware:

wget -T 20 -O /tmp/uniwrt-apply.sh https://github.com/ox1d3x3/uniwrt-luci/releases/latest/download/uniwrt-apply.sh && sh /tmp/uniwrt-apply.sh

Or, to keep the package, leave it out of each upgrade and reinstall it afterwards:

  1. Enable advanced mode:
    uci set attendedsysupgrade.client.advanced_mode='1'
    uci commit attendedsysupgrade
  2. Reload the Attended Sysupgrade page, remove luci-theme-uniwrt from the Packages list, then build and flash with Keep settings enabled.
  3. After the reboot, reinstall the package. Your settings are preserved.

On the command line, owut upgrade --remove luci-theme-uniwrt does the same.

LuCI is unstyled after a firmware upgrade

A firmware upgrade removes manually installed packages but keeps /etc/config, so LuCI is still set to a theme that is no longer there. Reinstall UniWRT — ideally with the standalone install, which survives future upgrades — or switch back to the stock theme:

uci set luci.main.mediaurlbase='/luci-static/bootstrap'
uci commit luci

A standalone install is only carried over when Keep settings is enabled during the upgrade.

The install line prints “Connection timed out” or does nothing

The router can't reach GitHub. The installer retries three times, then tells you the reason it got. Check that the router itself has working internet and DNS (ping -c 3 github.com), that its clock is right (date), and, if it runs a VPN such as Tailscale or WireGuard, that it isn't sending traffic through an exit node or tunnel that's down. A brief GitHub hiccup usually clears if you try again a minute later.

To install without the router downloading anything, download uniwrt-apply.sh and luci-theme-uniwrt-standalone.tar.gz from the latest release on a PC, copy both to the router's /tmp, and run:

sh /tmp/uniwrt-apply.sh --file /tmp/luci-theme-uniwrt-standalone.tar.gz
The page looks broken or half-updated after upgrading the theme

The browser is using a cached stylesheet from the previous version. Do one hard refresh (Ctrl+Shift+R / Cmd+Shift+R). Assets are versioned per release, so this should only be needed once.

A menu entry doesn’t appear or disappear after changing a setting

LuCI caches its menu. Clear the cache and reload:

rm -f /tmp/luci-indexcache* /tmp/luci-modulecache/*
Does the theme make any external requests?

No. All assets are served from the router, and every figure on the dashboard comes from your device over ubus. There are no web fonts, CDNs, analytics or update checks.


Compatibility

OpenWrt 23.05, 24.10, 25.12 and newer
Packages .ipk (opkg) and .apk (apk), architecture-independent
Requirements luci-base with the ucode template engine (default on all supported releases)
Browsers Current Chrome, Edge, Firefox and Safari, desktop and mobile

Third-party LuCI apps generally work without changes, since UniWRT styles the standard LuCI components they are built from. If one doesn’t render correctly, please open an issue.


Building from source

Every push to main runs a static QA gate, builds packages for all supported releases with the OpenWrt SDK, cuts the standalone archive from the 24.10 .ipk, tests uniwrt-apply.sh against it with the router's own tools, and refreshes the rolling nightly pre-release.

Releasing is automatic: bump the version in luci-theme-uniwrt/ucode/template/themes/uniwrt/version and push to main. When CI sees a version that has no v<version> tag yet, it tags the commit, publishes the release with all packages, checksums and generated notes, and marks it Latest. Pushing a v* tag by hand still works too.

To build locally inside an OpenWrt SDK:

echo "src-link uniwrt /path/to/uniwrt-luci" >> feeds.conf.default
./scripts/feeds update uniwrt
./scripts/feeds install -a -p uniwrt

make menuconfig                              # LuCI → 4. Themes → luci-theme-uniwrt
make package/luci-theme-uniwrt/compile V=s

The package is written to bin/packages/<arch>/uniwrt/.

Repository layout
luci-theme-uniwrt/
├── Makefile                         package definition (version read from ucode/.../version)
├── htdocs/luci-static/
│   ├── uniwrt/css/                  cascade.css (light + layout), dark.css (inlined at runtime)
│   ├── uniwrt/img/                  logo
│   └── resources/                   menu and status-bar renderers; dashboard, network map and settings views
├── ucode/template/themes/uniwrt/    header.ut, footer.ut, sysauth.ut, version
└── root/                            default config, uci-defaults, menu and ACL entries
scripts/make-standalone.sh           cuts the standalone archive from the built .ipk
tests/test-apply.sh                  tests uniwrt-apply.sh in a simulated router
tests/setup-openwrt-tools.sh         builds OpenWrt's BusyBox, uci and apk for those tests
qa-static.sh                         static checks run in CI
uniwrt-apply.sh                      on-router installer (standalone / package / uninstall)

Contributing

Bug reports and pull requests are welcome. For rendering issues, please include:

  • the page you were on (for example Network → Firewall → Port Forwards)
  • your OpenWrt version and router model
  • the browser you used and a screenshot

Run the static checks before opening a pull request:

./qa-static.sh

Changes to uniwrt-apply.sh are tested in CI with tests/test-apply.sh, using BusyBox built with OpenWrt's configuration, OpenWrt's uci, and the apk version OpenWrt 25.12 ships — including a real migration of the built 25.12 package. Run tests/setup-openwrt-tools.sh to get the same tools locally.

Security

Please don’t report security problems in public issues. Use private vulnerability reporting instead — see SECURITY.md.

Changelog

Release notes for every version are on the Releases page.


Made by ox1d3x3 · Licensed under Apache 2.0

UniWRT is an independent project and is not affiliated with or endorsed by OpenWrt or any network equipment vendor.

If UniWRT is useful to you, a ⭐ helps others find it.