UNPKG

@dossierhq/design

Version:

The design system for Dossier.

30 lines (29 loc) 1.02 kB
export declare const StatusColor: { readonly draft: "draft"; readonly published: "published"; readonly modified: "modified"; readonly withdrawn: "withdrawn"; readonly archived: "archived"; }; export type StatusColor = (typeof StatusColor)[keyof typeof StatusColor]; export declare const Color: { black: "black"; danger: "danger"; dark: "dark"; info: "info"; light: "light"; link: "link"; primary: "primary"; success: "success"; warning: "warning"; white: "white"; draft: "draft"; published: "published"; modified: "modified"; withdrawn: "withdrawn"; archived: "archived"; }; export type Color = (typeof Color)[keyof typeof Color]; export declare function toColorClassName(color: Color | undefined): string | undefined; export declare function toTextColorClassName(color: Color | undefined): string | undefined; export declare function toBackgroundColorClassName(color: Color | undefined, variant?: 'dark' | 'light'): string | undefined;