A clean, glass-style LuCI theme for OpenWrt — built for everyday users.
English · 简体中文
Carbon-Promo-1080p.mp4
- Dashboard: live traffic charts, CPU / memory / storage gauges, temperature, Wi‑Fi, and interface status panels; supports presets, toggling, and reordering (saved in UCI) while keeping LuCI's original status view.
- Device upload/download speeds: uses
nlbwmonby default, with optional 5-secondnftablesnamed-counter sampling (setup guide). - Discovered devices: merges DHCP leases, Wi‑Fi stations (band and signal), and ARP neighbours by MAC, works without local DHCP, and recognises 35 device brands.
- Simple / Pro navigation: Simple keeps everyday pages up front; Pro shows the full LuCI menu with an icon for every page.
- Frosted-glass sidebar: collapses into an icon rail (Ctrl/⌘ + \) with hover or click sub-menus.
- Themes & languages: light / dark / auto mode switch and a built-in language switcher for all installed LuCI languages (13 built-in theme translations).
- Keyboard & touch friendly: arrow-key controls, focus-managed phone drawer, and rail sub-menus accessible via tap or keyboard.
- Mobile friendly: drawer navigation and tables that reflow into cards.
- Custom logo: upload common image formats or safe SVGs in theme settings to replace icons across pages and browser tabs; preserved across upgrades.
- Online updates: check and install stable releases from theme settings with optional HTTPS mirrors, signature verification, and SHA-256 checks.
- Broad compatibility: existing LuCI pages and plugins keep working; one architecture-independent package for every router.
| Firmware | Package manager | Package |
|---|---|---|
| OpenWrt / ImmortalWrt 23.05, 24.10 | opkg | .ipk or install script |
| OpenWrt / ImmortalWrt 25.x, snapshot | apk | .apk or install script |
Requires the ucode-based LuCI (23.05 or newer). The same .ipk package and online updater work on OpenWrt 23.05 (including stock 23.05 BusyBox without setsid and 23.05 SDK builds) and 24.10.
All files are on the Releases page.
Run on the router (SSH):
curl -fsSL -o /tmp/carbon-install.sh https://github.com/mrjoechen/luci-theme-carbon/releases/latest/download/carbon-install.sh && sh /tmp/carbon-install.shOr use wget.
wget -O /tmp/carbon-install.sh https://github.com/mrjoechen/luci-theme-carbon/releases/latest/download/carbon-install.sh && sh /tmp/carbon-install.shThe script embeds the release's signed .apk, its .ipk and Carbon's public key, and installs through the system package manager — so online updates work and no key import is needed. The APK signature is checked with the embedded key in a private key directory; /etc/apk/keys is left alone. Missing dependencies (curl, ca-bundle, flock) come from your firmware's feeds. Options:
| Command | Effect |
|---|---|
sh carbon-install.sh --trust-key |
also add Carbon's key to /etc/apk/keys, so later LuCI uploads of Carbon APKs work |
sh carbon-install.sh --files |
only copy files (no package record, no online updates) |
Running the script again upgrades in place, and turns an older script-only install into a registered package. If a native install is impossible (for example offline with missing dependencies), it falls back to copying files and says so.
If the router has no internet access, download carbon-install.sh on your computer and copy it over (-O is needed because OpenWrt's SSH server has no SFTP):
scp -O carbon-install.sh root@192.168.1.1:/tmp/ssh root@192.168.1.1 "sh /tmp/carbon-install.sh"Upload luci-theme-carbon_*_all.ipk in System → Software → Upload Package, or:
opkg install /tmp/luci-theme-carbon_*_all.ipkv1.0.1 and newer Release APKs are signed. Import carbon-apk.pem once per device, then install or upgrade directly in LuCI:
- Download the public key and APK from Releases.
- In Pro mode, open System → Administration → Repo Public Keys, paste the full public key and click Add key (if your firmware provides this page).
- Open System → Software → Upload Package, upload the APK and install.
Older LuCI needs a one-time SSH key import. See APK configuration and troubleshooting for the verified key fingerprint, commands and preserving the key across firmware upgrades. The old v1.0.0 APK is unsigned; download a new version. Repository wget / packages.adb errors are separate network/feed problems and still need fixing for reliable web installs.
Carbon becomes the default theme. Refresh the page, then log out and log in once so the dashboard gets its read-only permissions. Switch themes any time in System → System → Language and Style.
| What | Where |
|---|---|
| Simple / Pro menu | segmented control at the top of the sidebar |
| Collapse sidebar | round button on the sidebar edge, or Ctrl/⌘ + \ |
| Light / dark / auto | top-right of the toolbar |
| Language | bottom-left of the sidebar (changes LuCI's language, same as System → Language; a list when more than two are installed) |
| Live traffic interface | picker in each Live Traffic card: Auto follows the WAN; any interface or network device (e.g. an xPON port such as pon0 that also carries IPTV) can be picked; add up to four cards in Customize |
| Customize dashboard | Customize button under the dashboard (or reset in System → Carbon Theme Settings → Dashboard layout); saved in UCI (/etc/config/carbon) |
| Check and install theme updates | System → Carbon Theme Settings (Simple and Pro modes) |
| Custom logo | System → Carbon Theme Settings → Logo (Restore default undoes it) |
| LuCI's original status page | Show detailed status under the dashboard |
Install v1.1.0 or newer through the native package manager once. Open System → Carbon Theme Settings (Carbon Update in v1.1.0), click Check for updates, then Install update and confirm. The page shows release notes, progress and installation logs; refreshing it resumes monitoring. Theme preferences and router configuration are retained. Same-version installs, downgrades and expired update requests are rejected.
APK updates verify the bundled Carbon public key, then use APK's normal signature verification again during installation. They use already-installed dependencies without fetching firmware indexes. This does not change /etc/apk/keys; standard LuCI package uploads still need the one-time key import above. IPK updates use HTTPS plus the release asset's SHA-256 and size checks. Updates check GitHub first and automatically fall back to the release manifest and packages hosted on GitHub Pages if GitHub API is rate-limited, unreachable or times out (correct system time is required). See online update details.
If GitHub downloads are slow or blocked, enter an HTTPS Download mirror prefix on the same page. Only the package bytes use the mirror; version, size and SHA-256 come from GitHub (or the official GitHub Pages fallback), and if the mirror fails the updater tries GitHub Releases and then GitHub Pages.
Required packages: curl, ca-bundle, flock (installed as native package dependencies; setsid is not required on OpenWrt 23.05). OpenWrt 23.05 SDK packages whose versions omit the -r prefix (such as 1.1.8-1) are also recognised and can upgrade cleanly to official -rN releases. Installs made with --files or with installers before v1.1.3 are not registered with apk/opkg; run the current carbon-install.sh once to enable online updates.
sh /tmp/carbon-install.sh uninstallor remove the package with opkg remove luci-theme-carbon / apk del luci-theme-carbon. The previous theme is restored automatically.
Without the SDK (produces the install script and an .ipk):
sh scripts/build-installer.shsh scripts/build-ipk.shWith the OpenWrt SDK: put this directory under package/ and run make package/luci-theme-carbon/compile (supports 23.05 / 24.10 opkg and 25.x apk SDKs; 23.05 -1 revisions are handled consistently by the installer and online updater).
APK signing: raw SDK APKs are unsigned. See signing setup and validation for local signing and the APK_SIGNING_KEY Actions secret required for releases.
Brand data (brands.js) is regenerated with python3 -I scripts/gen-brands.py.
| Source | Generated | Command |
|---|---|---|
styles/NN-*.css (one file per section) |
htdocs/luci-static/carbon/carbon.css |
python3 -I scripts/build-css.py |
po/<lang>/carbon.po (gettext) |
po/templates/carbon.pot, htdocs/luci-static/carbon/i18n/<lang>.js |
python3 -I scripts/gen-i18n.py |
Makefile PKG_VERSION / PKG_RELEASE |
root/usr/share/carbon/version (keep in sync) |
sh scripts/check-version.sh |
Generated files are committed so every install path works without a build step; CI fails if they are stale (--check). The version file is the only version source: the theme template appends it to asset URLs and carbon.js reads it from there.
To add a language, create po/<lang>/carbon.po (copy the template), translate it and run gen-i18n.py. The SDK also builds it into a luci-i18n-carbon-<lang> package.
Release notes: write docs/releases/vX.Y.Z.md (copy the layout of the previous one) with a ## English and a ## 简体中文 section. The release job (scripts/release-notes.sh) appends the matching section of docs/releases/install.md to each, so every language reads through once.
Release packages ship minified CSS/JS (node scripts/minify.mjs, run by CI on a disposable checkout). Tests:
npm ci && npm testnpx playwright install chromium && npm run test:browserSee tests/README.md for the Docker-based updater and template tests.
- Brand glyphs: Simple Icons (CC0 1.0). All trademarks belong to their respective owners.
- MAC vendor prefixes: IEEE Registration Authority MA-L registry.
- Widget behaviour follows the official
luci-theme-bootstrap.
Licensed under Apache License 2.0.


