Problems with Theme setup

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
oruspay
Posts: 5
Joined: 26 Nov 2019, 13:40

02 Dec 2019, 21:47

Hello...

We purchased Barcelona Theme and install in our project, but, it is not working now.

What directories the .css files of theme should be put ? they do not recognized by project..

Thanks

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

11 Dec 2019, 14:14

Is it the component theme or layout css? Does the layout work, is it just the PrimeNG components theme?

oruspay
Posts: 5
Joined: 26 Nov 2019, 13:40

11 Dec 2019, 14:44

The theme Apparently is working because the sidebar is ok and we can change colors of theme normally.

But, we don't know how to set css styles in primeNg Components.
For example an inputText.

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

11 Dec 2019, 15:29

Usually it is configured by placing the css like blue theme at;

Code: Select all

src/assets/theme/theme-blue.css
Then you have two options;

1) Add it to you angular.json;

Code: Select all

"styles": [
    "src/assets/theme/theme-blue.css"
    "src/styles.scss"
],
2) Other alternative is importing it in your styles.scss;

Code: Select all

@import "assets/theme/theme-blue.css";

oruspay
Posts: 5
Joined: 26 Nov 2019, 13:40

11 Dec 2019, 16:21

Thank you for your ansawer. This helped us.

We added another theme in angular.json. We get out this and deployed the application.
And now is working normally.

Thanks !

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

20 Dec 2019, 08:34

Perfect!

Post Reply

Return to “Barcelona - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests