Files
cunningham/packages/react/src/components/Button/tokens.ts
Nathan Vasse 7b6d130d7d (react) implement Button with official tokens
Now that we have all the official design tokens we can use them
to build the button component in various colors matching the
design system's ones.
2023-01-18 11:29:33 +01:00

11 lines
268 B
TypeScript

import { DefaultTokens } from "@openfun/cunningham-tokens";
export const tokens = (defaults: DefaultTokens) => {
return {
"border-radius": "2px",
height: "48px",
"font-size": defaults.theme.typo.l,
"font-weight": defaults.theme.typo.medium,
};
};