UNPKG

@fchh/fcos-suite-ui

Version:

Reusable UI components based on React and TailwindCSS for the Fab City OS Suite (initially funded by the Interfacer EU project).

9 lines (8 loc) 554 B
export declare const CommonUtils: { generateID: () => string; /** This helper is necessary, because the meaning of dark/light changes, depending on which property it is being used with: * - In `variant` the value dark/light refers to the background color (meaning: a "dark" variant will result in dark background color which requires light text color) -> this needs to be inverted * - In `textColor` the value dark/light refers to the actual text color */ invertDarkLight: (variant: "dark" | "light") => "dark" | "light"; };