2023-05-05 16:04:50 +02:00
|
|
|
import { DefaultTokens } from "@openfun/cunningham-tokens";
|
|
|
|
|
|
|
|
|
|
export const tokens = (defaults: DefaultTokens) => ({
|
|
|
|
|
"border-color": defaults.theme.colors["greyscale-300"],
|
|
|
|
|
"border-color--focus": defaults.theme.colors["primary-600"],
|
|
|
|
|
"border-color--hover": defaults.theme.colors["greyscale-500"],
|
|
|
|
|
"border-radius": "8px",
|
|
|
|
|
"border-radius--focus": "2px",
|
|
|
|
|
"border-radius--hover": "2px",
|
|
|
|
|
"border-style": "solid",
|
2023-05-25 15:41:47 +02:00
|
|
|
"border-width": "1px",
|
2023-09-06 16:19:36 +02:00
|
|
|
"value-color": defaults.theme.colors["greyscale-900"],
|
|
|
|
|
"value-color--disabled": defaults.theme.colors["greyscale-800"],
|
2023-05-05 16:04:50 +02:00
|
|
|
"font-size": defaults.theme.font.sizes.l,
|
|
|
|
|
height: "3.5rem",
|
|
|
|
|
"item-background-color--hover": defaults.theme.colors["greyscale-200"],
|
|
|
|
|
"item-background-color--selected": defaults.theme.colors["primary-100"],
|
|
|
|
|
"item-color": defaults.theme.colors["greyscale-800"],
|
2023-05-19 12:09:14 +02:00
|
|
|
"item-color--disabled": defaults.theme.colors["greyscale-500"],
|
2023-05-05 16:04:50 +02:00
|
|
|
"item-font-size": defaults.theme.font.sizes.l,
|
|
|
|
|
"background-color": "white",
|
|
|
|
|
"menu-background-color": "white",
|
2023-05-22 14:53:35 +02:00
|
|
|
"label-color--focus": defaults.theme.colors["primary-600"],
|
2023-06-12 14:27:40 +02:00
|
|
|
"multi-pill-background-color": defaults.theme.colors["greyscale-200"],
|
|
|
|
|
"multi-pill-border-radius": "2px",
|
2023-06-15 17:49:49 +02:00
|
|
|
"multi-pill-max-width": "68%",
|
2023-09-28 12:20:03 +02:00
|
|
|
"multi-pill-font-size": defaults.theme.font.sizes.m,
|
2023-05-05 16:04:50 +02:00
|
|
|
});
|