Color customisation of Modena

Locked
hinneLinks
Posts: 8
Joined: 05 Aug 2015, 09:07

05 Aug 2015, 09:19

For my company's next web-application we'll think about to use Primefaces with the Modena Theme.
I like the Design, but the Colors doesn't match my company's style guide.
Is it possible to change the whole theme to different colors (e.g. change the color "BlueBack" (http://www.primefaces.org/modena/docs/l ... lors.xhtml) to fit my Company's blue tone)?
Or do i have to adjust every single element (Button, Tab, etc) individually to a different color?
Last edited by hinneLinks on 06 Aug 2015, 07:46, edited 1 time in total.
Enviroment: primefaces-5.3 | javax.faces-2.2.12 (Mojarra) | modena-theme-2.0 | WebSphere 8.5.5.6

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

05 Aug 2015, 15:59

I think you can use blue-modena or indigo-modena for layout.
Screenshot;
Image

We added LESS support for Modena and Rio. (http://blog.primefaces.org/?p=3575)
Less Detail: http://lesscss.org/

For Modena - Theme, If you want to change background-color, transistion, border color, font-size, color in components, you can change value of less variable.

Modena Exp;
in theme-variables.less

Code: Select all

/* button */
@button-bg-color: #0288D1;
@button-font-size: 14px;
@button-color: #ffffff;
@button-text-bg-color: #176BA0;
@button-text-bg-color-hover: #29A1EC;
@button-bg-color-focus: #29A1EC;

/* menu */
..
Similar issue about less; http://forum.primefaces.org/viewtopic.php?f=26&t=42661

hinneLinks
Posts: 8
Joined: 05 Aug 2015, 09:07

06 Aug 2015, 08:12

Thank you, i'll have a look into LESS.

The theme Color Variations only affect the Top Bar and the Background? It doesn't seem to have an effect on tables or buttons.


Is it possible with LESS to change the three default-fonts (Roboto Font - http://www.primefaces.org/modena/docs/l ... font.xhtml) to a custom font with a custom src-url?
Enviroment: primefaces-5.3 | javax.faces-2.2.12 (Mojarra) | modena-theme-2.0 | WebSphere 8.5.5.6

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Aug 2015, 13:20

The theme Color Variations only affect the Top Bar and the Background?
- Yes, only the Top Bar and the Background.
Is it possible with LESS to change the three default-fonts
- it is not possible with Less. You can add your fonts in font folders and change font-faces in modena-font.css, modena-layout.less

Locked

Return to “Modena”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests