From f76cf185a564358c0b90e19b08372ebe65303632 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 24 Apr 2024 21:53:27 +0000 Subject: [PATCH] the variant for the base button --- src/themes/Variants.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/themes/Variants.tsx b/src/themes/Variants.tsx index 6d03f47..d5bc28e 100644 --- a/src/themes/Variants.tsx +++ b/src/themes/Variants.tsx @@ -1,4 +1,5 @@ -import { VariantProps, createRestyleComponent, createVariant } from "@shopify/restyle"; +import Box from "@components/bases/Box"; +import { type VariantProps, createRestyleComponent, createVariant } from "@shopify/restyle"; import type { Theme } from "@themes/Theme"; export const cardVariants = createVariant({ @@ -8,6 +9,20 @@ export const cardVariants = createVariant({ phone: "s", tablet: "m", }, - backgroundColor: "secondary", + backgroundColor: "white", + }, +}); + +export const buttonVariants = createVariant({ + themeKey: "buttonVariants", + defaults: { + backgroundColor: "primary", + color: "secondary", + height: 50, + borderRadius: 10, + margin: { + phone: "s", + tablet: "m", + }, }, }); -- libgit2 0.27.1