UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

9 lines (8 loc) 543 B
import type { theme } from "../tokens"; export type ColorsType = keyof typeof theme | "transparent" | "current"; export declare const getCSSVariableThemeColor: (colorThemeName: ColorsType) => string; export declare const getComputedThemeColor: (colorThemeName: ColorsType) => string; export declare const getA11yOnClick: <T extends HTMLElement>(onClick: (e: React.MouseEvent<T> | React.KeyboardEvent<T>) => void) => { onClick: (e: React.MouseEvent<T> | React.KeyboardEvent<T>) => void; onKeyUp: (e: React.KeyboardEvent<T>) => void; };