diff --git a/src/components/buttonDesign/ButtonDesign.js b/src/components/buttonDesign/ButtonDesign.js index 48a9cd8..a49d62e 100644 --- a/src/components/buttonDesign/ButtonDesign.js +++ b/src/components/buttonDesign/ButtonDesign.js @@ -13,7 +13,30 @@ import blackLeftArrow from "../../assets/icons/black-left-arrow.svg"; import blackUpwardArrow from "../../assets/icons/black-upward-arrow.png"; import blackDownwardArrow from "../../assets/icons/black-downward-arrow.png"; -const ButtonDesign = () => { +const ButtonDesign = ({ + buttonBgColor, + circleArrowBgClr, + buttonTextColor, + buttonBorder, + buttonBorderColor, + buttonBorderRadius, + buttonPaddingX, + buttonPaddingY, + imageMarginRight, + imageWidth, + imageHeight, + // icons + leftArrowWhite, + rightArrowWhite, + upwardArrowWhite, + downwardArrowWhite, + leftArrowBlack, + rightArrowBlack, + upwardArrowBlack, + downwardArrowBlack, + + circleArrow, +}) => { return (
@@ -32,82 +55,71 @@ const ButtonDesign = () => { {/* Button UI Design */}
- -
- -
- -
- -
- -
-
- -
- -
- - - -
-
- -
- - -
- - -
- - -
- -
@@ -117,3 +129,38 @@ const ButtonDesign = () => { }; export default ButtonDesign; + +// color classes that i defined in tailwind.config.js and we can use for text color: +// ----> text-grayTextColor +// ----> text-white + +// color classes that i defined in tailwind.config.js and we can use for background color: +// ----> bg-darkGreenBg +// ----> bg-midGrayBgColor + +// color classes that i defined in tailwind.config.js and we can use for border color: +// ----> border-lightBlueBorderColor + +ButtonDesign.defaultProps = { + buttonBgColor: "bg-darkGreenBg", + circleArrowBgClr: "bg-darkGreenBg", + buttonTextColor: "text-white", + buttonBorder: "border-b-4", + buttonBorderColor: "border-lightBlueBorderColor", + buttonBorderRadius: "rounded", + buttonPaddingX: "px-6", + buttonPaddingY: "py-4", + imageMarginRight: "mr-2", + imageWidth: "w-4", + imageHeight: "h-4", + // icons + leftArrowWhite: true, + rightArrowWhite: false, + upwardArrowWhite: false, + downwardArrowWhite: false, + leftArrowBlack: false, + rightArrowBlack: false, + upwardArrowBlack: false, + downwardArrowBlack: false, + circleArrow: false, +}; diff --git a/src/components/buttonDesign/ButtonDesign.scss b/src/components/buttonDesign/ButtonDesign.scss index e69de29..b0d93c9 100644 --- a/src/components/buttonDesign/ButtonDesign.scss +++ b/src/components/buttonDesign/ButtonDesign.scss @@ -0,0 +1,3 @@ +.btnUiDesign { + @apply flex items-center text-sm md:text-base; +} diff --git a/src/components/productTags/ProductTags.js b/src/components/productTags/ProductTags.js index 3279c20..a6f77e1 100644 --- a/src/components/productTags/ProductTags.js +++ b/src/components/productTags/ProductTags.js @@ -273,735 +273,6 @@ const ProductTags = ({ )}
- {/* 2 */} -
- - - - - - - - -
- {/* 3 */} -
- - - - - - - - -
- {/* 4 */} -
- - - - - - - - -
); @@ -1036,9 +307,9 @@ export default ProductTags; // ----> border-darkBlueBorderColor ProductTags.defaultProps = { - tagtitlecolor: "text-grayTextColor", - tagBgColor: "bg-transparent", - tagBorderColor: "border-grayBorderColor", + tagtitlecolor: "text-lightOrangeTextColor", + tagBgColor: "bg-lightOrangeBgColor", + tagBorderColor: "border-lightOrangeBorderColor", // for icons deliveryIcon: true, rightIcon: false, diff --git a/tailwind.config.js b/tailwind.config.js index 2a75263..d403ceb 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -35,11 +35,11 @@ module.exports = { incrementDecrementBg: "#2E7AB5", darkGreenBg: "#038A99", midGrayBgColor: "#DBDBDB", - lightOrangeBgColor: "#F7B605", - lightYellowBgColor: "#CEFE2D", //opacity should be 10 % instead of 100% - lightBlueBgColor: "#8891FC", //opacity should be 10 % instead of 100% - lightGreenBgColor: "#5DCE06", //opacity should be 3 % instead of 100% - lightPurpleBgColor: "#A680FF", //opacity should be 8 % instead of 100% + lightOrangeBgColor: "#F7B60511", + lightYellowBgColor: "#CEFE2D11", //opacity should be 10 % instead of 100% + lightBlueBgColor: "#8891FC11", //opacity should be 10 % instead of 100% + lightGreenBgColor: "#5DCE0611", //opacity should be 3 % instead of 100% + lightPurpleBgColor: "#A680FF11", //opacity should be 8 % instead of 100% }), borderColor: (theme) => ({ ...theme("colors"),