✨(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:
8
packages/react/src/components/Button/tokens.ts
Normal file
8
packages/react/src/components/Button/tokens.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DefaultTokens } from "@openfun/cunningham-tokens";
|
||||
|
||||
export const tokens = (defaults: DefaultTokens) => {
|
||||
return {
|
||||
"border-radius": "5px",
|
||||
shadow: "0px 0px 10px 1px " + defaults.theme.colors.primary + ";",
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user