How to customizing styles?

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
yol0317
Posts: 1
Joined: 26 Apr 2020, 12:53

08 May 2021, 15:57

Hi there!

I'm trying to customize styles by overriding already existing and following the instruction which described here: https://primefaces.org/freya-ng/#/documentation at the section "Customizing Styles". In beginning, I've put the following override for "landing-body" to the _layout_styles.scss but nothing changes, after that, I put it in the rest 3 files (_layout_variables.scss, _theme_styles.scss, _theme_variables.scss) and still I have the same result. What I do wrong?

Code: Select all

.landing-body {
  background-color: #ffffff;
}

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

10 May 2021, 09:57

Hi,
Firstly, did you run sass command (sass --watch src/assets:src/assets --no-source-map) after your changes?
Also, please could you use body tag in your stylesheet like;

Code: Select all

body {
    &.landing-body {
        background-color: #ffffff;
    }
}
If the problem still exist, please check your imports in assets/sass/layout/_layout.scss and assets/sass/theme/_theme_dark.scss or assets/sass/theme/_theme_light.scs files

Post Reply

Return to “Freya - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests