-
Notifications
You must be signed in to change notification settings - Fork 52
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
Why this code can't fully convert? #38
Comments
Looks like If you change it to the above or remove it, everything else works correctly in my non-cheatsheet version: https://tailwind-to-css-three.vercel.app/
gives: .generated {
display: flex;
width: 100%;
flex: 1 1 0%;
align-items: center;
justify-content: space-between;
padding-top: 1rem;
padding-bottom: 1rem;
padding-left: 0.125rem;
padding-right: 0.125rem;
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 500;
text-underline-offset: 4px
}
.generated:hover {
text-decoration-line: underline
}
.generated:focus-visible {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
--tw-ring-offset-width: 2px
}
.generated[data-state=open]>[hlmAccIcon] {
--tw-rotate: 180deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}
.generated[data-state=open]>[hlmAccordionIcon] {
--tw-rotate: 180deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
} |
I've enhanced my version now to report any unrecognized classes, so for your original input, you'll now get an output like this: .focus-visible:ring-ring {
/* Custom classes not found in Tailwind CSS */;
}
.generated {
/* ... the rest of the CSS ... */
} This shows that |
I have this code:
The output is:
Why
tailwind_to_css
doesn't generate the:as generated css in https://play.tailwindcss.com/ does?
The text was updated successfully, but these errors were encountered: