Some components were using wrong design tokens and this was noticed only when changing themes, like using hard-coded "white" instead of "greyscale-000".
8 lines
295 B
TypeScript
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"],
|
|
});
|