Commit 197cada0 by G

add color transparent and a card variants

parent 8b0f03fb
...@@ -14,6 +14,7 @@ const palette = { ...@@ -14,6 +14,7 @@ const palette = {
black: "#0B0B0B", black: "#0B0B0B",
white: "#FFFFFF", white: "#FFFFFF",
transparent: "transparent",
green: "#00875A", green: "#00875A",
lightGray: "#F4F5F7", lightGray: "#F4F5F7",
gray: "#747E98", gray: "#747E98",
...@@ -30,6 +31,7 @@ const theme = createTheme({ ...@@ -30,6 +31,7 @@ const theme = createTheme({
tertiary: palette.yellow, tertiary: palette.yellow,
black: palette.black, black: palette.black,
white: palette.white, white: palette.white,
transparent: palette.transparent,
lightGray: palette.lightGray, lightGray: palette.lightGray,
gray: palette.gray, gray: palette.gray,
yellow: palette.yellow, yellow: palette.yellow,
......
import { OVERLAY_BACKDROP_Z_INDEX } from "@/contexts/ModalsManagerContext";
import { Dimensions } from "react-native"; import { Dimensions } from "react-native";
export const cardVariants = { export const cardVariants = {
...@@ -59,4 +60,12 @@ export const cardVariants = { ...@@ -59,4 +60,12 @@ export const cardVariants = {
overflow: "hidden", overflow: "hidden",
borderRadius: 15, borderRadius: 15,
}, },
absoluteForegroundScreenSizedTransparentCard: {
width: "100%",
height: "100%",
position: "absolute",
backgroundColor: "transparent",
zIndex: OVERLAY_BACKDROP_Z_INDEX + 1,
margin: 0,
},
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment