import config from "~/../tailwind.config"; const THEME = config.theme.extend.colors; type TerminalColor = keyof { [K in keyof typeof THEME]: K extends `color${number}` ? K : never; }; export const Text = (props: { children: string | Array; bold?: boolean; fg?: TerminalColor; bg?: TerminalColor; }) => ( {props.children} );