Bug 41327

Summary: `yarn css:build` generates several warnings
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Owen Leonard <oleonard>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: david, lucas, oleonard
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 38426    
Bug Blocks:    
Attachments: Bug 41327: Silence Sass deprecation warnings
Bug 41327: Silence Sass deprecation warnings

Description Jonathan Druart 2025-11-28 08:50:04 UTC
Since bug 38426.

Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

Deprecation Warning [color-functions]: saturate() is deprecated. Suggestions:

Deprecation Warning [color-functions]: desaturate() is deprecated. Suggestions:

Deprecation Warning [color-functions]: lighten() is deprecated. Suggestions:

Deprecation Warning [color-functions]: darken() is deprecated. Suggestions:

Deprecation Warning [color-functions]: red() is deprecated. Suggestion:

Deprecation Warning [color-functions]: adjust-hue() is deprecated. Suggestion:
Comment 1 Owen Leonard 2025-12-01 13:56:48 UTC
In KTD? I don't see any errors when I run 'yarn css:build'

The '@import' warning, at least, is something we can't resolve until Bootstrap does.
Comment 2 David Nind 2026-01-07 18:01:15 UTC
Do you have a nodes_module folder in your koha root?

If you remove that, you might see them (or with a yarn build as well)
Comment 3 Owen Leonard 2026-01-07 18:02:17 UTC
Created attachment 191008 [details] [review]
Bug 41327: Silence Sass deprecation warnings

Some warning are about issue we can address (legacy-js-api for
instance), and others we have to wait to be fixed in Bootstrap
(color-functions, global-builtin).

For now I think we should silence these warnings.

To test, apply the patch and run 'yarn build.' There should be no
warnings.

Sponsored-by: Athens County Public Libraries
Comment 4 David Nind 2026-01-07 19:09:22 UTC
Created attachment 191011 [details] [review]
Bug 41327: Silence Sass deprecation warnings

Some warning are about issue we can address (legacy-js-api for
instance), and others we have to wait to be fixed in Bootstrap
(color-functions, global-builtin).

For now I think we should silence these warnings.

To test, apply the patch and run 'yarn build.' There should be no
warnings.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>