1

当模式很暗时,我需要反转颜色。当我尝试申请时dark:invert,出现以下错误

./src/styles/input.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/styles/input.css)
Syntax error: The `dark:invert` class does not exist, but `2xl:invert` does. If you're sure that `dark:invert` exists, make sure that any `@import` statements are being properly processed before Tailwind CSS sees your CSS, as `@apply` can only be used for classes in the same CSS tree. (2:10)


  1 | input[type="date"]::-webkit-calendar-picker-indicator {
> 2 |   @apply dark:invert;
    |          ^
  3 | }

4

0 回答 0