boxons/app/shared/theme/index.ts

24 lines
406 B
TypeScript
Raw Normal View History

import Colors from '@/constants/Colors';
2024-10-13 11:29:36 +00:00
import { layout } from './layout';
import { useColorScheme } from 'react-native';
2024-10-13 11:29:36 +00:00
export const theme = {
colors: Colors,
2024-10-13 11:29:36 +00:00
layout
};
export const useThemeColors = () => {
return {
...theme,
};
};
2024-10-13 11:29:36 +00:00
declare module '@emotion/react' {
export interface Theme {
colors: typeof Colors;
2024-10-13 11:29:36 +00:00
layout: typeof layout;
}
}
export type Theme = typeof theme;