Which template should be used inside angular.json

Post Reply
gil@idobet.com
Posts: 4
Joined: 12 Jun 2017, 11:24

02 Jun 2019, 21:59

We are using Morpheus with the green theme - and the green theme is being loaded in the index file.
which theme should i load in the angular.json file? (if I'm not loading any theme design starts to break), right now I'm using node_modules/primeng/resources/themes/flick/theme.css under the styles array but still, that isn't good enough since some elements don't get the actual classes, for example, danger button is green...

cagatay.civici
Prime
Posts: 18104
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Jun 2019, 13:22

You should use the themes provided by Morpheus so one way is adding it to the styles config;

src/assets/theme/theme-*.css

Example;

Code: Select all

"styles": [
              "src/assets/theme/theme-green.css",
              "node_modules/primeng/resources/primeng.min.css",
              "node_modules/primeicons/primeicons.css",
              "src/styles.scss"
            ],
There are 10 theme choices and you can develop your own with sass variables as well.

Post Reply

Return to “Morpheus - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest