import type { AllPartial } from './common'; import type { Theme as NavigationTheme } from '@react-navigation/native'; import type { config } from '@/theme/_config'; import type generateConfig from '@/theme/ThemeProvider/generateConfig'; export type FulfilledThemeConfiguration = { readonly backgrounds: Record; borders: { readonly colors: Record; radius: readonly number[]; widths: readonly number[]; }; readonly colors: Record; fonts: { readonly colors: Record; sizes: readonly number[]; }; gutters: readonly number[]; readonly navigationColors: NavigationTheme['colors']; }; export type ThemeConfiguration = { variants: Record>; } & FulfilledThemeConfiguration; export type ThemeState = { variant: Variant; }; export type UnionConfiguration = ReturnType; export type Variant = 'default' | keyof typeof config.variants; export type VariantThemeConfiguration = { readonly backgrounds: FulfilledThemeConfiguration['backgrounds']; borders: { readonly colors: FulfilledThemeConfiguration['borders']['colors']; }; readonly colors: FulfilledThemeConfiguration['colors']; fonts: { readonly colors: FulfilledThemeConfiguration['fonts']['colors']; }; readonly navigationColors: Partial; };