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

Allow to pass CSS variables to the JSON files #95

Open
fraincs opened this issue Sep 28, 2018 · 5 comments
Open

Allow to pass CSS variables to the JSON files #95

fraincs opened this issue Sep 28, 2018 · 5 comments

Comments

@fraincs
Copy link

fraincs commented Sep 28, 2018

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

@marcofugaro
Copy link
Collaborator

Please describe current and desired behaviour.

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

@dangayle
Copy link

dangayle commented Sep 28, 2018 via email

@fraincs
Copy link
Author

fraincs commented Sep 28, 2018

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
Copy link
Author

fraincs commented Sep 28, 2018

In my use case I am adding colors

@ihenrique
Copy link

ihenrique commented Sep 11, 2024

I found a simple workaround to add my custom variables to Tachyon. I just added some spaces in the variable declaration in the style.json file, and it works! I’m just 6 years late, but it could be useful to someone.

Captura de Tela 2024-09-11 às 17 18 31

Captura de Tela 2024-09-11 às 17 19 12

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

No branches or pull requests

4 participants