Replies: 7 comments
-
Hey! Yeah this is a limitation of the current backwards compatibility layer as we have to keep an object with the full legacy defaults around and are extending it in the compatibility layer. I'm curious to know what you're building with the plugin API though to see how we can better support this? |
Beta Was this translation helpful? Give feedback.
-
We are generating classes & variables to be used inside a file-generator and use the exposed objects to extract the available keys. |
Beta Was this translation helpful? Give feedback.
-
@flx-sta Ah, so you have a Tailwind plugin that runs as part of the build steps and spits out other files as side-effects? The better v4 solution here would be to read CSS variables from the |
Beta Was this translation helpful? Give feedback.
-
Correct
What do you mean with "at-runtime"? Do you mean reading them with something like |
Beta Was this translation helpful? Give feedback.
-
Yeah that's what I thought of. Wonder how those files end up being used. |
Beta Was this translation helpful? Give feedback.
-
I'm limited in what I am allowed to tell, sorry (NDA). |
Beta Was this translation helpful? Give feedback.
-
Hey! Going to migrate this to a feature request since it's not something we'll be looking into in the short term. Happy to review potential contributions to this, though! |
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS are you using?
v4.0.1
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
For example: v12.0.0
What browser are you using?
v20.13.0
What operating system are you using?
macOS 14.6.1 (23G93)
Reproduction URL
https://codesandbox.io/p/live/27a50c21-9a15-410a-be6e-f846fdbb6102
Run the
build
script and check the terminal output.Describe your issue
When defining my
@theme
with :I was expecting for only my custom breakpoints/screens to exist.
But instead it's adding them on top of the existing one when definition a plugin:
Unless, is it expected to use the
__CSS_VALUES__
object?Beta Was this translation helpful? Give feedback.
All reactions