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