I’m not good at theming that’s why I have publish a simple yii2 extension to bring some color to the default bootstrap theme… maybe it can also be useful to you as a starting point.
It depends on the application. Theming is usually unnecessary for a typical website but if you develop a reusable application (a CMS, for example) it provides an easy way for end users to customize the design without modifying the code of the application.It also helps you integrate 3rd party modules and make them look similar to your other pages.
Yii2 doesn’t put any restrictions on the structure, layout or design of your HTML pages. (It’s worth mentioning that there’s no dependency on Bootstrap.) The only mandatory code is
<?= $content ?>
somewhere in your layout template(s). So building a theme is both easy (you can do what you want) and difficult (no rules to serve as guidelines). The view component provides a lot of useful methods (in addition to simply rendering templates) but you aren’t forced to use any of them. Explore them, try to make use of them, and build your theme as it fits your needs.
I’m trying to custom a template creating a folder “template1” under frontend/themes, so what’s the default theme folder structure, I’ve very difficult to include column, header and footer file to compose template and to custom html for widget, for example insert a Nav::Widget into a div because params are defined only for it