MadLittleMods / MadLittleMods/postcss-css-variables
Add option for @apply syntax
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 551
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
According to [this video](https://youtu.be/omASiF85JzI?t=7m14s), the Polymer team at Google has been working with the CSS standards body to add the ability to `@apply` a group of properties, as you would `@include` a Sass `@mixin`.
Here's the syntax:
```
--ui-message-header-theme: {
color: #297187;
font-size: 15px;
font-weight: 700;
margin-bottom: 7px;
};
.header {
@apply(--ui-message-header-theme)
}
```
If I were interested in using this functionality, do you think it would make sense to add it here, or to a different plugin, or should it be a separate plugin?
Cheers.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reviewing the repository's existing CSS Custom Properties transformation and determine whether @apply belongs in this plugin or a separate one; the scope and completion criteria need clarification before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100