themesberg / themesberg/flowbite

Sass @import Deprecation warning

Open
#1,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

I've installed flowbite and tailwind following the docs.

After I run my app (Angular 20) I get some deprecation warnings in my console

▲ [WARNING] Deprecation [plugin angular-sass]

    myproject/src/styles.scss:3:8:
      3 │ @import "flowbite/src/themes/default";
        ╵         ^


  Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

  More info and automated migrator: https://sass-lang.com/d/import

  The plugin "angular-sass" was triggered by this import

    angular:styles/global:styles:1:8:
      1 │ @import 'myproject/src/styles.scss';

Is there any was to avoid this warning in the future?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Angular getting-started page and the styles.scss import shown in the report, then check how Flowbite exposes its default theme under the angular-sass plugin. Done when the documented Angular 20 setup avoids the Sass @import deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, sass, tailwindcss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.