pascalduez / postcss-map

PostCSS plugin enabling configuration maps
The Unlicense
121 stars 7 forks source link

Add a `standard` option #5

Closed pascalduez closed 5 years ago

pascalduez commented 9 years ago
#dummy.yml
foo: 'value'
.sowieso {
  content: map(dummy, foo);
}

Would be transpiled to:

:root {
  --dummy-foo: 'value';
}
.sowieso {
  content: var(--dummy-foo);
}
TrySound commented 9 years ago

@pascalduez Seems like extra functionality. One plugin should do one thing. And in this case better will be just use yaml map and just copy it to :root.

pascalduez commented 9 years ago

Agree, the plugin would just output the :root declaration. One would need to pipe the custom-properties plugin after the map one. Still need some thinking though.

pascalduez commented 5 years ago

This is already covered by postcss-custom-properties now.