Assignment of clamped values to CSS variables #55
joshuafredrickson
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Hi, I'm hoping to add something for this in the next major version of fluid-tailwind for Tailwind v4 👋 |
Beta Was this translation helpful? Give feedback.
1 reply
-
This would be a very welcomed addition! I've run into this when I needed to add a clamp value to a CSS variable. I ended up adding First, I thought I might be able to use --fluid-radius: @apply ~pl-8/16; I imagine a custom function that exposes the fluid functionality. Something like this: --fluid-radius: fluid('8/16'); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Great plugin! I'm looking to incorporate it more fully into my workflow, but a major blocker is not being able to use fluid values in a CSS variable as this plugin only works with
@apply
rules.It would be great, for example, to do the following:
Or, is there a way to access the clamped values programmatically for use inside
tailwind.config.js
, where one could assign custom, fluidfontSize
s that are accessible via thetheme
function?Beta Was this translation helpful? Give feedback.
All reactions