Skip to content

postcss-custom-media - Support variables for setting media rules #680

Closed
@Preen

Description

@Preen

What would you want to propose?

Be able to set custom-media with variables such as

$medium_up: 767px;
@custom-media --medium-up-viewport (min-width: $medium_up);
@custom-media --medium-up-viewport (min-width: design-token("media.breakpoints.medium-up", to px));

Suggested solution

I dont have any :)

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