Files
cunningham/packages/react/src/components/Forms/Radio/tokens.ts
Nathan Vasse e2c0d3259b ♻️(react) update token.ts to handles themes
Some components were using wrong design tokens and this was noticed
only when changing themes, like using hard-coded "white" instead of
"greyscale-000".
2023-10-04 15:18:00 +02:00

8 lines
295 B
TypeScript

import { DefaultTokens } from "@openfun/cunningham-tokens";
export const tokens = (defaults: DefaultTokens) => ({
"border-color": defaults.theme.colors["greyscale-300"],
"accent-color": defaults.theme.colors["success-600"],
"background-color": defaults.theme.colors["greyscale-000"],
});