transform icon indicating copy to clipboard operation
transform copied to clipboard

Convert CSS to Twind (twind.dev)

Open JLarky opened this issue 3 years ago • 3 comments

JLarky avatar Dec 26 '20 22:12 JLarky

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ritz078/transform/6xosq1olb
✅ Preview: https://transform-git-fork-jlarky-convert-to-twind.ritz078.vercel.app

vercel[bot] avatar Dec 26 '20 22:12 vercel[bot]

  • [ ] I want to apply something like https://github.com/postcss/postcss-color-rgba-fallback or find another way to preserve colors in css.
  • [ ] I need to figure out what to do with tailwind settings (they work differently in twind)
  • [ ] more tests
  • [x] find if it makes sense to convert .test:hover {width: 100%} to hover:w-full or this has to be done in css-to-tailwind (ok, it looks like it already works like that)
  • [x] support for css variants
.logo {
  display: flex;
  background: url("logo.svg");
}

@media (min-width: 640px) {
  .logo {
    display: block;
    background: url("logo2.svg");
  }
}
  • [ ] support for @keyframes

JLarky avatar Dec 26 '20 22:12 JLarky

This looks great @JLarky . I will check again when the PR is complete.

ritz078 avatar Dec 27 '20 10:12 ritz078

I believe the PR is incomplete and stale. Closing this. Feel free to open if required later.

ritz078 avatar Feb 17 '24 09:02 ritz078