Page 1 of 2

How to add theme to my project?

Posted: 10 May 2016, 18:42
by n3tmaster
Hi guys,

I just bought Adamantium Theme and Layout, I would integrate it into my J2ee project based on PrimeFaces 5.2 but .. I don't known how.
I looked for tutorial but I couldn't find anything.

Any idea?

Thank you in advance

Leandro

Re: How to add theme to my project?

Posted: 10 May 2016, 20:11
by mert.sincan

Re: How to add theme to my project?

Posted: 16 May 2016, 12:48
by n3tmaster
Thank you!

Re: How to add theme to my project?

Posted: 16 May 2016, 15:44
by mert.sincan
You're welcome ;)

Re: How to add theme to my project?

Posted: 17 May 2016, 11:31
by n3tmaster
Hi.. I followed the instructions by movie you posted but my NetBeans isn't able to perform LESS compilation in order to create theme and layout maps.
I checked my netbeans configuration and I set LESS compiler path.. but NetBeans won't compile the adamantium css files..

:shock:

Re: How to add theme to my project?

Posted: 17 May 2016, 12:24
by mert.sincan
Can you please attach netbeans configuration? Do you get an error on browser or Netbeans?

Please check;
- Netbeans > Tools > Options > HTML/JS > CSS Preprocessors > Less Path --> Exp; C:\Users\...\AppData\Roaming\npm\lessc.cmd
- Properties (click right to your project folder) > CSS Preprocessors > LESS >
Image

Re: How to add theme to my project?

Posted: 17 May 2016, 12:46
by n3tmaster
my NetBeans HTML/JS options

Image


my project properties:

Image

Thank you !

Re: How to add theme to my project?

Posted: 17 May 2016, 12:56
by mert.sincan
For Less Path, can you find lessc.cmd?

Re: How to add theme to my project?

Posted: 17 May 2016, 13:14
by n3tmaster
yes the path is right (i'm under OSX El Capitain)

Re: How to add theme to my project?

Posted: 18 May 2016, 12:26
by mert.sincan
Can you please try to produce theme.css and layout css with lessc in command-line?
http://lesscss.org/#using-less-command-line-usage

Exp;
For theme.css;
C:\PROJECT_PATH\webapp>lessc resources/less/theme/theme.less resources/primefaces-adamantium/theme.css
For layout css;
C:\PROJECT_PATH\webapp>lessc resources/less/layout/adamantium-layout.less resources/adamantium-layout/css/adamantium-layout.css
C:\PROJECT_PATH\webapp>lessc resources/less/layout/adamantium-dark-layout.less resources/adamantium-layout/css/adamantium-dark-layout.css