Page 1 of 1

Problem Importing stylesheet

Posted: 16 May 2023, 21:26
by wby933
Hello,
I'm using Spring Boot with JSF and Primefaces. Templating is working fine, but I cant get the css to be applied.
I get the following error:
get error: Can't find stylesheet to import.
|
6 | @import '../../sass/layout/_layout';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/main/webapp/resources/sapphire-layout/css/layout-blue.scss 6:9 root stylesheet

currently using Primefaces 12.0, Sapphire 5.1. I followed the folder structure in the tag directory.

Thanks in advance.

Re: Problem Importing stylesheet

Posted: 19 May 2023, 12:42
by olgubasak
Hi,

I believe you can resolve the issue by following the documentation I have sent as an attachment. I think updating sass might solve the problem.

Sapphire Documentation: https://www.primefaces.org/sapphire/documentation.xhtml
If you have any further questions or concerns, please don't hesitate to reach out.

Best Regards,
Olgu

Re: Problem Importing stylesheet

Posted: 21 May 2023, 18:54
by wby933
I did follow the instruction in the documentation you cited and it seems to have work for most of them, but not blue. if I use any other color I dont get an error, but if I layout-blue.css I get the error in my initial post.

Re: Problem Importing stylesheet

Posted: 26 May 2023, 08:31
by olgubasak
Hi again,
The Sass theme has become open source. I'm sending you the relevant repository below.
Can you try again by adding it to your project and making your updates?

PrimeFaces Sass-theme: https://github.com/primefaces/primefaces-sass-theme

Best Regards,