From 976cc0ba2eab8ec8acfa75712e7f16773ca33116 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 25 May 2022 13:38:11 +0430 Subject: [PATCH] update ColorCard.js, default.js, src/components/ThemeColor/index.js and tailwind.config.js --- src/components/ThemeColor/ColorCard.js | 14 +++++++++++--- src/components/ThemeColor/default.js | 19 ++++++++++++------- src/components/ThemeColor/index.js | 3 ++- tailwind.config.js | 1 + 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/components/ThemeColor/ColorCard.js b/src/components/ThemeColor/ColorCard.js index 5cb4832..301c030 100644 --- a/src/components/ThemeColor/ColorCard.js +++ b/src/components/ThemeColor/ColorCard.js @@ -1,13 +1,21 @@ import React from "react"; import ItemColor from "./ItemColor"; -const ColorCard = ({ theme, text, dark, light, item, setItem }) => { +const ColorCard = ({ + theme, + text, + dark, + light, + borderColor, + item, + setItem, +}) => { return (
setItem(item)} > diff --git a/src/components/ThemeColor/default.js b/src/components/ThemeColor/default.js index 47a038f..eb53b9f 100644 --- a/src/components/ThemeColor/default.js +++ b/src/components/ThemeColor/default.js @@ -1,13 +1,18 @@ const defaultTheme = { - primary: "#61DAFB", + primary: "#00a8ff", primaryText: "#000000", - primaryDark: "#61DAFB", - primaryLight: "#61DAFB", - secondary: "#254E70", + primaryDark: "#005dff", + primaryLight: "#70ceff", + secondary: "#0dbe94", secondaryText: "#000000", - secondaryDark: "#61DAFB", - secondaryLight: "#61DAFB", + secondaryDark: "#008868", + secondaryLight: "#4effd5", + background: "#ffffff", + backgroundText: "#000000", + surface: "#6eb1d2", + surfaceText: "#000000", + surfaceBorder: "#166a95", }; const classNames = - "bg-primary text-primaryText bg-secondary text-secondaryText bg-primaryDark bg-primaryLight text-primaryDark text-primaryLight bg-primaryDark bg-secondaryLight text-secondaryDark text-secondaryLight bg-secondaryDark text-secondaryDark "; + "bg-primary text-primaryText bg-secondary text-secondaryText bg-primaryDark bg-primaryLight text-primaryDark text-primaryLight bg-primaryDark bg-secondaryLight text-secondaryDark text-secondaryLight bg-secondaryDark text-secondaryDark bg-background text-backgroundText bg-surface text-surfaceText border-surfaceBorder"; export default defaultTheme; diff --git a/src/components/ThemeColor/index.js b/src/components/ThemeColor/index.js index e178e6e..5ae52a2 100644 --- a/src/components/ThemeColor/index.js +++ b/src/components/ThemeColor/index.js @@ -55,7 +55,7 @@ const ThemeColor = () => { setItem={setItem} />
-
+
{ theme={theme} item="surface" text={true} + borderColor={true} setItem={setItem} />
diff --git a/tailwind.config.js b/tailwind.config.js index d7f884a..26c7ec1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -24,6 +24,7 @@ module.exports = { backgroundText: "var(--theme-backgroundText)", surface: "var(--theme-surface)", surfaceText: "var(--theme-surfaceText)", + surfaceBorder: "var(--theme-surfaceBorder)", }, }, plugins: [