@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
68 lines • 1.67 kB
TypeScript
import { type TextStyle } from 'react-native';
export interface ThemeColors {
text: string;
background: string;
inputBackground: string;
placeholder: string;
primary: string;
border: string;
error: string;
success: string;
warning: string;
secondaryText: string;
}
export interface Theme {
colors: ThemeColors;
fonts: {
title: TextStyle;
body: TextStyle;
button: TextStyle;
label: TextStyle;
};
}
export declare const getTheme: (theme: "light" | "dark") => Theme;
export declare const useThemeColors: (theme: "light" | "dark") => ThemeColors;
export declare const createCommonStyles: (theme: "light" | "dark") => {
container: {
backgroundColor: string;
};
scrollContainer: {
padding: number;
};
input: {
height: number;
borderRadius: number;
paddingHorizontal: number;
borderWidth: number;
fontSize: number;
backgroundColor: string;
borderColor: string;
color: string;
};
button: {
backgroundColor: string;
height: number;
borderRadius: number;
alignItems: "center";
justifyContent: "center";
marginTop: number;
};
buttonText: {
fontFamily: string;
fontSize: number;
fontWeight: "600";
color: string;
};
errorContainer: {
backgroundColor: string;
padding: number;
borderRadius: number;
marginBottom: number;
};
errorText: {
fontSize: number;
fontWeight: "500";
color: string;
};
};
//# sourceMappingURL=theme.d.ts.map