Where do the colors Set in Layout.css go

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
ankushb
Posts: 16
Joined: 31 Jan 2021, 18:27

02 Feb 2021, 17:57

Hello,

I have created a custom layout.scss and compiled that into CSS and referenced that in index.html. I was hoping to see those colors somewhere in the application after i run (they are variations of red for test purpose). Below is my custom layout.scss file code.

Code: Select all

$primaryColor:#49050e;
$primaryLightColor:#f15268;
$primaryTextColor:#ffffff;

@import '../../sass/variables/layout/_layout_light';
@import '../../sass/layout/_layout';
The above colors are not to be seen anywhere. Although my customisation to the theme works and those colors get reflected in the app, the layout colors seem to disappear. also why does the templates layout-dark.scss, layout-dim.scss and layout-lights. scss have exactly same code as shown below ?

Code: Select all

$primaryColor:#2c84d8;
$primaryLightColor:#3B92E5;
$primaryTextColor:#ffffff;

@import '../../sass/variables/layout/_layout_dark';
@import '../../sass/layout/_layout';

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

03 Feb 2021, 09:46

Hi,

@merve Could you please check this issue?

Best Regards,

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

09 Feb 2021, 10:45

Hi,
Yes, we have the same code you showed. Layout variables have used some files like the below.
Image
Image

If you want to change other parts, you need to change other variables. For example; if you want to create a red topbar, you need to set the new value in topbar theme files. (assets/sass/layout/topbar/themes)
Image
Image

ankushb
Posts: 16
Joined: 31 Jan 2021, 18:27

09 Feb 2021, 20:13

ok thank you. I am good for now but at some point when i am ready, i will need help with styling.

Is there a way i can get that ?

Regards,
Ankush

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

15 Feb 2021, 14:09

Hi,
Glad to hear that. You can use the forum again asking for your question if you need help.

ankushb
Posts: 16
Joined: 31 Jan 2021, 18:27

15 Feb 2021, 14:16

Thanks. I think i may need some support for styling etc... in the future as i am building a commerical app.

The forum q&a may not quite work for my questions.

Do you provide any consultancy type support ?

Regards,
Ankush

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

17 Feb 2021, 08:33

Hi,
Yes, we have a Pro Support system(https://www.primefaces.org/primeng/showcase/#/support). Please, send an email to this address (contact@primetek.com.tr) for details.

ankushb
Posts: 16
Joined: 31 Jan 2021, 18:27

17 Feb 2021, 20:24

ok thank you. will do at some point.

Post Reply

Return to “Poseidon - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests