@aws-amplify/ui
Version:
`@aws-amplify/ui` contains low-level logic & styles for stand-alone usage or re-use in framework-specific implementations.
9 lines (8 loc) • 618 B
TypeScript
import type { DesignTokenValues, FontValue, OutputVariantKey, RecursiveDesignToken } from './types/designToken';
type FontVariant = 'variable' | 'static';
type BaseFonts<Output extends OutputVariantKey = unknown, Platform = unknown> = {
default?: DesignTokenValues<FontVariant, FontValue, Output, Platform>;
};
export type Fonts<Output extends OutputVariantKey = unknown, Platform = unknown> = (Output extends 'required' | 'default' ? Required<BaseFonts<Output, Platform>> : BaseFonts<Output, Platform>) & RecursiveDesignToken<FontValue, Output, Platform>;
export declare const fonts: Fonts<'default'>;
export {};