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?
Color customisation of Modena
-
- Posts: 8
- Joined: 05 Aug 2015, 09:07
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
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think you can use blue-modena or indigo-modena for layout.
Screenshot;
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
Similar issue about less; http://forum.primefaces.org/viewtopic.php?f=26&t=42661
Screenshot;
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 */
..
Github Profile: https://github.com/mertsincan
-
- Posts: 8
- Joined: 05 Aug 2015, 09:07
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?
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
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
- Yes, only the Top Bar and the Background.The theme Color Variations only affect the Top Bar and the Background?
- it is not possible with Less. You can add your fonts in font folders and change font-faces in modena-font.css, modena-layout.lessIs it possible with LESS to change the three default-fonts
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests