USWDS - Feature: Support Sass pkg NodePackageImporter entrypoints #5850
Labels
Status: Triage
We're triaging this issue and grooming if necessary
Type: Feature Request
New functionality
Is your feature request related to a problem? Please describe.
Currently, USWDS requires specific configuration of Sass compilation options, which is a barrier to entry and potential stumbling point for using the design system.
Describe the solution you'd like
Recently, Sass introduced a new feature to use a
pkg:
prefix to support the common use-case of importing Node packages into a project, which could avoid the need for modifying load paths to use stylesheets from third-party libraries.Example expected usage:
At the very least, it would be reasonable to support this as a supported option by adding the
sass
entrypoints topackage.json
to support the behavior for those who want it as an alternative toload_paths
. This doesn't need to be a breaking change.It's worth noting that this does require that the project include
NodePackageImporter
as an importer (documented in the announcement post), so it doesn't entirely get away from Sass compilation options requirements. But it might be reasonable to expect thatNodePackageImporter
could exist as a default or existing option in some projects, and therefore not require additional configuration specific to USWDS.Code of Conduct
The text was updated successfully, but these errors were encountered: