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

[css|sass|scss] Add @apply custom property support #281

Closed

Conversation

bgriffith
Copy link
Collaborator

@bgriffith bgriffith commented Sep 2, 2017

Adds support for @apply at-rule http://tabatkins.github.io/specs/css-apply-rule/#defining

:root {
  --toolbar-theme: {
    background-color: hsl(120, 70%, 95%);
    border-radius: 4px;
    border: 1px solid var(--theme-color late);
  };
  --toolbar-title-theme: {
    color: green;
  };
}

.toolbar {
  @apply --toolbar-theme;
}
.toolbar > .title {
  @apply --toolbar-title-theme;
}

Closes #197
Closes #260

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

Successfully merging this pull request may close these issues.

Please add support for CSS mixins using @apply rule [CSS] Support custom properties (css variables)
2 participants