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.
11 lines
268 B
TypeScript
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,
|
|
};
|
|
};
|