Seamless Content Creation with Style Books in Liferay DXP 7.3

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

still looking for how to set up a style book, this is after a theme has been set up

Spydr
Автор

Is there a github with this theme as a example.

NathanScavezze
Автор

Hi, can you please tell me location of file in theme? i place on root folder on theme but i am not able to see any css variable when create stylebook after deploy theme

pritidilipkumarparikh
Автор

Stylebooks are promising and also very limited. Take for example the colors, in the real world we wouldn't define colors as success, danger, etc. And the colors themselves you have duplication which is not good.

Swatches are much more powerful, we would not want to define actual words for the css variables. You'd want to have --swatch-12 with a friendly name of Hot Pink. Swatches can be arranged by order and a toggle in the JSON of the token file could say hide or show a color from the palate. Swatches could be sorted correctly and assigned a grid position in the palatte.

Fonts are also very limited, you wouldn't want to define only sans serif, serif and monospace, you'd want actual font family names. Perhaps as many as 20 or 30 in the drop-down.

The styles menu of the page editor is also hard to work with when developing fragments. Some things are set as classes like margin and padding, others like colors are forced into inline styles which can only cascade in a fragment by using currentColor. Putting the selected color into the fragment class makes more sense.

The worst thing about stylebooks though is in multisite usage it's not feasible to have to import style books to each site. They should be in the global site.

duracell