paragon icon indicating copy to clipboard operation
paragon copied to clipboard

Migrate away from `@import`

Open adamstankiewicz opened this issue 1 year ago • 3 comments

See the "Heads up!" section here: https://sass-lang.com/documentation/at-rules/import

The Sass team discourages the continued use of the @import rule. Sass will gradually phase it out over the next few years, and eventually remove it from the language entirely. Prefer the @use rule instead.

Paragon heavily uses @import, as does its consuming MFEs to import styles from other packages. SCSS recommends the use of @use, so this issue is to track the work to migrate away from @import in favor of @use.

The above linked docs also suggest using a migrator CLI: https://sass-lang.com/documentation/cli/migrator

adamstankiewicz avatar May 20 '23 16:05 adamstankiewicz