web: use accentForeground color instead of white

This commit is contained in:
Abdullah Atta
2023-09-04 20:35:43 +05:00
committed by Abdullah Atta
parent 7b57639076
commit 32d0b07f09
5 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ export function CodeblockComponent(
position: "relative",
lineHeight: "20px",
// bg: "var(--background-secondary)",
color: "white",
// color: "white",
overflowX: "hidden",
display: "flex"
}}

View File

@@ -73,7 +73,7 @@ const secondary: ThemeUIStyleObject = createButtonVariant(
"paragraph"
);
const accent = createButtonVariant("accent", "white", {
const accent = createButtonVariant("accent", "accentForeground", {
hover: { bg: alpha("accent", 0.9) },
active: { bg: alpha("accent", 0.8) }
});
@@ -81,7 +81,7 @@ const accentSecondary = createButtonVariant("shade", "accent", {
hover: { bg: alpha("shade", 0.3) }
});
const error = createButtonVariant("accent-error", "white", {
const error = createButtonVariant("accent-error", "accentForeground-error", {
hover: { bg: alpha("accent-error", 0.9) }
});