@devopness/ui-react
Version:
Devopness Design System React Components - Painless essential DevOps to everyone
16 lines (15 loc) • 463 B
TypeScript
declare const fonts: {
readonly roboto: "Roboto";
readonly montserrat: "Montserrat";
readonly mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace";
};
/**
* Lists all valid font codes
*/
type Font = keyof typeof fonts;
/**
* Gets the font' CSS Font Family list
*/
declare const getFont: <TFont extends Font>(name: TFont) => (typeof fonts)[TFont];
export type { Font };
export { getFont };