Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix css

Thiago Araujo da Silva6f21777399d0
diff --git a/frontend/src/components/mfa/setup/RecoveryCodesView.tsx b/frontend/src/components/mfa/setup/RecoveryCodesView.tsx
index 1761c461ba..4c96b99640 100644
--- a/frontend/src/components/mfa/setup/RecoveryCodesView.tsx
+++ b/frontend/src/components/mfa/setup/RecoveryCodesView.tsx
@@ -37,11 +37,11 @@ export const RecoveryCodesView = ({ recoveryCodes, onDownloaded }: Props) => {
return (
<div className="flex flex-col gap-3">
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="rounded-lg border border-border bg-container p-4">
<div className="grid grid-cols-2 gap-x-6 gap-y-2 font-mono text-sm">
{recoveryCodes.map((code, index) => (
- <div key={code} className="flex items-center text-mineshaft-200">
- <span className="w-6 text-right text-mineshaft-400">{index + 1}.</span>
+ <div key={code} className="flex items-center text-foreground">
+ <span className="w-6 text-right text-muted">{index + 1}.</span>
<span className="pl-2">{code}</span>
</div>
))}
diff --git a/frontend/src/components/mfa/setup/VerifyStep.tsx b/frontend/src/components/mfa/setup/VerifyStep.tsx
index 5dfa3324f8..67cad70b7c 100644
--- a/frontend/src/components/mfa/setup/VerifyStep.tsx
+++ b/frontend/src/components/mfa/setup/VerifyStep.tsx
@@ -64,7 +64,7 @@ const TotpVerify = ({ onVerified }: { onVerified: Props["onVerified"] }) => {
{manualSecret && (
<p className="text-xs text-muted">
Can&apos;t scan? Enter this key manually:{" "}
- <code className="rounded bg-mineshaft-700 px-2 py-0.5 font-mono text-mineshaft-100">
+ <code className="rounded border border-border bg-container px-2 py-0.5 font-mono text-foreground">
{manualSecret}
</code>
</p>
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx
index 3279287c6c..8ba1a5d05c 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx
@@ -71,8 +71,8 @@ export const MFASection = () => {
if (user.authMethods?.includes(AuthMethod.LDAP)) {
return (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h2 className="text-lg font-medium text-mineshaft-100">Two-factor Authentication</h2>
+ <div className="rounded-lg border border-border bg-card p-4">
+ <h2 className="text-lg font-medium text-foreground">Two-factor Authentication</h2>
<p className="mt-1 text-sm text-muted">
Two-factor authentication is managed by your identity provider for LDAP accounts.
</p>
@@ -118,9 +118,9 @@ export const MFASection = () => {
};
const disabledView = (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-6">
+ <div className="mb-6 rounded-lg border border-border bg-card p-6">
<div className="flex items-start justify-between">
- <h2 className="text-lg font-medium text-mineshaft-100">Two-factor Authentication</h2>
+ <h2 className="text-lg font-medium text-foreground">Two-factor Authentication</h2>
<Badge variant="danger">
<CircleAlertIcon /> Not enabled
</Badge>
@@ -132,7 +132,7 @@ export const MFASection = () => {
href={LEARN_MORE_URL}
target="_blank"
rel="noopener noreferrer"
- className="underline underline-offset-2 hover:text-mineshaft-200"
+ className="underline underline-offset-2 hover:text-foreground"
>
Click here
</a>
@@ -147,9 +147,9 @@ export const MFASection = () => {
const enabledView = (
<div className="mb-6 flex flex-col gap-6">
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-6">
+ <div className="rounded-lg border border-border bg-card p-6">
<div className="flex items-start justify-between">
- <h2 className="text-lg font-medium text-mineshaft-100">Two-factor Authentication</h2>
+ <h2 className="text-lg font-medium text-foreground">Two-factor Authentication</h2>
<Badge variant="success">
<ShieldCheckIcon /> Enabled
</Badge>
@@ -159,8 +159,8 @@ export const MFASection = () => {
options below.
</p>
- <div className="mt-6 border-t border-mineshaft-700 pt-6">
- <p className="text-sm font-medium text-mineshaft-100">Preferred 2FA method</p>
+ <div className="mt-6 border-t border-border pt-6">
+ <p className="text-sm font-medium text-foreground">Preferred 2FA method</p>
<p className="mb-3 text-sm text-muted">
Set the method used first when signing in to Infisical.
</p>
@@ -189,7 +189,7 @@ export const MFASection = () => {
</div>
</div>
- <div className="mt-6 flex items-center justify-between gap-4 border-t border-mineshaft-700 pt-6">
+ <div className="mt-6 flex items-center justify-between gap-4 border-t border-border pt-6">
<p className="text-sm text-muted">
{isMfaEnforced
? "Your organization requires two-factor authentication, so it can't be disabled."
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MfaMethodsCard.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MfaMethodsCard.tsx
index dad85af6c4..ec0d501487 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MfaMethodsCard.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MfaMethodsCard.tsx
@@ -37,7 +37,7 @@ const MethodRow = ({ icon: Icon, title, description, badge, action }: MethodRowP
<Icon className="mt-0.5 text-muted" />
<div>
<div className="flex items-center gap-2">
- <p className="text-sm text-mineshaft-100">{title}</p>
+ <p className="text-sm text-foreground">{title}</p>
{badge}
</div>
<p className="text-xs text-muted">{description}</p>
@@ -74,9 +74,9 @@ export const MfaMethodsCard = () => {
};
return (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-2 text-sm font-medium text-mineshaft-100">Two-factor methods</h3>
- <div className="divide-y divide-mineshaft-700">
+ <div className="rounded-lg border border-border bg-card p-4">
+ <h3 className="mb-2 text-sm font-medium text-foreground">Two-factor methods</h3>
+ <div className="divide-y divide-border">
<MethodRow
icon={MailIcon}
title="Email"
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
index ad358421ec..e5e22d71cb 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx
@@ -100,19 +100,19 @@ export const PasskeyManagerDialog = ({ isOpen, onOpenChange }: Props) => {
) : (
<div className="flex flex-col gap-2">
{credentials.length === 0 && (
- <p className="rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4 text-center text-sm text-muted">
+ <p className="rounded-lg border border-border bg-container p-4 text-center text-sm text-muted">
No passkeys registered yet.
</p>
)}
{credentials.map((credential) => (
<div
key={credential.id}
- className="flex items-center justify-between rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-3"
+ className="flex items-center justify-between rounded-lg border border-border bg-container p-3"
>
<div className="flex items-center gap-3">
<FingerprintIcon className="text-muted" />
<div>
- <p className="text-sm text-mineshaft-100">
+ <p className="text-sm text-foreground">
{credential.name || "Unnamed passkey"}
</p>
<p className="text-xs text-muted">
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/RecoveryOptionsCard.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/RecoveryOptionsCard.tsx
index bbdbb767c4..c1a43bd460 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/RecoveryOptionsCard.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/RecoveryOptionsCard.tsx
@@ -48,14 +48,14 @@ export const RecoveryOptionsCard = () => {
};
return (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 text-sm font-medium text-mineshaft-100">Recovery options</h3>
+ <div className="rounded-lg border border-border bg-card p-4">
+ <h3 className="mb-4 text-sm font-medium text-foreground">Recovery options</h3>
<div className="flex items-center justify-between gap-4">
<div className="flex items-start gap-3">
<KeyRoundIcon className="mt-0.5 text-muted" />
<div>
<div className="flex items-center gap-2">
- <p className="text-sm text-mineshaft-100">Recovery codes</p>
+ <p className="text-sm text-foreground">Recovery codes</p>
{hasViewed && <Badge variant="neutral">Viewed</Badge>}
</div>
<p className="text-xs text-muted">