✨(react) add tokens.ts files handling
These files will be used to define the custom design tokens per components. They are automatically aggregated by the packages/react/cunningham.ts file, this is why handling typescript config file was important.
This commit is contained in:
@@ -12,6 +12,6 @@ export type Tokens = Record<PropertyKey, unknown>;
|
||||
|
||||
export const tokensGenerator = (config: ConfigShape): Tokens => {
|
||||
return {
|
||||
colors: { ...config.theme.colors },
|
||||
...config,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user