update ColorCard.js, default.js, src/components/ThemeColor/index.js and tailwind.config.js

master
mahdi 3 years ago
parent c91b8fc315
commit abc5678d97
  1. 2
      src/components/ThemeColor/ColorCard.js
  2. 10
      src/components/ThemeColor/default.js
  3. 9
      tailwind.config.js

@ -18,7 +18,7 @@ const ColorCard = ({
} ${borderColor ? ` border border-${item}Border` : ""} `} } ${borderColor ? ` border border-${item}Border` : ""} `}
onClick={() => setItem(item)} onClick={() => setItem(item)}
> >
<ItemColor className=" text-2xl font-bold" item={item} theme={theme} /> <ItemColor className="text-2xl font-bold" item={item} theme={theme} />
<div className="flex flex-row items-center justify-between mt-5 "> <div className="flex flex-row items-center justify-between mt-5 ">
{text && ( {text && (
<ItemColor <ItemColor

@ -13,14 +13,14 @@ const defaultTheme = {
surfaceText: "#000000", surfaceText: "#000000",
surfaceBorder: "#FF08AD", surfaceBorder: "#FF08AD",
info: "#43c1ff", info: "#43c1ff",
infoMessageText: "#000000", infoText: "#000000",
success: "#42b258", success: "#42b258",
successMessageText: "#000000", successText: "#000000",
warning: "#ffa200", warning: "#ffa200",
warningMessageText: "#000000", warningText: "#000000",
error: "#ff4600", error: "#ff4600",
errorMessageText: "#000000", errorText: "#000000",
}; };
const classNames = 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-background text-backgroundText bg-surface text-surfaceText border-surfaceBorder bg-info text-infoMessageText bg-success text-successMessageText bg-warning text-warningMessageText bg-error text-errorMessageText"; "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 bg-info text-infoText bg-success text-successText bg-warning text-warningText bg-error text-errorText";
export default defaultTheme; export default defaultTheme;

@ -26,15 +26,16 @@ module.exports = {
surfaceText: "var(--theme-surfaceText)", surfaceText: "var(--theme-surfaceText)",
surfaceBorder: "var(--theme-surfaceBorder)", surfaceBorder: "var(--theme-surfaceBorder)",
info: "var(--theme-info)", info: "var(--theme-info)",
infoMessageText: "var(--theme-infoMessageText)", infoText: "var(--theme-infoText)",
success: "var(--theme-success)", success: "var(--theme-success)",
successMessageText: "var(--theme-successMessageText)", successText: "var(--theme-successText)",
warning: "var(--theme-warning)", warning: "var(--theme-warning)",
warningMessageText: "var(--theme-warningMessageText)", warningText: "var(--theme-warningText)",
error: "var(--theme-error)", error: "var(--theme-error)",
errorMessageText: "var(--theme-errorMessageText)", errorText: "var(--theme-errorText)",
}, },
}, },
plugins: [ plugins: [
require("@themesberg/flowbite/plugin"), require("@themesberg/flowbite/plugin"),
require("tw-elements/dist/plugin"), require("tw-elements/dist/plugin"),

Loading…
Cancel
Save