Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From 3.0.2 to 3.0.3 borders color in config is lost #6524

Closed
frederikhors opened this issue Dec 15, 2021 · 5 comments · Fixed by #6526
Closed

From 3.0.2 to 3.0.3 borders color in config is lost #6524

frederikhors opened this issue Dec 15, 2021 · 5 comments · Fixed by #6526
Assignees

Comments

@frederikhors
Copy link
Contributor

What version of Tailwind CSS are you using?

"@tailwindcss/forms": "0.4.0",
"@tailwindcss/line-clamp": "0.3.0",
"tailwindcss": "3.0.3",

What build tool (or framework if it abstracts the build tool) are you using?

"postcss": "8.4.5",

What version of Node.js are you using?

16

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

COMING SOON

Describe your issue

After upgrade from "tailwindcss": "3.0.2" to "tailwindcss": "3.0.3" my borders color is now black instead of colors.gray.300.

I'm using this in config:

theme: {
  extend: {
    borderColor: (theme) => ({
      DEFAULT: theme("colors.gray.300", "currentColor"),
    }),
  },
},
@frederikhors
Copy link
Contributor Author

Even if I remove that config from the file the borders are black.

@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

Will get it fixed in #6526 and will publish a new release!

@RobinMalfait
Copy link
Contributor

@frederikhors the issue was that our new always on defaults layer (required reset for certain utilities) was injected before the @tailwind base layer which also had a recent for border colors with border-color: currentColor. The layers have been switched and should be fixed.

A v3.0.4 build has just been published, so if you can verify that build that would be awesome. Sorry for the inconvenience!

@frederikhors
Copy link
Contributor Author

Yes, it works now.

Can I get a medal as the fastest Tailwind new release tester?

@RobinMalfait
Copy link
Contributor

@frederikhors Does this work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants