I'm looking for a comfortable method for creating a custom Luci theme.
My method:
Fork Luci
Change Luci's rep link at my ImageBuilder
Make some changes at me fork & push them
Update ImageBuilder's Luci
Compile image
But I'd like to check all changes straight on live machine, but I don't know how, because all Luci files locate at the /rom (I guess Read-Only Memory) directory, so there is no way to rewrite them.
I think all the LuCI themes live in /www/luci-static/, where you can edit the files live and refresh your browser to see the effects. I just changed some colors in /www/luci-static/openwrt2020/cascade.css and it showed up immediately for me...
If you edit files in the RAM partition, for example, /usr/share/ucode/luci/template/admin_status/index.ut, it will create a copy in the flash /overlay partition that supersedes the original in /rom, so just edit the "installed" files and off you go...
You can see this by finding specific files before and after edits, diffing various pairs: