(react) make use of tokens references

We want to leverage the use of references inside our tokens definitions.
This commit is contained in:
Nathan Vasse
2023-06-29 16:38:31 +02:00
committed by NathanVss
parent f36cc07f1b
commit 672f4be4d4
5 changed files with 61 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
import { defaultTokens } from "@openfun/cunningham-tokens";
import { defaultTokenRefs } from "@openfun/cunningham-tokens";
import { globSync } from "glob";
/**
@@ -25,7 +25,7 @@ files.forEach((file) => {
}
componentName = componentName.replace("/", "-");
components[componentName] = res.tokens(defaultTokens);
components[componentName] = res.tokens(defaultTokenRefs);
});
export default {