Classes with parentheses doesn't work
See original GitHub issueHi!
Previously I used this in my tailwind.config
height: theme => ({
'(custom)': `calc(100% - ${theme('spacing.18')})`,
})
And then used class like h-(custom). But after I moved to Windi noticed that this classes are not generated anymore.
My test windi.config
module.exports = {
theme: {
extend: {
height: theme => ({
'(hello)': '1000px'
}),
}
}
}
PS: love what Windi did with Tailwind DX, thank you 😍
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python class definition syntax - Stack Overflow
The parentheses in class definitions are for defining from which class you inherit. You don't write def in front of it, and when...
Read more >PYTHON: difference between defining a class with ... - Sololearn
So you can write either: class C(): Or: class C: Function/method definitions always take parentheses, even if you don't define parameters. If ...
Read more >When to use parentheses or not with attributes, methods, and ...
Attributes will never have parenthesis since they cannot be executed. Classes have parenthesis because when initially called you're most likely ...
Read more >what to put inside the brackets() when creating a class - Reddit
The parentheses accept other classes. This is called inheritance -- basically your new "MyClass" class will inherit all attributes and methods ( ...
Read more >calling a method with parenthesis vs. no ... - Codecademy
... to add parenthesis but i've learned that it won't run if I dont do this. ... *Create a method called askTeller within...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Before adding the parentheses to the regex rules, I am a bit curious about the reason to use them in the class name. My concern is that case would be confusing with the variant group
hover:(text-bold border-none)feature. Would be great if you can share a bit more context on this, thanks.The problem on my side has been solved. I just used your project to debug it. It should be a regex problem of vite-plugin.
h-(hello)not been inputted to the processor.