-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Default border color of tailwind dont match with twin.macro #609
Comments
Or is there any workaround currently in 2.8.2 to update the defaults with Tailwind3 ? |
This library is currently being updated to support Tailwind v3. For now, use a |
@zslabs Thanks for the update |
The default border color in [email protected] is set within the global styles and it works the same way in tailwindcss@v3. You can set it with the default value in your tailwind config: module.exports = {
theme: {
extend: {
borderColor: {
DEFAULT: 'currentColor',
},
},
},
} import { globalStyles } from "twin.macro";
globalStyles
// ↓ ↓ ↓ ↓ ↓ ↓
"*, ::before, ::after": {
// ...
"borderColor": "currentColor",
// ... The difference between the versions seems to be: // v3
border-color: rgb(229 231 235 / var(--tw-border-opacity));
// v2
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); These will be updated in the next version of twin. |
@ben-rogerson |
And also, what is the usecase of |
Just came across this patch from v3.0.12 - the fallback was changed to currentColor. I'll make sure this is added in the v3 updates, follow along in #589 Stitches is a newer css-in-js library with a different api than emotion/styled-components. Check out their docs for more. |
Closing this for now, after the next twin update, if this still doesn't sync with the latest version of tailwindcss, feel free to reopen. |
Hi,
The default border color in TailwindCSS v3.0 is
But in twin.macro @ v2.8.2,
it is
Please fix this
Sample Code
The text was updated successfully, but these errors were encountered: