Will @content support require updates to the vscode extension? #14115
tylersayshi
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey @tylerlaws0n! Absolutely, the VS Code extension needs to update to handle the new directive (in fact I've started to think about this this week). However, as you already hinted, there are some complexities around multiple configurations. Specifically we will need some heuristics to figure out which tailwind project a specific source files belongs to since one source file could be part of different builds/config. In your example, how would these globs look like? Are they mutually exclusive (so files from config A do not match files from config B and vice versa)? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RE: #14078
Seeing this change for different css driven tailwind configurations shows how we could draw clearer lines between separate tailwind configs.
@adamwathan gave a good example for handling node libraries that use tailwind: https://x.com/adamwathan/status/1819427336502047227
I am interested in taking advantage of this for using multiple configurations in a single project. This is because my team has a tailwind config that overrides the colors and spacing configuration, but we want to progressively move over to the default tailwind config.
I think given the new
@content
directive it would be trivial to pair this with the@config
directive to have the styles build correctly, without needing to deal with prefixes.My question though: Will the ide extensions be updated to detect the correct tailwind config based off the current file's slug?
PS I would have posted this on the intellisense repo, but there is no discussion board there haha
Beta Was this translation helpful? Give feedback.
All reactions