We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TailwindCSS
3.0.7
tailwindcss-classnames
3.0.0
Node.js
16.13.1
After using the CLI, the build is missing classes prefixed with - (e.g. -mt-8) for negative values.
-
-mt-8
Build should include classes prefixed with -.
tailwindcss-classnames@latest
npx tailwindcss init
"generate-css-types": "tailwindcss-classnames"
package.json
npm run generate-css-types
tailwindcss-classnames.ts
'-
The text was updated successfully, but these errors were encountered:
Hi I am new to tailwindcss-classnames. I meet the same problem.
Here is my solution.
Starting with typescript 4.1
We can define a type that would validate the string without actually defining all the options.
stackoverflow
Sorry, something went wrong.
Hi I am new to tailwindcss-classnames. I meet the same problem. Here is my solution. Starting with typescript 4.1 We can define a type that would validate the string without actually defining all the options. stackoverflow
but after the generate-css-types via tailwindcss-classnames, your new type with a negative value will be removed
No branches or pull requests
Environment:
TailwindCSS
version:3.0.7
tailwindcss-classnames
version:3.0.0
Node.js
version:16.13.1
Current Behavior
After using the CLI, the build is missing classes prefixed with
-
(e.g.-mt-8
) for negative values.Expected Behavior
Build should include classes prefixed with
-
.How to Reproduce
tailwindcss-classnames@latest
npx tailwindcss init
"generate-css-types": "tailwindcss-classnames"
to yourpackage.json
scripts.npm run generate-css-types
tailwindcss-classnames.ts
file for'-
and find 0 results.Possible solutions (Optional)
Additional Questions
The text was updated successfully, but these errors were encountered: