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

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

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

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

Loading…
Cancel
Save