Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Export to SCSS file #212

Merged
merged 2 commits into from
Sep 18, 2020
Merged

Export to SCSS file #212

merged 2 commits into from
Sep 18, 2020

Conversation

bendobos
Copy link
Contributor

In my project, I use CSS custom properties but I also need them as SCSS variables for use with libraries that are written in SCSS that need to be customized.

This is a rather simple implementation but it does the trick.

Another thing I'd like to add would be the ability to also resolve var() statements in values, so that
--color: var(--blue); is transformed to --color: blue. That would allow us to export files that are free from custom properties, so we can have a "normal" SCSS var file, for example.
However, this seems like a not so simple task...

@Semigradsky Semigradsky merged commit 4dbb3fc into postcss:master Sep 18, 2020
@Semigradsky
Copy link
Member

romainmenke pushed a commit to csstools/postcss-plugins that referenced this pull request Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants