Skip to content

native plugin to support variable units #578

Open
@jonathandewitt-dev

Description

@jonathandewitt-dev

What would you want to propose?

I would love added support for the upcoming variable units syntax.

:host {
  --hem: 1em;
}
.wrapper {
  width: 20--hem;
}

Suggested solution

In postcss-custom-properties, I imagine this would be a trivial addition to the transformations, given that the discussion around it suggests that 20--hem is nothing but syntax sugar for calc(20 * var(--hem))

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions