✨(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.
This commit is contained in:
@@ -2,7 +2,9 @@ import { DefaultTokens } from "@openfun/cunningham-tokens";
|
||||
|
||||
export const tokens = (defaults: DefaultTokens) => {
|
||||
return {
|
||||
"border-radius": "5px",
|
||||
shadow: "0px 0px 10px 1px " + defaults.theme.colors.primary + ";",
|
||||
"border-radius": "2px",
|
||||
height: "48px",
|
||||
"font-size": defaults.theme.typo.l,
|
||||
"font-weight": defaults.theme.typo.medium,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user