UNPKG

@nexara/nativeflow

Version:

Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.

23 lines (21 loc) 734 B
// import Color from "color"; // import { dialogSizes, typographySizes } from "../constants"; // import type { ThemeColorTypes, ThemeTypes } from "./ThemeTypes"; // const createTheme = (theme: ThemeColorTypes) => { // console.log(theme) // const primaryColor = Color(theme.primary) // const isPrimaryDark = primaryColor.isDark(); // return { // isDark: false, // colors: { // ...theme, // outline: '#8080805e', // disable: Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string(), // }, // typography: { // variantSizes: typographySizes // }, // dialogSizes // } // } // export default createTheme;