tailwind icon indicating copy to clipboard operation
tailwind copied to clipboard

refactor: should use @use instead of import

Open maxisam opened this issue 3 years ago • 3 comments

import is deprecated

maxisam avatar Jun 01 '21 15:06 maxisam

Where is written that @import is deprecated?

https://tailwindcss.com/docs/installation#include-tailwind-in-your-css

If you’re using postcss-import (or a tool that uses it under the hood, such as Webpacker for Rails), use our imports instead of the @tailwind directive to avoid issues when importing any of your own additional files

vltansky avatar Jun 21 '21 08:06 vltansky

it is a sass thing. https://sass-lang.com/documentation/at-rules/import

maxisam avatar Jun 21 '21 14:06 maxisam

Shouldn't it be the @tailwind at-rule to keep it as close to the library as possible?

catalin-tc avatar Nov 07 '21 18:11 catalin-tc