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

No output for new theme sets #12

Closed
phrutos opened this issue May 18, 2022 · 1 comment
Closed

No output for new theme sets #12

phrutos opened this issue May 18, 2022 · 1 comment

Comments

@phrutos
Copy link

phrutos commented May 18, 2022

Hey,

Thanks for this tranformer!

I noticed that there is no CSS variables output for new theme sets--only the global, light, and dark ones.

For example, I have a dark navigation token set called "darknav" to transform only that element to dark, but it's the actions are not outputting the CSS variables for that set.

Also, a lot of CSS variables come with the property :[object Object], and I am wondering what's needed to get the real property.

Thanks!

@phrutos
Copy link
Author

phrutos commented May 19, 2022

I fixed the issue by modifying a couple of files.

The build.js line 50, and included the desired theme set:
['global', 'dark', 'light', 'darknav'].map(function (theme) {

And the create-tokens.yml which is inside .github/workflows. I added the following line:

  • run: npx token-transformer tokens.json tokens/darknav.json global,darknav,theme global

That created a new CSS variable inside output folder.

Antonio

@phrutos phrutos closed this as completed May 19, 2022
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

0 participants