Skip to content

input type="checkbox" { @apply rounded-full; } leaving syntax error expecting { instead of = #128

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

Closed
Ernestopheles opened this issue Nov 11, 2022 · 1 comment

Comments

@Ernestopheles
Copy link

What version of @tailwindcss/forms are you using?

3.2.2

What version of Node.js are you using?

16.14.0

What browser are you using?

brave

What operating system are you using?

kubuntu

Reproduction repository

https://github.com/Ernestopheles/tailwind-p

Describe your issue

After installimg the forms plugin it seems to work as I can see on the website. But this will leave a syntax error:

/** Formulare **/
input  type="checkbox"  {
  @apply rounded-full;
}

requesting a { after type

@thecrypticace
Copy link
Contributor

This is because it's invalid CSS. You need to use the CSS attribute syntax which uses [ and ].

So you should write it like this:

input[type="checkbox"] {
  @apply rounded-full;
}

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

2 participants