Skip to content

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

improvement(ui): replace non-PKI legacy palette literals with V3 tokens (#8837)

Andrew Huang56d9188cbcab
diff --git a/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx b/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
index 5be2c2b9e2..fc39097f7b 100644
--- a/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
+++ b/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
@@ -23,12 +23,12 @@ const TemplateCard = ({
<button
type="button"
onClick={() => onSelect(template)}
- className="group flex cursor-pointer flex-col gap-3 rounded-md border border-border bg-card p-4 text-left transition-colors hover:border-mineshaft-500 hover:bg-mineshaft-700/50"
+ className="group flex cursor-pointer flex-col gap-3 rounded-md border border-border bg-card p-4 text-left transition-colors hover:border-foreground/15 hover:bg-container-hover"
>
<div className="flex items-start justify-between gap-2">
- <div className="flex size-9 items-center justify-center rounded-md bg-mineshaft-700">
+ <div className="flex size-9 items-center justify-center rounded-md bg-container">
{hasImageError ? (
- <GlobeIcon className="size-5 text-bunker-300" />
+ <GlobeIcon className="size-5 text-muted" />
) : (
<ProviderIcon
icon={template.image}
@@ -54,11 +54,11 @@ const CustomCard = ({ onSelect }: { onSelect: () => void }) => (
<button
type="button"
onClick={onSelect}
- className="group flex cursor-pointer flex-col gap-3 rounded-md border border-dashed border-mineshaft-500 bg-card p-4 text-left transition-colors hover:border-mineshaft-400 hover:bg-mineshaft-700/50"
+ className="group flex cursor-pointer flex-col gap-3 rounded-md border border-dashed border-border bg-card p-4 text-left transition-colors hover:border-foreground/15 hover:bg-container-hover"
>
<div className="flex items-start gap-2">
- <div className="flex size-9 items-center justify-center rounded-md bg-mineshaft-700">
- <PlusIcon className="size-5 text-bunker-300" />
+ <div className="flex size-9 items-center justify-center rounded-md bg-container">
+ <PlusIcon className="size-5 text-muted" />
</div>
</div>
<div className="flex flex-col gap-1">
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncSourceFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncSourceFields.tsx
index 8da450fe32..c5712cc2f5 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncSourceFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncSourceFields.tsx
@@ -171,7 +171,7 @@ const DefaultSecretSyncSourceFields = () => {
{isChecking && (
<div className="flex items-center gap-2">
<Spinner size="xs" />
- <p className="text-xs text-mineshaft-300">
+ <p className="text-xs text-label">
Checking for naming conflicts across folders...
</p>
</div>
diff --git a/frontend/src/components/v3/generic/Field/Field.tsx b/frontend/src/components/v3/generic/Field/Field.tsx
index 60f1017856..93f2edbf3e 100644
--- a/frontend/src/components/v3/generic/Field/Field.tsx
+++ b/frontend/src/components/v3/generic/Field/Field.tsx
@@ -114,7 +114,7 @@ function FieldContent({ className, ...props }: React.ComponentProps<"div">) {
const fieldLabelVariants = cva(
cn(
- "group/field-label peer/field-label flex w-fit items-center gap-1.5 border-border leading-snug text-accent transition-colors duration-75 group-data-[invalid=true]/field:text-danger group-data-[disabled=true]/field:opacity-50 [--control-variant-color:var(--color-primary)] [--control-variant-border-color:var(--color-border)]",
+ "group/field-label peer/field-label flex w-fit items-center gap-1.5 border-border leading-snug text-accent transition-colors duration-75 group-data-[invalid=true]/field:text-danger group-data-[disabled=true]/field:opacity-50 [--control-variant-color:var(--color-project)] [--control-variant-border-color:var(--color-border)]",
"has-[>[data-slot=field]]:cursor-pointer has-[>[data-slot=field]]:rounded-md",
"has-[>[data-slot=field]]:border has-[>[data-slot=field]]:bg-transparent has-[>[data-slot=field]]:hover:bg-container-hover [&>*]:data-[slot=field]:p-2.5 [&>svg]:size-3",
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/StripeConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/StripeConnectionForm.tsx
index 1821da9e74..5419b47b57 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/StripeConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/StripeConnectionForm.tsx
@@ -171,7 +171,7 @@ export const StripeConnectionForm = ({ appConnection, projectId }: Props) => {
/>
{!isLoading && isMissingConfig && (
- <p className="mb-4 text-sm text-red">
+ <p className="mb-4 text-sm text-danger">
Environment variables have not been configured.{" "}
{isInfisicalCloud()
? "Please contact Infisical."