generator icon indicating copy to clipboard operation
generator copied to clipboard

Allow to pass CSS variables to the JSON files

Open fraincs opened this issue 7 years ago • 5 comments

That would be useful when you only support the latest browsers and want a variable.css file where you declare your colors.

fraincs avatar Sep 28 '18 16:09 fraincs

Please describe current and desired behaviour.

You mean like "black": "var(--black)",? What's the current output?

marcofugaro avatar Sep 28 '18 17:09 marcofugaro

Isn’t that the same as just passing through the raw Tachyons files without the pre-processing stage?

On Sep 28, 2018, at 9:46 AM, Francis Thibault [email protected] wrote:

That would be useful when you only support the latest browsers and want a variable.css file where you declare your colors.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

dangayle avatar Sep 28 '18 17:09 dangayle

Please describe current and desired behaviour.

You mean like "black": "var(--black)",? What's the current output?

exactly

the current output is a fail in the compiliation, the expected behaviour is to generate a CSS file with the raw variables (not compiled)

fraincs avatar Sep 28 '18 18:09 fraincs

In my use case I am adding colors

fraincs avatar Sep 28 '18 19:09 fraincs