Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ Unmaintained #16

Open
Antonio-Laguna opened this issue Feb 10, 2022 · 5 comments
Open

⚠️ Unmaintained #16

Antonio-Laguna opened this issue Feb 10, 2022 · 5 comments

Comments

@Antonio-Laguna
Copy link
Member

Antonio-Laguna commented Feb 10, 2022

This is just a notice that this plugin is mostly unmaintained. This means that there's no one actively developing new features or fixes for it.

While I see this plugin is popular I just want to acknowledge the situation so it's clear up front. That said, I'm happy to review pull requests that address any bug and do all of the publish process moving forward however as my time (and other's) is limited, we're mostly focusing on plugins under https://github.com/csstools/postcss-plugins

Thank you for your understanding

@Antonio-Laguna Antonio-Laguna pinned this issue Feb 10, 2022
@openmindculture
Copy link

Thanks for pointing out! I just learned from a colleague that extends are "somehow de-facto deprecated" although wecould not find any authoritative source for that. Anyway, as I failed to use the postcss-extend-rule in a new project in 2023, I found postcss-mixins to be a practical alternative. But thanks for your work and maintenance so far!

@wesleyboar
Copy link

@openmindculture, I looked at postcss-mixins as a replacement, but a mere install + find-replace seems inadequate to begin using it. How did you transition to postcss-mixins? Do you find the overhead acceptable compared to @extend?

@openmindculture
Copy link

@wesleyboar I didn't use much of it, but I found it worked better for me than extend. I can't remember the precise reason, but there must have been some problem or inconvenience. Only syntax I have been using so far:

@define-mixin typography-heading-h1 $className {
  $(className) {
    font-size: var(--font-size-40);
    @mixin-content;
  }
}

@mixin typography-heading-h1 .example__headline {
  color: green;
}

@wesleyboar
Copy link

Thank you. Yup, that's all I would need to do with it. It's verbose, but at least its official and not near as outdated.

I also looked at postcss-nested-import, but it would require a file for every import, and postcss-css-modules, but it would not allow tag selectors nor complex selectors.

@romainmenke
Copy link
Member

romainmenke commented Dec 29, 2023

Having gone over both the speculative specification and the implementation in this plugin I think this feature is a bit problematic in the current state of CSS.

This feature was a lot less complex before nesting and before @container, @scope, @layer, ...

I don't think something like this will ever become a native feature and I also don't think it is pure/powerful enough as meta programming.

I think we will deprecate this plugin if we encounter serious issues in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants