postcss / postcss-color-function

PostCSS plugin to transform W3C CSS color function to more compatible CSS
MIT License
323 stars 31 forks source link

Need support for `@value` declarations #50

Open SkReD opened 5 years ago

SkReD commented 5 years ago

Problem

Css modules variables values not converted by color function

Example

// index.css
@value transparentBlack: color(#333 a(8%));
//index.js
@import { transparentBlack } from './index.css';

console.log(transparentBlack) 

Intended outcome

rgba(51, 51, 51, 0.36)

Actual outcome

color(#333 a(8%))

SkReD commented 5 years ago

Add pull request https://github.com/postcss/postcss-color-function/pull/51