Message Boards

7.3: How to build a theme compatible with stylebooks and master pages?

thumbnail
Fernando Fernandez, modified 3 Years ago.

7.3: How to build a theme compatible with stylebooks and master pages?

Expert Posts: 396 Join Date: 8/22/07 Recent Posts

Hi all,

Other than delving into the classic theme sources, do you know of any tutorial about creating a theme compatible with the new stylebooks and master pages?

TIA

Fernando

thumbnail
Olaf Kock, modified 2 Years ago.

RE: 7.3: How to build a theme compatible with stylebooks and master pages? (Answer)

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

The proposed beauty is that you don't need to, as classic+stylebooks+master pages should bring you a long way...

thumbnail
Fernando Fernandez, modified 3 Years ago.

RE: RE: 7.3: How to build a theme compatible with stylebooks and master pag

Expert Posts: 396 Join Date: 8/22/07 Recent Posts

Well... yes but we are used to do lots of funny stuff with themes. ;-)

It would be nice to keep the dubious but useful practices of theme tweaking while taking advantage of the new stuff. 

 

thumbnail
Olaf Kock, modified 3 Years ago.

RE: RE: 7.3: How to build a theme compatible with stylebooks and master pag

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

well... yeah. The funny stuff usually requires a developer and a redeployment to publish any updates, thus it makes it quite hard to push some updated requirement to production. The new technique just requires UI updates, no redeployment.

I'm not saying you should change your plans, but maybe it's time to unlearn old habits. (Keyword, seriously, is "maybe". I'm not implying anything). I'm famous for asking "what do you actually want to achieve with this?" - maybe there's a quick way to point out how to solve funny things with MP/SB/Classic. If there isn't, you can still go back to the custom theme.

So far, let's make sure this isn't a x-y problem.

thumbnail
Fernando Fernandez, modified 3 Years ago.

RE: RE: 7.3: How to build a theme compatible with stylebooks and master pag

Expert Posts: 396 Join Date: 8/22/07 Recent Posts

No precise requirement ATM.

Let's imagine we have a heavy customized theme with lots of legacy extras. We would like to make it compatible with stylebooks withou having to change a lot of logic. 

To evaluate this posibility, we would like to understand a little better how to support the new features in themes. 

Hence the question. :-)

thumbnail
Fernando Fernandez, modified 2 Years ago.

RE: 7.3: How to build a theme compatible with stylebooks and master pages?

Expert Posts: 396 Join Date: 8/22/07 Recent Posts

Meanwhile I've found this documentation about the CSS variables that a theme declares and constitute the Stylebook structure:

https://learn.liferay.com/dxp/latest/en/site-building/site-appearance/style-books/developer-guide/style-book-token-definitions.html 

While I apreciate the advantages of stylebooks, master pages, etc., there are still some use cases when we need to come up with a theme of our own. 

I my current situation I just need to change the favicon - a customization we're not able to do on the new 7.3 UI.

 

Thanks Olaf