Page 1 of 1

Problems with Theme setup

Posted: 02 Dec 2019, 21:47
by oruspay
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

Re: Problems with Theme setup

Posted: 11 Dec 2019, 14:14
by cagatay.civici
Is it the component theme or layout css? Does the layout work, is it just the PrimeNG components theme?

Re: Problems with Theme setup

Posted: 11 Dec 2019, 14:44
by oruspay
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.

Re: Problems with Theme setup

Posted: 11 Dec 2019, 15:29
by cagatay.civici
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";

Re: Problems with Theme setup

Posted: 11 Dec 2019, 16:21
by oruspay
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 !

Re: Problems with Theme setup

Posted: 20 Dec 2019, 08:34
by cagatay.civici
Perfect!