UNPKG

@madeja-studio/telar

Version:

UI component library by Madeja Studio

30 lines (27 loc) 1.13 kB
import { defaultTheme as buttonTheme } from '../component/Button/theme'; import '../component/Button/theme.gen'; import { defaultTheme as dialogTheme } from '../component/Dialog/theme'; import '../component/Dialog/theme.gen'; import { defaultTheme as navigationBarTheme } from '../component/NavigationBar/theme'; import '../component/NavigationBar/theme.gen'; import { defaultTheme as pagerTheme } from '../component/Pager/theme'; import '../component/Pager/theme.gen'; import { defaultTheme as separatorTheme } from '../component/Separator/theme'; import '../component/Separator/theme.gen'; import { defaultTheme as textTheme } from '../component/Text/theme'; import '../component/Text/theme.gen'; import { defaultTheme as toastTheme } from '../component/Toast/theme'; import '../component/Toast/theme.gen'; import { coreTheme } from './core'; export const getAllSubThemes = <T extends object>() => { return { core: coreTheme, button: buttonTheme, dialog: dialogTheme, navigationBar: navigationBarTheme, pager: pagerTheme, separator: separatorTheme, text: textTheme, toast: toastTheme, } as T; };