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

information on unrecognized css rules #5

Open
JLarky opened this issue Dec 27, 2020 · 0 comments
Open

information on unrecognized css rules #5

JLarky opened this issue Dec 27, 2020 · 0 comments

Comments

@JLarky
Copy link

JLarky commented Dec 27, 2020

I wish there was a way to get information that rule was not converted or wasn't executed precisely. The main idea that if I have CSS and I convert it to a tailwind and convert it back to CSS I will not lose any information :)

Example of losing data for unrecognized options:

.getsIgnored {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

Second example:

@keyframes mymove {
  from {top: 0px;}
  to {top: 200px;}
}

Example of loosing data with not precise variants:

.button {
  padding: 1.6rem;
}

@media (min-width: 777px) {
  .button {
    padding: 0.5rem;
  } 
}

@media (min-width: 999px) {
  .button {
    padding: 3rem;
  } 
}

I'm using https://transform.tools/css-to-tailwind to test the package

I propose some kind of raw option that returns raw css in case if it wasn't recognized like

{selector: "@keyframes mymove", missing: {}, tailwind: "", raw: "@keyframes mymove {from {top: 0px;} to {top: 200px;}}"}
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

No branches or pull requests

1 participant