Files
cunningham/packages/react/src/components/Forms/Switch/tokens.ts
Nathan Vasse 9d7ad489ba (react) add Switch component
Implement a shiny new component that can be used as an alternative to
the regular checkbox.
2023-05-24 15:37:50 +02:00

12 lines
501 B
TypeScript

import { DefaultTokens } from "@openfun/cunningham-tokens";
export const tokens = (defaults: DefaultTokens) => ({
"accent-color": defaults.theme.colors["success-700"],
"rail-background-color": defaults.theme.colors["greyscale-500"],
"rail-background-color--disabled": defaults.theme.colors["greyscale-400"],
"rail-border-radius": "50vw",
"handle-background-color": "white",
"handle-background-color--disabled": defaults.theme.colors["greyscale-200"],
"handle-border-radius": "50%",
});