Skip to content

Assignment of clamped values to CSS variables #45

@joshuafredrickson

Description

@joshuafredrickson

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:

--font-size-xl: theme('fontSize.fluid.xl'); // not exactly, but something similar 

Or, is there a way to access the clamped values programmatically for use inside tailwind.config.js, where one could assign custom, fluid fontSizes that are accessible via the theme function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions