Installing Morpheus 2.0.1

Post Reply
sufinawaz
Posts: 1
Joined: 23 Jun 2020, 23:22

23 Jun 2020, 23:36

Not much documentation is available around the installation so posting the steps here so others can be benefited :)

- Include downloaded jar in your project. I have placed it at a maven repo and refer to it from pom like so

Code: Select all

<dependency>
    <groupId>org.primefaces.themes</groupId>
    <artifactId>morpheus</artifactId>
    <version>2.0.1</version>
</dependency>
- Under src/main/webapp/WEB-INF/web.xml, include the following (NOTE: You could also pick any other theme colors, but I've decided to go with blue for my project)

Code: Select all

<context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>morpheus-blue</param-value>
</context-param>

- Run sass

Code: Select all

sass src/main/webapp/resources:src/main/webapp/resources --no-source-map
If you do not have have sass installed, you can do so in OS X with:

Code: Select all

brew install sass/sass/sass

If all went well above you should be able to run your app and start seeing new theme.

aragorn
Posts: 4042
Joined: 29 Jun 2013, 12:38

24 Jun 2020, 08:41

Thanks a lot, @sufinawaz ;)

Best Regards,

Post Reply

Return to “Morpheus - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest