Skip to content

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

feat(ui): add light mode (#7708)

Andrew Huang29d12e72e962
diff --git a/DESIGN.md b/DESIGN.md
index 0e0c5300ec..e5cdfc08cd 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -282,7 +282,7 @@ for elements that float (Popover, DropdownMenu, Sheet, SelectedActionBar).
| Layer | Surface | Border |
| --------------- | ---------------------------------------- | ----------------------------------- |
-| Page | `bg-page` | — |
+| Page | `bg-background` | — |
| Card | `bg-card` | `border-border` |
| Popover / Sheet | `bg-popover` | `border-border` + `shadow-lg` |
| Floating bar | `bg-popover` | `border-border` + `shadow-floating` |
diff --git a/frontend/CLAUDE.md b/frontend/CLAUDE.md
index 9453121cc4..eb3064ca33 100644
--- a/frontend/CLAUDE.md
+++ b/frontend/CLAUDE.md
@@ -80,7 +80,7 @@ CASL-based (`@casl/ability`). Contexts: `OrgPermissionContext` and `ProjectPermi
### Styling
-Tailwind CSS v4 with PostCSS. Dark theme configured via CSS custom properties in `src/index.css` (`@theme` directive). Custom breakpoint `dashboard: 1100px`. Typography roles: Inter is the default product UI face, Alliance is the display face, `font-mono` remains the functional application mono, and `font-jetbrains-mono` is reserved for decorative technical microcopy. See the root `DESIGN.md` before assigning a non-default face. Color palette: primary (blue), mineshaft (dark gray), bunker (darker bg), success/warning/danger/info.
+Tailwind CSS v4 with PostCSS. Dark theme configured via CSS custom properties in `src/index.css` (`@theme` directive). Custom breakpoint `dashboard: 1100px`. Typography roles: Inter is the default product UI face, Alliance is the display face, `font-mono` remains the functional application mono, and `font-jetbrains-mono` is reserved for decorative technical microcopy. See the root `DESIGN.md` before assigning a non-default face. Colors use semantic roles from `src/index.css`, including surfaces, content, structure, status, scope, and product/resource accents.
### Layouts
diff --git a/frontend/public/images/integrations/Ab Initio.on-light.png b/frontend/public/images/integrations/Ab Initio.on-light.png
new file mode 100644
index 0000000000..919dd911d5
Binary files /dev/null and b/frontend/public/images/integrations/Ab Initio.on-light.png differ
diff --git a/frontend/public/images/integrations/Amazon Web Services.on-light.png b/frontend/public/images/integrations/Amazon Web Services.on-light.png
new file mode 100644
index 0000000000..ad10f6e70e
Binary files /dev/null and b/frontend/public/images/integrations/Amazon Web Services.on-light.png differ
diff --git a/frontend/public/images/integrations/Express.on-light.png b/frontend/public/images/integrations/Express.on-light.png
new file mode 100644
index 0000000000..9414b45870
Binary files /dev/null and b/frontend/public/images/integrations/Express.on-light.png differ
diff --git a/frontend/public/images/integrations/GitHub.on-light.png b/frontend/public/images/integrations/GitHub.on-light.png
new file mode 100644
index 0000000000..3b6c3986fe
Binary files /dev/null and b/frontend/public/images/integrations/GitHub.on-light.png differ
diff --git a/frontend/public/images/integrations/Gradle.on-light.png b/frontend/public/images/integrations/Gradle.on-light.png
new file mode 100644
index 0000000000..6a23f0807b
Binary files /dev/null and b/frontend/public/images/integrations/Gradle.on-light.png differ
diff --git a/frontend/public/images/integrations/Infisical.on-light.png b/frontend/public/images/integrations/Infisical.on-light.png
new file mode 100644
index 0000000000..07d8b394de
Binary files /dev/null and b/frontend/public/images/integrations/Infisical.on-light.png differ
diff --git a/frontend/public/images/integrations/Next.js.on-light.png b/frontend/public/images/integrations/Next.js.on-light.png
new file mode 100644
index 0000000000..84d4b6a724
Binary files /dev/null and b/frontend/public/images/integrations/Next.js.on-light.png differ
diff --git a/frontend/public/images/integrations/Nutanix.on-light.png b/frontend/public/images/integrations/Nutanix.on-light.png
new file mode 100644
index 0000000000..07578c2cfa
Binary files /dev/null and b/frontend/public/images/integrations/Nutanix.on-light.png differ
diff --git a/frontend/public/images/integrations/Railway.on-light.png b/frontend/public/images/integrations/Railway.on-light.png
new file mode 100644
index 0000000000..6bb251df1d
Binary files /dev/null and b/frontend/public/images/integrations/Railway.on-light.png differ
diff --git a/frontend/public/images/integrations/Remix.on-light.png b/frontend/public/images/integrations/Remix.on-light.png
new file mode 100644
index 0000000000..bc41a281ca
Binary files /dev/null and b/frontend/public/images/integrations/Remix.on-light.png differ
diff --git a/frontend/public/images/integrations/SSH.on-light.png b/frontend/public/images/integrations/SSH.on-light.png
new file mode 100644
index 0000000000..56bf119c2a
Binary files /dev/null and b/frontend/public/images/integrations/SSH.on-light.png differ
diff --git a/frontend/public/images/integrations/Venafi.on-light.png b/frontend/public/images/integrations/Venafi.on-light.png
new file mode 100644
index 0000000000..db94f4c7eb
Binary files /dev/null and b/frontend/public/images/integrations/Venafi.on-light.png differ
diff --git a/frontend/src/components/agent-vault/ServiceIconStack.tsx b/frontend/src/components/agent-vault/ServiceIconStack.tsx
index 6b92df635c..6d26ed11e2 100644
--- a/frontend/src/components/agent-vault/ServiceIconStack.tsx
+++ b/frontend/src/components/agent-vault/ServiceIconStack.tsx
@@ -2,6 +2,7 @@ import { ComponentPropsWithoutRef, forwardRef, ReactNode, useMemo, useState } fr
import { GlobeIcon } from "lucide-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { cn } from "@app/components/v3/utils";
import { findTemplateForHostPattern } from "@app/helpers/agentVaultTemplates";
@@ -52,8 +53,8 @@ const ServiceChip = forwardRef<HTMLDivElement, TServiceChipProps>(
return (
<div ref={ref} className={cn(chipClassName, className)} {...props}>
{icon.image && !hasImageError ? (
- <img
- src={`/images/integrations/${icon.image}`}
+ <ProviderIcon
+ icon={icon.image}
alt=""
className="size-full object-contain p-1"
onError={() => setHasImageError(true)}
diff --git a/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx b/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
index a046bfec55..5be2c2b9e2 100644
--- a/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
+++ b/frontend/src/components/agent-vault/ServiceTemplateSelect.tsx
@@ -2,6 +2,7 @@ import { useMemo, useState } from "react";
import { GlobeIcon, PlusIcon, SearchIcon } from "lucide-react";
import { InputGroup, InputGroupAddon, InputGroupInput } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import {
AGENT_VAULT_TEMPLATES,
AgentVaultTemplate,
@@ -29,8 +30,8 @@ const TemplateCard = ({
{hasImageError ? (
<GlobeIcon className="size-5 text-bunker-300" />
) : (
- <img
- src={`/images/integrations/${template.image}`}
+ <ProviderIcon
+ icon={template.image}
alt={`${template.name} logo`}
className="size-6 object-contain"
onError={() => setHasImageError(true)}
diff --git a/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx b/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx
index 7ebc1b3da7..c9a71fc581 100644
--- a/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx
+++ b/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx
@@ -18,6 +18,7 @@ import {
StepperList,
StepperStep
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { AgentVaultTemplate } from "@app/helpers/agentVaultTemplates";
import { useDiscardChangesGuard, useWizardSteps } from "@app/hooks";
import {
@@ -302,11 +303,7 @@ export const ServiceSheet = ({ isOpen, onOpenChange, accessBundleId, service }:
<>
<SheetTitle className="flex items-center gap-2.5">
{template && (
- <img
- src={`/images/integrations/${template.image}`}
- alt=""
- className="size-6 object-contain"
- />
+ <ProviderIcon icon={template.image} alt="" className="size-6 object-contain" />
)}
{template?.name ?? (isUpdate ? service?.name : "Custom")}
<DocumentationLinkBadge href={SERVICE_DOCS_URL} />
diff --git a/frontend/src/components/approvals/PolicyApprovalSteps.tsx b/frontend/src/components/approvals/PolicyApprovalSteps.tsx
index 870bdfd980..7847bc4d9d 100644
--- a/frontend/src/components/approvals/PolicyApprovalSteps.tsx
+++ b/frontend/src/components/approvals/PolicyApprovalSteps.tsx
@@ -82,10 +82,8 @@ export const PolicyApprovalSteps = ({ applicationId }: Props = {}) => {
<div className="space-y-4">
<div className="mb-3 flex items-center justify-between">
<div>
- <span className="text-sm font-medium text-mineshaft-200">Approval Steps</span>
- <p className="text-xs text-mineshaft-400">
- Define the approval workflow with sequential steps
- </p>
+ <span className="text-sm font-medium text-foreground-secondary">Approval Steps</span>
+ <p className="text-xs text-muted">Define the approval workflow with sequential steps</p>
</div>
<Button
type="button"
@@ -107,15 +105,13 @@ export const PolicyApprovalSteps = ({ applicationId }: Props = {}) => {
<div className="space-y-4">
{stepFields.map((field, index) => (
- <div key={field.id} className="rounded border border-mineshaft-600 bg-mineshaft-700 p-4">
+ <div key={field.id} className="rounded border border-border-control bg-surface-hover p-4">
<div className="mb-3 flex items-center justify-between">
<div className="flex items-center gap-2">
- <span className="flex h-6 w-6 items-center justify-center rounded-full bg-primary/20 text-xs font-semibold text-primary">
+ <span className="flex h-6 w-6 items-center justify-center rounded-full bg-project/20 text-xs font-semibold text-project">
{index + 1}
</span>
- <span className="text-sm font-medium text-mineshaft-300">
- Approval Step {index + 1}
- </span>
+ <span className="text-sm font-medium text-label">Approval Step {index + 1}</span>
</div>
{stepFields.length > 1 && (
<IconButton
@@ -124,7 +120,7 @@ export const PolicyApprovalSteps = ({ applicationId }: Props = {}) => {
size="xs"
onClick={() => removeStep(index)}
>
- <FontAwesomeIcon icon={faTrash} className="text-red-500" />
+ <FontAwesomeIcon icon={faTrash} className="text-danger" />
</IconButton>
)}
</div>
@@ -170,7 +166,7 @@ export const PolicyApprovalSteps = ({ applicationId }: Props = {}) => {
/>
<div className="space-y-3">
- <div className="text-sm font-medium text-mineshaft-200">Approvers</div>
+ <div className="text-sm font-medium text-foreground-secondary">Approvers</div>
<Controller
control={control}
name={`steps.${index}.approvers`}
@@ -252,9 +248,9 @@ export const PolicyApprovalSteps = ({ applicationId }: Props = {}) => {
</div>
{stepFields.length === 0 && (
- <div className="rounded border border-dashed border-mineshaft-600 bg-mineshaft-800/50 p-8 text-center">
- <p className="text-sm text-mineshaft-400">No approval steps defined</p>
- <p className="mt-1 text-xs text-mineshaft-500">
+ <div className="rounded border border-dashed border-border-control bg-surface-raised/50 p-8 text-center">
+ <p className="text-sm text-muted">No approval steps defined</p>
+ <p className="mt-1 text-xs text-surface-selected">
Click &quot;Add Step&quot; to create your first approval step
</p>
</div>
diff --git a/frontend/src/components/auth/AuthPageLayout.tsx b/frontend/src/components/auth/AuthPageLayout.tsx
index 21195cc2db..3c36189252 100644
--- a/frontend/src/components/auth/AuthPageLayout.tsx
+++ b/frontend/src/components/auth/AuthPageLayout.tsx
@@ -38,7 +38,7 @@ export const AuthPageLayout = ({
return (
<div
className={cn(
- "min-h-screen bg-linear-to-r from-card to-bunker-900 to-75%",
+ "min-h-screen bg-linear-to-r from-card to-page-deep to-75%",
isSplit &&
"lg:grid lg:grid-cols-[minmax(440px,44%)_minmax(0,1fr)] xl:grid-cols-[minmax(520px,40%)_minmax(0,1fr)]"
)}
diff --git a/frontend/src/components/auth/InitialSignupStep.tsx b/frontend/src/components/auth/InitialSignupStep.tsx
index 558ab4cbfe..b309bbd271 100644
--- a/frontend/src/components/auth/InitialSignupStep.tsx
+++ b/frontend/src/components/auth/InitialSignupStep.tsx
@@ -124,7 +124,7 @@ export default function InitialSignupStep({
<div className="mx-auto flex w-full flex-col items-center justify-center">
<AuthPagePanel>
<CardHeader className="mb-6 gap-2">
- <CardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="ml-0.5 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
Sign up
</CardTitle>
<CardDescription className="ml-0.5 text-base">
diff --git a/frontend/src/components/auth/Mfa.tsx b/frontend/src/components/auth/Mfa.tsx
index 8dbfd47eb6..eb7f591521 100644
--- a/frontend/src/components/auth/Mfa.tsx
+++ b/frontend/src/components/auth/Mfa.tsx
@@ -300,7 +300,7 @@ export const Mfa = ({ successCallback, closeMfa, email, method, onChangeAccount
onAcknowledgedChange: setHasSavedRecoveryCodes,
confirmLabel: "Continue",
isConfirmPending: isLoading,
- labelClassName: "text-bunker-200",
+ labelClassName: "text-foreground-soft",
onConfirm: async () => {
setIsLoading(true);
await completeLogin();
diff --git a/frontend/src/components/auth/OrgNameStep.tsx b/frontend/src/components/auth/OrgNameStep.tsx
index 137aae47c8..06b0423cbe 100644
--- a/frontend/src/components/auth/OrgNameStep.tsx
+++ b/frontend/src/components/auth/OrgNameStep.tsx
@@ -70,7 +70,7 @@ export default function OrgNameStep({ onComplete }: OrgNameStepProps): JSX.Eleme
<div className="mx-auto flex w-full flex-col items-center justify-center">
<AuthPagePanel>
<CardHeader className="mb-4 gap-2">
- <CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
Name your organization
</CardTitle>
<CardDescription className="text-sm text-label">
diff --git a/frontend/src/components/auth/ProductSelectionStep.tsx b/frontend/src/components/auth/ProductSelectionStep.tsx
index fab9555bc7..808fa0e583 100644
--- a/frontend/src/components/auth/ProductSelectionStep.tsx
+++ b/frontend/src/components/auth/ProductSelectionStep.tsx
@@ -156,7 +156,7 @@ export default function ProductSelectionStep({
<div className="mx-auto flex w-full max-w-xl flex-col items-center justify-center">
<AuthPagePanel className="gap-6">
<CardHeader className="gap-2">
- <CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
What brings you to Infisical?
</CardTitle>
<CardDescription className="text-sm text-label">
diff --git a/frontend/src/components/auth/TeamInviteStep.tsx b/frontend/src/components/auth/TeamInviteStep.tsx
index 40a245a3a6..7eaaa5ae76 100644
--- a/frontend/src/components/auth/TeamInviteStep.tsx
+++ b/frontend/src/components/auth/TeamInviteStep.tsx
@@ -108,7 +108,7 @@ export default function TeamInviteStep({
<div className="mx-auto flex w-full max-w-xl flex-col items-center justify-center">
<AuthPagePanel>
<CardHeader className="mb-4 gap-2">
- <CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
{t("signup.step5-invite-team")}
</CardTitle>
<CardDescription className="text-sm text-label">
diff --git a/frontend/src/components/auth/UserInfoStep.tsx b/frontend/src/components/auth/UserInfoStep.tsx
index 721b7c2b15..2a5cf8bc44 100644
--- a/frontend/src/components/auth/UserInfoStep.tsx
+++ b/frontend/src/components/auth/UserInfoStep.tsx
@@ -176,18 +176,18 @@ export default function UserInfoStep({
>
{isInvite ? (
<>
- <span className="shrink-0 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-transparent opacity-70">
+ <span className="shrink-0 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-transparent opacity-70">
Join
</span>
<span
- className="min-w-0 truncate bg-linear-to-b from-white to-bunker-200 bg-clip-text text-transparent"
+ className="min-w-0 truncate bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-transparent"
title={inviteOrganizationLabel}
>
{inviteOrganizationLabel}
</span>
</>
) : (
- <span className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-transparent">
+ <span className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-transparent">
{stepTitle}
</span>
)}
diff --git a/frontend/src/components/basic/Error.tsx b/frontend/src/components/basic/Error.tsx
index 1ef937e4a4..f5a887134a 100644
--- a/frontend/src/components/basic/Error.tsx
+++ b/frontend/src/components/basic/Error.tsx
@@ -4,8 +4,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
const Error = ({ text }: { text: string }): JSX.Element => {
return (
<div className="relative m-auto flex w-fit flex-row items-center justify-center rounded-full">
- <FontAwesomeIcon icon={faExclamationTriangle} className="mx-2 mt-1.5 mb-2 text-red" />
- {text && <p className="relative top-0 mr-2 py-1 text-sm text-red">{text}</p>}
+ <FontAwesomeIcon icon={faExclamationTriangle} className="mx-2 mt-1.5 mb-2 text-danger" />
+ {text && <p className="relative top-0 mr-2 py-1 text-sm text-danger">{text}</p>}
</div>
);
};
diff --git a/frontend/src/components/basic/InputField.tsx b/frontend/src/components/basic/InputField.tsx
index b9ad8b41c4..76da4600d2 100644
--- a/frontend/src/components/basic/InputField.tsx
+++ b/frontend/src/components/basic/InputField.tsx
@@ -40,15 +40,15 @@ const InputField = ({
if (isStatic === true) {
return (
<div className="my-2 flex w-full max-w-md flex-col justify-center md:my-4">
- <p className="mb-0.5 text-sm font-medium text-gray-400">{label}</p>
- {text && <p className="mb-2 text-xs text-gray-400">{text}</p>}
+ <p className="mb-0.5 text-sm font-medium text-muted-cool">{label}</p>
+ {text && <p className="mb-2 text-xs text-muted-cool">{text}</p>}
<input
onChange={(e) => onChangeHandler(e.target.value)}
type={type}
placeholder={placeholder}
value={value}
required={isRequired}
- className="text-md w-full min-w-16 rounded-md border border-gray-600 bg-bunker-800 p-2 text-gray-400 outline-hidden"
+ className="text-md w-full min-w-16 rounded-md border border-border-cool-strong bg-page p-2 text-muted-cool outline-hidden"
name={name}
readOnly
autoComplete={autoComplete}
@@ -59,12 +59,12 @@ const InputField = ({
}
return (
<div className="w-full flex-col">
- <div className="mb-0.5 flex flex-row items-center text-mineshaft-300">
+ <div className="mb-0.5 flex flex-row items-center text-label">
<p className="mr-1 text-sm font-medium">{label}</p>
</div>
<div
className={`group relative flex w-full max-w-2xl flex-col justify-center border ${
- error ? "border-red" : "border-mineshaft-500"
+ error ? "border-danger" : "border-border-strong"
} rounded-md`}
>
<input
@@ -75,11 +75,11 @@ const InputField = ({
required={isRequired}
className={`${
blurred
- ? "text-bunker-800 group-hover:text-gray-400 focus:text-gray-400 active:text-gray-400"
+ ? "text-page group-hover:text-muted-cool focus:text-muted-cool active:text-muted-cool"
: ""
} ${
- error ? "focus:ring-red/50" : "focus:ring-primary/50"
- } text-md peer relative w-full min-w-16 rounded-md bg-mineshaft-900 p-2 text-gray-400 outline-hidden duration-200 focus:ring-4`}
+ error ? "focus:ring-danger/50" : "focus:ring-project/50"
+ } text-md peer relative w-full min-w-16 rounded-md bg-surface-base p-2 text-muted-cool outline-hidden duration-200 focus:ring-4`}
name={name}
spellCheck="false"
autoComplete={autoComplete}
@@ -91,7 +91,7 @@ const InputField = ({
onClick={() => {
setPasswordVisible(!passwordVisible);
}}
- className="absolute mr-3 cursor-pointer self-end text-gray-400"
+ className="absolute mr-3 cursor-pointer self-end text-muted-cool"
>
{passwordVisible ? (
<FontAwesomeIcon icon={faEyeSlash} />
@@ -101,7 +101,7 @@ const InputField = ({
</button>
)}
{blurred && (
- <div className="peer absolute flex h-10 w-fit max-w-xl items-center overflow-hidden rounded-md text-clip text-gray-400/50 group-hover:!hidden peer-hover:hidden peer-focus:hidden peer-active:invisible">
+ <div className="peer absolute flex h-10 w-fit max-w-xl items-center overflow-hidden rounded-md text-clip text-muted-cool/50 group-hover:!hidden peer-hover:hidden peer-focus:hidden peer-active:invisible">
<p className="ml-2" />
{value
.split("")
@@ -121,7 +121,7 @@ const InputField = ({
</div>
)} */}
</div>
- {error && <p className="mx-0 mt-0.5 mb-2 max-w-xs text-xs text-red">{errorText}</p>}
+ {error && <p className="mx-0 mt-0.5 mb-2 max-w-xs text-xs text-danger">{errorText}</p>}
</div>
);
};
diff --git a/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx b/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx
index 1932e50601..c2cf79304d 100644
--- a/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx
+++ b/frontend/src/components/honey-tokens/HoneyTokenDetailsDrawer.tsx
@@ -40,6 +40,7 @@ import {
TooltipContent,
TooltipTrigger
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { ProjectPermissionSub, useProjectPermission } from "@app/context";
import { ProjectPermissionHoneyTokenActions } from "@app/context/ProjectPermissionContext/types";
import { HONEY_TOKEN_CREDENTIAL_FIELDS, HONEY_TOKEN_MAP } from "@app/helpers/honeyTokens";
@@ -153,8 +154,8 @@ const HoneyTokenDetailsContent = ({
<div className="flex items-start pr-8">
<div className="flex items-center gap-3">
{tokenInfo && (
- <img
- src={`/images/integrations/${tokenInfo.image}`}
+ <ProviderIcon
+ icon={tokenInfo.image}
className="h-10 w-10 shrink-0"
alt={`${tokenInfo.name} logo`}
/>
diff --git a/frontend/src/components/honey-tokens/HoneyTokenModalHeader.tsx b/frontend/src/components/honey-tokens/HoneyTokenModalHeader.tsx
index fa359c910d..ed4015aea7 100644
--- a/frontend/src/components/honey-tokens/HoneyTokenModalHeader.tsx
+++ b/frontend/src/components/honey-tokens/HoneyTokenModalHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge, SheetDescription, SheetTitle } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { HONEY_TOKEN_MAP } from "@app/helpers/honeyTokens";
import { HoneyTokenType } from "@app/hooks/api/honeyTokens/enums";
@@ -12,11 +13,7 @@ export const HoneyTokenModalHeader = ({ type, isEdit }: Props) => {
return (
<div className="flex w-full items-center gap-3">
- <img
- alt={`${details.name} logo`}
- src={`/images/integrations/${details.image}`}
- className="h-10 w-10"
- />
+ <ProviderIcon alt={`${details.name} logo`} icon={details.image} className="h-10 w-10" />
<div className="flex flex-col gap-1">
<SheetTitle className="flex items-center gap-x-2">
{isEdit ? "Edit" : ""} {details.name} Honey Token
diff --git a/frontend/src/components/honey-tokens/HoneyTokenSelect.tsx b/frontend/src/components/honey-tokens/HoneyTokenSelect.tsx
index f52cf440b1..1922bea341 100644
--- a/frontend/src/components/honey-tokens/HoneyTokenSelect.tsx
+++ b/frontend/src/components/honey-tokens/HoneyTokenSelect.tsx
@@ -1,4 +1,5 @@
import { Item, ItemContent, ItemMedia, ItemTitle } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { HONEY_TOKEN_MAP } from "@app/helpers/honeyTokens";
import { HoneyTokenType } from "@app/hooks/api/honeyTokens/enums";
@@ -24,7 +25,7 @@ export const HoneyTokenSelect = ({ onSelect }: Props) => {
>
<button type="button" onClick={() => onSelect(type)}>
<ItemMedia variant="image" className="size-12">
- <img src={`/images/integrations/${image}`} width={size} alt="" />
+ <ProviderIcon icon={image} width={size} alt="" />
</ItemMedia>
<ItemContent className="items-center">
<ItemTitle>{name}</ItemTitle>
diff --git a/frontend/src/components/integrations/NoEnvironmentsBanner.tsx b/frontend/src/components/integrations/NoEnvironmentsBanner.tsx
index 6df1b535b1..d27aaa04cd 100644
--- a/frontend/src/components/integrations/NoEnvironmentsBanner.tsx
+++ b/frontend/src/components/integrations/NoEnvironmentsBanner.tsx
@@ -10,7 +10,7 @@ export const NoEnvironmentsBanner = ({ projectId }: IProps) => {
const navigate = useNavigate();
return (
- <div className="mt-4 flex w-full flex-row items-center rounded-md border border-primary-600/70 bg-primary/[.07] p-4 text-base text-white">
+ <div className="mt-4 flex w-full flex-row items-center rounded-md border border-project/70 bg-project/[.07] p-4 text-base text-foreground-inverse">
<div className="flex w-full flex-col text-sm">
<span className="mb-2 text-lg font-medium">No environments in your project was found</span>
<p>
diff --git a/frontend/src/components/navigation/RegionSelect.tsx b/frontend/src/components/navigation/RegionSelect.tsx
index f310873178..23e4f52813 100644
--- a/frontend/src/components/navigation/RegionSelect.tsx
+++ b/frontend/src/components/navigation/RegionSelect.tsx
@@ -126,7 +126,7 @@ export const RegionSelect = ({ compact }: RegionSelectProps) => {
<div className="h-4 w-5 shrink-0">{flag}</div>
<span className="font-medium">{label}</span>
</div>
- <ul className="ml-4 flex list-disc flex-col gap-1 text-sm text-mineshaft-300">
+ <ul className="ml-4 flex list-disc flex-col gap-1 text-sm text-label">
{bullets.map((bullet) => (
<li key={bullet}>{bullet}</li>
))}
diff --git a/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx b/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
index d9effbac9a..69190c5492 100644
--- a/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
+++ b/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
@@ -40,7 +40,7 @@ export const SecretDashboardPathBreadcrumb = ({
<span
className={twMerge(
"text-sm transition-all",
- isCopying ? "text-bunker-200" : "text-bunker-300"
+ isCopying ? "text-foreground-soft" : "text-label-secondary"
)}
>
{folderName}
@@ -59,7 +59,7 @@ export const SecretDashboardPathBreadcrumb = ({
type: "info"
});
}}
- className="opacity-0 transition duration-75 group-hover:opacity-100 hover:bg-bunker-100/10"
+ className="opacity-0 transition duration-75 group-hover:opacity-100 hover:bg-foreground-default/10"
>
<FontAwesomeIcon
icon={!isCopying ? faCopy : faCheck}
@@ -82,8 +82,8 @@ export const SecretDashboardPathBreadcrumb = ({
environments: [environmentSlug]
})}
className={twMerge(
- "text-sm transition-all hover:text-primary",
- isCopying && "text-primary"
+ "text-sm transition-all hover:text-project",
+ isCopying && "text-project"
)}
>
{folderName}
diff --git a/frontend/src/components/notifications/Notifications.tsx b/frontend/src/components/notifications/Notifications.tsx
index d662d0f940..66fe646bde 100644
--- a/frontend/src/components/notifications/Notifications.tsx
+++ b/frontend/src/components/notifications/Notifications.tsx
@@ -7,6 +7,7 @@ import { twMerge } from "tailwind-merge";
import { IconButton } from "@app/components/v3/generic/IconButton";
import { Toaster } from "@app/components/v3/generic/Toast";
import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3/generic/Tooltip";
+import { useTheme } from "@app/components/v3/platform/ThemeProvider";
import { useTimedReset } from "@app/hooks";
export type NotificationType = "success" | "error" | "info" | "warning" | "loading" | "default";
@@ -84,9 +85,7 @@ const NotificationBody = ({
>
{copyActions.map((action) => (
<div className="flex flex-row items-center gap-1.5" key={`copy-${action.name}`}>
- {action.label && (
- <span className="ml-2 text-xs text-mineshaft-400">{action.label}</span>
- )}
+ {action.label && <span className="ml-2 text-xs text-muted">{action.label}</span>}
<ToastCopyButton value={action.value} name={action.name} />
</div>
))}
@@ -144,4 +143,7 @@ export const createNotification = (
export const dismissNotification = (id: string | number) => toast.dismiss(id);
// All styling/position/close-button config lives in the v3 Toaster itself.
-export const NotificationContainer = () => <Toaster />;
+export const NotificationContainer = () => {
+ const { theme } = useTheme();
+ return <Toaster theme={theme} />;
+};
diff --git a/frontend/src/components/permissions/GlobPermissionInfo.tsx b/frontend/src/components/permissions/GlobPermissionInfo.tsx
index 3eea05c3ed..7a4c968651 100644
--- a/frontend/src/components/permissions/GlobPermissionInfo.tsx
+++ b/frontend/src/components/permissions/GlobPermissionInfo.tsx
@@ -5,34 +5,28 @@ import { Field, FieldDescription, FieldLabel, Input } from "../v3";
export const GlobPatternTooltip = () => (
<div className="space-y-1.5 text-left text-xs">
- <p className="font-medium text-mineshaft-200">This field supports glob patterns:</p>
- <div className="text-mineshaft-300">
- <code className="text-yellow-500/80">*</code> matches a single path segment
+ <p className="font-medium text-foreground-secondary">This field supports glob patterns:</p>
+ <div className="text-label">
+ <code className="text-warning/80">*</code> matches a single path segment
<br />
- <span className="text-mineshaft-400">
- user/* matches user/admin but not user/admin/service
- </span>
+ <span className="text-muted">user/* matches user/admin but not user/admin/service</span>
</div>
- <div className="text-mineshaft-300">
- <code className="text-yellow-500/80">**</code> matches zero or more segments at any depth
+ <div className="text-label">
+ <code className="text-warning/80">**</code> matches zero or more segments at any depth
<br />
- <span className="text-mineshaft-400">
- user/** matches user/admin, user/admin/service, etc.
- </span>
+ <span className="text-muted">user/** matches user/admin, user/admin/service, etc.</span>
</div>
</div>
);
export const BashGlobPatternTooltip = () => (
<div className="space-y-1.5 text-left text-xs">
- <p className="font-medium text-mineshaft-200">This field supports glob patterns:</p>
- <p className="text-mineshaft-300">
- <code className="text-yellow-500/80">*</code> matches any characters
+ <p className="font-medium text-foreground-secondary">This field supports glob patterns:</p>
+ <p className="text-label">
+ <code className="text-warning/80">*</code> matches any characters
</p>
<p>
- <span className="text-mineshaft-400">
- user/* matches user/admin, user/admin/service, etc.
- </span>
+ <span className="text-muted">user/* matches user/admin, user/admin/service, etc.</span>
</p>
</div>
);
diff --git a/frontend/src/components/pki-syncs/PkiSyncImportStatusBadge.tsx b/frontend/src/components/pki-syncs/PkiSyncImportStatusBadge.tsx
index e9ebe292e0..49bf4ebb4c 100644
--- a/frontend/src/components/pki-syncs/PkiSyncImportStatusBadge.tsx
+++ b/frontend/src/components/pki-syncs/PkiSyncImportStatusBadge.tsx
@@ -51,13 +51,13 @@ export const PkiSyncImportStatusBadge = ({ pkiSync, mini }: Props) => {
tooltipContent = failureMessage && (
<div className="flex flex-col gap-2 py-1 whitespace-normal">
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<FontAwesomeIcon icon={faXmark} className="ml-1 pt-0.5 pr-1.5 text-sm" />
<div className="text-xs">
{mini ? "Failed to Import Certificates" : "Failure Reason"}
</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs">{failureMessage}</div>
</div>
</div>
);
diff --git a/frontend/src/components/pki-syncs/PkiSyncModalHeader.tsx b/frontend/src/components/pki-syncs/PkiSyncModalHeader.tsx
index 3a2511228b..048cdc62d8 100644
--- a/frontend/src/components/pki-syncs/PkiSyncModalHeader.tsx
+++ b/frontend/src/components/pki-syncs/PkiSyncModalHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { PKI_SYNC_MAP } from "@app/helpers/pkiSyncs";
import { PkiSync } from "@app/hooks/api/pkiSyncs";
@@ -12,19 +13,19 @@ export const PkiSyncModalHeader = ({ destination, isConfigured }: Props) => {
return (
<div className="flex w-full items-start gap-2">
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} logo`}
- src={`/images/integrations/${destinationDetails.image}`}
- className="h-12 w-12 rounded-md bg-bunker-500 object-contain p-2"
+ icon={destinationDetails.image}
+ className="h-12 w-12 rounded-md bg-surface-recessed object-contain p-2"
/>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
{destinationDetails.name} Certificate Sync
<DocumentationLinkBadge
href={`https://infisical.com/docs/documentation/platform/pki/applications/certificate-syncs/${destination}`}
/>
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
{isConfigured
? `Edit ${destinationDetails.name} Certificate Sync`
: `Sync certificates to ${destinationDetails.name}`}
diff --git a/frontend/src/components/pki-syncs/PkiSyncRemoveStatusBadge.tsx b/frontend/src/components/pki-syncs/PkiSyncRemoveStatusBadge.tsx
index 5ecb13bbb0..4bfee769cb 100644
--- a/frontend/src/components/pki-syncs/PkiSyncRemoveStatusBadge.tsx
+++ b/frontend/src/components/pki-syncs/PkiSyncRemoveStatusBadge.tsx
@@ -51,13 +51,13 @@ export const PkiSyncRemoveStatusBadge = ({ pkiSync, mini }: Props) => {
tooltipContent = failureMessage && (
<div className="flex flex-col gap-2 py-1 whitespace-normal">
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<FontAwesomeIcon icon={faXmark} className="ml-1 pt-0.5 pr-1.5 text-sm" />
<div className="text-xs">
{mini ? "Failed to Remove Certificates" : "Failure Reason"}
</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs">{failureMessage}</div>
</div>
</div>
);
diff --git a/frontend/src/components/pki-syncs/PkiSyncSelect.tsx b/frontend/src/components/pki-syncs/PkiSyncSelect.tsx
index 216f118026..9d386da8db 100644
--- a/frontend/src/components/pki-syncs/PkiSyncSelect.tsx
+++ b/frontend/src/components/pki-syncs/PkiSyncSelect.tsx
@@ -11,6 +11,7 @@ import {
InputGroupAddon,
InputGroupInput
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { useSubscription } from "@app/context";
import { PKI_SYNC_MAP } from "@app/helpers/pkiSyncs";
import { usePopUp } from "@app/hooks";
@@ -29,15 +30,11 @@ const SyncCard = ({ destination, onClick }: { destination: PkiSync; onClick: ()
<button
type="button"
onClick={onClick}
- 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-border-strong hover:bg-surface-hover/50"
>
<div className="flex items-start justify-between gap-2">
- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
- <img
- src={`/images/integrations/${image}`}
- alt={`${name} logo`}
- className="h-6 w-6 object-contain"
- />
+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
+ <ProviderIcon icon={image} alt={`${name} logo`} className="h-6 w-6 object-contain" />
</div>
<span className="text-[10px] font-medium tracking-wider text-muted uppercase">
{category}
diff --git a/frontend/src/components/pki-syncs/PkiSyncStatusBadge.tsx b/frontend/src/components/pki-syncs/PkiSyncStatusBadge.tsx
index e7272b882a..f019038e4b 100644
--- a/frontend/src/components/pki-syncs/PkiSyncStatusBadge.tsx
+++ b/frontend/src/components/pki-syncs/PkiSyncStatusBadge.tsx
@@ -83,7 +83,7 @@ export const PkiSyncStatusBadge = ({ status, lastSyncedAt, lastSyncMessage }: Pr
<CalendarCheckIcon className="size-3" />
<div className="text-xs">Last Synced</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs">
+ <div className="rounded-sm bg-surface-active p-2 text-xs">
{format(new Date(lastSyncedAt), "yyyy-MM-dd, hh:mm aaa")}
</div>
</div>
@@ -94,7 +94,7 @@ export const PkiSyncStatusBadge = ({ status, lastSyncedAt, lastSyncMessage }: Pr
<XIcon className="size-3" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">
+ <div className="rounded-sm bg-surface-active p-2 text-xs break-words">
{failureMessage}
</div>
</div>
diff --git a/frontend/src/components/pki-syncs/forms/PkiSyncDestinationFields.tsx b/frontend/src/components/pki-syncs/forms/PkiSyncDestinationFields.tsx
index 85454e3aa8..13bfab21bd 100644
--- a/frontend/src/components/pki-syncs/forms/PkiSyncDestinationFields.tsx
+++ b/frontend/src/components/pki-syncs/forms/PkiSyncDestinationFields.tsx
@@ -55,7 +55,7 @@ export const PkiSyncDestinationFields = ({ isUpdate }: Props) => {
return <NutanixPrismCentralPkiSyncFields />;
default:
return (
- <div className="flex items-center justify-center rounded-md border border-red-500 bg-red-100 p-4 text-red-700">
+ <div className="flex items-center justify-center rounded-md border border-danger bg-danger/10 p-4 text-danger">
<p>Unsupported destination: {destination}</p>
</div>
);
diff --git a/frontend/src/components/projects/CertManagerSelectInstanceModal.tsx b/frontend/src/components/projects/CertManagerSelectInstanceModal.tsx
index 8e9c1d4367..cd1de4b952 100644
--- a/frontend/src/components/projects/CertManagerSelectInstanceModal.tsx
+++ b/frontend/src/components/projects/CertManagerSelectInstanceModal.tsx
@@ -58,7 +58,7 @@ export const CertManagerSelectInstanceModal = ({
href="https://infisical.com/docs/documentation/platform/pki/migration"
target="_blank"
rel="noopener noreferrer"
- className="text-primary-500 hover:underline"
+ className="text-project hover:underline"
>
View the migration guide.
</a>
diff --git a/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx b/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx
index e19eb32309..d3c56fb898 100644
--- a/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx
+++ b/frontend/src/components/proxied-services/ProxiedServiceModalHeader.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import { GlobeIcon } from "lucide-react";
import { DocumentationLinkBadge, SheetDescription, SheetTitle } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { PROXIED_SERVICE_QUICKSTART_URL } from "./forms/stepMeta";
@@ -18,12 +19,12 @@ export const ProxiedServiceModalHeader = ({ title, subtitle, image }: Props) =>
<>
<div className="flex items-center gap-x-3">
{image && (
- <div className="flex h-8 w-8 items-center justify-center rounded-md bg-mineshaft-700">
+ <div className="flex h-8 w-8 items-center justify-center rounded-md bg-surface-hover">
{imgError ? (
- <GlobeIcon className="h-4 w-4 text-bunker-300" />
+ <GlobeIcon className="h-4 w-4 text-label-secondary" />
) : (
- <img
- src={`/images/integrations/${image}`}
+ <ProviderIcon
+ icon={image}
alt=""
className="h-5 w-5 object-contain"
onError={() => setImgError(true)}
diff --git a/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx b/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx
index 801589a5b7..52ac6fdef5 100644
--- a/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx
+++ b/frontend/src/components/proxied-services/ProxiedServiceTemplateSelect.tsx
@@ -2,6 +2,7 @@ import { useMemo, useState } from "react";
import { GlobeIcon, PlusIcon, SearchIcon } from "lucide-react";
import { InputGroup, InputGroupAddon, InputGroupInput } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import {
POPULAR_PROXIED_SERVICE_TEMPLATES,
PROXIED_SERVICE_TEMPLATES,
@@ -27,15 +28,15 @@ const TemplateCard = ({
<button
type="button"
onClick={onClick}
- 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-border-strong hover:bg-surface-hover/50"
>
<div className="flex items-start justify-between gap-2">
- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
{imgError ? (
- <GlobeIcon className="h-5 w-5 text-bunker-300" />
+ <GlobeIcon className="h-5 w-5 text-label-secondary" />
) : (
- <img
- src={`/images/integrations/${template.image}`}
+ <ProviderIcon
+ icon={template.image}
alt={`${template.name} logo`}
className="h-6 w-6 object-contain"
onError={() => setImgError(true)}
@@ -58,11 +59,11 @@ const CustomCard = ({ onClick }: { onClick: () => void }) => (
<button
type="button"
onClick={onClick}
- 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-strong bg-card p-4 text-left transition-colors hover:border-border-emphasis hover:bg-surface-hover/50"
>
<div className="flex items-start gap-2">
- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
- <PlusIcon className="h-5 w-5 text-bunker-300" />
+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
+ <PlusIcon className="h-5 w-5 text-label-secondary" />
</div>
</div>
<div className="flex flex-col gap-1">
diff --git a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx
index 7459916770..02c2ff9709 100644
--- a/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx
+++ b/frontend/src/components/proxied-services/forms/ProxiedServiceSubstitutionDiagram.tsx
@@ -10,6 +10,7 @@ import {
} from "lucide-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { ProxiedServiceTemplate } from "@app/helpers/proxiedServiceTemplates";
import { TProxiedServiceForm } from "./schema";
@@ -46,7 +47,7 @@ const Node = ({
className={`rounded-md border p-2.5 ${
accent
? "border-proxied-service/30 bg-proxied-service/10"
- : "border-border bg-mineshaft-700/40"
+ : "border-border bg-surface-hover/40"
}`}
>
<div className="flex items-center gap-1.5 text-xs font-medium text-foreground">
@@ -62,15 +63,15 @@ const ServiceIcon = ({ template }: { template?: ProxiedServiceTemplate }) => {
if (template && !imgError) {
return (
- <img
- src={`/images/integrations/${template.image}`}
+ <ProviderIcon
+ icon={template.image}
alt=""
className="size-3.5 shrink-0 object-contain"
onError={() => setImgError(true)}
/>
);
}
- return <GlobeIcon className="size-3.5 text-bunker-300" />;
+ return <GlobeIcon className="size-3.5 text-label-secondary" />;
};
export const ProxiedServiceSubstitutionDiagram = ({ template }: Props) => {
@@ -98,9 +99,9 @@ export const ProxiedServiceSubstitutionDiagram = ({ template }: Props) => {
</Tooltip>
</div>
- <Node icon={<BotIcon className="size-3.5 text-bunker-300" />} title="Your Agent">
+ <Node icon={<BotIcon className="size-3.5 text-label-secondary" />} title="Your Agent">
<p className="font-mono text-[11px] break-all">
- <span className="text-bunker-300">{envVar}</span>
+ <span className="text-label-secondary">{envVar}</span>
<span className="text-muted">=</span>
<span className="text-foreground">{placeholder}</span>
</p>
diff --git a/frontend/src/components/roles/RoleOption.tsx b/frontend/src/components/roles/RoleOption.tsx
index 0f0cb12875..8939e29be7 100644
--- a/frontend/src/components/roles/RoleOption.tsx
+++ b/frontend/src/components/roles/RoleOption.tsx
@@ -12,11 +12,11 @@ export const RoleOption = ({
<div className="min-w-0 flex-1">
<p className="truncate">{children}</p>
{props.data.description ? (
- <p className="text-xs leading-4 break-words whitespace-normal text-mineshaft-400">
+ <p className="text-xs leading-4 break-words whitespace-normal text-muted">
{props.data.description}
</p>
) : (
- <p className="text-xs leading-4 text-mineshaft-400/50">No Description</p>
+ <p className="text-xs leading-4 text-muted/50">No Description</p>
)}
</div>
{isSelected && <CheckIcon className="ml-2 size-4 shrink-0" />}
diff --git a/frontend/src/components/secret-rotations-v2/DeleteSecretRotationV2Modal.tsx b/frontend/src/components/secret-rotations-v2/DeleteSecretRotationV2Modal.tsx
index 524c669334..fbf19049e2 100644
--- a/frontend/src/components/secret-rotations-v2/DeleteSecretRotationV2Modal.tsx
+++ b/frontend/src/components/secret-rotations-v2/DeleteSecretRotationV2Modal.tsx
@@ -65,29 +65,29 @@ export const DeleteSecretRotationV2Modal = ({
>
<Switch
containerClassName="mt-4"
- className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-red/50"
- thumbClassName="bg-mineshaft-800"
+ className="bg-muted/50 shadow-inner data-[state=checked]:bg-danger/50"
+ thumbClassName="bg-surface-raised"
isChecked={revokeGeneratedCredentials}
onCheckedChange={setRevokeGeneratedCredentials}
id="revoke-credentials"
>
Revoke Credentials
</Switch>
- <p className="mt-1 font-inter text-sm text-mineshaft-400">
+ <p className="mt-1 font-inter text-sm text-muted">
Generated credentials will {revokeGeneratedCredentials ? "" : "not"} be revoked on deletion
{revokeGeneratedCredentials ? "" : " and remain active"}.
</p>
<Switch
containerClassName="mt-4"
- className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-red/50"
- thumbClassName="bg-mineshaft-800"
+ className="bg-muted/50 shadow-inner data-[state=checked]:bg-danger/50"
+ thumbClassName="bg-surface-raised"
isChecked={deleteSecrets}
onCheckedChange={setDeleteSecrets}
id="delete-secrets"
>
Delete Secrets
</Switch>
- <p className="mt-1 font-inter text-sm text-mineshaft-400">
+ <p className="mt-1 font-inter text-sm text-muted">
Rotation secrets will {deleteSecrets ? "" : "not"} be removed from your project on deletion.
</p>
</DeleteActionModal>
diff --git a/frontend/src/components/secret-rotations-v2/ReconcileLocalAccountRotationModal.tsx b/frontend/src/components/secret-rotations-v2/ReconcileLocalAccountRotationModal.tsx
index 6c4179411d..273a163a22 100644
--- a/frontend/src/components/secret-rotations-v2/ReconcileLocalAccountRotationModal.tsx
+++ b/frontend/src/components/secret-rotations-v2/ReconcileLocalAccountRotationModal.tsx
@@ -52,11 +52,11 @@ const Content = ({ secretRotation, onComplete }: ContentProps) => {
return (
<div>
- <p className="mb-4 text-sm text-mineshaft-200">
+ <p className="mb-4 text-sm text-foreground-secondary">
Reconciliation ensures the password stored in Infisical matches the actual password on the
server.
</p>
- <p className="mb-8 text-sm text-mineshaft-200">
+ <p className="mb-8 text-sm text-foreground-secondary">
Use this if you suspect the credentials are out of sync, for example after a failed rotation
or manual password change on the server.
</p>
diff --git a/frontend/src/components/secret-rotations-v2/RotateSecretRotationV2Modal.tsx b/frontend/src/components/secret-rotations-v2/RotateSecretRotationV2Modal.tsx
index 7ad9611be2..2342e889f2 100644
--- a/frontend/src/components/secret-rotations-v2/RotateSecretRotationV2Modal.tsx
+++ b/frontend/src/components/secret-rotations-v2/RotateSecretRotationV2Modal.tsx
@@ -39,7 +39,7 @@ const Content = ({ secretRotation, onComplete }: ContentProps) => {
return (
<div>
- <p className="mb-8 text-sm text-mineshaft-200">
+ <p className="mb-8 text-sm text-foreground-secondary">
Are you sure you want to rotate the secrets for this {rotationType} Rotation?
</p>
<div className="mt-8 flex w-full items-center justify-between gap-2">
diff --git a/frontend/src/components/secret-rotations-v2/SecretRotationV2ModalHeader.tsx b/frontend/src/components/secret-rotations-v2/SecretRotationV2ModalHeader.tsx
index 5621c9df58..88a66550f9 100644
--- a/frontend/src/components/secret-rotations-v2/SecretRotationV2ModalHeader.tsx
+++ b/frontend/src/components/secret-rotations-v2/SecretRotationV2ModalHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { SECRET_ROTATION_MAP } from "@app/helpers/secretRotationsV2";
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
@@ -12,9 +13,9 @@ export const SecretRotationV2ModalHeader = ({ type, isConfigured }: Props) => {
return (
<div className="flex w-full items-start gap-3 pr-8">
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} logo`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="size-10 rounded-md border border-border bg-card object-contain p-2"
/>
<div className="min-w-0">
diff --git a/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx b/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx
index d8aab2bfd1..9b22b0d5a1 100644
--- a/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx
+++ b/frontend/src/components/secret-rotations-v2/SecretRotationV2Select.tsx
@@ -12,6 +12,7 @@ import {
InputGroupAddon,
InputGroupInput
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { APP_CONNECTION_MAP } from "@app/helpers/appConnections";
import {
SECRET_ROTATION_CONNECTION_MAP,
@@ -35,11 +36,7 @@ const ProviderCard = ({ type, onSelect }: { type: SecretRotation; onSelect: () =
>
<div className="flex items-start justify-between gap-2">
<div className="flex size-9 items-center justify-center rounded-md bg-container">
- <img
- src={`/images/integrations/${image}`}
- alt={`${name} logo`}
- className="size-6 object-contain"
- />
+ <ProviderIcon icon={image} alt={`${name} logo`} className="size-6 object-contain" />
</div>
<span className="text-xs font-medium text-muted">{connectionName}</span>
</div>
diff --git a/frontend/src/components/secret-rotations-v2/SecretRotationV2StatusBadge.tsx b/frontend/src/components/secret-rotations-v2/SecretRotationV2StatusBadge.tsx
index 2826f0615c..e09d345dca 100644
--- a/frontend/src/components/secret-rotations-v2/SecretRotationV2StatusBadge.tsx
+++ b/frontend/src/components/secret-rotations-v2/SecretRotationV2StatusBadge.tsx
@@ -32,16 +32,16 @@ export const SecretRotationV2StatusBadge = ({ secretRotation }: Props) => {
content={
<div className="flex flex-col gap-2 py-1 whitespace-normal">
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<FontAwesomeIcon icon={faXmark} className="ml-1 pt-0.5 pr-1.5 text-sm" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">
+ <div className="rounded-sm bg-surface-active p-2 text-xs break-words">
{errorMessage}
</div>
</div>
{nextRotationAt && (
- <span className="text-xs text-mineshaft-300">
+ <span className="text-xs text-label">
Next rotation attempt on {format(nextRotationAt, "MM/dd/yyyy")} at{" "}
{format(nextRotationAt, "h:mm aa")}.
</span>
@@ -77,7 +77,7 @@ export const SecretRotationV2StatusBadge = ({ secretRotation }: Props) => {
<span>
Rotates on {format(nextRotationAt, "MM/dd/yyyy")} at {format(nextRotationAt, "h:mm aa")}
</span>{" "}
- <span className="text-mineshaft-300">(Local Time)</span>
+ <span className="text-label">(Local Time)</span>
</>
}
asChild
diff --git a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
index 6132be087e..fa242210b5 100644
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
@@ -64,8 +64,8 @@ const Content = ({ secretRotation }: ContentProps) => {
if (isPending) {
return (
<div className="flex h-full flex-col items-center justify-center py-2.5">
- <Spinner size="lg" className="text-mineshaft-500" />
- <p className="mt-4 text-sm text-mineshaft-400">Loading generated credentials...</p>
+ <Spinner size="lg" className="text-surface-selected" />
+ <p className="mt-4 text-sm text-muted">Loading generated credentials...</p>
</div>
);
}
@@ -73,7 +73,7 @@ const Content = ({ secretRotation }: ContentProps) => {
if (!generatedCredentialsResponse) {
return (
<div className="flex w-full justify-center">
- <p className="text-sm text-red">No generated credentials found for this rotation.</p>
+ <p className="text-sm text-danger">No generated credentials found for this rotation.</p>
</div>
);
}
@@ -263,14 +263,14 @@ const Content = ({ secretRotation }: ContentProps) => {
{Component}
{!IS_ROTATION_DUAL_CREDENTIALS[type] && (
<NoticeBannerV2 title={`${appName} Retired Credentials Behavior`}>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
Due to {SECRET_ROTATION_MAP[type].name} Rotations utilizing a single credential set,
retired credentials will not be able to authenticate with {appName} during their{" "}
<a
target="_blank"
href="https://infisical.com/docs/documentation/platform/secret-rotation/overview#how-rotation-works"
rel="noopener noreferrer"
- className="underline decoration-primary underline-offset-2 hover:text-mineshaft-200"
+ className="underline decoration-project underline-offset-2 hover:text-foreground-secondary"
>
inactive period
</a>
@@ -279,12 +279,11 @@ const Content = ({ secretRotation }: ContentProps) => {
</NoticeBannerV2>
)}
{nextRotationAt && (
- <div className="flex items-center gap-x-1.5 text-sm text-mineshaft-200">
- <FontAwesomeIcon icon={faRotate} className="text-mineshaft-400" />
+ <div className="flex items-center gap-x-1.5 text-sm text-foreground-secondary">
+ <FontAwesomeIcon icon={faRotate} className="text-muted" />
<span>
Next rotation occurs on: {format(nextRotationAt, "MM/dd/yyyy")} at{" "}
- {format(nextRotationAt, "h:mm aa")}{" "}
- <span className="text-mineshaft-300">(Local Time)</span>
+ {format(nextRotationAt, "h:mm aa")} <span className="text-label">(Local Time)</span>
</span>
</div>
)}
diff --git a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay.tsx b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay.tsx
index 3d65ba06cf..1bac2befe7 100644
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/CredentialDisplay.tsx
@@ -21,7 +21,7 @@ export const CredentialDisplay = ({ children, label, isSensitive }: Props) => {
return (
<GenericFieldLabel label={label}>
{children ? (
- <div className="flex w-full min-w-0 items-center gap-1 text-mineshaft-100">
+ <div className="flex w-full min-w-0 items-center gap-1 text-foreground">
<span className="min-w-0 flex-1 truncate" title={showCredential ? children : undefined}>
{showCredential ? children : "****************************"}
</span>
diff --git a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/ViewRotationGeneratedCredentialsDisplay.tsx b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/ViewRotationGeneratedCredentialsDisplay.tsx
index 74aa5fbe01..1ab5bdbd0b 100644
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/ViewRotationGeneratedCredentialsDisplay.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/shared/ViewRotationGeneratedCredentialsDisplay.tsx
@@ -14,31 +14,31 @@ export const ViewRotationGeneratedCredentialsDisplay = ({
return (
<>
<div className="flex flex-col gap-2">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-100">
- <FontAwesomeIcon icon={faCheck} className="mr-1.5 text-green" />
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-foreground">
+ <FontAwesomeIcon icon={faCheck} className="mr-1.5 text-success" />
Current Credentials
</span>
</div>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
The active credential set currently mapped to the rotation secrets.
</p>
- <div className="flex flex-col gap-x-8 gap-y-2 rounded-sm border border-mineshaft-600 bg-mineshaft-700 p-2">
+ <div className="flex flex-col gap-x-8 gap-y-2 rounded-sm border border-border-control bg-surface-hover p-2">
{activeCredentials}
</div>
</div>
{inactiveCredentials && (
<div className="flex flex-col gap-2">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-100">
- <FontAwesomeIcon icon={faClockRotateLeft} className="mr-1.5 text-yellow" />
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-foreground">
+ <FontAwesomeIcon icon={faClockRotateLeft} className="mr-1.5 text-warning" />
Retired Credentials
</span>
</div>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
The retired credential set that will be revoked during the next rotation cycle.
</p>
- <div className="flex flex-col gap-x-8 gap-y-2 rounded-sm border border-mineshaft-600 bg-mineshaft-700 p-2">
+ <div className="flex flex-col gap-x-8 gap-y-2 rounded-sm border border-border-control bg-surface-hover p-2">
{inactiveCredentials}
</div>
</div>
diff --git a/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx b/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
index 6e50565024..1b8352ce76 100644
--- a/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
+++ b/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
@@ -111,7 +111,7 @@ export const CreateSecretScanningDataSourceModal = ({ onOpenChange, isOpen, ...p
selectedDataSource ? (
<SecretScanningDataSourceModalHeader isConfigured={false} type={selectedDataSource} />
) : (
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
Add Data Source
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/secret-scanning/overview" />
</div>
diff --git a/frontend/src/components/secret-scanning/DeleteSecretScanningDataSourceModal.tsx b/frontend/src/components/secret-scanning/DeleteSecretScanningDataSourceModal.tsx
index 091de4cc03..34e2a5e82d 100644
--- a/frontend/src/components/secret-scanning/DeleteSecretScanningDataSourceModal.tsx
+++ b/frontend/src/components/secret-scanning/DeleteSecretScanningDataSourceModal.tsx
@@ -51,7 +51,7 @@ export const DeleteSecretScanningDataSourceModal = ({
deleteKey={name}
onDeleteApproved={handleDeleteDataSource}
>
- <p className="mt-1 font-inter text-sm text-mineshaft-400">
+ <p className="mt-1 font-inter text-sm text-muted">
Findings associated with this data source will be preserved.
</p>
</DeleteActionModal>
diff --git a/frontend/src/components/secret-scanning/SecretScanningDataSourceModalHeader.tsx b/frontend/src/components/secret-scanning/SecretScanningDataSourceModalHeader.tsx
index 6ae644fa59..2d269f0b93 100644
--- a/frontend/src/components/secret-scanning/SecretScanningDataSourceModalHeader.tsx
+++ b/frontend/src/components/secret-scanning/SecretScanningDataSourceModalHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { SECRET_SCANNING_DATA_SOURCE_MAP } from "@app/helpers/secretScanningV2";
import { SecretScanningDataSource } from "@app/hooks/api/secretScanningV2";
@@ -12,19 +13,19 @@ export const SecretScanningDataSourceModalHeader = ({ type, isConfigured }: Prop
return (
<div className="flex w-full items-start gap-2">
- <img
+ <ProviderIcon
alt={`${dataSourceDetails.name} logo`}
- src={`/images/integrations/${dataSourceDetails.image}`}
- className="h-12 rounded-md bg-bunker-500 p-2"
+ icon={dataSourceDetails.image}
+ className="h-12 rounded-md bg-surface-recessed p-2"
/>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
{dataSourceDetails.name} Data Source
<DocumentationLinkBadge
href={`https://infisical.com/docs/documentation/platform/secret-scanning/${type}`}
/>
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
{isConfigured ? "Edit" : "Connect a"} {dataSourceDetails.name} Data Source
</p>
</div>
diff --git a/frontend/src/components/secret-scanning/SecretScanningDataSourceSelect.tsx b/frontend/src/components/secret-scanning/SecretScanningDataSourceSelect.tsx
index c507a6ef34..7cafe2cb19 100644
--- a/frontend/src/components/secret-scanning/SecretScanningDataSourceSelect.tsx
+++ b/frontend/src/components/secret-scanning/SecretScanningDataSourceSelect.tsx
@@ -2,6 +2,7 @@ import { faWrench } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Spinner, Tooltip } from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { SECRET_SCANNING_DATA_SOURCE_MAP } from "@app/helpers/secretScanningV2";
import {
SecretScanningDataSource,
@@ -18,8 +19,8 @@ export const SecretScanningDataSourceSelect = ({ onSelect }: Props) => {
if (isPending) {
return (
<div className="flex h-full flex-col items-center justify-center py-2.5">
- <Spinner size="lg" className="text-mineshaft-500" />
- <p className="mt-4 text-sm text-mineshaft-400">Loading options...</p>
+ <Spinner size="lg" className="text-surface-selected" />
+ <p className="mt-4 text-sm text-muted">Loading options...</p>
</div>
);
}
@@ -34,15 +35,10 @@ export const SecretScanningDataSourceSelect = ({ onSelect }: Props) => {
type="button"
key={type}
onClick={() => onSelect(type)}
- className="group relative flex h-28 cursor-pointer flex-col items-center justify-center rounded-md border border-mineshaft-600 bg-mineshaft-700 p-4 duration-200 hover:bg-mineshaft-600"
+ className="group relative flex h-28 cursor-pointer flex-col items-center justify-center rounded-md border border-border-control bg-surface-hover p-4 duration-200 hover:bg-surface-active"
>
- <img
- src={`/images/integrations/${image}`}
- width={size}
- className="mt-auto"
- alt={`${name} logo`}
- />
- <div className="mt-auto max-w-xs text-center text-xs font-medium text-gray-300 duration-200 group-hover:text-gray-200">
+ <ProviderIcon icon={image} width={size} className="mt-auto" alt={`${name} logo`} />
+ <div className="mt-auto max-w-xs text-center text-xs font-medium text-label-cool duration-200 group-hover:text-foreground-cool">
{name}
</div>
</button>
@@ -59,7 +55,7 @@ export const SecretScanningDataSourceSelect = ({ onSelect }: Props) => {
service you're looking for,`}{" "}
<a
target="_blank"
- className="underline hover:text-mineshaft-300"
+ className="underline hover:text-label"
href="https://infisical.com/slack"
rel="noopener noreferrer"
>
@@ -68,7 +64,7 @@ export const SecretScanningDataSourceSelect = ({ onSelect }: Props) => {
or{" "}
<a
target="_blank"
- className="underline hover:text-mineshaft-300"
+ className="underline hover:text-label"
href="https://github.com/Infisical/infisical/discussions"
rel="noopener noreferrer"
>
@@ -79,9 +75,9 @@ export const SecretScanningDataSourceSelect = ({ onSelect }: Props) => {
</>
}
>
- <div className="group relative flex h-28 flex-col items-center justify-center rounded-md border border-dashed border-mineshaft-600 bg-mineshaft-800 p-4 hover:bg-mineshaft-900/50">
+ <div className="group relative flex h-28 flex-col items-center justify-center rounded-md border border-dashed border-border-control bg-surface-raised p-4 hover:bg-surface-base/50">
<FontAwesomeIcon className="mt-auto text-3xl" icon={faWrench} />
- <div className="mt-auto max-w-xs text-center text-xs font-medium text-gray-300 duration-200 group-hover:text-gray-200">
+ <div className="mt-auto max-w-xs text-center text-xs font-medium text-label-cool duration-200 group-hover:text-foreground-cool">
Coming Soon
</div>
</div>
diff --git a/frontend/src/components/secret-scanning/SecretScanningScanStatus.tsx b/frontend/src/components/secret-scanning/SecretScanningScanStatus.tsx
index 35913414f4..39f4d79028 100644
--- a/frontend/src/components/secret-scanning/SecretScanningScanStatus.tsx
+++ b/frontend/src/components/secret-scanning/SecretScanningScanStatus.tsx
@@ -37,15 +37,15 @@ export const SecretScanningScanStatusBadge = ({
content={
<div className="flex flex-col gap-2 py-1 whitespace-normal">
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<FontAwesomeIcon icon={faXmark} className="ml-1 pt-0.5 pr-1.5 text-sm" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">
+ <div className="rounded-sm bg-surface-active p-2 text-xs break-words">
{errorMessage}
</div>
{scannedAt && (
- <div className="mt-1 text-xs text-mineshaft-400">
+ <div className="mt-1 text-xs text-muted">
Attempted {formatDistance(new Date(scannedAt), new Date(), { addSuffix: true })}
</div>
)}
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/BitbucketDataSourceConfigFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/BitbucketDataSourceConfigFields.tsx
index 2a377e6bee..73efcd0e89 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/BitbucketDataSourceConfigFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/BitbucketDataSourceConfigFields.tsx
@@ -86,7 +86,7 @@ export const BitbucketDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the workspaces you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
@@ -121,7 +121,7 @@ export const BitbucketDataSourceConfigFields = () => {
onValueChange={(val) => {
setValue("config.includeRepos", val === ScanMethod.AllRepositories ? ["*"] : []);
}}
- className="w-full border border-mineshaft-500 capitalize"
+ className="w-full border border-border-strong capitalize"
position="popper"
dropdownContainerClassName="max-w-none"
isDisabled={!connectionId}
@@ -151,7 +151,7 @@ export const BitbucketDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the repository you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitHubDataSourceConfigFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitHubDataSourceConfigFields.tsx
index be369bd07f..dea16a4a82 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitHubDataSourceConfigFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitHubDataSourceConfigFields.tsx
@@ -61,7 +61,7 @@ export const GitHubDataSourceConfigFields = () => {
onValueChange={(val) => {
setValue("config.includeRepos", val === ScanMethod.AllRepositories ? ["*"] : []);
}}
- className="w-full border border-mineshaft-500 capitalize"
+ className="w-full border border-border-strong capitalize"
position="popper"
dropdownContainerClassName="max-w-none"
isDisabled={!connectionId}
@@ -92,7 +92,7 @@ export const GitHubDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the repository you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitLabDataSourceConfigFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitLabDataSourceConfigFields.tsx
index 343711328e..82561264e7 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitLabDataSourceConfigFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/GitLabDataSourceConfigFields.tsx
@@ -29,7 +29,7 @@ const formatGitLabGroupOptionLabel = (group: TGitLabGroup) => (
<div className="flex min-w-0 items-center gap-2">
<span className="shrink-0">{group.name}</span>
{group.fullPath !== group.name && (
- <span className="min-w-0 truncate text-mineshaft-400">{group.fullPath}</span>
+ <span className="min-w-0 truncate text-muted">{group.fullPath}</span>
)}
</div>
);
@@ -42,7 +42,7 @@ const formatGitLabProjectOptionLabel = (project: TGitLabProject) => {
<div className="flex min-w-0 items-center gap-2">
<span className="shrink-0">{shortName}</span>
{fullPathWithNamespace !== shortName && (
- <span className="min-w-0 truncate text-mineshaft-400">{fullPathWithNamespace}</span>
+ <span className="min-w-0 truncate text-muted">{fullPathWithNamespace}</span>
)}
</div>
);
@@ -167,15 +167,15 @@ export const GitLabDataSourceConfigFields = () => {
<p>Specify the GitLab scope scanning should be performed at:</p>
<ul className="flex list-disc flex-col gap-3 pl-4">
<li>
- <p className="text-mineshaft-300">
- <span className="font-medium text-bunker-200">Project</span>: Scan an
+ <p className="text-label">
+ <span className="font-medium text-foreground-soft">Project</span>: Scan an
individual GitLab project.
</p>
</li>
<li>
- <p className="text-mineshaft-300">
- <span className="font-medium text-bunker-200">Group</span>: Scan one or more
- projects belonging to a GitLab group.
+ <p className="text-label">
+ <span className="font-medium text-foreground-soft">Group</span>: Scan one or
+ more projects belonging to a GitLab group.
</p>
</li>
</ul>
@@ -188,7 +188,7 @@ export const GitLabDataSourceConfigFields = () => {
onChange(v);
clearAllFields();
}}
- className="w-full border border-mineshaft-500 capitalize"
+ className="w-full border border-border-strong capitalize"
position="popper"
isDisabled={isUpdate}
dropdownContainerClassName="max-w-none"
@@ -226,7 +226,7 @@ export const GitLabDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the project you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
@@ -278,7 +278,7 @@ export const GitLabDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the group you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
@@ -311,7 +311,7 @@ export const GitLabDataSourceConfigFields = () => {
onValueChange={(val) => {
setValue("config.includeProjects", val === ScanMethod.AllProjects ? ["*"] : []);
}}
- className="w-full border border-mineshaft-500 capitalize"
+ className="w-full border border-border-strong capitalize"
position="popper"
dropdownContainerClassName="max-w-none"
isDisabled={!connectionId}
@@ -348,7 +348,7 @@ export const GitLabDataSourceConfigFields = () => {
>
<div>
<span>Don&#39;t see the project you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx
index c4334c29a1..8660f07365 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx
@@ -25,7 +25,7 @@ export const SecretScanningDataSourceConfigFields = () => {
return (
<>
- <p className="mb-4 text-sm text-bunker-300">Connect and configure your Data Source.</p>
+ <p className="mb-4 text-sm text-label-secondary">Connect and configure your Data Source.</p>
<Component />
<Controller
control={control}
@@ -42,9 +42,9 @@ export const SecretScanningDataSourceConfigFields = () => {
errorText={error?.message}
>
<Switch
- className="bg-mineshaft-400/80 shadow-inner data-[state=checked]:bg-green/80"
+ className="bg-muted/80 shadow-inner data-[state=checked]:bg-success/80"
id="auto-scan-enabled"
- thumbClassName="bg-mineshaft-800"
+ thumbClassName="bg-surface-raised"
onCheckedChange={onChange}
isChecked={value}
>
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConnectionField.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConnectionField.tsx
index 2e9e4a2a5b..9304274366 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConnectionField.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConnectionField.tsx
@@ -106,7 +106,7 @@ export const SecretScanningDataSourceConnectionField = ({
name="connection"
/>
{!isUpdate && !isPending && !availableConnections?.length && !canCreateConnection && (
- <p className="-mt-2.5 mb-2.5 text-xs text-yellow">
+ <p className="-mt-2.5 mb-2.5 text-xs text-warning">
<FontAwesomeIcon className="mr-1" size="xs" icon={faInfoCircle} />
You do not have access to any {connectionName} Connections. Contact an admin to create
one.
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceDetailsFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceDetailsFields.tsx
index 9407f31f38..a3535c6b75 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceDetailsFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceDetailsFields.tsx
@@ -9,7 +9,7 @@ export const SecretScanningDataSourceDetailsFields = () => {
return (
<>
- <p className="mb-4 text-sm text-bunker-300">
+ <p className="mb-4 text-sm text-label-secondary">
Provide a name and description for this Data Source.
</p>
<Controller
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceForm.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceForm.tsx
index 563f82d461..53b89c5c3e 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceForm.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceForm.tsx
@@ -128,7 +128,7 @@ export const SecretScanningDataSourceForm = ({
<form className={twMerge(isFinalStep && "max-h-[70vh] overflow-y-auto")}>
<FormProvider {...formMethods}>
<Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}>
- <Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">
+ <Tab.List className="-pb-1 mb-6 w-full border-b-2 border-border-control">
{FORM_TABS.map((tab, index) => (
<Tab
onClick={async (e) => {
@@ -139,8 +139,8 @@ export const SecretScanningDataSourceForm = ({
className={({ selected }) =>
`-mb-[0.14rem] whitespace-nowrap ${index > selectedTabIndex ? "opacity-30" : ""} px-4 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${
selected
- ? "border-b-2 border-mineshaft-300 text-mineshaft-200"
- : "text-bunker-300"
+ ? "border-b-2 border-border-bright text-foreground-secondary"
+ : "text-label-secondary"
}`
}
key={tab.key}
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/SecretScanningDataSourceReviewFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/SecretScanningDataSourceReviewFields.tsx
index 69d630e8ad..2285cf5ce4 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/SecretScanningDataSourceReviewFields.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/SecretScanningDataSourceReviewFields.tsx
@@ -25,8 +25,8 @@ export const SecretScanningDataSourceReviewFields = () => {
<div className="mb-4 flex flex-col gap-6">
<Component />
<div className="flex flex-col gap-3">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-300">Details</span>
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-label">Details</span>
</div>
<div className="flex flex-wrap gap-x-8 gap-y-2">
<GenericFieldLabel label="Name">{name}</GenericFieldLabel>
diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/shared/SecretScanningDataSourceConfigReviewSection.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/shared/SecretScanningDataSourceConfigReviewSection.tsx
index c2613f85d3..2b5ff1c2ae 100644
--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/shared/SecretScanningDataSourceConfigReviewSection.tsx
+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceReviewFields/shared/SecretScanningDataSourceConfigReviewSection.tsx
@@ -7,8 +7,8 @@ type Props = {
export const SecretScanningDataSourceConfigReviewSection = ({ children }: Props) => {
return (
<div className="flex flex-col gap-3">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-300">Configuration</span>
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-label">Configuration</span>
</div>
<div className="flex flex-wrap gap-x-8 gap-y-2">{children}</div>
</div>
diff --git a/frontend/src/components/secret-syncs/SecretSyncImportStatusBadge.tsx b/frontend/src/components/secret-syncs/SecretSyncImportStatusBadge.tsx
index 6ad9e902ea..82a7ed82d6 100644
--- a/frontend/src/components/secret-syncs/SecretSyncImportStatusBadge.tsx
+++ b/frontend/src/components/secret-syncs/SecretSyncImportStatusBadge.tsx
@@ -68,7 +68,7 @@ export const SecretSyncImportStatusBadge = ({ secretSync, mini }: Props) => {
{mini ? "Failed to Import Secrets" : "Failure Reason"}
</div>
</div>
- <div className="rounded-sm bg-ring p-2 text-xs">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs">{failureMessage}</div>
</div>
)}
</div>
diff --git a/frontend/src/components/secret-syncs/SecretSyncModalHeader.tsx b/frontend/src/components/secret-syncs/SecretSyncModalHeader.tsx
index 5fc78781d7..d523943d18 100644
--- a/frontend/src/components/secret-syncs/SecretSyncModalHeader.tsx
+++ b/frontend/src/components/secret-syncs/SecretSyncModalHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { SECRET_SYNC_MAP } from "@app/helpers/secretSyncs";
import { SecretSync } from "@app/hooks/api/secretSyncs";
@@ -14,9 +15,9 @@ export const SecretSyncModalHeader = ({ destination, isConfigured, showDocLink =
return (
<div className="flex w-full items-start gap-2">
<div className="flex h-10 w-10 items-center justify-center rounded-md bg-container">
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} logo`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="h-7 w-7 object-contain"
/>
</div>
diff --git a/frontend/src/components/secret-syncs/SecretSyncRemoveStatusBadge.tsx b/frontend/src/components/secret-syncs/SecretSyncRemoveStatusBadge.tsx
index a206d9b9ef..38555b5017 100644
--- a/frontend/src/components/secret-syncs/SecretSyncRemoveStatusBadge.tsx
+++ b/frontend/src/components/secret-syncs/SecretSyncRemoveStatusBadge.tsx
@@ -68,7 +68,7 @@ export const SecretSyncRemoveStatusBadge = ({ secretSync, mini }: Props) => {
{mini ? "Failed to Remove Secrets" : "Failure Reason"}
</div>
</div>
- <div className="rounded-sm bg-ring p-2 text-xs">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs">{failureMessage}</div>
</div>
)}
</div>
diff --git a/frontend/src/components/secret-syncs/SecretSyncSelect.tsx b/frontend/src/components/secret-syncs/SecretSyncSelect.tsx
index 59857a843a..9436b93731 100644
--- a/frontend/src/components/secret-syncs/SecretSyncSelect.tsx
+++ b/frontend/src/components/secret-syncs/SecretSyncSelect.tsx
@@ -11,6 +11,7 @@ import {
InputGroupAddon,
InputGroupInput
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { useSubscription } from "@app/context";
import { POPULAR_SECRET_SYNCS, SECRET_SYNC_MAP } from "@app/helpers/secretSyncs";
import { usePopUp } from "@app/hooks";
@@ -40,15 +41,11 @@ const ProviderCard = ({
<button
type="button"
onClick={onClick}
- 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/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-border-strong hover:bg-surface-hover/50"
>
<div className="flex items-start justify-between gap-2">
- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-container-hover">
- <img
- src={`/images/integrations/${image}`}
- alt={`${name} logo`}
- className="h-6 w-6 object-contain"
- />
+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
+ <ProviderIcon icon={image} alt={`${name} logo`} className="h-6 w-6 object-contain" />
</div>
<span className="text-[10px] font-medium tracking-wider text-muted uppercase">
{category}
diff --git a/frontend/src/components/secret-syncs/SecretSyncStatusBadge.tsx b/frontend/src/components/secret-syncs/SecretSyncStatusBadge.tsx
index c33aa2d493..303dba5f82 100644
--- a/frontend/src/components/secret-syncs/SecretSyncStatusBadge.tsx
+++ b/frontend/src/components/secret-syncs/SecretSyncStatusBadge.tsx
@@ -95,7 +95,7 @@ export const SecretSyncStatusBadge = ({ status, lastSyncedAt, lastSyncMessage }:
<CalendarCheckIcon className="size-3" />
<div className="text-xs">Last Synced</div>
</div>
- <div className="rounded-sm bg-ring p-2 text-xs">
+ <div className="rounded-sm bg-surface-active p-2 text-xs">
{format(new Date(lastSyncedAt), "yyyy-MM-dd, hh:mm aaa")}
</div>
</div>
@@ -106,7 +106,9 @@ export const SecretSyncStatusBadge = ({ status, lastSyncedAt, lastSyncMessage }:
<XIcon className="size-3" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-ring p-2 text-xs break-words">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs break-words">
+ {failureMessage}
+ </div>
</div>
)}
</div>
diff --git a/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx b/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx
index 10b257f580..23c56b41d4 100644
--- a/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx
@@ -86,7 +86,7 @@ export const AzureEntraIdScimSyncSourceFields = () => {
return (
<>
- <p className="mb-4 text-sm text-label">
+ <p className="mb-4 text-sm text-label-secondary">
Specify the environment and path where you would like to sync secrets from.
</p>
diff --git a/frontend/src/components/secret-syncs/forms/DuplicateDestinationConfirmationModal.tsx b/frontend/src/components/secret-syncs/forms/DuplicateDestinationConfirmationModal.tsx
index 5663667c77..17dc28d226 100644
--- a/frontend/src/components/secret-syncs/forms/DuplicateDestinationConfirmationModal.tsx
+++ b/frontend/src/components/secret-syncs/forms/DuplicateDestinationConfirmationModal.tsx
@@ -51,7 +51,7 @@ export const DuplicateDestinationConfirmationModal = ({
{duplicateProjectId ? (
<>
Duplicate found in project ID:{" "}
- <code className="rounded-sm bg-ring px-1 py-0.5 text-foreground/80">
+ <code className="rounded-sm bg-surface-active px-1 py-0.5 text-foreground-secondary">
{duplicateProjectId}
</code>
</>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsParameterStoreSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsParameterStoreSyncFields.tsx
index 12a9935668..5cb6910a30 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsParameterStoreSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsParameterStoreSyncFields.tsx
@@ -80,9 +80,18 @@ export const AwsParameterStoreSyncFields = () => {
</TooltipTrigger>
<TooltipContent className="max-w-lg">
The path is required and will be prepended to the key schema. For example, if you
- have a path of <Code>/demo/path/</Code> and a key schema of{" "}
- <Code>INFISICAL_{"{{secretKey}}"}</Code>, then the result will be{" "}
- <Code>/demo/path/INFISICAL_{"{{secretKey}}"}</Code>
+ have a path of{" "}
+ <Code className="bg-surface-active px-0.5 py-px text-sm text-label">
+ /demo/path/
+ </Code>{" "}
+ and a key schema of{" "}
+ <Code className="bg-surface-active px-0.5 py-px text-sm text-label">
+ INFISICAL_{"{{secretKey}}"}
+ </Code>
+ , then the result will be{" "}
+ <Code className="bg-surface-active px-0.5 py-px text-sm text-label">
+ /demo/path/INFISICAL_{"{{secretKey}}"}
+ </Code>
</TooltipContent>
</Tooltip>
</FieldLabel>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsSecretsManagerSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsSecretsManagerSyncFields.tsx
index 41248bdeb1..d247ffd53d 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsSecretsManagerSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/AwsSecretsManagerSyncFields.tsx
@@ -88,13 +88,13 @@ export const AwsSecretsManagerSyncFields = () => {
<ul className="flex list-disc flex-col gap-3 pl-4">
<li>
<p className="text-label">
- <span className="font-medium text-foreground">One-To-One</span>: Each
+ <span className="font-medium text-foreground-soft">One-To-One</span>: Each
Infisical secret will be mapped to a separate AWS Secrets Manager secret.
</p>
</li>
<li>
<p className="text-label">
- <span className="font-medium text-foreground">Many-To-One</span>: All
+ <span className="font-medium text-foreground-soft">Many-To-One</span>: All
Infisical secrets will be mapped to a single AWS Secrets Manager secret.
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/GcpSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/GcpSyncFields.tsx
index 88ff6a378a..300a38126a 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/GcpSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/GcpSyncFields.tsx
@@ -224,7 +224,7 @@ export const GcpSyncFields = () => {
{Object.values(GCP_SYNC_SCOPES).map(({ name, description }) => (
<li key={name}>
<p className="text-label">
- <span className="font-medium text-foreground">{name}</span>:{" "}
+ <span className="font-medium text-foreground-soft">{name}</span>:{" "}
{description}
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/HumanitecSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/HumanitecSyncFields.tsx
index 82c4971783..d68484eba4 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/HumanitecSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/HumanitecSyncFields.tsx
@@ -157,7 +157,7 @@ export const HumanitecSyncFields = () => {
{Object.values(HUMANITEC_SYNC_SCOPES).map(({ name, description }) => (
<li key={name}>
<p className="text-label">
- <span className="font-medium text-foreground">{name}</span>:{" "}
+ <span className="font-medium text-foreground-soft">{name}</span>:{" "}
{description}
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RenderSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RenderSyncFields.tsx
index 50ce883fac..0b91d09c65 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RenderSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/RenderSyncFields.tsx
@@ -80,7 +80,7 @@ export const RenderSyncFields = () => {
{Object.values(RENDER_SYNC_SCOPES).map(({ name, description }) => (
<li key={name}>
<p className="text-label">
- <span className="font-medium text-foreground">{name}</span>:{" "}
+ <span className="font-medium text-foreground-soft">{name}</span>:{" "}
{description}
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TerraformCloudSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TerraformCloudSyncFields.tsx
index 35b3723e29..52f645b269 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TerraformCloudSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TerraformCloudSyncFields.tsx
@@ -114,7 +114,7 @@ export const TerraformCloudSyncFields = () => {
<ul className="flex list-disc flex-col gap-3 pl-4">
<li>
<p className="text-label">
- <span className="font-medium text-foreground">
+ <span className="font-medium text-foreground-soft">
Environment variables configure Terraform&apos;s behavior (e.g.,
credentials).
</span>
@@ -122,7 +122,7 @@ export const TerraformCloudSyncFields = () => {
</li>
<li>
<p className="text-label">
- <span className="font-medium text-foreground">
+ <span className="font-medium text-foreground-soft">
Terraform variables are used as input values in your configuration.
</span>
</p>
@@ -175,7 +175,7 @@ export const TerraformCloudSyncFields = () => {
{Object.values(TERRAFORM_CLOUD_SYNC_SCOPES).map(({ name, description }) => (
<li key={name}>
<p className="text-label">
- <span className="font-medium text-foreground">{name}</span>:{" "}
+ <span className="font-medium text-foreground-soft">{name}</span>:{" "}
{description}
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx
index e2af4b8dcd..f017ca3c55 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx
@@ -99,7 +99,7 @@ export const WindmillSyncFields = () => {
rel="noopener noreferrer"
href="https://www.windmill.dev/docs/core_concepts/roles_and_permissions#path"
>
- <span className="cursor-pointer underline decoration-accent underline-offset-2 hover:text-foreground/80">
+ <span className="cursor-pointer underline decoration-project underline-offset-2 hover:text-foreground-secondary">
owner path convention
</span>
.
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ZabbixSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ZabbixSyncFields.tsx
index e9075ae887..972d692458 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ZabbixSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/ZabbixSyncFields.tsx
@@ -73,7 +73,7 @@ export const ZabbixSyncFields = () => {
{Object.values(ZABBIX_SYNC_SCOPES).map(({ name, description }) => (
<li key={name}>
<p className="text-label">
- <span className="font-medium text-foreground">{name}</span>:{" "}
+ <span className="font-medium text-foreground-soft">{name}</span>:{" "}
{description}
</p>
</li>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
index 321e282c83..7c84684edd 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncInitialSyncBehaviorFields.tsx
@@ -119,7 +119,7 @@ const SecretRow = ({ name, fate }: ReconciliationRow) => {
const ReconciliationLegend = () => (
<div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-[9px] tracking-wider text-muted uppercase">
<span className="flex items-center gap-1">
- <span className="inline-block h-2 w-3 rounded-[2px] border border-border bg-container-hover/80" />
+ <span className="inline-block h-2 w-3 rounded-[2px] border border-border bg-surface-raised/80" />
unchanged
</span>
<span className="flex items-center gap-1">
@@ -200,7 +200,7 @@ const ReconciliationSection = ({
infisicalRows: ReconciliationRow[];
destinationRows: ReconciliationRow[];
}) => (
- <div className="rounded-md border border-border bg-container-hover/30 p-3">
+ <div className="rounded-md border border-border bg-surface-raised/30 p-3">
<div className="mb-3 flex items-baseline gap-2">
<p className="text-xs font-semibold tracking-wider text-foreground uppercase">{title}</p>
<p className="text-xs text-muted">{subtitle}</p>
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncKeySchemaField.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncKeySchemaField.tsx
index 72790e839b..6964bfb6ec 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncKeySchemaField.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/SecretSyncKeySchemaField.tsx
@@ -116,11 +116,11 @@ export const SecretSyncKeySchemaField = () => {
{!error && (
<FieldDescription>
Provide a template to rewrite each key — use{" "}
- <code className="rounded bg-container-hover/80 px-1 py-0.5 font-mono text-[11px] text-foreground/80">
+ <code className="rounded bg-surface-raised/80 px-1 py-0.5 font-mono text-[11px] text-foreground/80">
{"{{secretKey}}"}
</code>{" "}
as a placeholder, and optionally include{" "}
- <code className="rounded bg-container-hover/80 px-1 py-0.5 font-mono text-[11px] text-foreground/80">
+ <code className="rounded bg-surface-raised/80 px-1 py-0.5 font-mono text-[11px] text-foreground/80">
{"{{environment}}"}
</code>
.{" "}
diff --git a/frontend/src/components/secret-syncs/github/GitHubSyncSelectedRepositoriesTooltipContent.tsx b/frontend/src/components/secret-syncs/github/GitHubSyncSelectedRepositoriesTooltipContent.tsx
index 3c2c588a7e..39393acaba 100644
--- a/frontend/src/components/secret-syncs/github/GitHubSyncSelectedRepositoriesTooltipContent.tsx
+++ b/frontend/src/components/secret-syncs/github/GitHubSyncSelectedRepositoriesTooltipContent.tsx
@@ -24,7 +24,7 @@ export const GitHubSyncSelectedRepositoriesTooltipContent = ({ secretSync }: Pro
if (destinationConfig.scope === GitHubSyncScope.Organization) {
return (
<>
- <span className="text-xs text-label">Repositories:</span>
+ <span className="text-xs text-label-secondary">Repositories:</span>
<p className={twMerge("text-sm", isPending && "text-muted")}>
{isPending
? "Loading..."
diff --git a/frontend/src/components/secrets/diff/DiffContainer.tsx b/frontend/src/components/secrets/diff/DiffContainer.tsx
index b884b5a5af..e83f60f1e6 100644
--- a/frontend/src/components/secrets/diff/DiffContainer.tsx
+++ b/frontend/src/components/secrets/diff/DiffContainer.tsx
@@ -23,7 +23,7 @@ export const DiffContainer = ({
<div
className={twMerge(
"relative thin-scrollbar overflow-x-auto rounded-md border border-border p-2",
- "bg-bunker-800/60",
+ "bg-page/60",
variant && variant === "added" && "border-success/45",
variant && variant === "removed" && "border-danger/45",
className
@@ -39,7 +39,7 @@ export const DiffContainer = ({
ref={containerRef}
className={twMerge(
"relative max-h-96 thin-scrollbar overflow-x-auto overflow-y-auto rounded-md border border-border p-2",
- "bg-bunker-800/60",
+ "bg-page/60",
variant && variant === "added" && "border-success/45",
variant && variant === "removed" && "border-danger/45",
className
diff --git a/frontend/src/components/secrets/diff/FieldDiffRenderers.tsx b/frontend/src/components/secrets/diff/FieldDiffRenderers.tsx
index be280f81f8..2b92f6581f 100644
--- a/frontend/src/components/secrets/diff/FieldDiffRenderers.tsx
+++ b/frontend/src/components/secrets/diff/FieldDiffRenderers.tsx
@@ -127,7 +127,7 @@ export const TagsDiffRenderer = ({
return (
<Tag
className={twMerge(
- "mr-0 flex w-min items-center space-x-1.5 rounded border bg-mineshaft-900/60 py-0.5 text-xs",
+ "mr-0 flex w-min items-center space-x-1.5 rounded border bg-surface-base/60 py-0.5 text-xs",
isRemoved && "border-danger/35 bg-danger/20",
isAdded && "border-success/35 bg-success/20",
!isRemoved && !isAdded && "border-border"
@@ -163,7 +163,7 @@ export const MetadataDiffRenderer = ({
const otherMetaByValue = new Map(otherMetadata?.map((m) => [m.value, m.key]) ?? []);
return (
- <div className="mt-1 flex flex-wrap gap-1.5 text-sm text-mineshaft-300">
+ <div className="mt-1 flex flex-wrap gap-1.5 text-sm text-label">
{metadata.map((el) => {
const keyExistsInOther = otherMetaByKey.has(el.key);
const otherDataForKey = otherMetaByKey.get(el.key);
@@ -202,7 +202,7 @@ export const MetadataDiffRenderer = ({
const valueBgClass = twMerge(
valueHighlighted && (isOldVersion ? "bg-danger/30" : "bg-success/30"),
- !valueHighlighted && "bg-mineshaft-900/60"
+ !valueHighlighted && "bg-surface-base/60"
);
const lockIconClass = twMerge(
diff --git a/frontend/src/components/secrets/diff/SecretDiffView.tsx b/frontend/src/components/secrets/diff/SecretDiffView.tsx
index 72c85fa2ac..d6d394547c 100644
--- a/frontend/src/components/secrets/diff/SecretDiffView.tsx
+++ b/frontend/src/components/secrets/diff/SecretDiffView.tsx
@@ -120,10 +120,7 @@ export const SecretValueRenderer = ({
<IconButton
variant="ghost"
size="xs"
- className={twMerge(
- isLoading ? "animate-pulse" : "",
- isOldVersion ? "bg-[#161518]/80" : "bg-[#121819]/80"
- )}
+ className={twMerge(isLoading ? "animate-pulse" : "", "bg-container/80")}
onClick={handleToggleVisibility}
>
{isVisible ? <EyeOffIcon /> : <EyeIcon />}
@@ -138,7 +135,9 @@ export const SecretValueRenderer = ({
const renderContent = () => {
if (isLoading || !isVisible || value === HIDDEN_SECRET_VALUE_API_MASK) {
return (
- <div className="font-mono text-sm break-words text-bunker-300">{HIDDEN_SECRET_VALUE}</div>
+ <div className="font-mono text-sm break-words text-label-secondary">
+ {HIDDEN_SECRET_VALUE}
+ </div>
);
}
diff --git a/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx b/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx
index 97e74cae4f..0dc24c5fcd 100644
--- a/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx
+++ b/frontend/src/components/tags/CreateTagModal/CreateTagModal.tsx
@@ -166,17 +166,15 @@ export const CreateTagModal = ({ isOpen, onToggle, append, currentSecret }: Prop
)}
/>
<div className="mt-2">
- <div className="mb-0.5 ml-1 block text-sm font-normal text-mineshaft-400">
- Tag Color
- </div>
+ <div className="mb-0.5 ml-1 block text-sm font-normal text-muted">Tag Color</div>
<div className="flex space-x-2">
- <div className="flex items-center justify-center rounded-sm border border-mineshaft-500 bg-mineshaft-900 p-2">
+ <div className="flex items-center justify-center rounded-sm border border-border-strong bg-surface-base p-2">
<div
className="h-6 w-6 rounded-full"
style={{ background: `${selectedTagColor}` }}
/>
</div>
- <div className="flex grow items-center rounded-sm border-mineshaft-500 bg-mineshaft-900 px-1 pr-2">
+ <div className="flex grow items-center rounded-sm border-border-strong bg-surface-base px-1 pr-2">
{!showHexInput ? (
<div className="inline-flex items-center gap-3 pl-3">
{secretTagsColors.map(($tagColor: TagColor) => {
@@ -184,7 +182,7 @@ export const CreateTagModal = ({ isOpen, onToggle, append, currentSecret }: Prop
<div key={`tag-color-${$tagColor.id}`}>
<Tooltip content={`${$tagColor.name}`}>
<div
- className="flex h-[26px] w-[26px] items-center justify-center rounded-full border-2 border-transparent bg-[#bec2c8] p-2 hover:border-black hover:shadow-lg hover:ring-2 hover:ring-offset-2"
+ className="flex h-[26px] w-[26px] items-center justify-center rounded-full border-2 border-transparent bg-container p-2 hover:border-black hover:shadow-lg hover:ring-2 hover:ring-offset-2"
key={`tag-${$tagColor.id}`}
style={{ backgroundColor: `${$tagColor.hex}` }}
onClick={() => setValue("color", $tagColor.hex)}
@@ -213,7 +211,7 @@ export const CreateTagModal = ({ isOpen, onToggle, append, currentSecret }: Prop
</div>
)}
{!isValidHexColor(selectedTagColor) && (
- <div className="bg-blue h-7 w-7 rounded-full border border-dashed border-mineshaft-500" />
+ <div className="h-7 w-7 rounded-full border border-dashed border-border-strong bg-info" />
)}
</div>
<div className="grow">
@@ -227,10 +225,10 @@ export const CreateTagModal = ({ isOpen, onToggle, append, currentSecret }: Prop
</div>
</div>
)}
- <div className="mx-4 h-8 border border-mineshaft-500" />
+ <div className="mx-4 h-8 border border-border-strong" />
<div className="flex h-7 w-7 items-center justify-center">
<div
- className={`flex h-7 w-7 cursor-pointer items-center justify-center rounded-xs border border-mineshaft-500 bg-mineshaft-900 bg-transparent p-2 hover:ring-2 hover:ring-offset-1 ${
+ className={`flex h-7 w-7 cursor-pointer items-center justify-center rounded-xs border border-border-strong bg-surface-base bg-transparent p-2 hover:ring-2 hover:ring-offset-1 ${
showHexInput ? "tags-conic-bg rounded-full" : ""
}`}
onClick={() => setShowHexInput((prev) => !prev)}
diff --git a/frontend/src/components/v2/Accordion/Accordion.tsx b/frontend/src/components/v2/Accordion/Accordion.tsx
index d36c6705b5..a821026c27 100644
--- a/frontend/src/components/v2/Accordion/Accordion.tsx
+++ b/frontend/src/components/v2/Accordion/Accordion.tsx
@@ -8,7 +8,7 @@ export const AccordionItem = forwardRef<HTMLDivElement, AccordionPrimitive.Accor
({ children, className, ...props }, forwardedRef) => (
<AccordionPrimitive.Item
className={twMerge(
- "mt-px overflow-hidden border-transparent transition-all first:mt-0 data-[state=open]:border-l data-[state=open]:border-primary",
+ "mt-px overflow-hidden border-transparent transition-all first:mt-0 data-[state=open]:border-l data-[state=open]:border-project",
className
)}
{...props}
@@ -27,7 +27,7 @@ export const AccordionTrigger = forwardRef<
<AccordionPrimitive.Header className="flex">
<AccordionPrimitive.Trigger
className={twMerge(
- "group flex h-11 flex-1 items-center justify-between px-4 py-2 outline-hidden hover:text-primary data-[state=open]:text-primary",
+ "group flex h-11 flex-1 items-center justify-between px-4 py-2 outline-hidden hover:text-project data-[state=open]:text-project",
className
)}
{...props}
@@ -70,7 +70,10 @@ export const Accordion = ({
children,
...props
}: AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) => (
- <AccordionPrimitive.Root {...props} className={twMerge("w-80 text-bunker-300", props.className)}>
+ <AccordionPrimitive.Root
+ {...props}
+ className={twMerge("w-80 text-label-secondary", props.className)}
+ >
{children}
</AccordionPrimitive.Root>
);
diff --git a/frontend/src/components/v2/Alert/Alert.tsx b/frontend/src/components/v2/Alert/Alert.tsx
index 70d0d5fc89..0048a57e40 100644
--- a/frontend/src/components/v2/Alert/Alert.tsx
+++ b/frontend/src/components/v2/Alert/Alert.tsx
@@ -9,13 +9,13 @@ import { cva, type VariantProps } from "cva";
import { twMerge } from "tailwind-merge";
const alertVariants = cva(
- "w-full bg-mineshaft-800 rounded-lg border border-bunker-400 px-4 py-3 text-sm flex items-center gap-x-3",
+ "w-full bg-surface-raised rounded-lg border border-border-secondary-strong px-4 py-3 text-sm flex items-center gap-x-3",
{
variants: {
variant: {
default: "",
- danger: "text-red border-red",
- warning: "text-yellow border-yellow"
+ danger: "text-danger border-danger",
+ warning: "text-warning border-warning"
}
},
defaultVariants: {
@@ -64,7 +64,7 @@ const Alert = forwardRef<
<>{icon} </>
) : (
<FontAwesomeIcon
- className={twMerge("text-lg text-primary", iconClassName)}
+ className={twMerge("text-lg text-project", iconClassName)}
icon={variantIconMap[variant ?? "default"]}
/>
)}
diff --git a/frontend/src/components/v2/Breadcrumb/Breadcrumb.tsx b/frontend/src/components/v2/Breadcrumb/Breadcrumb.tsx
index ccb94da2b9..c0ad1edb94 100644
--- a/frontend/src/components/v2/Breadcrumb/Breadcrumb.tsx
+++ b/frontend/src/components/v2/Breadcrumb/Breadcrumb.tsx
@@ -26,7 +26,7 @@ const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWi
<ol
ref={ref}
className={twMerge(
- "flex flex-wrap items-center text-sm break-words text-bunker-100",
+ "flex flex-wrap items-center text-sm break-words text-foreground-default",
className
)}
{...props}
@@ -55,7 +55,7 @@ const BreadcrumbLink = React.forwardRef<
return (
<div
ref={ref}
- className={twMerge("transition-colors hover:text-primary", className)}
+ className={twMerge("transition-colors hover:text-project", className)}
{...props}
/>
);
@@ -69,7 +69,7 @@ const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWit
role="link"
aria-disabled="true"
aria-current="page"
- className={twMerge("font-normal text-bunker-200 last:text-bunker-300", className)}
+ className={twMerge("font-normal text-foreground-soft last:text-label-secondary", className)}
{...props}
/>
)
@@ -78,7 +78,7 @@ BreadcrumbPage.displayName = "BreadcrumbPage";
const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (
<li role="presentation" aria-hidden="true" className={twMerge("", className)} {...props}>
- {children ?? <p className="px-3 text-lg text-mineshaft-400/70">/</p>}
+ {children ?? <p className="px-3 text-lg text-muted/70">/</p>}
</li>
);
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
@@ -126,7 +126,7 @@ const BreadcrumbContainer = ({
breadcrumbs: TBreadcrumbFormat[];
className?: string;
}) => (
- <div className={twMerge("mx-auto max-w-8xl overflow-hidden text-white", className)}>
+ <div className={twMerge("mx-auto max-w-8xl overflow-hidden text-foreground-inverse", className)}>
<Breadcrumb className="overflow-hidden">
<BreadcrumbList className="overflow-hidden">
{(breadcrumbs as TBreadcrumbFormat[]).map((el, index) => {
@@ -144,7 +144,7 @@ const BreadcrumbContainer = ({
<FontAwesomeIcon
icon={faCaretDown}
size="sm"
- className="ml-2 text-bunker-300"
+ className="ml-2 text-label-secondary"
/>
</BreadcrumbSegment>
</BreadcrumbItem>
diff --git a/frontend/src/components/v2/Button/Button.tsx b/frontend/src/components/v2/Button/Button.tsx
index 221dee2df9..211b7b4c4e 100644
--- a/frontend/src/components/v2/Button/Button.tsx
+++ b/frontend/src/components/v2/Button/Button.tsx
@@ -29,10 +29,14 @@ const buttonVariants = cva(
{
variants: {
colorSchema: {
- primary: ["bg-primary", "text-black", "border-primary bg-opacity-90 hover:bg-opacity-100"],
- secondary: ["bg-mineshaft", "text-gray-300", "border-mineshaft hover:bg-opacity-80"],
- danger: ["bg-red!", "text-white!", "border-red! hover:!bg-opacity-90"],
- gray: ["bg-bunker-500", "text-bunker-200"]
+ primary: ["bg-project", "text-black", "border-project bg-opacity-90 hover:bg-opacity-100"],
+ secondary: [
+ "bg-surface-selected",
+ "text-label-cool",
+ "border-border-strong hover:bg-opacity-80"
+ ],
+ danger: ["bg-danger!", "text-white!", "border-danger! hover:!bg-opacity-90"],
+ gray: ["bg-surface-recessed", "text-foreground-soft"]
},
variant: {
solid: "",
@@ -41,11 +45,11 @@ const buttonVariants = cva(
selected: "",
outline_bg: "",
// a constant color not in use on hover or click goes colorSchema color
- star: "text-bunker-200 bg-mineshaft-700 border-mineshaft-600",
- link: "text-primary p-0! bg-transparent outline-hidden border-none"
+ star: "text-foreground-soft bg-surface-hover border-border-control",
+ link: "text-project p-0! bg-transparent outline-hidden border-none"
},
isDisabled: {
- true: "bg-mineshaft-700 border border-mineshaft-600 text-white opacity-50 cursor-not-allowed",
+ true: "bg-surface-hover border border-border-control text-foreground-inverse opacity-50 cursor-not-allowed",
false: "border"
},
isFullWidth: {
@@ -68,75 +72,75 @@ const buttonVariants = cva(
colorSchema: "primary",
variant: "star",
className:
- "bg-mineshaft-700 border border-mineshaft-600 hover:bg-primary hover:text-black hover:border-primary-400 duration-100"
+ "bg-surface-hover border border-border-control hover:bg-project hover:text-black hover:border-project duration-100"
},
{
colorSchema: "primary",
variant: "solid",
- className: "text-black bg-primary-500 bg-opacity-90 hover:bg-primary-500 hover:text-black"
+ className: "text-black bg-project bg-opacity-90 hover:bg-project hover:text-black"
},
{
colorSchema: "primary",
variant: "selected",
- className: "bg-primary/10 border border-primary/50 text-bunker-200"
+ className: "bg-project/10 border border-project/50 text-foreground-soft"
},
{
colorSchema: "primary",
variant: "outline_bg",
className:
- "bg-mineshaft-600 border border-mineshaft-500 hover:bg-primary/10 hover:border-primary/40 text-bunker-200"
+ "bg-surface-active border border-border-strong hover:bg-project/10 hover:border-project/40 text-foreground-soft"
},
{
colorSchema: "secondary",
variant: "star",
className:
- "bg-mineshaft-700 border border-mineshaft-600 hover:bg-mineshaft hover:text-white"
+ "bg-surface-hover border border-border-control hover:bg-surface-selected hover:text-foreground-inverse"
},
{
colorSchema: "danger",
variant: "star",
- className: "hover:bg-red hover:text-white"
+ className: "hover:bg-danger hover:text-white"
},
{
colorSchema: "primary",
variant: "outline",
- className: "text-primary hover:bg-primary hover:text-black"
+ className: "text-project hover:bg-project hover:text-black"
},
{
colorSchema: "secondary",
variant: "outline",
- className: "border-mineshaft-700 hover:border-mineshaft-500"
+ className: "border-border-subtle hover:border-border-strong"
},
{
colorSchema: "danger",
variant: "outline",
- className: "text-red hover:bg-red hover:text-black"
+ className: "text-danger hover:bg-danger hover:text-black"
},
{
colorSchema: "danger",
variant: "outline_bg",
className:
- "bg-mineshaft-600 border border-red-500/40 hover:bg-red/15 bg-red/10 hover:border-red text-red-500"
+ "bg-surface-active border border-danger/40 hover:bg-danger/15 bg-danger/10 hover:border-danger text-danger"
},
{
colorSchema: "primary",
variant: "plain",
- className: "text-primary"
+ className: "text-project"
},
{
colorSchema: "gray",
variant: "plain",
- className: "bg-transparent text-bunker-200"
+ className: "bg-transparent text-foreground-soft"
},
{
colorSchema: "secondary",
variant: "plain",
- className: "text-mineshaft-300 hover:text-mineshaft-200 border-none"
+ className: "text-label hover:text-foreground-secondary border-none"
},
{
colorSchema: "danger",
variant: "plain",
- className: "text-red"
+ className: "text-danger"
},
{
colorSchema: ["danger", "primary", "secondary"],
diff --git a/frontend/src/components/v2/Card/Card.tsx b/frontend/src/components/v2/Card/Card.tsx
index b3ee48c5a1..0d433c5115 100644
--- a/frontend/src/components/v2/Card/Card.tsx
+++ b/frontend/src/components/v2/Card/Card.tsx
@@ -10,12 +10,12 @@ export type CardTitleProps = {
export const CardTitle = ({ children, className, subTitle }: CardTitleProps) => (
<div
className={twMerge(
- "mb-5 border-b border-mineshaft-600 px-6 py-4 font-sans text-lg font-normal break-words",
+ "mb-5 border-b border-border-control px-6 py-4 font-sans text-lg font-normal break-words",
className
)}
>
{children}
- {subTitle && <p className="pt-2 text-sm font-normal text-gray-400">{subTitle}</p>}
+ {subTitle && <p className="pt-2 text-sm font-normal text-muted-cool">{subTitle}</p>}
</div>
);
@@ -59,7 +59,7 @@ export const Card = forwardRef<HTMLDivElement, CardProps>(
<div
ref={ref}
className={twMerge(
- "flex w-full flex-col bg-mineshaft-800 font-inter text-gray-200 shadow-md",
+ "flex w-full flex-col bg-surface-raised font-inter text-foreground-cool shadow-md",
isFullHeight && "h-full",
isRounded && "rounded-md",
isPlain && "shadow-none",
diff --git a/frontend/src/components/v2/Checkbox/Checkbox.tsx b/frontend/src/components/v2/Checkbox/Checkbox.tsx
index 63a62a2250..e91e5f8ddd 100644
--- a/frontend/src/components/v2/Checkbox/Checkbox.tsx
+++ b/frontend/src/components/v2/Checkbox/Checkbox.tsx
@@ -37,12 +37,14 @@ export const Checkbox = ({
...props
}: CheckboxProps): JSX.Element => {
return (
- <div className={twMerge("flex items-center font-inter text-bunker-300", containerClassName)}>
+ <div
+ className={twMerge("flex items-center font-inter text-label-secondary", containerClassName)}
+ >
<CheckboxPrimitive.Root
className={twMerge(
- "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border border-mineshaft-400/50 bg-mineshaft-700 shadow-sm transition-all hover:bg-mineshaft-500",
- isDisabled && "cursor-not-allowed bg-mineshaft-600 opacity-40",
- isChecked && "border-primary/50 bg-primary/30",
+ "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border border-border-emphasis/50 bg-surface-hover shadow-sm transition-all hover:bg-surface-selected",
+ isDisabled && "cursor-not-allowed bg-surface-active opacity-40",
+ isChecked && "border-project/50 bg-project/30",
Boolean(children) && "mr-3",
className
)}
@@ -54,7 +56,7 @@ export const Checkbox = ({
>
<CheckboxPrimitive.Indicator
className={twMerge(
- `${checkIndicatorBg || "mt-[0.1rem] text-mineshaft-200"}`,
+ `${checkIndicatorBg || "mt-[0.1rem] text-foreground-secondary"}`,
indicatorClassName
)}
>
@@ -69,12 +71,12 @@ export const Checkbox = ({
className={twMerge(
"text-sm",
!allowMultilineLabel && "truncate whitespace-nowrap",
- isError && "text-red-400"
+ isError && "text-danger"
)}
htmlFor={id}
>
{children}
- {isRequired && <span className="pl-1 text-red">*</span>}
+ {isRequired && <span className="pl-1 text-danger">*</span>}
</label>
</div>
);
diff --git a/frontend/src/components/v2/ContentLoader/ContentLoader.tsx b/frontend/src/components/v2/ContentLoader/ContentLoader.tsx
index 2c6133d483..a2e143ce8f 100644
--- a/frontend/src/components/v2/ContentLoader/ContentLoader.tsx
+++ b/frontend/src/components/v2/ContentLoader/ContentLoader.tsx
@@ -30,7 +30,7 @@ export const ContentLoader = ({ text, frequency = 2000, className, lottieClassNa
return (
<div
className={twMerge(
- "relative container mx-auto flex h-screen w-full flex-col items-center justify-center space-y-8 px-8 text-mineshaft-50",
+ "relative container mx-auto flex h-screen w-full flex-col items-center justify-center space-y-8 px-8 text-foreground-bright dark:scheme-dark",
className
)}
>
@@ -38,7 +38,7 @@ export const ContentLoader = ({ text, frequency = 2000, className, lottieClassNa
{text && isTextArray && (
<AnimatePresence mode="wait">
<motion.div
- className="text-primary"
+ className="text-project"
key={`content-loader-${pos}`}
initial={{ opacity: 0, translateY: 20 }}
animate={{ opacity: 1, translateY: 0 }}
@@ -48,7 +48,7 @@ export const ContentLoader = ({ text, frequency = 2000, className, lottieClassNa
</motion.div>
</AnimatePresence>
)}
- {text && !isTextArray && <div className="text-xs text-primary">{text}</div>}
+ {text && !isTextArray && <div className="text-xs text-project">{text}</div>}
</div>
);
};
diff --git a/frontend/src/components/v2/CreatableSelect/CreatableSelect.tsx b/frontend/src/components/v2/CreatableSelect/CreatableSelect.tsx
index 1a027cc9ab..53544866c3 100644
--- a/frontend/src/components/v2/CreatableSelect/CreatableSelect.tsx
+++ b/frontend/src/components/v2/CreatableSelect/CreatableSelect.tsx
@@ -37,31 +37,33 @@ export const CreatableSelect = <T,>({
container: () => "w-full font-inter",
control: ({ isFocused }) =>
twMerge(
- isFocused ? "border-primary-400/50" : "border-mineshaft-600 hover:border-gray-400",
- "w-full rounded-md border bg-mineshaft-900 p-0.5 font-inter text-mineshaft-200 hover:cursor-pointer"
+ isFocused
+ ? "border-project/50"
+ : "border-border-control hover:border-border-cool-emphasis",
+ "w-full rounded-md border bg-surface-base p-0.5 font-inter text-foreground-secondary hover:cursor-pointer"
),
- placeholder: () => "text-mineshaft-400 text-sm pl-1 py-0.5",
+ placeholder: () => "text-muted text-sm pl-1 py-0.5",
input: () => "pl-1 py-0.5",
valueContainer: () => `p-1 max-h-56 ${isMulti ? "overflow-y-auto!" : ""} gap-1`,
singleValue: () => "leading-7 ml-1",
- multiValue: () => "bg-mineshaft-600 rounded-sm items-center py-0.5 px-2 gap-1.5",
+ multiValue: () => "bg-surface-active rounded-sm items-center py-0.5 px-2 gap-1.5",
multiValueLabel: () => "leading-6 text-sm",
- multiValueRemove: () => "hover:text-red text-bunker-400",
+ multiValueRemove: () => "hover:text-danger text-muted-secondary",
indicatorsContainer: () => "p-1 gap-1",
- clearIndicator: () => "p-1 hover:text-red text-bunker-400",
- indicatorSeparator: () => "bg-bunker-400",
- dropdownIndicator: () => "text-bunker-200 p-1",
+ clearIndicator: () => "p-1 hover:text-danger text-muted-secondary",
+ indicatorSeparator: () => "bg-muted-secondary",
+ dropdownIndicator: () => "text-foreground-soft p-1",
menu: () =>
- "mt-2 border text-sm text-mineshaft-200 bg-mineshaft-900 border-mineshaft-600 rounded-md",
- groupHeading: () => "ml-3 mt-2 mb-1 text-mineshaft-400 text-sm",
+ "mt-2 border text-sm text-foreground-secondary bg-surface-base border-border-control rounded-md",
+ groupHeading: () => "ml-3 mt-2 mb-1 text-muted text-sm",
option: ({ isFocused, isSelected }) =>
twMerge(
- isFocused && "bg-mineshaft-700 active:bg-mineshaft-600",
- isSelected && "text-mineshaft-200",
+ isFocused && "bg-surface-hover active:bg-surface-active",
+ isSelected && "text-foreground-secondary",
"px-3 py-2 text-xs hover:cursor-pointer"
),
- noOptionsMessage: () => "text-mineshaft-400 p-2 rounded-md",
- loadingMessage: () => "text-mineshaft-400 p-2 rounded-md"
+ noOptionsMessage: () => "text-muted p-2 rounded-md",
+ loadingMessage: () => "text-muted p-2 rounded-md"
}}
{...props}
/>
diff --git a/frontend/src/components/v2/DatePicker/DatePicker.tsx b/frontend/src/components/v2/DatePicker/DatePicker.tsx
index 28dad15349..a68563c38d 100644
--- a/frontend/src/components/v2/DatePicker/DatePicker.tsx
+++ b/frontend/src/components/v2/DatePicker/DatePicker.tsx
@@ -105,7 +105,7 @@ export const DatePicker = ({
<PopoverContent
{...popUpContentProps}
className={twMerge(
- "w-fit border border-mineshaft-600 bg-mineshaft-800 p-2 font-inter",
+ "w-fit border border-border-control bg-surface-raised p-2 font-inter",
popUpContentProps.className
)}
>
@@ -115,17 +115,17 @@ export const DatePicker = ({
mode="single"
selected={value ? new TZDate(value, displayUtc ? "UTC" : undefined) : undefined}
onSelect={(date) => handleDaySelect(date ? new TZDate(date, undefined) : undefined)}
- className="font-inter text-mineshaft-200"
+ className="font-inter text-foreground-secondary"
timeZone={displayUtc ? "UTC" : undefined}
classNames={{
- today: "text-primary border-primary",
- selected: " text-mineshaft-100 bg-mineshaft-500",
- root: `text-mineshaft-300 ${defaultClassNames}`,
+ today: "text-project border-project",
+ selected: " text-foreground bg-surface-selected",
+ root: `text-label ${defaultClassNames}`,
[UI.DayButton]:
- "p-3 w-full cursor-pointer text-center rounded-sm hover:text-mineshaft-100",
+ "p-3 w-full cursor-pointer text-center rounded-sm hover:text-foreground",
[UI.Weekday]: "px-3 pt-3",
- [UI.Chevron]: "fill-mineshaft-300/70 hover:fill-mineshaft-300",
- disabled: "text-mineshaft-400 pointer-events-none",
+ [UI.Chevron]: "fill-label/70 hover:fill-label",
+ disabled: "text-muted pointer-events-none",
nav: cn(
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
defaultClassNames.nav
@@ -153,7 +153,7 @@ export const DatePicker = ({
type="time"
value={displayUtc ? localTimeToUTC(timeValue) : timeValue}
onChange={handleTimeChange}
- className="bg-mineshaft-700 text-white scheme-dark"
+ className="bg-surface-hover text-foreground-inverse scheme-dark"
/>
</div>
)}
diff --git a/frontend/src/components/v2/Divider/Divider.tsx b/frontend/src/components/v2/Divider/Divider.tsx
index a5b755eeb1..85bd7c83c8 100644
--- a/frontend/src/components/v2/Divider/Divider.tsx
+++ b/frontend/src/components/v2/Divider/Divider.tsx
@@ -7,7 +7,7 @@ interface IProps {
export const Divider = ({ className }: IProps): JSX.Element => {
return (
<div className={twMerge("flex items-center px-2 opacity-50", className)}>
- <div aria-hidden="true" className="h-1 w-full grow border-t border-mineshaft-300" />
+ <div aria-hidden="true" className="h-1 w-full grow border-t border-border-bright" />
</div>
);
};
diff --git a/frontend/src/components/v2/Drawer/Drawer.tsx b/frontend/src/components/v2/Drawer/Drawer.tsx
index 4991a8c4ff..acfd512afd 100644
--- a/frontend/src/components/v2/Drawer/Drawer.tsx
+++ b/frontend/src/components/v2/Drawer/Drawer.tsx
@@ -17,7 +17,7 @@ export type DrawerContentProps = DialogPrimitive.DialogContentProps & {
} & VariantProps<typeof drawerContentVariation>;
const drawerContentVariation = cva(
- "fixed ease-in-out duration-300 z-90 border border-mineshaft-600 drop-shadow-2xl",
+ "fixed ease-in-out duration-300 z-90 border border-border-control drop-shadow-2xl",
{
variants: {
direction: {
@@ -69,7 +69,7 @@ export const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
props.onPointerDownOutside?.(e);
}}
>
- <Card isRounded={false} className="dark h-full w-full">
+ <Card isRounded={false} className="dark h-full w-full bg-surface-raised">
{title && (
<CardTitle subTitle={subTitle} className="mb-0 px-4">
{title}
@@ -77,7 +77,7 @@ export const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
)}
<CardBody
className={twMerge(
- "grow overflow-x-hidden overflow-y-auto px-4 pt-4",
+ "grow overflow-x-hidden overflow-y-auto px-4 pt-4 dark:scheme-dark",
cardBodyClassName
)}
>
@@ -88,7 +88,7 @@ export const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
<IconButton
variant="plain"
ariaLabel="close"
- className="absolute top-4 right-6 rounded-sm text-bunker-400 hover:text-bunker-50"
+ className="absolute top-4 right-6 rounded-sm text-muted-secondary hover:text-foreground-emphasis"
>
<FontAwesomeIcon icon={faTimes} size="lg" className="cursor-pointer" />
</IconButton>
diff --git a/frontend/src/components/v2/Dropdown/Dropdown.tsx b/frontend/src/components/v2/Dropdown/Dropdown.tsx
index e79166e469..870aa42c3e 100644
--- a/frontend/src/components/v2/Dropdown/Dropdown.tsx
+++ b/frontend/src/components/v2/Dropdown/Dropdown.tsx
@@ -24,7 +24,7 @@ export const DropdownMenuContent = forwardRef<HTMLDivElement, DropdownMenuConten
{...props}
ref={forwardedRef}
className={twMerge(
- "data-[side=bottom]:animate-slide-up-and-fade data-[side=left]:animate-slide-right-and-fade data-[side=right]:animate-slide-left-and-fade data-[side=top]:animate-slide-down-and-fade z-[60] min-w-[220px] overflow-y-auto rounded-md border border-mineshaft-600 bg-mineshaft-900 text-bunker-300 shadow-sm will-change-auto",
+ "data-[side=bottom]:animate-slide-up-and-fade data-[side=left]:animate-slide-right-and-fade data-[side=right]:animate-slide-left-and-fade data-[side=top]:animate-slide-down-and-fade z-[60] min-w-[220px] overflow-y-auto rounded-md border border-border-control bg-surface-base text-label-secondary shadow-sm will-change-auto",
className
)}
>
@@ -48,7 +48,7 @@ export const DropdownSubMenuContent = forwardRef<HTMLDivElement, DropdownSubMenu
{...props}
ref={forwardedRef}
className={twMerge(
- "data-[side=bottom]:animate-slide-up-and-fade data-[side=left]:animate-slide-right-and-fade data-[side=right]:animate-slide-left-and-fade data-[side=top]:animate-slide-down-and-fade z-[60] min-w-[220px] rounded-md border border-mineshaft-600 bg-mineshaft-900 text-bunker-300 shadow-sm will-change-auto",
+ "data-[side=bottom]:animate-slide-up-and-fade data-[side=left]:animate-slide-right-and-fade data-[side=right]:animate-slide-left-and-fade data-[side=top]:animate-slide-down-and-fade z-[60] min-w-[220px] rounded-md border border-border-control bg-surface-base text-label-secondary shadow-sm will-change-auto",
className
)}
>
@@ -66,7 +66,7 @@ export type DropdownLabelProps = DropdownMenuPrimitive.DropdownMenuLabelProps;
export const DropdownMenuLabel = ({ className, ...props }: DropdownLabelProps) => (
<DropdownMenuPrimitive.Label
{...props}
- className={twMerge("px-4 pt-2 pb-1 text-xs text-bunker-400", className)}
+ className={twMerge("px-4 pt-2 pb-1 text-xs text-muted-secondary", className)}
/>
);
@@ -92,7 +92,7 @@ export const DropdownMenuItem = <T extends ElementType = "button">({
<DropdownMenuPrimitive.Item
{...props}
className={twMerge(
- "block cursor-pointer rounded-xs px-4 py-2 font-inter text-xs text-mineshaft-200 outline-hidden data-highlighted:bg-mineshaft-700",
+ "block cursor-pointer rounded-xs px-4 py-2 font-inter text-xs text-foreground-secondary outline-hidden data-highlighted:bg-surface-hover",
className,
isDisabled ? "pointer-events-none cursor-not-allowed opacity-50" : ""
)}
@@ -126,7 +126,7 @@ export const DropdownSubMenuTrigger = <T extends ElementType = "button">({
<DropdownMenuPrimitive.SubTrigger
{...props}
className={twMerge(
- "block cursor-pointer rounded-xs px-4 py-2 font-inter text-xs text-mineshaft-200 outline-hidden data-highlighted:bg-mineshaft-700",
+ "block cursor-pointer rounded-xs px-4 py-2 font-inter text-xs text-foreground-secondary outline-hidden data-highlighted:bg-surface-hover",
className
)}
>
@@ -161,7 +161,7 @@ export const DropdownMenuSeparator = forwardRef<
<DropdownMenuPrimitive.Separator
ref={ref}
{...props}
- className={twMerge("m-1 h-px bg-gray-700", className)}
+ className={twMerge("m-1 h-px bg-surface-cool-selected", className)}
/>
));
diff --git a/frontend/src/components/v2/Editor/Editor.tsx b/frontend/src/components/v2/Editor/Editor.tsx
index d28c0cfbde..7acd0c4062 100644
--- a/frontend/src/components/v2/Editor/Editor.tsx
+++ b/frontend/src/components/v2/Editor/Editor.tsx
@@ -21,7 +21,7 @@ function onError(error: Error) {
}
const inputVariants = cva(
- "input w-full py-1.5 text-gray-400 placeholder:text-sm placeholder-gray-500/50 outline-hidden focus:ring-2 hover:ring-bunker-400/60 duration-100",
+ "input w-full py-1.5 text-muted-cool placeholder:text-sm placeholder:text-muted-cool-secondary/50 outline-hidden focus:ring-2 hover:ring-muted-secondary/60 duration-100",
{
variants: {
size: {
@@ -35,13 +35,13 @@ const inputVariants = cva(
false: ""
},
variant: {
- filled: ["bg-mineshaft-900", "text-gray-400"],
+ filled: ["bg-surface-base", "text-muted-cool"],
outline: ["bg-transparent"],
plain: "bg-transparent outline-hidden"
},
isError: {
- true: "focus:ring-red/50 placeholder-red-300",
- false: "focus:ring-primary-400/50 focus:ring-1"
+ true: "focus:ring-danger/50 placeholder:text-danger",
+ false: "focus:ring-project/50 focus:ring-1"
}
},
compoundVariants: []
@@ -55,15 +55,15 @@ const inputParentContainerVariants = cva("inline-flex font-inter items-center bo
false: ""
},
isError: {
- true: "border-red",
- false: "border-mineshaft-500"
+ true: "border-danger",
+ false: "border-border-strong"
},
isFullWidth: {
true: "w-full",
false: ""
},
variant: {
- filled: ["bg-bunker-800", "text-gray-400"],
+ filled: ["bg-page", "text-muted-cool"],
outline: ["bg-transparent"],
plain: "border-none"
}
diff --git a/frontend/src/components/v2/Editor/EditorHighlight.tsx b/frontend/src/components/v2/Editor/EditorHighlight.tsx
index bb57828fb7..ea929fa047 100644
--- a/frontend/src/components/v2/Editor/EditorHighlight.tsx
+++ b/frontend/src/components/v2/Editor/EditorHighlight.tsx
@@ -29,7 +29,7 @@ export class HighlightNode extends TextNode {
constructor(
text: string,
highlightTheme: HighlightTheme = {
- contentClassName: "ph-no-capture text-yellow-200/80"
+ contentClassName: "ph-no-capture text-warning/80"
},
trigger: Trigger = { startTrigger: "${", endTrigger: "}" },
key?: string
@@ -88,7 +88,7 @@ type Props = {
export const EditorHighlightPlugin = ({
endTrigger = "}",
startTrigger = "${",
- contentClassName = "ph-no-capture text-yellow-200/80"
+ contentClassName = "ph-no-capture text-warning/80"
}: Props) => {
const [editor] = useLexicalComposerContext();
diff --git a/frontend/src/components/v2/EmptyState/EmptyState.tsx b/frontend/src/components/v2/EmptyState/EmptyState.tsx
index f6b926953a..87f3fb28c9 100644
--- a/frontend/src/components/v2/EmptyState/EmptyState.tsx
+++ b/frontend/src/components/v2/EmptyState/EmptyState.tsx
@@ -23,13 +23,13 @@ export const EmptyState = ({
}: Props) => (
<div
className={twMerge(
- "flex w-full flex-col items-center bg-mineshaft-800 px-2 pt-4 text-bunker-300",
+ "flex w-full flex-col items-center bg-surface-raised px-2 pt-4 text-label-secondary",
className
)}
>
<FontAwesomeIcon icon={icon} size={iconSize} />
<div className="flex flex-col items-center py-4">
- <div className={twMerge("text-sm text-bunker-300", titleClassName)}>{title}</div>
+ <div className={twMerge("text-sm text-label-secondary", titleClassName)}>{title}</div>
<div>{children}</div>
</div>
</div>
diff --git a/frontend/src/components/v2/FilterableSelect/FilterableSelect.tsx b/frontend/src/components/v2/FilterableSelect/FilterableSelect.tsx
index f0e464f3eb..32defcb48c 100644
--- a/frontend/src/components/v2/FilterableSelect/FilterableSelect.tsx
+++ b/frontend/src/components/v2/FilterableSelect/FilterableSelect.tsx
@@ -90,38 +90,39 @@ export const FilterableSelect = <T,>({
twMerge("w-full font-inter text-sm", isDisabled && "pointer-events-auto! opacity-50"),
control: ({ isFocused, isDisabled }) =>
twMerge(
- isFocused ? "border-primary-400/50" : "border-mineshaft-600",
- `w-full rounded-md border bg-mineshaft-900 p-0.5 font-inter text-mineshaft-200 ${
- isDisabled ? "cursor-not-allowed!" : "hover:cursor-pointer hover:border-gray-400"
+ isFocused ? "border-project/50" : "border-border-control",
+ `w-full rounded-md border bg-surface-base p-0.5 font-inter text-foreground-secondary ${
+ isDisabled
+ ? "cursor-not-allowed!"
+ : "hover:cursor-pointer hover:border-border-cool-emphasis"
} `
),
- placeholder: () =>
- `${isMulti ? "py-[0.22rem]" : "leading-7"} text-mineshaft-400 text-sm pl-1`,
+ placeholder: () => `${isMulti ? "py-[0.22rem]" : "leading-7"} text-muted text-sm pl-1`,
input: () => `pl-1 ${isMulti ? "py-[0.22rem]" : ""}`,
valueContainer: () =>
`px-1 max-h-[8.2rem] ${
isMulti ? "overflow-y-auto! thin-scrollbar py-1" : "py-[0.1rem]"
} gap-1`,
singleValue: () => "leading-7 ml-1",
- multiValue: () => "bg-mineshaft-600 text-sm rounded-sm items-center py-0.5 px-2 gap-1.5",
+ multiValue: () => "bg-surface-active text-sm rounded-sm items-center py-0.5 px-2 gap-1.5",
multiValueLabel: () => "leading-6 text-sm",
- multiValueRemove: () => "hover:text-red text-bunker-400",
+ multiValueRemove: () => "hover:text-danger text-muted-secondary",
indicatorsContainer: () => "p-1 gap-1",
- clearIndicator: () => "p-1 hover:text-red text-bunker-400",
- indicatorSeparator: () => "bg-bunker-400",
- dropdownIndicator: () => "text-bunker-200 p-1",
+ clearIndicator: () => "p-1 hover:text-danger text-muted-secondary",
+ indicatorSeparator: () => "bg-muted-secondary",
+ dropdownIndicator: () => "text-foreground-soft p-1",
menuList: () => twMerge("flex flex-col gap-1", menuListClassName),
menu: () =>
- "my-2 p-2 border text-sm text-mineshaft-200 thin-scrollbar bg-mineshaft-900 border-mineshaft-600 rounded-md",
- groupHeading: () => "ml-3 mt-2 mb-1 text-mineshaft-400 text-sm",
+ "my-2 p-2 border text-sm text-foreground-secondary thin-scrollbar bg-surface-base border-border-control rounded-md",
+ groupHeading: () => "ml-3 mt-2 mb-1 text-muted text-sm",
option: ({ isFocused, isSelected }) =>
twMerge(
- isFocused && "bg-mineshaft-700 active:bg-mineshaft-600",
- isSelected && "text-mineshaft-200",
+ isFocused && "bg-surface-hover active:bg-surface-active",
+ isSelected && "text-foreground-secondary",
"rounded-sm px-3 py-2 text-xs hover:cursor-pointer"
),
- noOptionsMessage: () => "text-mineshaft-400 p-2 rounded-md",
- loadingMessage: () => "text-mineshaft-400 p-2 rounded-md"
+ noOptionsMessage: () => "text-muted p-2 rounded-md",
+ loadingMessage: () => "text-muted p-2 rounded-md"
}}
{...props}
/>
diff --git a/frontend/src/components/v2/FormControl/FormControl.tsx b/frontend/src/components/v2/FormControl/FormControl.tsx
index 011217bd19..e6a5e6a3d7 100644
--- a/frontend/src/components/v2/FormControl/FormControl.tsx
+++ b/frontend/src/components/v2/FormControl/FormControl.tsx
@@ -28,19 +28,16 @@ export const FormLabel = ({
tooltipText
}: FormLabelProps) => (
<Label.Root
- className={twMerge(
- "mb-0.5 flex items-center text-sm font-normal text-mineshaft-400",
- className
- )}
+ className={twMerge("mb-0.5 flex items-center text-sm font-normal text-muted", className)}
htmlFor={id}
>
{label}
- {isRequired && <span className="ml-1 text-red">*</span>}
- {isOptional && <span className="ml-1 text-xs text-gray-500 italic">- Optional</span>}
+ {isRequired && <span className="ml-1 text-danger">*</span>}
+ {isOptional && (
+ <span className="ml-1 text-xs text-muted-cool-secondary italic">- Optional</span>
+ )}
{icon && !tooltipText && (
- <span className="ml-2 cursor-default text-mineshaft-300 hover:text-mineshaft-200">
- {icon}
- </span>
+ <span className="ml-2 cursor-default text-label hover:text-foreground-secondary">{icon}</span>
)}
{tooltipText && (
<Tooltip content={tooltipText} className={tooltipClassName}>
@@ -58,8 +55,8 @@ export type FormHelperTextProps = {
export const FormHelperText = ({ isError, text }: FormHelperTextProps) => (
<div
className={twMerge(
- "text-opacity-90 mt-2 flex items-center font-inter text-xs text-mineshaft-300",
- isError && "text-red-600"
+ "text-opacity-90 mt-2 flex items-center font-inter text-xs text-label",
+ isError && "text-danger"
)}
>
{isError && (
diff --git a/frontend/src/components/v2/GenericFieldLabel/GenericFieldLabel.tsx b/frontend/src/components/v2/GenericFieldLabel/GenericFieldLabel.tsx
index 031a203c0f..97887e06df 100644
--- a/frontend/src/components/v2/GenericFieldLabel/GenericFieldLabel.tsx
+++ b/frontend/src/components/v2/GenericFieldLabel/GenericFieldLabel.tsx
@@ -23,15 +23,15 @@ export const GenericFieldLabel = ({
return (
<div className={twMerge("min-w-0", className)}>
<div className="flex items-center gap-1.5">
- {icon && <FontAwesomeIcon icon={icon} className="text-mineshaft-400" size="sm" />}
- <p className={twMerge("text-xs font-medium text-mineshaft-400", labelClassName)}>{label}</p>
+ {icon && <FontAwesomeIcon icon={icon} className="text-muted" size="sm" />}
+ <p className={twMerge("text-xs font-medium text-muted", labelClassName)}>{label}</p>
</div>
{children ? (
- <p className={twMerge("text-sm text-mineshaft-100", truncate ? "truncate" : "break-words")}>
+ <p className={twMerge("text-sm text-foreground", truncate ? "truncate" : "break-words")}>
{children}
</p>
) : (
- <p className="text-sm text-mineshaft-400/50 italic">None</p>
+ <p className="text-sm text-muted/50 italic">None</p>
)}
</div>
);
diff --git a/frontend/src/components/v2/HeaderResizer/HeaderResizer.tsx b/frontend/src/components/v2/HeaderResizer/HeaderResizer.tsx
index adfd89bc8f..bb9f09369e 100644
--- a/frontend/src/components/v2/HeaderResizer/HeaderResizer.tsx
+++ b/frontend/src/components/v2/HeaderResizer/HeaderResizer.tsx
@@ -16,8 +16,8 @@ export const HeaderResizer = ({
<div
tabIndex={-1}
role="button"
- className={`absolute left-0 z-40 h-0.5 w-full cursor-ns-resize hover:bg-blue-400/20 ${
- isActive ? "bg-blue-400/75" : "bg-transparent"
+ className={`absolute left-0 z-40 h-0.5 w-full cursor-ns-resize hover:bg-info/20 ${
+ isActive ? "bg-info/75" : "bg-transparent"
}`}
onMouseDown={onMouseDown}
style={{
@@ -29,7 +29,7 @@ export const HeaderResizer = ({
style={{ left: `calc(50% + ${scrollOffset}px)`, top: heightOffset }}
className="pointer-events-none absolute z-30 -translate-x-1/2"
>
- <div className="h-1 w-8 rounded-sm bg-gray-400 opacity-50" />
+ <div className="h-1 w-8 rounded-sm bg-muted-cool opacity-50" />
</div>
</>
);
diff --git a/frontend/src/components/v2/HoverCard/HoverCard.tsx b/frontend/src/components/v2/HoverCard/HoverCard.tsx
index c6a5205396..648dc5b05a 100644
--- a/frontend/src/components/v2/HoverCard/HoverCard.tsx
+++ b/frontend/src/components/v2/HoverCard/HoverCard.tsx
@@ -19,7 +19,7 @@ export const HoverObject = ({ text, icon, color }: Props): JSX.Element => (
</HoverCard.Trigger>
<HoverCard.Portal>
<HoverCard.Content className="HoverCardContent z-300" sideOffset={5}>
- <div className="rounded-md border border-mineshaft-600 bg-bunker-700 p-2 text-bunker-300 drop-shadow-xl">
+ <div className="rounded-md border border-border-control bg-surface-sunken p-2 text-label-secondary drop-shadow-xl">
<div style={{ display: "flex", flexDirection: "column", gap: 15 }}>
<div>
<div className="Text bold">{text}</div>
@@ -27,7 +27,7 @@ export const HoverObject = ({ text, icon, color }: Props): JSX.Element => (
</div>
</div>
- <HoverCard.Arrow className="border-mineshaft-600" />
+ <HoverCard.Arrow className="border-border-control" />
</HoverCard.Content>
</HoverCard.Portal>
</HoverCard.Root>
diff --git a/frontend/src/components/v2/HoverCardv2/HoverCardv2.tsx b/frontend/src/components/v2/HoverCardv2/HoverCardv2.tsx
index 8162873492..715a0ba7e8 100644
--- a/frontend/src/components/v2/HoverCardv2/HoverCardv2.tsx
+++ b/frontend/src/components/v2/HoverCardv2/HoverCardv2.tsx
@@ -15,7 +15,7 @@ export const HoverCardContent = ({ children, className, ...props }: HoverCardCon
<HoverCardPrimitive.Content
{...props}
className={twMerge(
- "relative w-64 rounded-md bg-mineshaft-600 fill-mineshaft-600 p-4 pt-6 font-inter text-gray-200 shadow-md",
+ "relative w-64 rounded-md bg-surface-active fill-surface-active p-4 pt-6 font-inter text-foreground-cool shadow-md",
className
)}
>
diff --git a/frontend/src/components/v2/IconButton/IconButton.tsx b/frontend/src/components/v2/IconButton/IconButton.tsx
index aa6f58f367..124f1b7034 100644
--- a/frontend/src/components/v2/IconButton/IconButton.tsx
+++ b/frontend/src/components/v2/IconButton/IconButton.tsx
@@ -22,15 +22,19 @@ const iconButtonVariants = cva(
{
variants: {
colorSchema: {
- primary: ["bg-primary", "text-black", "border-primary hover:opacity-80"],
- secondary: ["bg-mineshaft", "text-gray-300", "border-mineshaft hover:bg-bunker-400"],
- danger: ["bg-[#973939]", "text-white", "border-red"]
+ primary: ["bg-project", "text-black", "border-project hover:opacity-80"],
+ secondary: [
+ "bg-surface-selected",
+ "text-label-cool",
+ "border-border-strong hover:bg-muted-secondary"
+ ],
+ danger: ["bg-danger", "text-white", "border-danger"]
},
variant: {
solid: "",
outline: ["bg-transparent", "border-2", "border-solid"],
plain: "",
- star: "text-bunker-200 bg-mineshaft-500",
+ star: "text-foreground-soft bg-surface-selected",
outline_bg: ""
},
isDisabled: {
@@ -52,53 +56,53 @@ const iconButtonVariants = cva(
{
colorSchema: "primary",
variant: "star",
- className: "hover:bg-primary hover:text-black"
+ className: "hover:bg-project hover:text-black"
},
{
colorSchema: "primary",
variant: "outline_bg",
className:
- "bg-mineshaft-700 border border-mineshaft-600 hover:bg-primary/15 hover:border-primary/60 text-bunker-200 hover:text-bunker-100 duration-100"
+ "bg-surface-hover border border-border-control hover:bg-project/15 hover:border-project/60 text-foreground-soft hover:text-foreground-default duration-100"
},
{
colorSchema: "danger",
variant: "star",
- className: "hover:bg-red hover:text-white"
+ className: "hover:bg-danger hover:text-white"
},
{
colorSchema: "primary",
variant: "outline",
- className: "text-primary hover:bg-primary hover:text-black"
+ className: "text-project hover:bg-project hover:text-black"
},
{
colorSchema: "secondary",
variant: "outline",
- className: "hover:bg-mineshaft"
+ className: "hover:bg-surface-selected"
},
{
colorSchema: "danger",
variant: "outline",
- className: "text-red hover:bg-red hover:text-black"
+ className: "text-danger hover:bg-danger hover:text-black"
},
{
colorSchema: "primary",
variant: "plain",
- className: "hover:text-primary"
+ className: "hover:text-project"
},
{
colorSchema: "secondary",
variant: "plain",
- className: "text-mineshaft"
+ className: "text-surface-selected"
},
{
colorSchema: "danger",
variant: "plain",
- className: "hover:text-red"
+ className: "hover:text-danger"
},
{
colorSchema: ["danger", "primary", "secondary"],
variant: ["plain"],
- className: "bg-transparent py-1 px-1 text-bunker-300"
+ className: "bg-transparent py-1 px-1 text-label-secondary"
}
]
}
diff --git a/frontend/src/components/v2/Input/Input.tsx b/frontend/src/components/v2/Input/Input.tsx
index 9227d57b31..ee3d1a8814 100644
--- a/frontend/src/components/v2/Input/Input.tsx
+++ b/frontend/src/components/v2/Input/Input.tsx
@@ -16,7 +16,7 @@ type Props = {
};
const inputVariants = cva(
- "input w-full py-1.5 text-gray-400 placeholder:text-sm placeholder-gray-500/50 outline-hidden focus:ring-2 hover:ring-bunker-400/60 duration-100",
+ "input w-full py-1.5 text-muted-cool placeholder:text-sm placeholder:text-muted-cool-secondary/50 outline-hidden focus:ring-2 hover:ring-muted-secondary/60 duration-100",
{
variants: {
size: {
@@ -30,13 +30,13 @@ const inputVariants = cva(
false: ""
},
variant: {
- filled: ["bg-mineshaft-900", "text-gray-400"],
+ filled: ["bg-surface-base", "text-muted-cool"],
outline: ["bg-transparent"],
plain: "bg-transparent outline-hidden"
},
isError: {
- true: "focus:ring-red/50 placeholder-red-300",
- false: "focus:ring-primary-400/50 focus:ring-1"
+ true: "focus:ring-danger/50 placeholder:text-danger",
+ false: "focus:ring-project/50 focus:ring-1"
}
},
compoundVariants: []
@@ -50,15 +50,15 @@ const inputParentContainerVariants = cva("inline-flex font-inter items-center bo
false: ""
},
isError: {
- true: "border-red",
- false: "border-mineshaft-500"
+ true: "border-danger",
+ false: "border-border-strong"
},
isFullWidth: {
true: "w-full",
false: ""
},
variant: {
- filled: ["bg-bunker-800", "text-gray-400"],
+ filled: ["bg-page", "text-muted-cool"],
outline: ["bg-transparent"],
plain: "border-none"
}
diff --git a/frontend/src/components/v2/Menu/Menu.tsx b/frontend/src/components/v2/Menu/Menu.tsx
index 29e659f147..0472701fcc 100644
--- a/frontend/src/components/v2/Menu/Menu.tsx
+++ b/frontend/src/components/v2/Menu/Menu.tsx
@@ -42,12 +42,12 @@ export const MenuItem = <T extends ElementType = "button">({
type="button"
role="menuitem"
className={twMerge(
- "group relative mt-0.5 box-border flex w-full cursor-pointer items-center rounded-[2px] border-l-2 border-transparent px-2 py-2 font-inter text-sm text-bunker-100 transition-all duration-50 hover:bg-mineshaft-700",
- isSelected && "bg-mineshaft-600 hover:bg-mineshaft-600",
+ "group relative mt-0.5 box-border flex w-full cursor-pointer items-center rounded-[2px] border-l-2 border-transparent px-2 py-2 font-inter text-sm text-foreground-default transition-all duration-50 hover:bg-surface-hover",
+ isSelected && "bg-surface-active hover:bg-surface-active",
isDisabled && "cursor-not-allowed hover:bg-transparent",
- isSelected && variant === "org" && "border-org-v1",
- isSelected && variant === "namespace" && "border-namespace-v1",
- isSelected && variant === "project" && "border-primary",
+ isSelected && variant === "org" && "border-org",
+ isSelected && variant === "namespace" && "border-sub-org",
+ isSelected && variant === "project" && "border-project",
className
)}
ref={inputRef}
@@ -70,7 +70,7 @@ export type MenuGroupProps = {
export const MenuGroup = ({ children, title, className }: MenuGroupProps): JSX.Element => (
<>
- <li className={twMerge("px-2 pt-3 text-xs font-medium text-gray-400 uppercase", className)}>
+ <li className={twMerge("px-2 pt-3 text-xs font-medium text-muted-cool uppercase", className)}>
{title}
</li>
{children}
diff --git a/frontend/src/components/v2/Modal/Modal.tsx b/frontend/src/components/v2/Modal/Modal.tsx
index 48946b95a5..48a1ba124d 100644
--- a/frontend/src/components/v2/Modal/Modal.tsx
+++ b/frontend/src/components/v2/Modal/Modal.tsx
@@ -60,7 +60,7 @@ export const ModalContent = forwardRef<HTMLDivElement, ModalContentProps>(
<Card
isRounded
className={twMerge(
- "animate-pop-in fixed top-1/2 left-1/2 z-[60] thin-scrollbar max-w-xl -translate-x-2/4 -translate-y-2/4 border border-mineshaft-600 drop-shadow-2xl",
+ "animate-pop-in fixed top-1/2 left-1/2 z-[60] thin-scrollbar max-w-xl -translate-x-2/4 -translate-y-2/4 border border-border-control bg-surface-raised drop-shadow-2xl dark:scheme-dark",
className
)}
style={{ maxHeight: "90%" }}
@@ -84,7 +84,7 @@ export const ModalContent = forwardRef<HTMLDivElement, ModalContentProps>(
<IconButton
variant="plain"
ariaLabel="close"
- className="absolute top-4 right-6 rounded-sm text-bunker-400 hover:text-bunker-50"
+ className="absolute top-4 right-6 rounded-sm text-muted-secondary hover:text-foreground-emphasis"
>
<FontAwesomeIcon icon={faTimes} size="lg" className="cursor-pointer" />
</IconButton>
diff --git a/frontend/src/components/v2/NoticeBanner/NoticeBanner.tsx b/frontend/src/components/v2/NoticeBanner/NoticeBanner.tsx
index d84c0103d4..92f9bda2ba 100644
--- a/frontend/src/components/v2/NoticeBanner/NoticeBanner.tsx
+++ b/frontend/src/components/v2/NoticeBanner/NoticeBanner.tsx
@@ -13,11 +13,11 @@ type Props = {
export const NoticeBanner = ({ icon = faWarning, title, children, className }: Props) => (
<div
className={twMerge(
- "flex w-full flex-row items-center rounded-md border border-primary-600/70 bg-primary/[.07] p-4 text-base text-white",
+ "flex w-full flex-row items-center rounded-md border border-project/70 bg-project/[.07] p-4 text-base text-foreground-inverse",
className
)}
>
- <FontAwesomeIcon icon={icon} className="pr-6 text-4xl text-white/80" />
+ <FontAwesomeIcon icon={icon} className="pr-6 text-4xl text-foreground-inverse/80" />
<div className="flex w-full flex-col text-sm">
<div className="mb-2 text-lg font-medium">{title}</div>
<div>{children}</div>
diff --git a/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx b/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx
index bde5853e55..5679714e80 100644
--- a/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx
+++ b/frontend/src/components/v2/NoticeBannerV2/NoticeBannerV2.tsx
@@ -14,12 +14,12 @@ export const NoticeBannerV2 = ({ title, children, className, titleClassName }: P
return (
<div
className={twMerge(
- "flex flex-col rounded-r border-l-2 border-l-primary bg-mineshaft-300/5 px-4 py-2.5",
+ "flex flex-col rounded-r border-l-2 border-l-project bg-label/5 px-4 py-2.5",
className
)}
>
<div className={twMerge("mb-1 flex items-center text-sm", titleClassName)}>
- <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1.5 text-primary" />
+ <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1.5 text-project" />
{title}
</div>
{children}
diff --git a/frontend/src/components/v2/PageHeader/PageHeader.tsx b/frontend/src/components/v2/PageHeader/PageHeader.tsx
index b3ab9b5d25..8752920b4e 100644
--- a/frontend/src/components/v2/PageHeader/PageHeader.tsx
+++ b/frontend/src/components/v2/PageHeader/PageHeader.tsx
@@ -36,7 +36,7 @@ export const PageHeader = ({ title, description, children, className, scope, ico
<div className="mr-4 flex min-w-0 flex-1 items-center">
<h1
className={twMerge(
- "truncate text-2xl font-medium text-white underline underline-offset-4",
+ "truncate text-2xl font-medium text-foreground-inverse underline underline-offset-4",
scope === "org" && "decoration-org/90",
scope === "instance" && "decoration-neutral/90",
scope === "namespace" && "decoration-sub-org/90",
@@ -59,7 +59,7 @@ export const PageHeader = ({ title, description, children, className, scope, ico
</div>
<div className="flex items-center gap-2">{children}</div>
</div>
- <div className="mt-1.5 text-mineshaft-300">{description}</div>
+ <div className="mt-1.5 text-label">{description}</div>
</div>
);
};
diff --git a/frontend/src/components/v2/Pagination/Pagination.tsx b/frontend/src/components/v2/Pagination/Pagination.tsx
index db33f62608..6f112b524f 100644
--- a/frontend/src/components/v2/Pagination/Pagination.tsx
+++ b/frontend/src/components/v2/Pagination/Pagination.tsx
@@ -49,7 +49,7 @@ export const Pagination = ({
return (
<div
className={twMerge(
- "flex w-full items-center justify-end border-t border-mineshaft-600 bg-mineshaft-800 px-4 py-3 text-white",
+ "flex w-full items-center justify-end border-t border-border-control bg-surface-raised px-4 py-3 text-foreground-inverse",
className
)}
>
diff --git a/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx b/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx
index 62fb93c6f5..40bb4d085a 100644
--- a/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx
+++ b/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx
@@ -109,12 +109,12 @@ const PasswordGeneratorModal = ({
<div className="bg-opacity-50 fixed inset-0 z-50 flex items-center justify-center bg-black p-4">
<div
ref={modalRef}
- className="w-full max-w-lg rounded-lg border border-mineshaft-600 bg-mineshaft-800 shadow-xl"
+ className="w-full max-w-lg rounded-lg border border-border-control bg-surface-raised shadow-xl"
>
<div className="p-6">
- <h2 className="mb-1 text-xl font-medium text-bunker-200">Generate Random Value</h2>
- <p className="mb-6 text-sm text-bunker-400">Generate strong unique values</p>
- <div className="relative mb-4 rounded-md bg-mineshaft-900 p-4">
+ <h2 className="mb-1 text-xl font-medium text-foreground-soft">Generate Random Value</h2>
+ <p className="mb-6 text-sm text-muted-secondary">Generate strong unique values</p>
+ <div className="relative mb-4 rounded-md bg-surface-base p-4">
<div className="flex items-center justify-between">
<div className="w-4/5 pr-2 font-mono text-lg break-all select-all">{password}</div>
<div className="flex flex-col gap-1">
@@ -123,7 +123,7 @@ const PasswordGeneratorModal = ({
colorSchema="secondary"
variant="outline_bg"
onClick={() => setRefresh((prev) => !prev)}
- className="w-full text-bunker-300 hover:text-bunker-100"
+ className="w-full text-label-secondary hover:text-foreground-default"
>
<FontAwesomeIcon icon={faRefresh} className="mr-1 h-3 w-3" />
Refresh
@@ -134,7 +134,7 @@ const PasswordGeneratorModal = ({
colorSchema="secondary"
variant="outline_bg"
onClick={copyToClipboard}
- className="w-full text-bunker-300 hover:text-bunker-100"
+ className="w-full text-label-secondary hover:text-foreground-default"
>
<FontAwesomeIcon icon={isCopying ? faCheck : faCopy} className="mr-1 h-3 w-3" />
{copyText}
@@ -145,7 +145,7 @@ const PasswordGeneratorModal = ({
<div className="mb-6">
<div className="mb-1 flex items-center justify-between">
- <label htmlFor="value-length" className="text-sm text-bunker-300">
+ <label htmlFor="value-length" className="text-sm text-label-secondary">
Length: {passwordOptions.length}
</label>
</div>
diff --git a/frontend/src/components/v2/Popover/Popover.tsx b/frontend/src/components/v2/Popover/Popover.tsx
index 5ce9e95318..b16f310e75 100644
--- a/frontend/src/components/v2/Popover/Popover.tsx
+++ b/frontend/src/components/v2/Popover/Popover.tsx
@@ -15,35 +15,35 @@ export const PopoverObject = ({ children, text, onChangeHandler, id }: Props) =>
<Popover.Root>
<Popover.Trigger
asChild
- className="data-[state=closed]:hover:outline-mineshaft-400 data-[state=closed]:hover:outline-solid data-[state=open]:outline-primary data-[state=open]:outline-solid"
+ className="data-[state=closed]:hover:outline-muted data-[state=closed]:hover:outline-solid data-[state=open]:outline-project data-[state=open]:outline-solid"
>
{children}
</Popover.Trigger>
<Popover.Portal>
<Popover.Content
- className="data-[state=open]:data-[side=bottom]:animate-slide-up-and-fade data-[state=open]:data-[side=left]:animate-slide-right-and-fade data-[state=open]:data-[side=right]:animate-slide-left-and-fade data-[state=open]:data-[side=top]:animate-slide-down-and-fade focus:shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2),0_0_0_2px_theme(colors.violet7)] z-100 min-h-fit w-[460px] rounded-sm border border-chicago-700 bg-mineshaft-600 p-3 shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2)] will-change-[transform,opacity]"
+ className="data-[state=open]:data-[side=bottom]:animate-slide-up-and-fade data-[state=open]:data-[side=left]:animate-slide-right-and-fade data-[state=open]:data-[side=right]:animate-slide-left-and-fade data-[state=open]:data-[side=top]:animate-slide-down-and-fade focus:shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2),0_0_0_2px_theme(colors.violet7)] z-100 min-h-fit w-[460px] rounded-sm border border-border-secondary bg-surface-active p-3 shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2)] will-change-[transform,opacity]"
sideOffset={5}
hideWhenDetached
side="left"
>
<div className="dark flex flex-col pt-2">
- <p className="mb-5 text-[15px] leading-[0px] font-medium text-bunker-200">Comment</p>
+ <p className="mb-5 text-[15px] leading-[0px] font-medium text-foreground-soft">Comment</p>
<textarea
onChange={(e) => onChangeHandler(e.target.value, id)}
// type={type}
value={text}
- className="ph-no-capture placeholder peer z-10 h-80 w-full rounded-md border border-mineshaft-500 bg-bunker-600 px-2 py-2.5 text-sm text-bunker-300 caret-bunker-200 outline-hidden duration-200 placeholder:text-bunker-400 focus:text-bunker-100 focus:placeholder:text-transparent"
+ className="ph-no-capture placeholder peer z-10 h-80 w-full rounded-md border border-border-strong bg-surface-inset px-2 py-2.5 text-sm text-label-secondary caret-foreground outline-hidden duration-200 placeholder:text-muted-secondary focus:text-foreground-default focus:placeholder:text-transparent dark:scheme-dark"
spellCheck="false"
placeholder="–"
/>
</div>
<Popover.Close
- className="hover:bg-violet4 focus:shadow-violet7 absolute top-[5px] right-[5px] inline-flex h-[25px] w-[25px] cursor-default items-center justify-center rounded-full text-bunker-300 outline-hidden hover:text-white focus:shadow-[0_0_0_2px]"
+ className="hover:bg-violet4 focus:shadow-violet7 absolute top-[5px] right-[5px] inline-flex h-[25px] w-[25px] cursor-default items-center justify-center rounded-full text-label-secondary outline-hidden hover:text-foreground-inverse focus:shadow-[0_0_0_2px]"
aria-label="Close"
>
<FontAwesomeIcon icon={faXmark} />
</Popover.Close>
- <Popover.Arrow className="fill-chicago-700" />
+ <Popover.Arrow className="fill-border-secondary" />
</Popover.Content>
</Popover.Portal>
</Popover.Root>
diff --git a/frontend/src/components/v2/Popoverv2/Popoverv2.tsx b/frontend/src/components/v2/Popoverv2/Popoverv2.tsx
index acc069ac28..f73ed550b0 100644
--- a/frontend/src/components/v2/Popoverv2/Popoverv2.tsx
+++ b/frontend/src/components/v2/Popoverv2/Popoverv2.tsx
@@ -27,7 +27,7 @@ export const PopoverContent = ({
<PopoverPrimitive.Content
className={twMerge(
[
- "relative z-100 w-64 rounded-md bg-mineshaft-600 fill-mineshaft-600 p-4 pt-6 font-inter text-gray-200 shadow-md",
+ "relative z-100 w-64 rounded-md bg-surface-active fill-surface-active p-4 pt-6 font-inter text-foreground-cool shadow-md",
// animation
"data-[state=open]:data-[side=bottom]:animate-slide-up-and-fade",
"data-[state=open]:data-[side=top]:animate-slide-down-and-fade",
@@ -44,7 +44,7 @@ export const PopoverContent = ({
<IconButton
variant="plain"
ariaLabel="close"
- className="absolute top-0 right-1 rounded-sm text-bunker-400 hover:text-bunker-50"
+ className="absolute top-0 right-1 rounded-sm text-muted-secondary hover:text-foreground-emphasis"
>
<FontAwesomeIcon icon={faTimes} size="lg" className="cursor-pointer" />
</IconButton>
diff --git a/frontend/src/components/v2/RadioGroup/RadioGroup.tsx b/frontend/src/components/v2/RadioGroup/RadioGroup.tsx
index 5331f42d9a..f0d7bdf8a9 100644
--- a/frontend/src/components/v2/RadioGroup/RadioGroup.tsx
+++ b/frontend/src/components/v2/RadioGroup/RadioGroup.tsx
@@ -14,25 +14,25 @@ export const RadioGroup = ({ className, children, ...props }: RadioGroupProps) =
>
<div className="flex items-center">
<RadioGroupPrimitive.Item
- className="h-[20px] w-[20px] cursor-default rounded-full border border-bunker-400/60 bg-bunker-400/20 outline-hidden duration-200 hover:bg-bunker-400/40"
+ className="h-[20px] w-[20px] cursor-default rounded-full border border-border-secondary-strong/60 bg-muted-secondary/20 outline-hidden duration-200 hover:bg-muted-secondary/40"
value="App"
id="r1"
>
- <RadioGroupPrimitive.Indicator className="relative flex h-full w-full items-center justify-center after:block after:h-[11px] after:w-[11px] after:rounded-[50%] after:bg-primary after:content-['']" />
+ <RadioGroupPrimitive.Indicator className="relative flex h-full w-full items-center justify-center after:block after:h-[11px] after:w-[11px] after:rounded-[50%] after:bg-project after:content-['']" />
</RadioGroupPrimitive.Item>
- <label className="pl-2 text-sm leading-none text-bunker-200" htmlFor="r1">
+ <label className="pl-2 text-sm leading-none text-foreground-soft" htmlFor="r1">
App
</label>
</div>
<div className="flex items-center">
<RadioGroupPrimitive.Item
- className="h-[22px] w-[22px] cursor-default rounded-full border border-bunker-400/60 bg-bunker-400/20 outline-hidden duration-200 hover:bg-bunker-400/40"
+ className="h-[22px] w-[22px] cursor-default rounded-full border border-border-secondary-strong/60 bg-muted-secondary/20 outline-hidden duration-200 hover:bg-muted-secondary/40"
value="Pipeline"
id="r2"
>
- <RadioGroupPrimitive.Indicator className="relative flex h-full w-full items-center justify-center after:block after:h-[13px] after:w-[13px] after:rounded-[50%] after:bg-primary after:content-['']" />
+ <RadioGroupPrimitive.Indicator className="relative flex h-full w-full items-center justify-center after:block after:h-[13px] after:w-[13px] after:rounded-[50%] after:bg-project after:content-['']" />
</RadioGroupPrimitive.Item>
- <label className="pl-2 text-sm leading-none text-bunker-200" htmlFor="r2">
+ <label className="pl-2 text-sm leading-none text-foreground-soft" htmlFor="r2">
Pipeline
</label>
</div>
diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx
index 118cb1c80c..9887916560 100644
--- a/frontend/src/components/v2/SecretInput/SecretInput.tsx
+++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx
@@ -21,7 +21,7 @@ const syntaxHighlight = (
) => {
if (isLoadingValue) return HIDDEN_SECRET_VALUE;
if (isErrorLoadingValue)
- return <span className="ph-no-capture text-red/75">Error loading secret value.</span>;
+ return <span className="ph-no-capture text-danger/75">Error loading secret value.</span>;
if (isImport && !content) return "EMPTY";
if (placeholder && (content === "" || !content)) return placeholder;
if (content === "") return "EMPTY";
@@ -39,7 +39,7 @@ const syntaxHighlight = (
const isCrossProjectRef = parts[0]?.startsWith("@");
return (
- <span className="ph-no-capture relative z-10 text-yellow" key={`secret-value-${i + 1}`}>
+ <span className="ph-no-capture relative z-10 text-warning" key={`secret-value-${i + 1}`}>
&#36;&#123;
{parts.map((segment, segmentIndex) => {
const segmentKey = `${part}-segment-${segmentIndex}`;
@@ -52,9 +52,9 @@ const syntaxHighlight = (
<span
role="button"
tabIndex={isInteractive ? 0 : -1}
- className={`ph-no-capture text-yellow-200/80 ${
+ className={`ph-no-capture text-warning/80 ${
isInteractive ? "pointer-events-auto" : "pointer-events-none"
- } ${shouldShowHoverStyle ? "cursor-pointer underline decoration-yellow-400" : ""}`}
+ } ${shouldShowHoverStyle ? "cursor-pointer underline decoration-warning" : ""}`}
onMouseEnter={() => onHoverPart?.(segmentKey)}
onMouseLeave={() => onHoverPart?.("")}
onMouseDown={(e) => {
@@ -81,7 +81,7 @@ const syntaxHighlight = (
{segment}
</span>
{segmentIndex < parts.length - 1 && (
- <span className="ph-no-capture pointer-events-none text-yellow-200/80">.</span>
+ <span className="ph-no-capture pointer-events-none text-warning/80">.</span>
)}
</span>
);
@@ -118,7 +118,8 @@ type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & {
onClickSegment?: (segment: string, allSegments: string[]) => void;
};
-const commonClassName = "font-mono text-sm caret-white border-none outline-hidden w-full break-all";
+const commonClassName =
+ "font-mono text-sm caret-foreground border-none outline-hidden w-full break-all";
export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(
(
diff --git a/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx b/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
index 395557424a..bc118ede7c 100644
--- a/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
+++ b/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
@@ -135,14 +135,14 @@ const SecretPathInputBase = ({
align="start"
onOpenAutoFocus={(e) => e.preventDefault()}
className={twMerge(
- "relative top-2 z-100 overflow-hidden rounded-md border border-mineshaft-600 bg-mineshaft-900 font-inter text-bunker-100 shadow-md"
+ "relative top-2 z-100 overflow-hidden rounded-md border border-border-control bg-surface-base font-inter text-foreground-default shadow-md"
)}
style={{
width: "var(--radix-popover-trigger-width)",
maxHeight: "var(--radix-select-content-available-height)"
}}
>
- <div className="max-h-[25vh] thin-scrollbar w-full flex-col items-center justify-center overflow-y-auto rounded-md text-white">
+ <div className="max-h-[25vh] thin-scrollbar w-full flex-col items-center justify-center overflow-y-auto rounded-md text-foreground-inverse">
{suggestions.map((suggestion, i) => (
<div
tabIndex={0}
@@ -153,16 +153,16 @@ const SecretPathInputBase = ({
handleSuggestionSelect(i);
}}
style={{ pointerEvents: "auto" }}
- className="flex items-center justify-between border-mineshaft-600 text-left"
+ className="flex items-center justify-between border-border-control text-left"
key={`secret-reference-secret-${i + 1}`}
>
<div
className={`${
- highlightedIndex === i ? "bg-gray-600" : ""
- } text-md relative mb-0.5 flex w-full cursor-pointer items-center justify-between rounded-md px-2 py-1 outline-hidden transition-all select-none hover:bg-mineshaft-500 data-highlighted:bg-mineshaft-500`}
+ highlightedIndex === i ? "bg-surface-cool-active" : ""
+ } text-md relative mb-0.5 flex w-full cursor-pointer items-center justify-between rounded-md px-2 py-1 outline-hidden transition-all select-none hover:bg-surface-selected data-highlighted:bg-surface-selected`}
>
<div className="flex gap-2">
- <div className="flex items-center text-yellow-700">
+ <div className="flex items-center text-warning">
<FontAwesomeIcon icon={faFolder} />
</div>
<div className="text-md text-left">{suggestion}</div>
diff --git a/frontend/src/components/v2/Select/Select.tsx b/frontend/src/components/v2/Select/Select.tsx
index 5adf58389f..686e855ca0 100644
--- a/frontend/src/components/v2/Select/Select.tsx
+++ b/frontend/src/components/v2/Select/Select.tsx
@@ -61,7 +61,7 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
<SelectPrimitive.Trigger
ref={ref}
className={twMerge(
- "inline-flex items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-hidden focus:bg-mineshaft-700/80 data-placeholder:text-mineshaft-400",
+ "inline-flex items-center justify-between rounded-md border border-border-control bg-surface-base px-3 py-2 font-inter text-sm font-normal text-foreground-soft outline-hidden focus:bg-surface-hover/80 data-placeholder:text-muted",
className,
isDisabled && "cursor-not-allowed opacity-50"
)}
@@ -86,7 +86,7 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
<SelectPrimitive.Content
side={side}
className={twMerge(
- "relative top-1 z-100 max-w-sm overflow-hidden rounded-md border border-mineshaft-600 bg-mineshaft-900 font-inter text-bunker-100 shadow-md",
+ "relative top-1 z-100 max-w-sm overflow-hidden rounded-md border border-border-control bg-surface-base font-inter text-foreground-default shadow-md",
position === "popper" && "max-h-72",
dropdownContainerClassName
)}
@@ -102,7 +102,7 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
{isLoading ? (
<div className="flex items-center justify-center">
<Spinner size="xs" />
- <span className="ml-2 text-xs text-gray-500">Loading...</span>
+ <span className="ml-2 text-xs text-muted-cool-secondary">Loading...</span>
</div>
) : (
children
@@ -136,14 +136,15 @@ export const SelectItem = forwardRef<HTMLDivElement, SelectItemProps>(
{...props}
disabled={isDisabled}
className={twMerge(
- "relative mb-0.5 cursor-pointer items-center truncate overflow-hidden rounded-md py-2 pr-4 pl-10 text-sm outline-hidden transition-all select-none hover:bg-mineshaft-500 data-highlighted:bg-mineshaft-700/80",
- isSelected && "bg-primary",
- isDisabled && "cursor-not-allowed text-gray-600 opacity-80 hover:bg-transparent!",
+ "relative mb-0.5 cursor-pointer items-center truncate overflow-hidden rounded-md py-2 pr-4 pl-10 text-sm outline-hidden transition-all select-none hover:bg-surface-selected data-highlighted:bg-surface-hover/80",
+ isSelected && "bg-project",
+ isDisabled &&
+ "cursor-not-allowed text-surface-cool-active opacity-80 hover:bg-transparent!",
className
)}
ref={forwardedRef}
>
- <SelectPrimitive.ItemIndicator className="absolute left-3.5 text-primary">
+ <SelectPrimitive.ItemIndicator className="absolute left-3.5 text-project">
<FontAwesomeIcon icon={props.customIcon ? props.customIcon : faCheck} />
</SelectPrimitive.ItemIndicator>
<SelectPrimitive.ItemText className="">{children}</SelectPrimitive.ItemText>
@@ -171,17 +172,17 @@ export const SelectClear = forwardRef<HTMLDivElement, SelectClearProps>(
onSelect={() => onClear()}
onClick={() => onClear()}
className={twMerge(
- "relative mb-0.5 flex cursor-pointer items-center rounded-md py-2 pr-4 pl-10 text-sm outline-hidden transition-all select-none hover:bg-mineshaft-500 data-highlighted:bg-mineshaft-700/80",
- isSelected && "bg-primary",
+ "relative mb-0.5 flex cursor-pointer items-center rounded-md py-2 pr-4 pl-10 text-sm outline-hidden transition-all select-none hover:bg-surface-selected data-highlighted:bg-surface-hover/80",
+ isSelected && "bg-project",
isDisabled &&
- "cursor-not-allowed text-gray-600 hover:bg-transparent hover:text-mineshaft-600",
+ "cursor-not-allowed text-surface-cool-active hover:bg-transparent hover:text-surface-active",
className
)}
ref={forwardedRef}
>
<div
className={twMerge(
- "absolute left-3.5 text-primary",
+ "absolute left-3.5 text-project",
selectValue === "" ? "visible" : "hidden"
)}
>
diff --git a/frontend/src/components/v2/Select/components/index.tsx b/frontend/src/components/v2/Select/components/index.tsx
index 7e91c792d1..27e3218892 100644
--- a/frontend/src/components/v2/Select/components/index.tsx
+++ b/frontend/src/components/v2/Select/components/index.tsx
@@ -40,7 +40,7 @@ export const Option = <T,>({ isSelected, children, ...props }: OptionProps<T>) =
<div className="flex flex-row items-center justify-between">
<p className="truncate">{children}</p>
{isSelected && (
- <FontAwesomeIcon className="ml-2 text-primary" icon={faCheckCircle} size="sm" />
+ <FontAwesomeIcon className="ml-2 text-project" icon={faCheckCircle} size="sm" />
)}
</div>
</components.Option>
diff --git a/frontend/src/components/v2/Skeleton/Skeleton.tsx b/frontend/src/components/v2/Skeleton/Skeleton.tsx
index 477456bb8c..fe049a058b 100644
--- a/frontend/src/components/v2/Skeleton/Skeleton.tsx
+++ b/frontend/src/components/v2/Skeleton/Skeleton.tsx
@@ -8,5 +8,5 @@ export type Props = {
// Can be used with cards
// Tables etc
export const Skeleton = ({ className }: Props) => (
- <div className={twMerge("h-6 w-full animate-pulse rounded-md bg-mineshaft-800", className)} />
+ <div className={twMerge("h-6 w-full animate-pulse rounded-md bg-surface-raised", className)} />
);
diff --git a/frontend/src/components/v2/Slider/Slider.tsx b/frontend/src/components/v2/Slider/Slider.tsx
index bc898ad617..53b53ea009 100644
--- a/frontend/src/components/v2/Slider/Slider.tsx
+++ b/frontend/src/components/v2/Slider/Slider.tsx
@@ -26,7 +26,7 @@ type Props = {
onChangeComplete?: (value: number) => void;
};
-const sliderTrackVariants = cva("h-1 w-full bg-mineshaft-600 rounded-full relative", {
+const sliderTrackVariants = cva("h-1 w-full bg-surface-active rounded-full relative", {
variants: {
variant: {
default: "",
@@ -43,9 +43,9 @@ const sliderTrackVariants = cva("h-1 w-full bg-mineshaft-600 rounded-full relati
const sliderFillVariants = cva("absolute h-full rounded-full", {
variants: {
variant: {
- default: "bg-primary-500",
+ default: "bg-project",
secondary: "bg-secondary-500",
- danger: "bg-red-500"
+ danger: "bg-danger"
},
isDisabled: {
true: "opacity-50",
@@ -59,9 +59,9 @@ const sliderThumbVariants = cva(
{
variants: {
variant: {
- default: "bg-primary-500 focus:ring-2 focus:ring-primary-400/50",
+ default: "bg-project focus:ring-2 focus:ring-project/50",
secondary: "bg-secondary-500 focus:ring-2 focus:ring-secondary-400/50",
- danger: "bg-red-500 focus:ring-2 focus:ring-red-400/50"
+ danger: "bg-danger focus:ring-2 focus:ring-danger/50"
},
isDisabled: {
true: "opacity-50 cursor-not-allowed",
@@ -175,7 +175,7 @@ export const Slider = forwardRef<HTMLInputElement, SliderProps>(
}, [isDragging, handleChangeComplete]);
const ValueDisplay = showValue ? (
- <div className="text-xs text-bunker-300">{currentValue}</div>
+ <div className="text-xs text-label-secondary">{currentValue}</div>
) : null;
return (
@@ -226,7 +226,7 @@ export const Slider = forwardRef<HTMLInputElement, SliderProps>(
/>
{showValue && valuePosition === "right" && (
- <div className="ml-2 text-xs text-bunker-300">{currentValue}</div>
+ <div className="ml-2 text-xs text-label-secondary">{currentValue}</div>
)}
</div>
</div>
diff --git a/frontend/src/components/v2/Spinner/Spinner.tsx b/frontend/src/components/v2/Spinner/Spinner.tsx
index d8a344e3ef..169f8f314b 100644
--- a/frontend/src/components/v2/Spinner/Spinner.tsx
+++ b/frontend/src/components/v2/Spinner/Spinner.tsx
@@ -20,7 +20,7 @@ export const Spinner = ({ className, size = "md" }: Props): JSX.Element => {
<svg
aria-hidden="true"
className={twMerge(
- "m-1 animate-spin fill-primary text-gray-200 dark:text-gray-600",
+ "m-1 animate-spin fill-project text-foreground-cool dark:text-surface-cool-active",
sizeChart[size],
className
)}
diff --git a/frontend/src/components/v2/Stepper/Stepper.tsx b/frontend/src/components/v2/Stepper/Stepper.tsx
index 81601ca1cf..b99b9f766e 100644
--- a/frontend/src/components/v2/Stepper/Stepper.tsx
+++ b/frontend/src/components/v2/Stepper/Stepper.tsx
@@ -14,7 +14,7 @@ export const Stepper = ({ activeStep, children, direction, className }: StepperP
return (
<div
className={twMerge(
- "flex w-full items-center space-x-3 rounded-md border border-bunker-300/30 p-2",
+ "flex w-full items-center space-x-3 rounded-md border border-border-secondary-bright/30 p-2",
className
)}
>
@@ -27,9 +27,9 @@ export const Stepper = ({ activeStep, children, direction, className }: StepperP
<div className="flex shrink-0 items-center space-x-2">
<div
className={twMerge(
- "flex h-7 w-7 items-center justify-center rounded-full text-sm font-medium text-mineshaft-800 transition-all",
- isCompleted ? "bg-primary" : "border border-primary/30 text-bunker-300",
- isActive && "bg-primary text-mineshaft-800"
+ "flex h-7 w-7 items-center justify-center rounded-full text-sm font-medium text-surface-raised transition-all",
+ isCompleted ? "bg-project" : "border border-project/30 text-label-secondary",
+ isActive && "bg-project text-surface-raised"
)}
>
{isCompleted ? <FontAwesomeIcon icon={faCheck} /> : index + 1}
@@ -44,7 +44,7 @@ export const Stepper = ({ activeStep, children, direction, className }: StepperP
{isNotLast && (
<div
style={{ height: "1px" }}
- className={twMerge("grow bg-bunker-300/30", isCompleted && "bg-primary")}
+ className={twMerge("grow bg-label-secondary/30", isCompleted && "bg-project")}
/>
)}
</div>
@@ -65,7 +65,7 @@ export type StepProps = {
export const Step = ({ title, description }: StepProps) => {
return (
- <div className="flex flex-col text-gray-300">
+ <div className="flex flex-col text-label-cool">
<div className="text-sm font-medium">{title}</div>
{description && <div className="text-xs">{description}</div>}
</div>
diff --git a/frontend/src/components/v2/Switch/Switch.tsx b/frontend/src/components/v2/Switch/Switch.tsx
index 4930efc16a..803321f584 100644
--- a/frontend/src/components/v2/Switch/Switch.tsx
+++ b/frontend/src/components/v2/Switch/Switch.tsx
@@ -23,11 +23,11 @@ export const Switch = ({
thumbClassName,
...props
}: SwitchProps): JSX.Element => (
- <div className={twMerge("flex items-center font-inter text-bunker-300", containerClassName)}>
+ <div className={twMerge("flex items-center font-inter text-label-secondary", containerClassName)}>
{children && (
<label className="text-sm" htmlFor={id}>
{children}
- {isRequired && <span className="pl-1 text-red">*</span>}
+ {isRequired && <span className="pl-1 text-danger">*</span>}
</label>
)}
<SwitchPrimitive.Root
@@ -36,8 +36,8 @@ export const Switch = ({
checked={isChecked}
disabled={isDisabled}
className={twMerge(
- "ml-3 h-5 w-9 rounded-full bg-bunker-300 transition-all data-[state=checked]:bg-primary",
- isDisabled && "bg-bunker-400 hover:bg-bunker-400",
+ "ml-3 h-5 w-9 rounded-full bg-label-secondary transition-all data-[state=checked]:bg-project",
+ isDisabled && "bg-muted-secondary hover:bg-muted-secondary",
className
)}
id={id}
diff --git a/frontend/src/components/v2/Table/Table.tsx b/frontend/src/components/v2/Table/Table.tsx
index 5450e0689e..f6641b578d 100644
--- a/frontend/src/components/v2/Table/Table.tsx
+++ b/frontend/src/components/v2/Table/Table.tsx
@@ -14,7 +14,7 @@ export const TableContainer = forwardRef<HTMLDivElement, TableContainerProps>(
<div
ref={ref}
className={twMerge(
- "relative w-full overflow-x-auto border border-solid border-mineshaft-700 bg-mineshaft-800 font-inter",
+ "relative w-full overflow-x-auto border border-solid border-border-subtle bg-surface-raised font-inter",
isRounded && "rounded-lg",
className
)}
@@ -33,7 +33,7 @@ export type TableProps = {
export const Table = ({ children, className }: TableProps): JSX.Element => (
<table
- className={twMerge("w-full bg-mineshaft-800 p-2 text-left text-sm text-gray-300", className)}
+ className={twMerge("w-full bg-surface-raised p-2 text-left text-sm text-label-cool", className)}
>
{children}
</table>
@@ -48,7 +48,7 @@ export type THeadProps = {
export const THead = ({ children, className, style }: THeadProps): JSX.Element => (
<thead
- className={twMerge("bg-mineshaft-800 text-xs text-bunker-300 uppercase", className)}
+ className={twMerge("bg-surface-raised text-xs text-label-secondary uppercase", className)}
style={style}
>
{children}
@@ -61,7 +61,7 @@ export type TFootProps = {
};
export const TFoot = ({ children, className }: TFootProps): JSX.Element => (
- <tfoot className={twMerge("bg-mineshaft-800 text-xs text-bunker-300 uppercase", className)}>
+ <tfoot className={twMerge("bg-surface-raised text-xs text-label-secondary uppercase", className)}>
{children}
</tfoot>
);
@@ -83,8 +83,8 @@ export const Tr = ({
}: TrProps): JSX.Element => (
<tr
className={twMerge(
- "cursor-default border-b border-solid border-mineshaft-600 last:border-b-0",
- isHoverable && "hover:bg-mineshaft-600",
+ "cursor-default border-b border-solid border-border-control last:border-b-0",
+ isHoverable && "hover:bg-surface-active",
isSelectable && "cursor-pointer",
className
)}
@@ -104,7 +104,7 @@ export type ThProps = {
export const Th = ({ children, className, style }: ThProps): JSX.Element => (
<th
className={twMerge(
- "border-b-2 border-mineshaft-600 bg-mineshaft-800 px-5 pt-4 pb-3.5 font-medium",
+ "border-b-2 border-border-control bg-surface-raised px-5 pt-4 pb-3.5 font-medium",
className
)}
style={style}
diff --git a/frontend/src/components/v2/Tabs/Tabs.tsx b/frontend/src/components/v2/Tabs/Tabs.tsx
index 47b3d08cd0..bb427e9673 100644
--- a/frontend/src/components/v2/Tabs/Tabs.tsx
+++ b/frontend/src/components/v2/Tabs/Tabs.tsx
@@ -23,7 +23,7 @@ export type TabListProps = TabsPrimitive.TabsListProps;
export const TabList = ({ className, children, ...props }: TabListProps) => (
<TabsPrimitive.List
className={twMerge(
- "no-scrollbar flex shrink-0 overflow-auto border-b-2 border-mineshaft-800",
+ "no-scrollbar flex shrink-0 overflow-auto border-b-2 border-border-faint",
"data-[orientation=vertical]:xl:flex-col data-[orientation=vertical]:xl:items-start data-[orientation=vertical]:xl:gap-y-6 data-[orientation=vertical]:xl:border-b-0",
className
)}
@@ -48,15 +48,15 @@ export const Tab = ({
<TabsPrimitive.Trigger
className={twMerge(
"flex h-11 cursor-pointer items-center justify-center border-transparent",
- "px-3 text-sm font-medium whitespace-nowrap text-mineshaft-300/75 transition-all select-none",
+ "px-3 text-sm font-medium whitespace-nowrap text-label/75 transition-all select-none",
"data-[orientation=vertical]:xl:h-5 data-[orientation=vertical]:xl:border-b-0 data-[orientation=vertical]:xl:border-l",
- "border-b hover:text-mineshaft-200",
- "data-[state=active]:border-mineshaft-400 data-[state=active]:text-white",
- "hover:border-mineshaft-400",
- variant === "project" && "data-[state=active]:border-primary",
- variant === "namespace" && "data-[state=active]:border-namespace-v1",
- variant === "org" && "data-[state=active]:border-org-v1",
- variant === "instance" && "data-[state=active]:border-mineshaft-300",
+ "border-b hover:text-foreground-secondary",
+ "data-[state=active]:border-border-emphasis data-[state=active]:text-foreground-inverse",
+ "hover:border-border-emphasis",
+ variant === "project" && "data-[state=active]:border-project",
+ variant === "namespace" && "data-[state=active]:border-sub-org",
+ variant === "org" && "data-[state=active]:border-org",
+ variant === "instance" && "data-[state=active]:border-border-bright",
className
)}
{...props}
diff --git a/frontend/src/components/v2/Tag/Tag.tsx b/frontend/src/components/v2/Tag/Tag.tsx
index a58e1ed2a3..17a9c09bf3 100644
--- a/frontend/src/components/v2/Tag/Tag.tsx
+++ b/frontend/src/components/v2/Tag/Tag.tsx
@@ -11,13 +11,13 @@ type Props = {
} & VariantProps<typeof tagVariants>;
const tagVariants = cva(
- "inline-flex items-center whitespace-nowrap text-sm rounded-sm mr-1.5 text-bunker-200 text-gray-400 ",
+ "inline-flex items-center whitespace-nowrap text-sm rounded-sm mr-1.5 text-foreground-soft text-muted-cool ",
{
variants: {
colorSchema: {
- gray: "bg-mineshaft-500",
- red: "bg-red/80 text-bunker-100",
- green: "bg-primary-800 text-white"
+ gray: "bg-surface-selected",
+ red: "bg-danger/80 text-foreground-default",
+ green: "bg-success text-white"
},
size: {
xs: "text-xs px-1 py-0.5",
diff --git a/frontend/src/components/v2/TextArea/TextArea.tsx b/frontend/src/components/v2/TextArea/TextArea.tsx
index e6ae05350f..db0b60cb21 100644
--- a/frontend/src/components/v2/TextArea/TextArea.tsx
+++ b/frontend/src/components/v2/TextArea/TextArea.tsx
@@ -11,7 +11,7 @@ type Props = {
};
const textAreaVariants = cva(
- "textarea w-full p-2 focus:ring-2 ring-primary-800 outline-hidden border text-gray-400 font-inter placeholder-gray-500/50",
+ "textarea w-full p-2 focus:ring-2 ring-project outline-hidden border text-muted-cool font-inter placeholder:text-muted-cool-secondary/50",
{
variants: {
size: {
@@ -25,13 +25,13 @@ const textAreaVariants = cva(
false: ""
},
variant: {
- filled: ["bg-mineshaft-900", "text-gray-400"],
+ filled: ["bg-surface-base", "text-muted-cool"],
outline: ["bg-transparent"],
plain: "bg-transparent outline-hidden"
},
isError: {
- true: "focus:ring-red/50 placeholder-red-300 border-red",
- false: "focus:ring-primary-400/50 focus:ring-1 border-mineshaft-500"
+ true: "focus:ring-danger/50 placeholder:text-danger border-danger",
+ false: "focus:ring-project/50 focus:ring-1 border-border-strong"
}
},
compoundVariants: [
diff --git a/frontend/src/components/v2/Tooltip/Tooltip.tsx b/frontend/src/components/v2/Tooltip/Tooltip.tsx
index 59f751683d..8e2491c512 100644
--- a/frontend/src/components/v2/Tooltip/Tooltip.tsx
+++ b/frontend/src/components/v2/Tooltip/Tooltip.tsx
@@ -52,7 +52,7 @@ export const Tooltip = ({
sideOffset={5}
{...props}
className={twMerge(
- "data-[state=delayed-open]:data-[side=bottom]:animate-slide-up-and-fade data-[state=delayed-open]:data-[side=left]:animate-slide-right-and-fade data-[state=delayed-open]:data-[side=right]:animate-slide-left-and-fade data-[state=delayed-open]:data-[side=top]:animate-slide-down-and-fade z-[70] max-w-60 border border-mineshaft-600 bg-mineshaft-800 font-light text-bunker-200 shadow-md select-none",
+ "data-[state=delayed-open]:data-[side=bottom]:animate-slide-up-and-fade data-[state=delayed-open]:data-[side=left]:animate-slide-right-and-fade data-[state=delayed-open]:data-[side=right]:animate-slide-left-and-fade data-[state=delayed-open]:data-[side=top]:animate-slide-down-and-fade z-[70] max-w-60 border border-border-control bg-surface-raised font-light text-foreground-soft shadow-md select-none",
isDisabled && "hidden!",
center && "text-center",
size === "sm" && "rounded-xs px-2 py-1 text-xs",
@@ -61,7 +61,7 @@ export const Tooltip = ({
)}
>
{content}
- <TooltipPrimitive.Arrow width={11} height={5} className="fill-mineshaft-600" />
+ <TooltipPrimitive.Arrow width={11} height={5} className="fill-surface-active" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
</TooltipPrimitive.Root>
diff --git a/frontend/src/components/v3/generic/Badge/Badge.tsx b/frontend/src/components/v3/generic/Badge/Badge.tsx
index 7ea6f26727..f18ec32a2a 100644
--- a/frontend/src/components/v3/generic/Badge/Badge.tsx
+++ b/frontend/src/components/v3/generic/Badge/Badge.tsx
@@ -30,7 +30,7 @@ const badgeVariants = cva(
},
variant: {
ghost: "text-foreground border-none [a&,button&]:hover:bg-foreground/10",
- default: "bg-label text-background border-label [a&,button&]:hover:bg-primary/35",
+ default: "bg-label text-background border-label [a&,button&]:hover:bg-project/35",
outline: "border border-border text-muted",
shaded: "bg-border text-foreground/60 border-none",
neutral: "bg-neutral/15 border-neutral/10 text-neutral [a&,button&]:hover:bg-neutral/35",
diff --git a/frontend/src/components/v3/generic/Button/Button.tsx b/frontend/src/components/v3/generic/Button/Button.tsx
index 847df7ac4e..18c9eb0753 100644
--- a/frontend/src/components/v3/generic/Button/Button.tsx
+++ b/frontend/src/components/v3/generic/Button/Button.tsx
@@ -42,7 +42,7 @@ const buttonVariants = cva(
// Tinted from --product-color, which the caller must set inline (e.g. a billing catalog
// product's color) since the palette isn't knowable at build time.
product:
- "border-(--product-color)/30 bg-(--product-color)/25 text-foreground hover:bg-(--product-color)/30 hover:border-(--product-color)/35 data-[state=open]:bg-(--product-color)/30 data-[state=open]:border-(--product-color)/35 [--control-variant-color:var(--product-color)] [--control-variant-border-color:color-mix(in_oklab,var(--product-color)_30%,transparent)] hover:[--control-variant-border-color:color-mix(in_oklab,var(--product-color)_35%,transparent)] data-[state=open]:[--control-variant-border-color:color-mix(in_oklab,var(--product-color)_35%,transparent)]"
+ "product-color border-(--product-color-resolved)/30 bg-(--product-color-resolved)/25 text-foreground hover:bg-(--product-color-resolved)/30 hover:border-(--product-color-resolved)/35 data-[state=open]:bg-(--product-color-resolved)/30 data-[state=open]:border-(--product-color-resolved)/35 [--control-variant-color:var(--product-color-resolved)] [--control-variant-border-color:color-mix(in_oklab,var(--product-color-resolved)_30%,transparent)] hover:[--control-variant-border-color:color-mix(in_oklab,var(--product-color-resolved)_35%,transparent)] data-[state=open]:[--control-variant-border-color:color-mix(in_oklab,var(--product-color-resolved)_35%,transparent)]"
},
size: {
xs: "h-7 gap-2 rounded-sm px-2 text-xs [&>svg]:size-3",
diff --git a/frontend/src/components/v3/generic/Card/Card.tsx b/frontend/src/components/v3/generic/Card/Card.tsx
index a8c999d2ca..8db43f095f 100644
--- a/frontend/src/components/v3/generic/Card/Card.tsx
+++ b/frontend/src/components/v3/generic/Card/Card.tsx
@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
<div
data-slot="card"
className={cn(
- "flex h-fit flex-col gap-5 rounded-lg border border-border bg-card p-5 text-foreground shadow-sm",
+ "flex h-fit flex-col gap-5 rounded-card border border-border bg-card p-5 text-foreground shadow-sm",
className
)}
{...props}
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
index 2860411053..be470fb644 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-variants.tsx
@@ -726,7 +726,7 @@ export function UrlCell<TData>({
href={urlHref}
target="_blank"
rel="noopener noreferrer"
- className="data-invalid:text-destructive data-invalid:decoration-destructive/50 data-invalid:hover:decoration-destructive/70 truncate text-primary underline decoration-primary/30 underline-offset-2 hover:decoration-primary/60 data-focused:text-foreground data-focused:decoration-foreground/50 data-focused:hover:decoration-foreground/70 data-invalid:cursor-not-allowed"
+ className="data-invalid:text-destructive data-invalid:decoration-destructive/50 data-invalid:hover:decoration-destructive/70 truncate text-project underline decoration-project/30 underline-offset-2 hover:decoration-project/60 data-focused:text-foreground data-focused:decoration-foreground/50 data-focused:hover:decoration-foreground/70 data-invalid:cursor-not-allowed"
onClick={onLinkClick}
>
{displayValue}
@@ -848,7 +848,7 @@ export function CheckboxCell<TData>({
checked={value}
onCheckedChange={onCheckedChange}
disabled={readOnly}
- className="border-primary"
+ className="border-project"
onClick={onCheckboxClick}
onMouseDown={onCheckboxMouseDown}
onDoubleClick={onCheckboxDoubleClick}
@@ -1207,9 +1207,9 @@ export function MultiSelectCell<TData>({
>
<div
className={cn(
- "flex size-4 items-center justify-center rounded-sm border border-primary",
+ "flex size-4 items-center justify-center rounded-sm border border-project",
isSelected
- ? "text-primary-foreground bg-primary"
+ ? "text-project-foreground bg-project"
: "opacity-50 [&_svg]:invisible"
)}
>
@@ -1855,7 +1855,7 @@ export function FileCell<TData>({
isDirty={isDirty}
readOnly={readOnly}
className={cn({
- "ring-1 ring-primary/80 ring-inset": isDraggingOver
+ "ring-1 ring-project/80 ring-inset": isDraggingOver
})}
onDragEnter={onCellDragEnter}
onDragLeave={onCellDragLeave}
@@ -1890,7 +1890,7 @@ export function FileCell<TData>({
data-invalid={error ? "" : undefined}
data-disabled={isPending ? "" : undefined}
tabIndex={isDragging || isPending ? -1 : 0}
- className="data-invalid:border-destructive data-invalid:ring-destructive/20 flex cursor-pointer flex-col items-center justify-center gap-2 rounded-md border-2 border-dashed p-6 transition-colors outline-none hover:bg-accent/30 focus-visible:border-ring/50 data-disabled:pointer-events-none data-disabled:opacity-50 data-dragging:border-primary/30 data-dragging:bg-accent/30"
+ className="data-invalid:border-destructive data-invalid:ring-destructive/20 flex cursor-pointer flex-col items-center justify-center gap-2 rounded-md border-2 border-dashed p-6 transition-colors outline-none hover:bg-accent/30 focus-visible:border-ring/50 data-disabled:pointer-events-none data-disabled:opacity-50 data-dragging:border-project/30 data-dragging:bg-accent/30"
ref={dropzoneRef}
onClick={onDropzoneClick}
onDragEnter={onDropzoneDragEnter}
@@ -1986,7 +1986,7 @@ export function FileCell<TData>({
</Popover>
) : null}
{isDraggingOver ? (
- <div className="flex items-center justify-center gap-2 text-sm text-primary">
+ <div className="flex items-center justify-center gap-2 text-sm text-project">
<Upload className="size-4" />
<span>Drop files here</span>
</div>
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-wrapper.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-wrapper.tsx
index f7c3de10b6..5c5af21799 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-cell-wrapper.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-cell-wrapper.tsx
@@ -156,11 +156,11 @@ export function DataGridCellWrapper<TData>({
{...props}
ref={composedRef}
className={cn(
- "flex size-full items-center px-3 py-1.5 text-start text-sm text-mineshaft-200 outline-none **:data-[slot=grid-cell-content]:h-auto",
+ "flex size-full items-center px-3 py-1.5 text-start text-sm text-foreground-secondary outline-none **:data-[slot=grid-cell-content]:h-auto",
{
"ring-1 ring-ring ring-inset": isFocused,
- "bg-yellow-900/30": isSearchMatch && !isActiveSearchMatch,
- "bg-orange-900/50": isActiveSearchMatch,
+ "bg-warning/30": isSearchMatch && !isActiveSearchMatch,
+ "bg-warning/50": isActiveSearchMatch,
"bg-warning/10": isDirty && !isSelected && !isSearchMatch && !isActiveSearchMatch,
"bg-foreground/[0.07]": isSelected && !isEditing,
"cursor-default": !isEditing,
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
index 201e333fa3..ec2d796306 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-column-header.tsx
@@ -36,11 +36,11 @@ export function DataGridColumnHeader<TData, TValue>({
<div className="flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden">
{/* eslint-disable-next-line no-nested-ternary */}
{column.columnDef.meta?.columnIndicator?.type === "pk" ? (
- <KeyRoundIcon size={12} className="shrink-0 text-yellow-500" />
+ <KeyRoundIcon size={12} className="shrink-0 text-warning" />
) : column.columnDef.meta?.columnIndicator?.type === "fk" ? (
<Tooltip>
<TooltipTrigger asChild>
- <Link2Icon size={12} className="shrink-0 text-blue-400" />
+ <Link2Icon size={12} className="shrink-0 text-info" />
</TooltipTrigger>
{column.columnDef.meta.columnIndicator.tooltip && (
<TooltipContent side="bottom">
@@ -49,7 +49,7 @@ export function DataGridColumnHeader<TData, TValue>({
)}
</Tooltip>
) : null}
- <span className="truncate text-mineshaft-200">{label}</span>
+ <span className="truncate text-foreground-secondary">{label}</span>
{column.columnDef.meta?.typeLabel && (
<span className="shrink-0 font-normal text-accent">
{column.columnDef.meta.typeLabel}
@@ -60,8 +60,8 @@ export function DataGridColumnHeader<TData, TValue>({
className={cn(
"shrink-0 rounded px-1 py-0.5 text-[10px] leading-none font-medium",
column.columnDef.meta.columnIndicator.type === "pk"
- ? "bg-yellow-500/15 text-yellow-500"
- : "bg-blue-400/15 text-blue-400"
+ ? "bg-warning/15 text-warning"
+ : "bg-info/15 text-info"
)}
>
{column.columnDef.meta.columnIndicator.type === "pk" ? "PK" : "FK"}
diff --git a/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx b/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
index b5a33ecc73..fac191a062 100644
--- a/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
+++ b/frontend/src/components/v3/generic/DataGrid/data-grid-paste-dialog.tsx
@@ -126,9 +126,9 @@ function RadioItem({ className, ...props }: React.ComponentProps<"input">) {
type="radio"
className={cn(
"border-input relative size-4 shrink-0 appearance-none rounded-full border bg-background shadow-xs transition-[color,box-shadow] outline-none",
- "text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
+ "text-project focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
"disabled:cursor-not-allowed disabled:opacity-50",
- "checked:before:absolute checked:before:start-1/2 checked:before:top-1/2 checked:before:size-2 checked:before:-translate-x-1/2 checked:before:-translate-y-1/2 checked:before:rounded-full checked:before:bg-primary checked:before:content-['']",
+ "checked:before:absolute checked:before:start-1/2 checked:before:top-1/2 checked:before:size-2 checked:before:-translate-x-1/2 checked:before:-translate-y-1/2 checked:before:rounded-full checked:before:bg-project checked:before:content-['']",
"bg-input/30",
className
)}
diff --git a/frontend/src/components/v3/generic/Dropdown/Dropdown.stories.tsx b/frontend/src/components/v3/generic/Dropdown/Dropdown.stories.tsx
index 9a4e2c3c35..5e49c8cceb 100644
--- a/frontend/src/components/v3/generic/Dropdown/Dropdown.stories.tsx
+++ b/frontend/src/components/v3/generic/Dropdown/Dropdown.stories.tsx
@@ -96,6 +96,64 @@ export const Default: Story = {
)
};
+export const WithDescriptions: Story = {
+ name: "Example: Items with descriptions",
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Dropdown items grow to fit supporting text while preserving the standard padding around each option."
+ }
+ }
+ },
+ render: () => (
+ <DropdownMenu defaultOpen>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline">Add enrollment method</Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent className="w-96">
+ <DropdownMenuItem>
+ <div className="flex flex-col">
+ <span className="font-medium">API</span>
+ <span className="text-xs text-accent">
+ Issue certificates manually via the UI or programmatically through the API.
+ </span>
+ </div>
+ </DropdownMenuItem>
+ <DropdownMenuCheckboxItem checked>
+ <div className="flex flex-col">
+ <span className="font-medium">Certificate renewal</span>
+ <span className="text-xs text-accent">
+ Renew certificates automatically before they expire.
+ </span>
+ </div>
+ </DropdownMenuCheckboxItem>
+ <DropdownMenuRadioGroup value="acme">
+ <DropdownMenuRadioItem value="acme">
+ <div className="flex flex-col">
+ <span className="font-medium">ACME</span>
+ <span className="text-xs text-accent">
+ Automate certificate lifecycle with ACME clients like Certbot or Caddy.
+ </span>
+ </div>
+ </DropdownMenuRadioItem>
+ </DropdownMenuRadioGroup>
+ <DropdownMenuSub>
+ <DropdownMenuSubTrigger>
+ <div className="flex flex-col">
+ <span className="font-medium">Advanced methods</span>
+ <span className="text-xs text-accent">Configure an external enrollment method.</span>
+ </div>
+ </DropdownMenuSubTrigger>
+ <DropdownMenuSubContent>
+ <DropdownMenuItem>SCEP</DropdownMenuItem>
+ </DropdownMenuSubContent>
+ </DropdownMenuSub>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ )
+};
+
const CheckboxItemsStory = () => {
const [showGrid, setShowGrid] = useState(true);
const [showList, setShowList] = useState(false);
diff --git a/frontend/src/components/v3/generic/Dropdown/Dropdown.tsx b/frontend/src/components/v3/generic/Dropdown/Dropdown.tsx
index 7635efe5b1..e0b549db07 100644
--- a/frontend/src/components/v3/generic/Dropdown/Dropdown.tsx
+++ b/frontend/src/components/v3/generic/Dropdown/Dropdown.tsx
@@ -38,7 +38,7 @@ function DropdownMenuContent({
className={cn(
"max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin)",
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
- "z-[var(--z-index-dropdown)] thin-scrollbar overflow-x-hidden overflow-y-auto rounded-[6px] border border-border bg-popover p-1.5 text-sm text-foreground shadow-md",
+ "z-[var(--z-index-dropdown)] thin-scrollbar overflow-x-hidden overflow-y-auto rounded-popover border border-border bg-popover p-1.5 text-sm text-foreground shadow-md",
className
)}
{...props}
diff --git a/frontend/src/components/v3/generic/Loader/Loader.stories.tsx b/frontend/src/components/v3/generic/Loader/Loader.stories.tsx
index 89d1cde5da..ac76683061 100644
--- a/frontend/src/components/v3/generic/Loader/Loader.stories.tsx
+++ b/frontend/src/components/v3/generic/Loader/Loader.stories.tsx
@@ -7,7 +7,7 @@ import { Loader } from "./Loader";
/**
* `Loader` is the branded Infisical loading animation — the stroke-draw of the
- * logo mark. It is the single source for that animation: the mark, the three
+ * logo mark. It is the single source for that animation: the mark, the four
* tints, and the size scale all live here, and every product call site composes
* it rather than naming a Lottie asset itself. `main.tsx` is the deliberate
* exception: the entry module has to keep importing the `v2` barrel to hold
@@ -46,7 +46,7 @@ const meta = {
argTypes: {
variant: {
control: "select",
- options: ["default", "inverse", "brand"]
+ options: ["neutral", "default", "inverse", "brand"]
},
size: {
control: "select",
@@ -62,7 +62,7 @@ const meta = {
args: {
label: "Loading",
size: "md",
- variant: "default"
+ variant: "neutral"
}
} satisfies Meta<typeof Loader>;
@@ -74,7 +74,22 @@ export const Default: Story = {
docs: {
description: {
story:
- "The in-product default: the white mark at `md`. Use it on any dark product surface — a `Card` body waiting on a fetch, a section that owns its own loading state. The animation loops for as long as the wait lasts, or remains on its fully drawn first frame when the operating system requests reduced motion. It carries no progress information, so pair it with copy when the wait is long enough to need explaining."
+ "The in-product default: the theme-aware neutral mark at `md`. Use it on standard product surfaces — a `Card` body waiting on a fetch, or a section that owns its own loading state. The animation loops for as long as the wait lasts, or remains on its fully drawn first frame when the operating system requests reduced motion. It carries no progress information, so pair it with copy when the wait is long enough to need explaining."
+ }
+ }
+ }
+};
+
+export const VariantNeutral: Story = {
+ name: "Variant: Neutral",
+ args: {
+ variant: "neutral"
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Theme-aware monochrome mark. It renders white in dark mode and black in light mode, making it the default for standard product surfaces and controls."
}
}
}
@@ -89,7 +104,7 @@ export const VariantDefault: Story = {
docs: {
description: {
story:
- "White mark. The in-product default — correct on every dark surface in the app (`bg-page`, `bg-card`, `bg-popover`) and on tinted controls, where the button's own tint shows through around the stroke."
+ "Fixed white mark. Use it only when the surrounding surface is always dark, regardless of the active application theme. Prefer `neutral` on theme-aware product surfaces."
}
}
}
diff --git a/frontend/src/components/v3/generic/Loader/Loader.tsx b/frontend/src/components/v3/generic/Loader/Loader.tsx
index f8a8819c3f..43d115f7e1 100644
--- a/frontend/src/components/v3/generic/Loader/Loader.tsx
+++ b/frontend/src/components/v3/generic/Loader/Loader.tsx
@@ -4,7 +4,7 @@ import { useReducedMotion } from "motion/react";
import { cn } from "../../utils";
-type LoaderVariant = "default" | "inverse" | "brand";
+type LoaderVariant = "neutral" | "default" | "inverse" | "brand";
type LoaderSize = "xs" | "sm" | "md" | "lg";
@@ -15,6 +15,7 @@ type LoaderProps = Omit<ComponentProps<"div">, "children"> & {
};
const animationSources: Record<LoaderVariant, string> = {
+ neutral: "/lotties/infisical_loading_white.json",
default: "/lotties/infisical_loading_white.json",
inverse: "/lotties/infisical_loading_bw.json",
brand: "/lotties/infisical_loading.json"
@@ -33,7 +34,7 @@ function Loader({
className,
label = "Loading",
size = "md",
- variant = "default",
+ variant = "neutral",
...props
}: LoaderProps) {
const prefersReducedMotion = Boolean(useReducedMotion());
@@ -67,7 +68,7 @@ function Loader({
src={animationSources[variant]}
loop
autoplay={!prefersReducedMotion}
- className="h-full w-full"
+ className={cn("h-full w-full", variant === "neutral" && "in-data-[theme=light]:invert")}
/>
</div>
);
diff --git a/frontend/src/components/v3/generic/RadioGroup/RadioGroup.tsx b/frontend/src/components/v3/generic/RadioGroup/RadioGroup.tsx
index fe82116d81..cb9e76fd42 100644
--- a/frontend/src/components/v3/generic/RadioGroup/RadioGroup.tsx
+++ b/frontend/src/components/v3/generic/RadioGroup/RadioGroup.tsx
@@ -32,7 +32,7 @@ function RadioGroupItem({ className, isError, ...props }: RadioGroupItemProps) {
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
"aria-invalid:border-danger aria-invalid:ring-danger/40",
"hover:border-foreground/30",
- "data-[state=checked]:border-primary data-[state=checked]:bg-primary",
+ "data-[state=checked]:border-project data-[state=checked]:bg-project",
"in-data-[slot=button]:border-(--control-variant-border-color) in-data-[slot=button]:hover:border-(--control-variant-border-color)",
"in-data-[slot=button]:data-[state=checked]:border-(--control-variant-color) in-data-[slot=button]:data-[state=checked]:bg-(--control-variant-color)",
"in-data-[slot=field-label]:border-(--control-variant-border-color) in-data-[slot=field-label]:hover:border-(--control-variant-border-color)",
diff --git a/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx b/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx
index 53a1cb33fb..dd94cab7f2 100644
--- a/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx
+++ b/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx
@@ -96,7 +96,7 @@ function SelectedActionBar({
data-slot="selected-action-bar"
data-state={isVisible ? "open" : "closed"}
className={cn(
- "pointer-events-auto flex max-h-[calc(100vh-2rem)] w-full max-w-xl flex-wrap items-center gap-2 overflow-y-auto rounded-md border border-border bg-popover p-2 pl-4 text-foreground shadow-floating",
+ "pointer-events-auto flex max-h-[calc(100vh-2rem)] w-full max-w-xl flex-wrap items-center gap-2 overflow-y-auto rounded-md border border-border bg-popover p-2 pl-4 text-foreground shadow-floating in-data-[theme=light]:shadow-floating-light",
className
)}
>
diff --git a/frontend/src/components/v3/generic/Sheet/Sheet.tsx b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
index f1ce1baf32..bfd24e9863 100644
--- a/frontend/src/components/v3/generic/Sheet/Sheet.tsx
+++ b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
@@ -37,7 +37,7 @@ function SheetOverlay({
<SheetPrimitive.Overlay
data-slot="sheet-overlay"
className={cn(
- "fixed inset-0 z-[var(--z-index-backdrop)] bg-black/50 ease-out data-[state=closed]:animate-out data-[state=closed]:duration-250 data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=open]:fade-in-0",
+ "fixed inset-0 z-[var(--z-index-backdrop)] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:duration-150 data-[state=closed]:ease-in data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=open]:ease-out data-[state=open]:fade-in-0",
className
)}
{...props}
@@ -75,15 +75,15 @@ function SheetContent({
onInteractOutside?.(e);
}}
className={cn(
- "fixed z-[var(--z-index-modal)] flex thin-scrollbar flex-col border-border bg-popover text-foreground shadow-lg outline-0 transition ease-out data-[state=closed]:animate-out data-[state=closed]:duration-250 data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=open]:fade-in-0",
+ "fixed z-[var(--z-index-modal)] flex thin-scrollbar flex-col border-border bg-popover text-foreground shadow-lg outline-0 transition data-[state=closed]:animate-out data-[state=closed]:duration-150 data-[state=closed]:ease-in data-[state=closed]:fade-out-50 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=open]:ease-out",
side === "right" &&
- "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right-8 data-[state=open]:slide-in-from-right-2 sm:max-w-md",
+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-2 sm:max-w-md",
side === "left" &&
- "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left-8 data-[state=open]:slide-in-from-left-2 sm:max-w-md",
+ "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left-full data-[state=open]:slide-in-from-left-2 sm:max-w-md",
side === "top" &&
- "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top-8 data-[state=open]:slide-in-from-top-2",
+ "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-2",
side === "bottom" &&
- "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom-8 data-[state=open]:slide-in-from-bottom-2",
+ "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-2",
className
)}
{...props}
diff --git a/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx b/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
index 3e4ba45d60..64ebac1e8d 100644
--- a/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
+++ b/frontend/src/components/v3/generic/Sidebar/Sidebar.tsx
@@ -202,7 +202,7 @@ function Sidebar({
data-slot="sidebar"
data-mobile="true"
className={cn(
- "w-(--sidebar-width) bg-gradient-to-r to-transparent p-0 text-foreground [&>button]:hidden",
+ "w-(--sidebar-width) bg-gradient-to-r to-transparent p-0 text-foreground in-data-[theme=light]:bg-none [&>button]:hidden",
(scope === "project" || scope === "pam" || scope === "agent-vault") &&
"from-project/5",
scope === "sub-org" && "from-sub-org/5",
@@ -238,7 +238,7 @@ function Sidebar({
>
<div
className={cn(
- "flex h-full flex-col overflow-hidden border-r border-border bg-gradient-to-r to-transparent text-foreground transition-[width] duration-200 ease-linear",
+ "flex h-full flex-col overflow-hidden border-r border-border bg-gradient-to-r to-transparent text-foreground transition-[width] duration-200 ease-linear in-data-[theme=light]:bg-none",
state === "collapsed" ? "w-(--sidebar-width-icon)" : "w-(--sidebar-width)",
(scope === "project" || scope === "pam" || scope === "agent-vault") &&
"from-project/5",
diff --git a/frontend/src/components/v3/generic/Spinner/Spinner.tsx b/frontend/src/components/v3/generic/Spinner/Spinner.tsx
index 77163945e9..2500507bdc 100644
--- a/frontend/src/components/v3/generic/Spinner/Spinner.tsx
+++ b/frontend/src/components/v3/generic/Spinner/Spinner.tsx
@@ -22,7 +22,7 @@ function Spinner({ className, label = "Loading", size = "md", ...props }: Spinne
role="status"
aria-label={label}
data-slot="spinner"
- className={cn("m-1 animate-spin fill-primary text-muted/25", sizeStyles[size], className)}
+ className={cn("m-1 animate-spin fill-project text-muted/25", sizeStyles[size], className)}
viewBox="0 0 100 101"
fill="none"
xmlns="http://www.w3.org/2000/svg"
diff --git a/frontend/src/components/v3/generic/Stepper/Stepper.tsx b/frontend/src/components/v3/generic/Stepper/Stepper.tsx
index 8c89cc72c5..f5c4da2928 100644
--- a/frontend/src/components/v3/generic/Stepper/Stepper.tsx
+++ b/frontend/src/components/v3/generic/Stepper/Stepper.tsx
@@ -91,7 +91,7 @@ const indicatorVariants = cva(
status: {
complete: "border-success bg-success/10 text-success",
current: "border-warning bg-warning/10 text-warning ring-3 ring-warning/20",
- pending: "border-border bg-mineshaft-800 text-muted",
+ pending: "border-border bg-surface-raised text-muted",
error: "border-danger bg-danger/10 text-danger"
}
},
diff --git a/frontend/src/components/v3/generic/Tooltip/Tooltip.tsx b/frontend/src/components/v3/generic/Tooltip/Tooltip.tsx
index 25e34b7b8b..614857fee3 100644
--- a/frontend/src/components/v3/generic/Tooltip/Tooltip.tsx
+++ b/frontend/src/components/v3/generic/Tooltip/Tooltip.tsx
@@ -32,7 +32,7 @@ function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimiti
function TooltipContent({
className,
- sideOffset = 0,
+ sideOffset = 4,
collisionPadding = 8,
children,
...props
@@ -44,13 +44,12 @@ function TooltipContent({
sideOffset={sideOffset}
collisionPadding={collisionPadding}
className={cn(
- "!pointer-events-none z-[var(--z-index-tooltip)] w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-sm bg-border px-3 py-1.5 text-xs text-pretty text-foreground shadow-md fade-in-0 select-none zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
+ "!pointer-events-none z-[var(--z-index-tooltip)] w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border border-border bg-popover px-3 py-1.5 text-xs text-pretty text-foreground shadow-md fade-in-0 select-none zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
className
)}
{...props}
>
{children}
- <TooltipPrimitive.Arrow className="z-[var(--z-index-tooltip)] size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[1px] bg-border fill-border" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
);
diff --git a/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx b/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
index 0f722e3d0d..a8f9f0c961 100644
--- a/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
+++ b/frontend/src/components/v3/platform/DateRangeFilter/DateRangeFilter.tsx
@@ -78,13 +78,13 @@ export const ACCENT_STYLES: Record<
}
> = {
primary: {
- selectedBorderBg: "border-primary bg-primary/5",
- selectedCard: "border-primary/40 bg-primary/5 shadow-xs",
- selectedBadge: "rounded-sm bg-primary/5 px-1.5 py-0.5 text-[11px] font-medium text-primary",
- selectedChip: "border-primary/40 bg-primary/5 text-foreground",
+ selectedBorderBg: "border-project bg-project/5",
+ selectedCard: "border-project/40 bg-project/5 shadow-xs",
+ selectedBadge: "rounded-sm bg-project/5 px-1.5 py-0.5 text-[11px] font-medium text-project",
+ selectedChip: "border-project/40 bg-project/5 text-foreground",
switchChecked:
- "data-[state=checked]:border-primary/25 data-[state=checked]:bg-primary/10 data-[state=checked]:hover:border-primary/30 data-[state=checked]:hover:bg-primary/15",
- applyButton: "border-primary/25 bg-primary/10 hover:bg-primary/15 hover:border-primary/30",
+ "data-[state=checked]:border-project/25 data-[state=checked]:bg-project/10 data-[state=checked]:hover:border-project/30 data-[state=checked]:hover:bg-project/15",
+ applyButton: "border-project/25 bg-project/10 hover:bg-project/15 hover:border-project/30",
calendarMiddle: "data-[range-middle=true]:!bg-muted/[12%]",
activeVariant: "project"
},
@@ -503,7 +503,7 @@ export function DateRangeFilter({
</div>
</div>
{isInvalidFixedRange && (
- <p className="text-xs text-red-400">Start date must be before end date.</p>
+ <p className="text-xs text-danger">Start date must be before end date.</p>
)}
</div>
</div>
diff --git a/frontend/src/components/v3/platform/ProjectPermissionSubjects/ProjectPermissionSubjects.ts b/frontend/src/components/v3/platform/ProjectPermissionSubjects/ProjectPermissionSubjects.ts
index b390b3e58b..7f7ad442e7 100644
--- a/frontend/src/components/v3/platform/ProjectPermissionSubjects/ProjectPermissionSubjects.ts
+++ b/frontend/src/components/v3/platform/ProjectPermissionSubjects/ProjectPermissionSubjects.ts
@@ -138,8 +138,8 @@ export const PERMISSION_SUBJECT_SECRET_COLOR = {
export const PERMISSION_SUBJECT_HONEY_TOKEN_COLOR = {
token: null,
- textClassName: "text-yellow-700",
- tileClassName: "border-yellow-700/10 bg-yellow-700/15 text-yellow-700"
+ textClassName: "text-warning",
+ tileClassName: "border-warning/10 bg-warning/15 text-warning"
} as const satisfies PermissionSubjectColor;
const present = (
diff --git a/frontend/src/components/v3/platform/ProviderIcon/ProviderIcon.tsx b/frontend/src/components/v3/platform/ProviderIcon/ProviderIcon.tsx
new file mode 100644
index 0000000000..4432d0a571
--- /dev/null
+++ b/frontend/src/components/v3/platform/ProviderIcon/ProviderIcon.tsx
@@ -0,0 +1,15 @@
+import * as React from "react";
+
+import { useTheme } from "../ThemeProvider";
+import { getProviderIconPath } from "./provider-icon-assets";
+
+export type ProviderIconProps = Omit<React.ComponentPropsWithoutRef<"img">, "alt" | "src"> & {
+ alt: string;
+ icon: string;
+};
+
+export const ProviderIcon = ({ alt, icon, ...props }: ProviderIconProps) => {
+ const { resolvedTheme } = useTheme();
+
+ return <img {...props} alt={alt} src={getProviderIconPath(icon, resolvedTheme)} />;
+};
diff --git a/frontend/src/components/v3/platform/ProviderIcon/index.ts b/frontend/src/components/v3/platform/ProviderIcon/index.ts
new file mode 100644
index 0000000000..c14329de0c
--- /dev/null
+++ b/frontend/src/components/v3/platform/ProviderIcon/index.ts
@@ -0,0 +1,2 @@
+export * from "./provider-icon-assets";
+export * from "./ProviderIcon";
diff --git a/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts
new file mode 100644
index 0000000000..de8e0d4b0f
--- /dev/null
+++ b/frontend/src/components/v3/platform/ProviderIcon/provider-icon-assets.ts
@@ -0,0 +1,27 @@
+import { type ResolvedTheme } from "../ThemeProvider";
+
+type ProviderIconVariants = {
+ onLight?: string;
+};
+
+export const PROVIDER_ICON_VARIANTS: Record<string, ProviderIconVariants> = {
+ "Ab Initio.png": { onLight: "Ab Initio.on-light.png" },
+ "Amazon Web Services.png": { onLight: "Amazon Web Services.on-light.png" },
+ "DatadogWhite.png": { onLight: "Datadog.png" },
+ "Express.png": { onLight: "Express.on-light.png" },
+ "GitHub.png": { onLight: "GitHub.on-light.png" },
+ "Gradle.png": { onLight: "Gradle.on-light.png" },
+ "Infisical.png": { onLight: "Infisical.on-light.png" },
+ "Next.js.png": { onLight: "Next.js.on-light.png" },
+ "Nutanix.png": { onLight: "Nutanix.on-light.png" },
+ "OpenAIWhite.png": { onLight: "OpenAI.png" },
+ "Railway.png": { onLight: "Railway.on-light.png" },
+ "Remix.png": { onLight: "Remix.on-light.png" },
+ "SSH.png": { onLight: "SSH.on-light.png" },
+ "Venafi.png": { onLight: "Venafi.on-light.png" }
+};
+
+export const getProviderIconPath = (icon: string, theme: ResolvedTheme) => {
+ const variant = theme === "light" ? PROVIDER_ICON_VARIANTS[icon]?.onLight : undefined;
+ return `/images/integrations/${variant ?? icon}`;
+};
diff --git a/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx b/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx
index 1e5322c3e7..683771b421 100644
--- a/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx
+++ b/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx
@@ -2,6 +2,7 @@ import { useLocation, useNavigate, useParams, useRouteContext } from "@tanstack/
import {
BlocksIcon,
BuildingIcon,
+ CheckIcon,
CogIcon,
CreditCardIcon,
DatabaseIcon,
@@ -12,11 +13,13 @@ import {
KeyIcon,
KeyRoundIcon,
LayoutDashboardIcon,
+ MoonIcon,
SearchIcon,
ServerCogIcon,
SettingsIcon,
ShieldCheckIcon,
ShieldIcon,
+ SunIcon,
UserIcon,
UsersIcon
} from "lucide-react";
@@ -29,6 +32,11 @@ import {
type GlobalCommandMenuSearchStatus
} from "@app/components/v3/generic/Command";
import { OrgIcon, ProjectIcon, SubOrgIcon } from "@app/components/v3/platform/ScopeIcons";
+import {
+ type Theme,
+ type ThemeChangeSource,
+ useTheme
+} from "@app/components/v3/platform/ThemeProvider";
import {
OrgPermissionActions,
OrgPermissionAuditLogsActions,
@@ -306,11 +314,15 @@ const useEntityCommandGroups = ({
const getNestedCommandGroup = ({
projectItems,
organizationItems,
- teamItems
+ teamItems,
+ theme,
+ setTheme
}: {
projectItems: GlobalCommandMenuItem[];
organizationItems: GlobalCommandMenuItem[];
teamItems: GlobalCommandMenuItem[];
+ theme: Theme;
+ setTheme: (theme: Theme, source: ThemeChangeSource) => void;
}): GlobalCommandMenuGroup => ({
heading: "Explore",
items: [
@@ -344,7 +356,40 @@ const getNestedCommandGroup = ({
drilldownPlaceholder: "Search teams..."
}
]
- : [])
+ : []),
+ {
+ id: "command-change-theme",
+ label: "Change Theme…",
+ breadcrumb: "Global / Appearance",
+ icon: theme === "dark" ? MoonIcon : SunIcon,
+ keywords: ["dark", "light", "appearance"],
+ children: [
+ {
+ heading: "Theme",
+ items: [
+ {
+ id: "theme-dark",
+ label: "Dark",
+ breadcrumb: `Appearance / ${theme === "dark" ? "Current theme" : "Theme"}`,
+ icon: theme === "dark" ? CheckIcon : MoonIcon,
+ keywords: ["theme"],
+ isDisabled: theme === "dark",
+ onSelect: () => setTheme("dark", "command-menu")
+ },
+ {
+ id: "theme-light",
+ label: "Light",
+ breadcrumb: `Appearance / ${theme === "light" ? "Current theme" : "Theme"}`,
+ icon: theme === "light" ? CheckIcon : SunIcon,
+ keywords: ["theme"],
+ isDisabled: theme === "light",
+ onSelect: () => setTheme("light", "command-menu")
+ }
+ ]
+ }
+ ],
+ drilldownPlaceholder: "Choose a theme..."
+ }
]
});
@@ -380,6 +425,7 @@ const getAccountItems = (navigate: ReturnType<typeof useNavigate>): GlobalComman
];
const PersonalSettingsCommandMenu = () => {
+ const { theme, setTheme } = useTheme();
const organizationId = useRouteContext({
from: "/_authenticate",
select: (context) => context.organizationId
@@ -387,7 +433,7 @@ const PersonalSettingsCommandMenu = () => {
const navigate = useNavigate();
const accountItems = getAccountItems(navigate).map((item) => ({ ...item, priority: 30 }));
const entityGroups = useEntityCommandGroups({ currentOrganizationId: organizationId });
- const nestedGroup = getNestedCommandGroup(entityGroups);
+ const nestedGroup = getNestedCommandGroup({ ...entityGroups, theme, setTheme });
return (
<NavigationCommandMenu
@@ -403,6 +449,7 @@ const PersonalSettingsCommandMenu = () => {
};
const AdminCommandMenu = () => {
+ const { theme, setTheme } = useTheme();
const { currentOrg } = useOrganization();
const navigate = useNavigate();
const accountItems = getAccountItems(navigate);
@@ -451,7 +498,7 @@ const AdminCommandMenu = () => {
browseGroups={[
{ heading: "Server Console", items: adminItems },
{ heading: "Global", items: accountItems.slice(0, 1) },
- getNestedCommandGroup(entityGroups)
+ getNestedCommandGroup({ ...entityGroups, theme, setTheme })
]}
searchGroups={[
{ heading: "Pages & Settings", items: [...adminItems, ...accountItems] },
@@ -1034,6 +1081,7 @@ const CurrentProjectCommandMenu = ({ content }: { content: CommandContent }) =>
};
const OrganizationCommandMenu = () => {
+ const { theme, setTheme } = useTheme();
const { projectId } = useParams({ strict: false }) as { projectId?: string };
const orgScopedProduct = useImplicitProduct();
const { currentOrg, isRootOrganization } = useOrganization();
@@ -1097,7 +1145,7 @@ const OrganizationCommandMenu = () => {
browseGroups: [
{ heading: currentOrg.name, items: organizationItems.slice(0, 3) },
{ heading: "Global", items: globalItems.slice(0, user.superAdmin ? 2 : 1) },
- getNestedCommandGroup(entityGroups)
+ getNestedCommandGroup({ ...entityGroups, theme, setTheme })
],
searchGroups: [
{ heading: "Pages & Settings", items: [...organizationItems, ...globalItems] },
diff --git a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
index ac58ecfd1b..856f61101c 100644
--- a/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
+++ b/frontend/src/components/v3/platform/SecretInput/SecretInput.tsx
@@ -125,7 +125,8 @@ type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & {
onClickSegment?: (segment: string, allSegments: string[]) => void;
};
-const commonClassName = "w-full border-none text-sm leading-5 break-all caret-white outline-hidden";
+const commonClassName =
+ "w-full border-none text-sm leading-5 break-all caret-foreground outline-hidden";
export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(
(
diff --git a/frontend/src/components/v3/platform/ThemeProvider/ThemeProvider.tsx b/frontend/src/components/v3/platform/ThemeProvider/ThemeProvider.tsx
new file mode 100644
index 0000000000..9c7446316a
--- /dev/null
+++ b/frontend/src/components/v3/platform/ThemeProvider/ThemeProvider.tsx
@@ -0,0 +1,151 @@
+import * as React from "react";
+
+import { analytics } from "@app/lib/analytics";
+
+import { isDarkAuthPath } from "./auth-theme";
+
+export type Theme = "dark" | "light" | "system";
+export type ResolvedTheme = Exclude<Theme, "system">;
+export type ThemeChangeSource = "command-menu" | "profile-menu";
+
+type ThemeContextValue = {
+ theme: Theme;
+ resolvedTheme: ResolvedTheme;
+ setTheme: (theme: Theme, source: ThemeChangeSource) => void;
+};
+
+const THEME_STORAGE_KEY = "infisical-theme";
+const DEFAULT_THEME: Theme = "dark";
+
+const ThemeContext = React.createContext<ThemeContextValue | null>(null);
+
+const isTheme = (value: string | null): value is Theme =>
+ value === "dark" || value === "light" || value === "system";
+
+const readStoredTheme = (): Theme => {
+ try {
+ const storedTheme = window.localStorage.getItem(THEME_STORAGE_KEY);
+ return isTheme(storedTheme) ? storedTheme : DEFAULT_THEME;
+ } catch {
+ return DEFAULT_THEME;
+ }
+};
+
+const getSystemTheme = (): ResolvedTheme =>
+ window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
+
+const resolveTheme = (
+ theme: Theme,
+ pathname: string,
+ systemTheme: ResolvedTheme = getSystemTheme()
+): ResolvedTheme => {
+ if (isDarkAuthPath(pathname)) return "dark";
+ return theme === "system" ? systemTheme : theme;
+};
+
+const applyTheme = (resolvedTheme: ResolvedTheme) => {
+ document.documentElement.dataset.theme = resolvedTheme;
+ document.documentElement.style.colorScheme = resolvedTheme;
+};
+
+const persistTheme = (theme: Theme) => {
+ try {
+ window.localStorage.setItem(THEME_STORAGE_KEY, theme);
+ } catch {
+ // Theme selection still applies for this session when storage is unavailable.
+ }
+};
+
+export const initializeTheme = () => {
+ const theme = readStoredTheme();
+ applyTheme(resolveTheme(theme, window.location.pathname));
+ return theme;
+};
+
+export const ThemeProvider = ({
+ children,
+ pathname
+}: React.PropsWithChildren<{ pathname: string }>) => {
+ const [theme, setThemeState] = React.useState<Theme>(readStoredTheme);
+ const [systemTheme, setSystemTheme] = React.useState<ResolvedTheme>(getSystemTheme);
+ const resolvedTheme = resolveTheme(theme, pathname, systemTheme);
+
+ React.useLayoutEffect(() => {
+ applyTheme(resolvedTheme);
+ }, [resolvedTheme]);
+
+ React.useEffect(() => {
+ const handleStorage = (event: StorageEvent) => {
+ if (event.key !== THEME_STORAGE_KEY || !isTheme(event.newValue)) return;
+ setThemeState(event.newValue);
+ };
+
+ const mediaQuery = window.matchMedia("(prefers-color-scheme: light)");
+ const handleSystemThemeChange = (event: MediaQueryListEvent) => {
+ setSystemTheme(event.matches ? "light" : "dark");
+ };
+
+ window.addEventListener("storage", handleStorage);
+ mediaQuery.addEventListener("change", handleSystemThemeChange);
+ return () => {
+ window.removeEventListener("storage", handleStorage);
+ mediaQuery.removeEventListener("change", handleSystemThemeChange);
+ };
+ }, []);
+
+ const setTheme = React.useCallback(
+ (nextTheme: Theme, source: ThemeChangeSource) => {
+ const nextResolvedTheme = resolveTheme(nextTheme, pathname);
+ const updateTheme = () => {
+ applyTheme(nextResolvedTheme);
+ persistTheme(nextTheme);
+ setThemeState(nextTheme);
+ analytics.captureThemePreferenceChanged({
+ source,
+ theme: nextTheme,
+ resolvedTheme: nextResolvedTheme
+ });
+ };
+
+ if (nextResolvedTheme === resolvedTheme) {
+ updateTheme();
+ return;
+ }
+
+ const root = document.documentElement;
+ const updateThemeWithoutTransitions = () => {
+ root.dataset.themeSwitching = "";
+ updateTheme();
+ };
+ const restoreTransitions = () => {
+ delete root.dataset.themeSwitching;
+ };
+
+ if (
+ !("startViewTransition" in document) ||
+ window.matchMedia("(prefers-reduced-motion: reduce)").matches
+ ) {
+ updateThemeWithoutTransitions();
+ window.requestAnimationFrame(() => window.requestAnimationFrame(restoreTransitions));
+ return;
+ }
+
+ const transition = document.startViewTransition(updateThemeWithoutTransitions);
+ transition.ready.then(restoreTransitions, restoreTransitions);
+ },
+ [pathname, resolvedTheme]
+ );
+
+ const value = React.useMemo(
+ () => ({ resolvedTheme, setTheme, theme }),
+ [resolvedTheme, setTheme, theme]
+ );
+
+ return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>;
+};
+
+export const useTheme = () => {
+ const context = React.useContext(ThemeContext);
+ if (!context) throw new Error("useTheme must be used within ThemeProvider");
+ return context;
+};
diff --git a/frontend/src/components/v3/platform/ThemeProvider/auth-theme.ts b/frontend/src/components/v3/platform/ThemeProvider/auth-theme.ts
new file mode 100644
index 0000000000..6a96fb6b58
--- /dev/null
+++ b/frontend/src/components/v3/platform/ThemeProvider/auth-theme.ts
@@ -0,0 +1,4 @@
+export const isDarkAuthPath = (pathname: string) =>
+ /^\/(?:login|signup|admin\/signup|signupinvite|requestnewinvite|email-not-verified|account-recovery|account-recovery-reset|password-setup|cli-redirect|mfa-session)(?:\/|$)/.test(
+ pathname
+ );
diff --git a/frontend/src/components/v3/platform/ThemeProvider/index.ts b/frontend/src/components/v3/platform/ThemeProvider/index.ts
new file mode 100644
index 0000000000..d380ec38ce
--- /dev/null
+++ b/frontend/src/components/v3/platform/ThemeProvider/index.ts
@@ -0,0 +1 @@
+export * from "./ThemeProvider";
diff --git a/frontend/src/components/v3/platform/index.ts b/frontend/src/components/v3/platform/index.ts
index f0d800d1be..134f7a1eb2 100644
--- a/frontend/src/components/v3/platform/index.ts
+++ b/frontend/src/components/v3/platform/index.ts
@@ -11,9 +11,11 @@ export * from "./PageLoader";
export * from "./PasswordGenerator";
export * from "./PermissionActionSelect";
export * from "./ProjectPermissionSubjects/ProjectPermissionSubjects";
+export * from "./ProviderIcon";
export * from "./RootCommandMenu";
export * from "./ScopeIcons";
export * from "./SecretInput";
export * from "./SecretManagerResources/SecretManagerResources";
export * from "./SecretPathInput";
+export * from "./ThemeProvider";
export * from "./VerificationCode";
diff --git a/frontend/src/hooks/useSyntaxHighlight.tsx b/frontend/src/hooks/useSyntaxHighlight.tsx
index d1af77f77f..282892a8d7 100644
--- a/frontend/src/hooks/useSyntaxHighlight.tsx
+++ b/frontend/src/hooks/useSyntaxHighlight.tsx
@@ -29,12 +29,12 @@ export const useSyntaxHighlight = () => {
// append a space on last new line this to show new line in ui for code component
const val = text.at(-1) === "\n" ? text.concat(" ") : text;
- if (val?.length === 0) return <span className="font-mono text-bunker-400/80">EMPTY</span>;
+ if (val?.length === 0) return <span className="font-mono text-muted-secondary/80">EMPTY</span>;
return val?.split(REGEX).map((word, i) =>
word.match(REGEX) !== null ? (
- <span className="ph-no-capture text-yellow" key={`${val}-${i + 1}`}>
+ <span className="ph-no-capture text-warning" key={`${val}-${i + 1}`}>
$&#123;
- <span className="ph-no-capture text-yellow-200/80">{word.slice(2, word.length - 1)}</span>
+ <span className="ph-no-capture text-warning/80">{word.slice(2, word.length - 1)}</span>
&#125;
</span>
) : (
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 9358dadc08..598c4c9d85 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -1,8 +1,15 @@
+/* Imports and Tailwind configuration */
@import "tailwindcss";
@import "tw-animate-css";
+@import "./legacy.css";
+/* Tailwind directives */
+@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
+
+/* Content sources */
@source not "../public";
+/* Font-face declarations */
@font-face {
font-family: "Alliance No. 2";
src:
@@ -14,14 +21,16 @@
font-display: swap;
}
-/*
- The default border color has changed to `currentcolor` in Tailwind CSS v4,
- so we've added these compatibility styles to make sure everything still
- looks the same as it did with Tailwind CSS v3.
+/* Runtime defaults */
+:root {
+ font-family: var(--font-inter);
+ color-scheme: dark;
+}
+
+/* Compatibility styles */
+/* Tailwind v4 defaults borders to currentcolor; this preserves the v3 border color behavior. */
- If we ever want to remove these styles, we need to add an explicit border
- color utility to any element that depends on these defaults.
-*/
+/* Base/reset styles */
@layer base {
*,
::after,
@@ -35,20 +44,28 @@
@apply overflow-hidden;
}
+ html,
+ body,
+ #root {
+ background-color: var(--color-page);
+ color: var(--color-foreground);
+ }
+
input {
- color-scheme: dark;
+ color-scheme: inherit;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
+ -webkit-text-fill-color: var(--color-foreground) !important;
+ caret-color: var(--color-foreground);
box-shadow: 0 0 0 1000px var(--autofill-background, var(--color-background)) inset !important;
}
input[data-slot="input-group-control"]:-webkit-autofill {
background-clip: text;
- -webkit-text-fill-color: currentColor;
box-shadow: none !important;
}
@@ -67,13 +84,9 @@
}
}
-:root {
- font-family: var(--font-inter);
- --foreground: oklch(0.985 0 0);
- --background: oklch(0.145 0 0);
-}
-
@theme {
+ /* Semantic color tokens */
+ /* Surface, content, structure, status, scope, and resource roles */
--z-index-sticky: 10;
--z-index-action: 40;
--z-index-backdrop: 50;
@@ -100,169 +113,261 @@
--max-width-8xl: 88rem; /* 1408px */
/* Colors v2 */
- --color-page: #0e1014;
- --color-background: #19191c;
- --color-foreground: #ebebeb;
- --color-success: #2ecc71;
- --color-info: #63b0bd;
- --color-warning: #f1c40f;
- --color-danger: #e74c3c;
- --color-org: #30b3ff;
- --color-sub-org: #96ff59;
- --color-project: #e0ed34;
- --color-product-sm: #e0ed34;
- --color-product-pki: #ed8c34;
- --color-product-kms: #34edbf;
- --color-product-ss: #b056f0;
- --color-product-pam: #ff3568;
- --color-product-av: #a1d434;
- --color-admin: #c0c0c8;
- --color-neutral: #adaeb0;
- --color-border: #2b2c30;
- --color-label: #adaeb0;
- --color-muted: #707174;
- --color-popover: #141617;
- --color-ring: #2d2f33;
- --color-card: #16181a;
- --color-accent: #7d7f80;
- --color-container: #1a1c1e;
- --color-container-hover: #1f2123;
+ --color-page: oklch(17.26855% 0.0089336 264.3079);
+ --color-background: oklch(21.47091% 0.0058295 285.8986);
+ --color-foreground: oklch(94.00701% 0 0);
+ --color-success: oklch(74.58674% 0.1812494 152.3266);
+ --color-info: oklch(71.24953% 0.0783833 209.5506);
+ --color-warning: oklch(83.57954% 0.1689691 91.76661);
+ --color-danger: oklch(63.06821% 0.194009 29.44153);
+ --color-org: oklch(73.25807% 0.1541697 240.3307);
+ --color-sub-org: oklch(90.39549% 0.2223969 136.0466);
+ --color-project: oklch(90.6745% 0.19075 113.8155);
+ --color-product-sm: oklch(90.6745% 0.19075 113.8155);
+ --color-product-pki: oklch(72.92586% 0.152812 58.22252);
+ --color-product-kms: oklch(84.69324% 0.1560789 170.9594);
+ --color-product-ss: oklch(63.24135% 0.2260294 308.0826);
+ --color-product-pam: oklch(65.81738% 0.2336108 12.91672);
+ --color-product-av: oklch(80.58943% 0.1876768 126.1996);
+ --color-admin: oklch(81.01998% 0.0111224 286.1488);
+ --color-neutral: oklch(75.06158% 0.0030629 264.5385);
+ --color-border: oklch(29.36955% 0.007358 274.7154);
+ --color-label: oklch(75.06158% 0.0030629 264.5385);
+ --color-muted: oklch(54.87373% 0.0047733 271.3273);
+ --color-popover: oklch(19.84221% 0.0037251 229.0053);
+ --color-ring: oklch(30.47636% 0.0077146 264.4536);
+ --color-card: oklch(20.77202% 0.005034 248.0706);
+ --color-accent: oklch(59.50979% 0.0028503 228.8129);
+ --color-container: oklch(22.51505% 0.004934 248.0473);
+ --color-container-hover: oklch(24.64789% 0.004824 248.0237);
/* Elevation */
- --shadow-floating: 0 8px 32px rgb(0 0 0 / 0.6);
+ --shadow-floating: 0 8px 32px oklch(0% 0 0 / 0.6);
+ --shadow-floating-light: 0 4px 12px oklch(0% 0 0 / 0.08);
/* Sidebar */
- --color-sidebar: #19191c;
- --color-sidebar-foreground: #ebebeb;
- --color-sidebar-border: #2b2c30;
- --color-sidebar-accent: #1e1f22;
- --color-sidebar-accent-foreground: #ebebeb;
- --color-sidebar-ring: #2d2f33;
+ --color-sidebar: oklch(21.47091% 0.0058295 285.8986);
+ --color-sidebar-foreground: oklch(94.00701% 0 0);
+ --color-sidebar-border: oklch(29.36955% 0.007358 274.7154);
+ --color-sidebar-accent: oklch(23.94746% 0.0058985 271.1652);
+ --color-sidebar-accent-foreground: oklch(94.00701% 0 0);
+ --color-sidebar-ring: oklch(30.47636% 0.0077146 264.4536);
/* secret management product colors */
- --color-folder: #a4873e;
- --color-secret: #7d7f80;
- --color-dynamic-secret: #a6702b;
- --color-import: #457d91;
- --color-secret-rotation: #4c6081;
- --color-override: #694c81;
- --color-proxied-service: #7d4ca9;
-
- /*legacy color schema */
- --color-org-v1: #30b3ff;
- --color-namespace-v1: #96ff59;
-
- /* Primary */
- --color-primary-50: #fffff5;
- --color-primary-100: #fcfce8;
- --color-primary-200: #f8faca;
- --color-primary-300: #f4f7ab;
- --color-primary-400: #ecf26d;
- --color-primary-500: #e0ed34;
- --color-primary-600: #c2d62b;
- --color-primary-700: #97b31d;
- --color-primary-800: #708f13;
- --color-primary-900: #4d6b0b;
- --color-primary: #e0ed34;
-
- /* Grey + Misc */
- --color-grey: #0d1117;
- --color-githubblack: #020409;
- --color-blue1: #3498db;
- --color-blue2: #130f40;
- --color-orange: #f39c12;
-
- /* Mineshaft */
- --color-mineshaft-50: #f5f5f5;
- --color-mineshaft-100: #ebebeb;
- --color-mineshaft-200: #ccccce;
- --color-mineshaft-300: #adaeb0;
- --color-mineshaft-400: #707174;
- --color-mineshaft-500: #323439;
- --color-mineshaft-600: #2d2f33;
- --color-mineshaft-700: #26272b;
- --color-mineshaft-800: #1e1f22;
- --color-mineshaft-900: #19191c;
- --color-mineshaft: #323439;
-
- /* Chicago */
- --color-chicago-50: #f7f7f7;
- --color-chicago-100: #efefef;
- --color-chicago-200: #d6d6d7;
- --color-chicago-300: #bdbebf;
- --color-chicago-400: #8c8d8e;
- --color-chicago-500: #5b5c5e;
- --color-chicago-600: #525355;
- --color-chicago-700: #444547;
- --color-chicago-800: #373738;
- --color-chicago-900: #2d2d2e;
- --color-chicago: #5b5c5e;
-
- /* Bunker */
- --color-bunker-50: #f3f4f4;
- --color-bunker-100: #e8e8e9;
- --color-bunker-200: #c5c6c8;
- --color-bunker-300: #a2a4a6;
- --color-bunker-400: #5d5f64;
- --color-bunker-500: #171b21;
- --color-bunker-600: #15181e;
- --color-bunker-700: #111419;
- --color-bunker-800: #0e1014;
- --color-bunker-900: #0b0d10;
- --color-bunker: #171b21;
-
- /* Yellow */
- --color-yellow-50: #fefcf3;
- --color-yellow-100: #fef9e7;
- --color-yellow-200: #fcf0c3;
- --color-yellow-300: #f9e79f;
- --color-yellow-400: #f5d657;
- --color-yellow-500: #f1c40f;
- --color-yellow-600: #d9b00e;
- --color-yellow-700: #b5930b;
- --color-yellow-800: #917609;
- --color-yellow-900: #766007;
- --color-yellow: #f1c40f;
-
- /* Red */
- --color-red-50: #fef6f5;
- --color-red-100: #fdedec;
- --color-red-200: #f9d2ce;
- --color-red-300: #f5b7b1;
- --color-red-400: #ee8277;
- --color-red-500: #e74c3c;
- --color-red-600: #d04436;
- --color-red-700: #ad392d;
- --color-red-800: #8b2e24;
- --color-red-900: #71251d;
- --color-red: #e74c3c;
-
- /* Green */
- --color-green-50: #f5fcf8;
- --color-green-100: #eafaf1;
- --color-green-200: #cbf2dc;
- --color-green-300: #abebc6;
- --color-green-400: #6ddb9c;
- --color-green-500: #2ecc71;
- --color-green-600: #29b866;
- --color-green-700: #239955;
- --color-green-800: #1c7a44;
- --color-green-900: #176437;
- --color-green: #2ecc71;
-
- /* Blue */
- --color-blue-50: #f2f8ff;
- --color-blue-100: #e6f1ff;
- --color-blue-200: #bfdbff;
- --color-blue-300: #99c5ff;
- --color-blue-400: #4d9aff;
- --color-blue-500: #006eff;
- --color-blue-600: #0063e6;
- --color-blue-700: #0053bf;
- --color-blue-800: #004299;
- --color-blue-900: #00367d;
+ --color-folder: oklch(63.56204% 0.0983323 87.63144);
+ --color-secret: oklch(59.50979% 0.0028503 228.8129);
+ --color-dynamic-secret: oklch(58.90721% 0.1077898 69.14635);
+ --color-import: oklch(55.93131% 0.0665942 223.3242);
+ --color-secret-rotation: oklch(48.64461% 0.0587664 260.2333);
+ --color-override: oklch(46.97085% 0.0894498 308.4585);
+ --color-proxied-service: oklch(51.4929% 0.1474105 306.2291);
+}
+
+/* Distinct neutral tones preserve surface depth and control contrast during migration. */
+@theme {
+ --color-border-bright: oklch(75.06158% 0.0030629 264.5385);
+ --color-border-control: oklch(30.47636% 0.0077146 264.4536);
+ --color-border-cool: oklch(37.3% 0.034 259.733);
+ --color-border-cool-emphasis: oklch(70.7% 0.022 261.325);
+ --color-border-cool-strong: oklch(44.6% 0.03 256.802);
+ --color-border-cool-subtle: oklch(27.8% 0.033 256.848);
+ --color-border-emphasis: oklch(54.87373% 0.0047733 271.3273);
+ --color-border-faint: oklch(23.94746% 0.0058985 271.1652);
+ --color-border-secondary: oklch(39.01861% 0.0036123 264.5209);
+ --color-border-secondary-bright: oklch(71.76803% 0.0036931 247.8755);
+ --color-border-secondary-strong: oklch(48.54248% 0.0083474 268.4732);
+ --color-border-strong: oklch(32.50117% 0.0092536 268.3806);
+ --color-border-subtle: oklch(27.33264% 0.0074958 274.6834);
+ --color-foreground-bright: oklch(97.01508% 0 0);
+ --color-foreground-cool: oklch(92.8% 0.006 264.531);
+ --color-foreground-default: oklch(93.12829% 0.0013386 286.3736);
+ --color-foreground-emphasis: oklch(96.63914% 0.0010679 197.1403);
+ --color-foreground-inverse: oklch(100% 0 0);
+ --color-foreground-secondary: oklch(84.58055% 0.0027437 286.3408);
+ --color-foreground-soft: oklch(82.63578% 0.0029897 264.54);
+ --color-label-cool: oklch(87.2% 0.01 258.338);
+ --color-label-secondary: oklch(71.76803% 0.0036931 247.8755);
+ --color-muted-cool: oklch(70.7% 0.022 261.325);
+ --color-muted-cool-secondary: oklch(55.1% 0.027 264.364);
+ --color-muted-secondary: oklch(48.54248% 0.0083474 268.4732);
+ --color-page-deep: oklch(15.82069% 0.0071892 258.3723);
+ --color-scrollbar-thumb: oklch(59.98708% 0 0);
+ --color-scrollbar-track-thumb: oklch(34.60868% 0.0068882 286.0343);
+ --color-progress: oklch(93.10111% 0.1554478 111.4309);
+ --color-surface-active: oklch(30.47636% 0.0077146 264.4536);
+ --color-surface-base: oklch(21.47091% 0.0058295 285.8986);
+ --color-surface-cool-active: oklch(44.6% 0.03 256.802);
+ --color-surface-cool-selected: oklch(37.3% 0.034 259.733);
+ --color-surface-hover: oklch(27.33264% 0.0074958 274.6834);
+ --color-surface-inset: oklch(20.85966% 0.0127981 264.2461);
+ --color-surface-raised: oklch(23.94746% 0.0058985 271.1652);
+ --color-surface-recessed: oklch(22.06761% 0.0132454 258.37);
+ --color-surface-selected: oklch(32.50117% 0.0092536 268.3806);
+ --color-surface-sunken: oklch(19.03353% 0.0112223 260.6519);
+}
+
+/* Semantic typography tokens */
+@theme {
+ --font-alliance:
+ "Alliance No. 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
+ sans-serif;
+ --font-inter: "Inter", sans-serif;
+ --font-jetbrains-mono: "JetBrains Mono", monospace;
+ --font-weight-regular: 400;
+ --font-weight-medium: 500;
+ --font-weight-semibold: 600;
+ --font-weight-bold: 700;
+ --text-2xs: 0.7rem;
+ --text-2xs--line-height: 1rem;
+ --text-xs: 0.75rem;
+ --text-sm: 0.875rem;
+ --text-base: 1rem;
+ --text-body-sm: 0.875rem;
+ --text-body-sm--line-height: 1.25rem;
+ --text-body-md: 1rem;
+ --text-body-md--line-height: 1.5rem;
+ --text-body-lg: 1.125rem;
+ --text-body-lg--line-height: 1.75rem;
+ --text-label: 0.75rem;
+ --text-label--line-height: 1rem;
+ --text-heading-sm: 1.125rem;
+ --text-heading-sm--line-height: 1.5rem;
+ --text-heading-md: 1.25rem;
+ --text-heading-md--line-height: 1.75rem;
+ --text-heading-lg: 1.5rem;
+ --text-heading-lg--line-height: 2rem;
+ --text-display: 2.25rem;
+ --text-display--line-height: 2.5rem;
+}
+
+/* Semantic radius tokens */
+@theme {
+ --radius-control: var(--radius-md);
+ --radius-card: var(--radius-lg);
+ --radius-popover: var(--radius-md);
+ --radius-dialog: var(--radius-lg);
+}
+
+/* Layout tokens */
+@theme {
+ --breakpoint-dashboard: 1400px;
+ --max-width-8xl: 88rem;
+}
+
+/* Dark/light theme overrides */
+html[data-theme="light"] {
+ color-scheme: light;
+ --color-page: var(--color-background);
+ --color-border-bright: var(--color-border);
+ --color-border-control: var(--color-border);
+ --color-border-cool: var(--color-border);
+ --color-border-cool-emphasis: var(--color-border);
+ --color-border-cool-strong: var(--color-border);
+ --color-border-cool-subtle: var(--color-border);
+ --color-border-emphasis: var(--color-border);
+ --color-border-faint: var(--color-border);
+ --color-border-secondary: var(--color-border);
+ --color-border-secondary-bright: var(--color-border);
+ --color-border-secondary-strong: var(--color-border);
+ --color-border-strong: var(--color-border);
+ --color-border-subtle: var(--color-border);
+ --color-foreground-bright: var(--color-foreground);
+ --color-foreground-cool: var(--color-foreground);
+ --color-foreground-default: var(--color-foreground);
+ --color-foreground-emphasis: var(--color-foreground);
+ --color-foreground-inverse: var(--color-foreground);
+ --color-foreground-secondary: var(--color-foreground);
+ --color-foreground-soft: var(--color-foreground);
+ --color-label-cool: var(--color-label);
+ --color-label-secondary: var(--color-label);
+ --color-muted-cool: var(--color-muted);
+ --color-muted-cool-secondary: var(--color-muted);
+ --color-muted-secondary: var(--color-muted);
+ --color-page-deep: var(--color-background);
+ --color-scrollbar-thumb: var(--color-muted);
+ --color-scrollbar-track-thumb: var(--color-border);
+ --color-progress: var(--color-project);
+ --color-surface-active: color-mix(in oklab, var(--color-foreground) 10%, transparent);
+ --color-surface-base: var(--color-card);
+ --color-surface-cool-active: var(--color-container-hover);
+ --color-surface-cool-selected: var(--color-border);
+ --color-surface-hover: var(--color-container-hover);
+ --color-surface-inset: var(--color-card);
+ --color-surface-raised: var(--color-container);
+ --color-surface-recessed: var(--color-container);
+ --color-surface-selected: color-mix(in oklab, var(--color-foreground) 10%, transparent);
+ --color-surface-sunken: var(--color-popover);
+
+ /* Semantic surfaces and text */
+ --color-background: oklch(0.9702 0.0000 0);
+ --color-foreground: oklch(0.2147 0.0058 285.9);
+ --color-success: oklch(0.5273 0.1371 150.1);
+ --color-info: oklch(0.5198 0.0936 223.1);
+ --color-warning: oklch(0.5538 0.1207 66.4);
+ --color-danger: oklch(0.5054 0.1905 27.5);
+ --color-neutral: oklch(0.4420 0.0035 264.5);
+ --color-border: oklch(0.8764 0.0014 286.4);
+ --color-label: oklch(0.4420 0.0035 264.5);
+ --color-muted: oklch(0.5487 0.0048 271.3);
+ --color-popover: oklch(1.0000 0.0000 0);
+ --color-ring: oklch(0.5487 0.0048 271.3);
+ --color-card: oklch(1.0000 0.0000 0);
+ --color-accent: oklch(0.4746 0.0034 264.5);
+ --color-container: oklch(0.9761 0.0000 0);
+ --color-container-hover: oklch(0.9521 0.0000 0);
+
+ /* Scope and product accents tuned for light surfaces */
+ --color-org: oklch(0.5364 0.2136 259.5);
+ --color-sub-org: oklch(0.6036 0.1440 152.6);
+ --color-project: oklch(0.6046 0.1440 123.9);
+ --color-product-sm: oklch(0.6046 0.1440 123.9);
+ --color-product-pki: oklch(0.5806 0.1400 54.0);
+ --color-product-kms: oklch(0.5279 0.0970 172.3);
+ --color-product-ss: oklch(0.4908 0.1979 307.4);
+ --color-product-pam: oklch(0.5432 0.2015 13.8);
+ --color-admin: oklch(0.4420 0.0035 264.5);
+
+ /* Sidebar */
+ --color-sidebar: oklch(0.9702 0.0000 0);
+ --color-sidebar-foreground: oklch(0.2147 0.0058 285.9);
+ --color-sidebar-border: oklch(0.8764 0.0014 286.4);
+ --color-sidebar-accent: oklch(0.9521 0.0000 0);
+ --color-sidebar-accent-foreground: oklch(0.2147 0.0058 285.9);
+ --color-sidebar-ring: oklch(0.5487 0.0048 271.3);
+
+ /* Resource accents */
+ --color-folder: oklch(0.5226 0.0930 88.0);
+ --color-secret: oklch(0.4420 0.0035 264.5);
+ --color-dynamic-secret: oklch(0.4969 0.0992 67.8);
+ --color-import: oklch(0.4817 0.0660 224.6);
+ --color-secret-rotation: oklch(0.4299 0.0621 260.7);
+ --color-override: oklch(0.4138 0.0991 310.2);
+ --color-proxied-service: oklch(0.4447 0.1461 309.7);
+}
+
+.product-color {
+ --product-color-resolved: var(--product-color);
+}
+
+html[data-theme="light"] .product-color {
+ --product-color-resolved: color-mix(in oklab, var(--product-color) 55%, var(--color-foreground));
+}
+
+html[data-theme-switching],
+html[data-theme-switching] *,
+html[data-theme-switching] *::before,
+html[data-theme-switching] *::after,
+html[data-theme-switching] *::backdrop {
+ transition: none !important;
+}
+
+::view-transition-group(root),
+::view-transition-old(root),
+::view-transition-new(root) {
+ animation: none !important;
}
+/* Platform overrides */
/* iOS Safari zooms the viewport when focusing an input whose font-size is below 16px.
Bumping the type scale on detected iOS devices keeps form controls at/above that
threshold to prevent the zoom while preserving their relationship to surrounding text. */
@@ -272,6 +377,7 @@ html[data-platform="ios"] {
--text-base: 1.125rem;
}
+/* Custom utilities */
@utility min-table-row {
width: 1%;
white-space: nowrap;
@@ -291,9 +397,9 @@ html[data-platform="ios"] {
@utility secret-table {
width: 100%;
- background: var(--color-mineshaft-800);
+ background: var(--color-surface-raised);
text-align: left;
- color: var(--color-bunker-300);
+ color: var(--color-label-secondary);
/* padding except for comment column */
& th {
@@ -306,17 +412,17 @@ html[data-platform="ios"] {
& th:not(:last-child) {
@apply border-r;
- border-color: var(--color-mineshaft-600);
+ border-color: var(--color-border-control);
}
& td:not(:last-child) {
@apply border-r;
- border-color: var(--color-mineshaft-600);
+ border-color: var(--color-border-control);
}
& tr {
@apply border-b;
- border-color: var(--color-mineshaft-600);
+ border-color: var(--color-border-control);
}
}
@@ -328,7 +434,7 @@ html[data-platform="ios"] {
z-index: -1;
display: block;
position: absolute;
- background: var(--color-mineshaft-800);
+ background: var(--color-surface-raised);
}
&::before {
@@ -338,15 +444,15 @@ html[data-platform="ios"] {
z-index: -1;
display: block;
position: absolute;
- background: var(--color-mineshaft-800);
+ background: var(--color-surface-raised);
}
&:hover::before {
- background: var(--color-mineshaft-600);
+ background: var(--color-surface-active);
}
&:hover::after {
- background: var(--color-mineshaft-600);
+ background: var(--color-surface-active);
}
&::after {
@@ -369,12 +475,13 @@ html[data-platform="ios"] {
}
&::-webkit-scrollbar-thumb {
- background-color: gray;
+ background-color: var(--color-scrollbar-thumb);
}
scrollbar-width: thin;
- scrollbar-color: #39393d transparent;
+ scrollbar-color: var(--color-scrollbar-track-thumb) transparent;
}
+/* Animation/keyframes */
@layer utilities {
.no-scrollbar::-webkit-scrollbar {
display: none;
@@ -560,23 +667,24 @@ html[data-platform="ios"] {
.tags-conic-bg {
background: conic-gradient(
- rgb(235, 87, 87),
- rgb(242, 201, 76),
- rgb(76, 183, 130),
- rgb(78, 167, 252),
- rgb(250, 96, 122)
+ oklch(65.3372% 0.1834811 23.67941),
+ oklch(84.95838% 0.1463045 90.49279),
+ oklch(70.28807% 0.126702 158.8943),
+ oklch(71.21404% 0.1510241 249.8833),
+ oklch(69.38235% 0.188136 13.3297)
);
}
+/* Compatibility styles */
#nprogress .bar {
- background: var(--color-primary-400);
+ background: var(--color-progress);
}
[contentEditable="true"]:before {
content: attr(placeholder);
position: absolute;
top: 0.5rem;
- @apply text-sm text-gray-500 opacity-50;
+ @apply text-sm text-muted-cool-secondary opacity-50;
}
/* Hide the default number input spin buttons */
diff --git a/frontend/src/layouts/AdminLayout/AdminLayout.tsx b/frontend/src/layouts/AdminLayout/AdminLayout.tsx
index 037f7eb362..0f68b05556 100644
--- a/frontend/src/layouts/AdminLayout/AdminLayout.tsx
+++ b/frontend/src/layouts/AdminLayout/AdminLayout.tsx
@@ -24,7 +24,7 @@ export const AdminLayout = () => {
<>
<Banner />
<SidebarProvider
- className={`dark ${containerHeight} flex !min-h-0 w-full flex-col overflow-hidden bg-page transition-all`}
+ className={`dark ${containerHeight} flex !min-h-0 w-full flex-col overflow-hidden bg-page`}
>
<Navbar />
<div className="flex min-h-0 flex-1 overflow-hidden">
diff --git a/frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx b/frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx
index 0f37dfbccb..c095d33992 100644
--- a/frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx
@@ -25,8 +25,8 @@ export const MenuIconButton = <T extends ElementType = "button">({
type="button"
role="menuitem"
className={twMerge(
- "group relative my-1 flex w-full cursor-pointer flex-col items-center justify-center rounded-sm p-2 font-inter text-sm text-bunker-100 transition-all duration-150 hover:bg-mineshaft-700",
- isSelected && "rounded-none bg-bunker-800 hover:bg-mineshaft-600",
+ "group relative my-1 flex w-full cursor-pointer flex-col items-center justify-center rounded-sm p-2 font-inter text-sm text-foreground-default transition-all duration-150 hover:bg-surface-hover",
+ isSelected && "rounded-none bg-page hover:bg-surface-active",
isDisabled && "cursor-not-allowed hover:bg-transparent",
className
)}
@@ -38,7 +38,7 @@ export const MenuIconButton = <T extends ElementType = "button">({
<div
className={`${
isSelected ? "opacity-100" : "opacity-0"
- } absolute left-0 h-full w-1 bg-primary transition-all duration-150`}
+ } absolute left-0 h-full w-1 bg-project transition-all duration-150`}
/>
{icon && (
<div className="my-auto mb-2 h-6 w-6">
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
index 9e44676c97..9123e9208e 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
@@ -14,9 +14,12 @@ import {
Info,
LogOut,
Mail,
+ Monitor,
+ Moon,
Plus,
Settings,
Slack,
+ Sun,
TriangleAlertIcon,
User,
UserPlus,
@@ -51,6 +54,9 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
IconButton,
@@ -62,6 +68,7 @@ import {
TooltipTrigger
} from "@app/components/v3";
import { SidebarTrigger } from "@app/components/v3/generic/Sidebar";
+import { type Theme, useTheme } from "@app/components/v3/platform/ThemeProvider";
import { envConfig } from "@app/config/env";
import {
OrgPermissionMemberActions,
@@ -148,6 +155,7 @@ export const INFISICAL_SUPPORT_OPTIONS = [
export const Navbar = () => {
const { user } = useUser();
+ const { theme, setTheme } = useTheme();
const { subscription } = useSubscription();
const { currentOrg, isSubOrganization } = useOrganization();
const { config: serverConfig } = useServerConfig();
@@ -354,7 +362,7 @@ export const Navbar = () => {
return (
<div
className={twMerge(
- "z-10 flex min-h-12 items-center border-b border-border bg-gradient-to-br to-transparent",
+ "z-10 flex min-h-12 items-center border-b border-border bg-gradient-to-br to-transparent in-data-[theme=light]:bg-none",
isServerAdminPanel && "from-admin/5",
!isServerAdminPanel && isPamScope && "from-product-pam/5",
!isServerAdminPanel && isAgentVaultScope && "from-product-av/5",
@@ -382,7 +390,7 @@ export const Navbar = () => {
</Tooltip>
<Link
to="/admin"
- className="group flex cursor-pointer items-center gap-2 pl-4 text-sm text-white transition-all duration-100"
+ className="group flex cursor-pointer items-center gap-2 pl-4 text-sm text-foreground-inverse transition-all duration-100"
>
<InstanceIcon className="size-3.5 text-admin" />
<div className="whitespace-nowrap">Server Console</div>
@@ -397,7 +405,7 @@ export const Navbar = () => {
)}
>
<NavbarSwitcher open={isOrgSelectOpen} onOpenChange={setIsOrgSelectOpen}>
- <div className="group mr-1 flex min-w-0 cursor-pointer items-center gap-2 overflow-hidden text-sm text-white transition-all duration-100">
+ <div className="group mr-1 flex min-w-0 cursor-pointer items-center gap-2 overflow-hidden text-sm text-foreground transition-all duration-100">
<button
className="flex cursor-pointer items-center gap-x-2 truncate whitespace-nowrap"
type="button"
@@ -648,7 +656,7 @@ export const Navbar = () => {
<CircleHelp />
</IconButton>
</DropdownMenuTrigger>
- <DropdownMenuContent align="end" side="bottom" sideOffset={8}>
+ <DropdownMenuContent align="end" side="bottom">
{INFISICAL_SUPPORT_OPTIONS.map(([Icon, text, getUrl]) => {
const url =
text === "Email Support"
@@ -709,7 +717,11 @@ export const Navbar = () => {
<User />
</IconButton>
</DropdownMenuTrigger>
- <DropdownMenuContent side="bottom" align="end" sideOffset={8}>
+ <DropdownMenuContent
+ side="bottom"
+ align="end"
+ className="[&_[data-slot=dropdown-menu-item]]:h-9 [&_[data-slot=dropdown-menu-radio-item]]:h-9"
+ >
<div className="cursor-default px-3 py-2">
<div className="text-sm font-medium capitalize">
{user?.firstName} {user?.lastName}
@@ -746,6 +758,25 @@ export const Navbar = () => {
}
</OrgPermissionCan>
<DropdownMenuSeparator />
+ <DropdownMenuLabel>Theme</DropdownMenuLabel>
+ <DropdownMenuRadioGroup
+ value={theme}
+ onValueChange={(value) => setTheme(value as Theme, "profile-menu")}
+ >
+ <DropdownMenuRadioItem value="system" className="gap-2">
+ <Monitor className="size-4" />
+ System
+ </DropdownMenuRadioItem>
+ <DropdownMenuRadioItem value="dark" className="gap-2">
+ <Moon className="size-4" />
+ Dark
+ </DropdownMenuRadioItem>
+ <DropdownMenuRadioItem value="light" className="gap-2">
+ <Sun className="size-4" />
+ Light
+ </DropdownMenuRadioItem>
+ </DropdownMenuRadioGroup>
+ <DropdownMenuSeparator />
<DropdownMenuItem asChild>
<a
href="https://infisical.com/docs/documentation/getting-started/introduction"
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
index e48abbee7a..5619771661 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/NotificationDropdown.tsx
@@ -75,7 +75,7 @@ export const NotificationDropdown = () => {
<DropdownMenuContent
align="end"
side="bottom"
- className="mt-3 flex h-[550px] w-[400px] overflow-hidden p-0"
+ className="flex h-[550px] w-[400px] overflow-hidden p-0"
>
<div className="flex w-full flex-col">
<div className="flex items-center justify-between border-b border-border px-3 py-2">
diff --git a/frontend/src/layouts/OrganizationLayout/components/SidebarHeader/SidebarHeader.tsx b/frontend/src/layouts/OrganizationLayout/components/SidebarHeader/SidebarHeader.tsx
index ab924c5955..66b8eac73a 100644
--- a/frontend/src/layouts/OrganizationLayout/components/SidebarHeader/SidebarHeader.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/SidebarHeader/SidebarHeader.tsx
@@ -6,17 +6,15 @@ export const SidebarHeader = () => {
const { subscription } = useSubscription();
return (
- <div className="flex w-full items-center justify-center rounded-md border border-mineshaft-600 p-1 transition-all duration-150 hover:bg-mineshaft-700">
- <div className="mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-primary">
+ <div className="flex w-full items-center justify-center rounded-md border border-border-control p-1 transition-all duration-150 hover:bg-surface-hover">
+ <div className="mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-project">
{currentOrg?.name.charAt(0)}
</div>
- <div className="flex grow flex-col text-white">
+ <div className="flex grow flex-col text-foreground-inverse">
<div className="max-w-36 truncate text-sm font-medium text-ellipsis capitalize">
{currentOrg?.name}
</div>
- <div className="text-xs text-mineshaft-400">
- {getSubscriptionPlanLabel(subscription, " Plan")}
- </div>
+ <div className="text-xs text-muted">{getSubscriptionPlanLabel(subscription, " Plan")}</div>
</div>
</div>
);
diff --git a/frontend/src/layouts/PersonalSettingsLayout/PersonalSettingsLayout.tsx b/frontend/src/layouts/PersonalSettingsLayout/PersonalSettingsLayout.tsx
index df76bd65e2..0e4a2922b5 100644
--- a/frontend/src/layouts/PersonalSettingsLayout/PersonalSettingsLayout.tsx
+++ b/frontend/src/layouts/PersonalSettingsLayout/PersonalSettingsLayout.tsx
@@ -4,7 +4,7 @@ import { InsecureConnectionBanner } from "../OrganizationLayout/components/Insec
export const PersonalSettingsLayout = () => {
return (
- <div className="dark flex h-screen w-full flex-col overflow-hidden bg-bunker-800">
+ <div className="dark flex h-screen w-full flex-col overflow-hidden bg-page">
{!window.isSecureContext && <InsecureConnectionBanner />}
<main className="min-h-0 min-w-0 flex-1 overflow-y-auto">
<Outlet />
diff --git a/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx b/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
index 015b9987de..9a7aed536a 100644
--- a/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
@@ -17,8 +17,8 @@ export const CertManagerInstanceBanner = () => {
const isViewingActive = activeProject?.id === projectId;
return (
- <div className="flex w-full items-start gap-x-2 border-b border-yellow/50 bg-yellow/30 px-4 py-2 text-sm text-yellow-200">
- <FontAwesomeIcon icon={faWarning} className="mt-0.5 shrink-0 text-base text-yellow" />
+ <div className="flex w-full items-start gap-x-2 border-b border-warning/50 bg-warning/30 px-4 py-2 text-sm text-warning">
+ <FontAwesomeIcon icon={faWarning} className="mt-0.5 shrink-0 text-base text-warning" />
{isViewingActive ? (
<p>
This is your organization&apos;s active project. Use this for all work going forward.{" "}
@@ -26,7 +26,7 @@ export const CertManagerInstanceBanner = () => {
to="/organizations/$orgId/settings"
params={{ orgId: currentOrg.id }}
search={{ selectedTab: "product-settings" }}
- className="underline underline-offset-2 hover:text-yellow"
+ className="underline underline-offset-2 hover:text-warning"
>
Manage projects
</Link>
@@ -38,7 +38,7 @@ export const CertManagerInstanceBanner = () => {
<Link
to="/organizations/$orgId/projects/cert-manager/$projectId/overview"
params={{ orgId: currentOrg.id, projectId: activeProject.id }}
- className="underline underline-offset-2 hover:text-yellow"
+ className="underline underline-offset-2 hover:text-warning"
>
Switch to your active project →
</Link>
@@ -47,7 +47,7 @@ export const CertManagerInstanceBanner = () => {
href="https://infisical.com/docs/documentation/platform/pki/migration"
target="_blank"
rel="noopener noreferrer"
- className="underline underline-offset-2 hover:text-yellow"
+ className="underline underline-offset-2 hover:text-warning"
>
Migration guide
</a>
diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ApplicationSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ApplicationSelect.tsx
index 1e597c2ee9..90b3b16ddf 100644
--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ApplicationSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ApplicationSelect.tsx
@@ -82,7 +82,7 @@ const ApplicationSelectInner = ({
to={
`/organizations/${orgId}/projects/cert-manager/${projectId}/applications/${applicationName}` as never
}
- className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-white"
+ className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-foreground-inverse"
>
<ResourceIcon className="size-[14px] shrink-0 text-project" />
<span className="truncate">{displayName}</span>
diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
index 7287e56dcb..190f501d6b 100644
--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
@@ -149,7 +149,7 @@ const ProjectSelectInner = () => {
projectId: currentWorkspace.id,
orgId: currentWorkspace.orgId
}}
- className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-white"
+ className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-foreground-inverse"
>
<ProjectIcon className="size-[14px] shrink-0 text-project" />
<span className="truncate">{currentWorkspace?.name}</span>
@@ -218,9 +218,7 @@ const ProjectSelectInner = () => {
>
<Star
className={
- workspace.isFavorite
- ? "fill-yellow-600 text-yellow-600"
- : "text-yellow-600"
+ workspace.isFavorite ? "fill-warning text-warning" : "text-warning"
}
/>
</IconButton>
diff --git a/frontend/src/layouts/ProjectLayout/components/TypeSelect/TypeSelect.tsx b/frontend/src/layouts/ProjectLayout/components/TypeSelect/TypeSelect.tsx
index 2c363c1521..49ffdaa868 100644
--- a/frontend/src/layouts/ProjectLayout/components/TypeSelect/TypeSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/TypeSelect/TypeSelect.tsx
@@ -130,7 +130,7 @@ const TypeSelectInner = ({
});
}
}}
- className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-white"
+ className="group flex cursor-pointer items-center gap-x-2 overflow-hidden text-sm text-foreground-inverse"
>
<ProductIcon className="h-[14px] w-[14px] shrink-0" />
<span className="truncate">{pillLabel}</span>
diff --git a/frontend/src/legacy.css b/frontend/src/legacy.css
new file mode 100644
index 0000000000..c832e0f463
--- /dev/null
+++ b/frontend/src/legacy.css
@@ -0,0 +1,160 @@
+/*
+ * Legacy compatibility palette.
+ *
+ * These tokens keep v2 and older product surfaces working while their
+ * consumers migrate to semantic v3 roles. Do not rename or remove them until
+ * all generated utility consumers have moved.
+ */
+@theme {
+ /* Legacy scope aliases */
+ --color-org-v1: #30b3ff;
+ --color-namespace-v1: #96ff59;
+
+ /* Legacy primary palette */
+ --color-primary-50: #fffff5;
+ --color-primary-100: #fcfce8;
+ --color-primary-200: #f8faca;
+ --color-primary-300: #f4f7ab;
+ --color-primary-400: #ecf26d;
+ --color-primary-500: #e0ed34;
+ --color-primary-600: #c2d62b;
+ --color-primary-700: #97b31d;
+ --color-primary-800: #708f13;
+ --color-primary-900: #4d6b0b;
+ --color-primary: #e0ed34;
+
+ /* Legacy neutral and miscellaneous aliases */
+ --color-grey: #0d1117;
+ --color-githubblack: #020409;
+ --color-blue1: #3498db;
+ --color-blue2: #130f40;
+ --color-orange: #f39c12;
+
+ /* Mineshaft */
+ --color-mineshaft-50: #f5f5f5;
+ --color-mineshaft-100: #ebebeb;
+ --color-mineshaft-200: #ccccce;
+ --color-mineshaft-300: #adaeb0;
+ --color-mineshaft-400: #707174;
+ --color-mineshaft-500: #323439;
+ --color-mineshaft-600: #2d2f33;
+ --color-mineshaft-700: #26272b;
+ --color-mineshaft-800: #1e1f22;
+ --color-mineshaft-900: #19191c;
+ --color-mineshaft: #323439;
+
+ /* Chicago */
+ --color-chicago-50: #f7f7f7;
+ --color-chicago-100: #efefef;
+ --color-chicago-200: #d6d6d7;
+ --color-chicago-300: #bdbebf;
+ --color-chicago-400: #8c8d8e;
+ --color-chicago-500: #5b5c5e;
+ --color-chicago-600: #525355;
+ --color-chicago-700: #444547;
+ --color-chicago-800: #373738;
+ --color-chicago-900: #2d2d2e;
+ --color-chicago: #5b5c5e;
+
+ /* Bunker */
+ --color-bunker-50: #f3f4f4;
+ --color-bunker-100: #e8e8e9;
+ --color-bunker-200: #c5c6c8;
+ --color-bunker-300: #a2a4a6;
+ --color-bunker-400: #5d5f64;
+ --color-bunker-500: #171b21;
+ --color-bunker-600: #15181e;
+ --color-bunker-700: #111419;
+ --color-bunker-800: #0e1014;
+ --color-bunker-900: #0b0d10;
+ --color-bunker: #171b21;
+
+ /* Legacy status ramps */
+ --color-yellow-50: #fefcf3;
+ --color-yellow-100: #fef9e7;
+ --color-yellow-200: #fcf0c3;
+ --color-yellow-300: #f9e79f;
+ --color-yellow-400: #f5d657;
+ --color-yellow-500: #f1c40f;
+ --color-yellow-600: #d9b00e;
+ --color-yellow-700: #b5930b;
+ --color-yellow-800: #917609;
+ --color-yellow-900: #766007;
+ --color-yellow: #f1c40f;
+
+ --color-red-50: #fef6f5;
+ --color-red-100: #fdedec;
+ --color-red-200: #f9d2ce;
+ --color-red-300: #f5b7b1;
+ --color-red-400: #ee8277;
+ --color-red-500: #e74c3c;
+ --color-red-600: #d04436;
+ --color-red-700: #ad392d;
+ --color-red-800: #8b2e24;
+ --color-red-900: #71251d;
+ --color-red: #e74c3c;
+
+ --color-green-50: #f5fcf8;
+ --color-green-100: #eafaf1;
+ --color-green-200: #cbf2dc;
+ --color-green-300: #abebc6;
+ --color-green-400: #6ddb9c;
+ --color-green-500: #2ecc71;
+ --color-green-600: #29b866;
+ --color-green-700: #239955;
+ --color-green-800: #1c7a44;
+ --color-green-900: #176437;
+ --color-green: #2ecc71;
+
+ --color-blue-50: #f2f8ff;
+ --color-blue-100: #e6f1ff;
+ --color-blue-200: #bfdbff;
+ --color-blue-300: #99c5ff;
+ --color-blue-400: #4d9aff;
+ --color-blue-500: #006eff;
+ --color-blue-600: #0063e6;
+ --color-blue-700: #0053bf;
+ --color-blue-800: #004299;
+ --color-blue-900: #00367d;
+}
+
+/* Legacy ramps are inverted in light mode for existing v2 surfaces. */
+html[data-theme="light"] {
+ --color-primary: oklch(0.6046 0.1440 123.9);
+
+ --color-mineshaft-50: oklch(0.2147 0.0058 285.9);
+ --color-mineshaft-100: oklch(0.2975 0.0018 286.3);
+ --color-mineshaft-200: oklch(0.3902 0.0036 264.5);
+ --color-mineshaft-300: oklch(0.4420 0.0035 264.5);
+ --color-mineshaft-400: oklch(0.5487 0.0048 271.3);
+ --color-mineshaft-500: oklch(0.8010 0.0018 247.8);
+ --color-mineshaft-600: oklch(0.8764 0.0014 286.4);
+ --color-mineshaft-700: oklch(0.9521 0.0000 0);
+ --color-mineshaft-800: oklch(0.9761 0.0000 0);
+ --color-mineshaft-900: oklch(1.0000 0.0000 0);
+ --color-mineshaft: oklch(0.8764 0.0014 286.4);
+
+ --color-chicago-50: oklch(0.2147 0.0058 285.9);
+ --color-chicago-100: oklch(0.2975 0.0018 286.3);
+ --color-chicago-200: oklch(0.3902 0.0036 264.5);
+ --color-chicago-300: oklch(0.4420 0.0035 264.5);
+ --color-chicago-400: oklch(0.5487 0.0048 271.3);
+ --color-chicago-500: oklch(0.6429 0.0019 247.9);
+ --color-chicago-600: oklch(0.8010 0.0018 247.8);
+ --color-chicago-700: oklch(0.8764 0.0014 286.4);
+ --color-chicago-800: oklch(0.9521 0.0000 0);
+ --color-chicago-900: oklch(0.9761 0.0000 0);
+ --color-chicago: oklch(0.6429 0.0019 247.9);
+
+ --color-bunker-50: oklch(0.2147 0.0058 285.9);
+ --color-bunker-100: oklch(0.2975 0.0018 286.3);
+ --color-bunker-200: oklch(0.3902 0.0036 264.5);
+ --color-bunker-300: oklch(0.4420 0.0035 264.5);
+ --color-bunker-400: oklch(0.5487 0.0048 271.3);
+ --color-bunker-500: oklch(0.8010 0.0018 247.8);
+ --color-bunker-600: oklch(0.8764 0.0014 286.4);
+ --color-bunker-700: oklch(0.9521 0.0000 0);
+ --color-bunker-800: oklch(0.9761 0.0000 0);
+ --color-bunker-900: oklch(1.0000 0.0000 0);
+ --color-bunker: oklch(0.9761 0.0000 0);
+}
diff --git a/frontend/src/lib/analytics/events.ts b/frontend/src/lib/analytics/events.ts
index 4c1881894b..366ce84ceb 100644
--- a/frontend/src/lib/analytics/events.ts
+++ b/frontend/src/lib/analytics/events.ts
@@ -1,6 +1,7 @@
export const AnalyticsEvent = {
PaywallViewed: "Paywall Viewed",
- PaywallUpgradeClicked: "Paywall Upgrade Clicked"
+ PaywallUpgradeClicked: "Paywall Upgrade Clicked",
+ ThemePreferenceChanged: "Theme Preference Changed"
} as const;
type PaywallProperties = {
@@ -16,3 +17,9 @@ export type OrganizationAnalyticsEventMap = {
};
export type OrganizationAnalyticsEvent = keyof OrganizationAnalyticsEventMap;
+
+export type ThemePreferenceChangedProperties = {
+ source: "command-menu" | "profile-menu";
+ theme: "dark" | "light" | "system";
+ resolvedTheme: "dark" | "light";
+};
diff --git a/frontend/src/lib/analytics/index.ts b/frontend/src/lib/analytics/index.ts
index 53cba9f758..25526ca8d4 100644
--- a/frontend/src/lib/analytics/index.ts
+++ b/frontend/src/lib/analytics/index.ts
@@ -3,10 +3,15 @@ import Telemetry from "@app/components/utilities/telemetry/Telemetry";
import {
AnalyticsEvent,
OrganizationAnalyticsEvent,
- OrganizationAnalyticsEventMap
+ OrganizationAnalyticsEventMap,
+ ThemePreferenceChangedProperties
} from "./events";
export const analytics = {
+ captureThemePreferenceChanged(properties: ThemePreferenceChangedProperties) {
+ const telemetry = new Telemetry().getInstance();
+ telemetry.capture(AnalyticsEvent.ThemePreferenceChanged, properties);
+ },
captureForOrganization<Event extends OrganizationAnalyticsEvent>(
event: Event,
orgId: string,
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index bc718bfaab..9e5eecc0e9 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -11,6 +11,7 @@ import NProgress from "nprogress";
// the chunks and breaks module init order, which took the app down on boot.
// Neither lint nor typecheck catches it, so only a real build does.
import { Lottie } from "./components/v2";
+import { initializeTheme } from "./components/v3/platform/ThemeProvider";
import { queryClient } from "./hooks/api/reactQuery";
import { initializePlatform } from "./lib/fn/platform";
import { ErrorPage } from "./pages/public/ErrorPage/ErrorPage";
@@ -34,6 +35,7 @@ import "./translation";
// for passing in lng and translations on init/
initializePlatform();
+initializeTheme();
// Configure Lottie player to use local WASM file
setWasmUrl(lottieWasmUrl);
@@ -73,7 +75,7 @@ const router = createRouter({
routeTree,
context: { serverConfig: null, queryClient },
defaultPendingComponent: () => (
- <div className="flex h-full w-full items-center justify-center bg-bunker-800 [#root>&]:h-screen">
+ <div className="flex h-full w-full items-center justify-center bg-page [#root>&]:h-screen">
<Lottie isAutoPlay icon="infisical_loading" className="h-32 w-32" />
</div>
),
diff --git a/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx b/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx
index 7c4dfc18b2..ab9588a5ff 100644
--- a/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx
+++ b/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx
@@ -185,7 +185,7 @@ const ServerAdminsPanelTable = ({
</Td>
<Td className="w-5/12 max-w-0">
<p className="truncate">
- {name ?? <span className="text-mineshaft-400">Not Set</span>}
+ {name ?? <span className="text-muted">Not Set</span>}
</p>
</Td>
<Td className="w-5/12 max-w-0">
@@ -417,10 +417,8 @@ export const ServerAdminsTable = () => {
onDeleteApproved={() => handleRemoveUsers()}
buttonText="Remove"
>
- <div className="mt-4 text-sm text-mineshaft-400">
- The following users will be deleted:
- </div>
- <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-mineshaft-600 bg-red/10 p-4 pl-8 text-sm text-red-200">
+ <div className="mt-4 text-sm text-muted">The following users will be deleted:</div>
+ <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-border-control bg-danger/10 p-4 pl-8 text-sm text-danger">
<ul className="list-disc">
{selectedUsers?.map((user) => {
const email = user.email ?? user.username;
diff --git a/frontend/src/pages/admin/ResourceOverviewPage/components/EmailDomainsTable.tsx b/frontend/src/pages/admin/ResourceOverviewPage/components/EmailDomainsTable.tsx
index 2c969b0639..8bff53ef92 100644
--- a/frontend/src/pages/admin/ResourceOverviewPage/components/EmailDomainsTable.tsx
+++ b/frontend/src/pages/admin/ResourceOverviewPage/components/EmailDomainsTable.tsx
@@ -231,8 +231,8 @@ export const EmailDomainsTable = () => {
<div className="mb-6 rounded-lg border border-border bg-card p-5 text-foreground">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">Email Domains</p>
- <p className="text-sm text-bunker-300">
+ <p className="text-xl font-medium text-foreground">Email Domains</p>
+ <p className="text-sm text-label-secondary">
Manage verified email domains across your instance.
</p>
</div>
diff --git a/frontend/src/pages/admin/ResourceOverviewPage/components/MachineIdentitiesTable.tsx b/frontend/src/pages/admin/ResourceOverviewPage/components/MachineIdentitiesTable.tsx
index 17ff5bbe5a..4b45794a3a 100644
--- a/frontend/src/pages/admin/ResourceOverviewPage/components/MachineIdentitiesTable.tsx
+++ b/frontend/src/pages/admin/ResourceOverviewPage/components/MachineIdentitiesTable.tsx
@@ -201,8 +201,10 @@ export const MachineIdentitiesTable = () => {
<div className="mb-6 rounded-lg border border-border bg-card p-5 text-foreground">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">Machine Identities</p>
- <p className="text-sm text-bunker-300">Manage machine identities across your instance.</p>
+ <p className="text-xl font-medium text-foreground">Machine Identities</p>
+ <p className="text-sm text-label-secondary">
+ Manage machine identities across your instance.
+ </p>
</div>
</div>
<IdentityPanelTable handlePopUpOpen={handlePopUpOpen} />
diff --git a/frontend/src/pages/admin/ResourceOverviewPage/components/OrganizationsTable.tsx b/frontend/src/pages/admin/ResourceOverviewPage/components/OrganizationsTable.tsx
index e897a76830..b9816e1243 100644
--- a/frontend/src/pages/admin/ResourceOverviewPage/components/OrganizationsTable.tsx
+++ b/frontend/src/pages/admin/ResourceOverviewPage/components/OrganizationsTable.tsx
@@ -521,7 +521,7 @@ const OrganizationsPanelTable = ({
{org.name ? (
<p className="truncate">{org.name}</p>
) : (
- <span className="text-mineshaft-400">Not Set</span>
+ <span className="text-muted">Not Set</span>
)}
</div>
</Td>
@@ -536,11 +536,7 @@ const OrganizationsPanelTable = ({
className="flex items-center hover:underline"
>
<Tooltip className="text-center" content="View Members">
- <FontAwesomeIcon
- icon={faEye}
- className="mr-1.5 text-mineshaft-300"
- size="sm"
- />
+ <FontAwesomeIcon icon={faEye} className="mr-1.5 text-label" size="sm" />
</Tooltip>
{org.members.length} {org.members.length === 1 ? "Member" : "Members"}
{!org.members.some(
@@ -550,7 +546,7 @@ const OrganizationsPanelTable = ({
) && (
<Tooltip content="No admins have accepted their invitations.">
<div className="ml-1.5">
- <FontAwesomeIcon className="text-yellow" icon={faWarning} />
+ <FontAwesomeIcon className="text-warning" icon={faWarning} />
</div>
</Tooltip>
)}
@@ -702,8 +698,8 @@ export const OrganizationsTable = () => {
<div className="mb-6 rounded-lg border border-border bg-card p-5 text-foreground">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">Organizations</p>
- <p className="text-sm text-bunker-300">
+ <p className="text-xl font-medium text-foreground">Organizations</p>
+ <p className="text-sm text-label-secondary">
Manage, join and view organizations across your instance.
</p>
</div>
diff --git a/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx b/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx
index 8307e4754c..d34028ff65 100644
--- a/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx
+++ b/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx
@@ -133,7 +133,7 @@ const UserPanelTable = ({
<V3Button
aria-label="Filter Users"
variant="outline"
- className={twMerge("px-3", isTableFiltered && "border-primary/50 text-primary")}
+ className={twMerge("px-3", isTableFiltered && "border-project/50 text-project")}
>
<FontAwesomeIcon icon={faFilter} />
</V3Button>
@@ -149,7 +149,7 @@ const UserPanelTable = ({
iconPos="right"
>
<div className="flex items-center gap-x-2">
- <FontAwesomeIcon icon={faUserShield} className="text-yellow-700" />
+ <FontAwesomeIcon icon={faUserShield} className="text-warning" />
<span>Server Admins</span>
</div>
</DropdownMenuItem>
@@ -213,7 +213,7 @@ const UserPanelTable = ({
<Td className="w-5/12 max-w-0">
<div className="flex items-center">
<p className="truncate">
- {name ?? <span className="text-mineshaft-400">Not Set</span>}
+ {name ?? <span className="text-muted">Not Set</span>}
</p>
{superAdmin && (
<Badge variant="info" className="ml-2">
@@ -443,8 +443,10 @@ export const UserIdentitiesTable = () => {
<div className="mb-6 rounded-lg border border-border bg-card p-5 text-foreground">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">User Identities</p>
- <p className="text-sm text-bunker-300">Manage user identities across your instance.</p>
+ <p className="text-xl font-medium text-foreground">User Identities</p>
+ <p className="text-sm text-label-secondary">
+ Manage user identities across your instance.
+ </p>
</div>
</div>
<UserPanelTable
@@ -513,10 +515,8 @@ export const UserIdentitiesTable = () => {
onDeleteApproved={() => handleRemoveUsers()}
buttonText="Delete"
>
- <div className="mt-4 text-sm text-mineshaft-400">
- The following users will be deleted:
- </div>
- <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-mineshaft-600 bg-red/10 p-4 pl-8 text-sm text-red-200">
+ <div className="mt-4 text-sm text-muted">The following users will be deleted:</div>
+ <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-border-control bg-danger/10 p-4 pl-8 text-sm text-danger">
<ul className="list-disc">
{selectedUsers?.map((user) => {
const email = user.email ?? user.username;
diff --git a/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx b/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
index e0cdfcd440..32e7b2e1a1 100644
--- a/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
+++ b/frontend/src/pages/admin/WelcomePage/WelcomePage.tsx
@@ -21,9 +21,9 @@ export const WelcomePage = ({ organizationId }: Props) => {
</Helmet>
<AuthPagePanel>
<CardHeader className="gap-0">
- <div className="relative mb-8 flex size-10 items-center justify-center bg-primary text-black">
+ <div className="relative mb-8 flex size-10 items-center justify-center bg-project text-black">
<KeyRound className="size-5" />
- <span aria-hidden="true" className="absolute -top-1.5 -right-1.5 size-2 bg-primary" />
+ <span aria-hidden="true" className="absolute -top-1.5 -right-1.5 size-2 bg-project" />
</div>
<CardTitle className="font-alliance text-3xl leading-tight font-normal">
Your instance is ready.
@@ -37,7 +37,7 @@ export const WelcomePage = ({ organizationId }: Props) => {
<div className="grid gap-3">
<button
type="button"
- className="group grid min-h-18 cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-center rounded-md border border-primary/30 bg-primary/25 p-4 text-left text-foreground transition-all select-none hover:border-primary/35 hover:bg-primary/30 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-0 active:scale-[0.99] disabled:pointer-events-none disabled:opacity-50"
+ className="group grid min-h-18 cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-center rounded-md border border-project/30 bg-project/25 p-4 text-left text-foreground transition-all select-none hover:border-project/35 hover:bg-project/30 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-0 active:scale-[0.99] disabled:pointer-events-none disabled:opacity-50"
onClick={() =>
navigate({
to: "/organizations/$orgId/projects",
diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsx
index 5323df3017..88c452ded5 100644
--- a/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsx
+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsx
@@ -25,10 +25,10 @@ export const ConfirmEmailStep = ({ onComplete }: Props) => {
} = useVerifyAccountRecoveryEmail();
return (
<div className="mx-auto flex w-full flex-col items-center justify-center">
- <h1 className="mb-2 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">
+ <h1 className="mb-2 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-center text-xl font-medium text-transparent">
Confirm your email
</h1>
- <p className="mb-8 w-max justify-center text-center text-sm text-gray-400">
+ <p className="mb-8 w-max justify-center text-center text-sm text-muted-cool">
Recover account for <span className="italic">{email}</span>.
</p>
<div className="w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">
diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx
index 0f9b5ae72a..cdaa5d9ade 100644
--- a/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx
+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx
@@ -90,10 +90,10 @@ export const EnterPasswordStep = ({ verificationToken, onComplete, onBack }: Pro
onSubmit={handleSubmit(handlePasswordReset)}
className="mx-auto flex w-full max-w-md flex-col items-center justify-center gap-y-4"
>
- <h1 className="bg-gradient-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">
+ <h1 className="bg-gradient-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-center text-xl font-medium text-transparent">
Enter new password
</h1>
- <p className="w-max justify-center text-center text-sm text-gray-400">
+ <p className="w-max justify-center text-center text-sm text-muted-cool">
Make sure you save it somewhere safe.
</p>
<div className="mt-8 w-full">
@@ -161,7 +161,7 @@ export const EnterPasswordStep = ({ verificationToken, onComplete, onBack }: Pro
Change Password
</Button>
<div>
- <Button type="button" variant="ghost" className="mt-6 text-mineshaft-300" onClick={onBack}>
+ <Button type="button" variant="ghost" className="mt-6 text-label" onClick={onBack}>
<ChevronLeft className="mr-2 h-4 w-4" />
<span className="text-sm">Back to recovery options</span>
</Button>
diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx
index c750a67361..3bfab915b8 100644
--- a/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx
+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx
@@ -37,13 +37,14 @@ export const SelectRecoveryMethodStep = ({ email, onSelect, hasEmailAuthEnabled
return (
<div className="mx-auto flex w-full max-w-2xl flex-col items-center justify-center">
- <h1 className="mb-2 bg-gradient-to-b from-white to-bunker-200 bg-clip-text text-center text-2xl font-medium text-transparent">
+ <h1 className="mb-2 bg-gradient-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-center text-2xl font-medium text-transparent">
Account Recovery
</h1>
- <p className="mb-4 text-center text-sm text-gray-300">
- Email verified successfully for <span className="font-medium text-white">{email}</span>
+ <p className="mb-4 text-center text-sm text-label-cool">
+ Email verified successfully for{" "}
+ <span className="font-medium text-foreground-inverse">{email}</span>
</p>
- <p className="mb-8 text-center text-sm text-gray-500">
+ <p className="mb-8 text-center text-sm text-muted-cool-secondary">
Select how you&apos;d like to recover access to your account
</p>
<div className="flex w-full flex-col gap-4">
@@ -54,7 +55,7 @@ export const SelectRecoveryMethodStep = ({ email, onSelect, hasEmailAuthEnabled
onClick={recoveryMethod.onSelect}
disabled={recoveryMethod.isDisabled}
className={twMerge(
- "group w-full rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4 text-left transition-colors hover:border-mineshaft-500 hover:bg-mineshaft-700",
+ "group w-full rounded-lg border border-border-control bg-surface-raised p-4 text-left transition-colors hover:border-border-strong hover:bg-surface-hover",
recoveryMethod.isDisabled && "cursor-not-allowed"
)}
>
@@ -64,17 +65,17 @@ export const SelectRecoveryMethodStep = ({ email, onSelect, hasEmailAuthEnabled
recoveryMethod.isDisabled && "opacity-50"
)}
>
- <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-mineshaft-700 group-hover:bg-mineshaft-600">
- <KeyRound className="text-lg text-mineshaft-300" />
+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-surface-hover group-hover:bg-surface-active">
+ <KeyRound className="text-lg text-label" />
</div>
<div className="flex-1">
<div className="flex items-center gap-2">
- <span className="font-medium text-gray-200">{recoveryMethod.label}</span>
+ <span className="font-medium text-foreground-cool">{recoveryMethod.label}</span>
</div>
- <p className="mt-1 text-sm text-gray-400">{recoveryMethod.description}</p>
- <p className="mt-2 text-xs text-gray-500">{recoveryMethod.info}</p>
+ <p className="mt-1 text-sm text-muted-cool">{recoveryMethod.description}</p>
+ <p className="mt-2 text-xs text-muted-cool-secondary">{recoveryMethod.info}</p>
</div>
- <ChevronRight className="mt-3 text-gray-500 transition-transform group-hover:translate-x-1" />
+ <ChevronRight className="mt-3 text-muted-cool-secondary transition-transform group-hover:translate-x-1" />
</div>
{recoveryMethod.isDisabled && recoveryMethod.disabledReason && (
<div className="mt-4 flex items-start gap-2 rounded-md bg-muted p-3">
@@ -85,13 +86,13 @@ export const SelectRecoveryMethodStep = ({ email, onSelect, hasEmailAuthEnabled
</button>
))}
</div>
- <div className="mt-6 w-full rounded-lg border border-mineshaft-600 bg-mineshaft-800/50 p-4">
- <p className="font-medium text-gray-300">Not sure which to choose?</p>
- <p className="mt-2 text-sm text-gray-500">
+ <div className="mt-6 w-full rounded-lg border border-border-control bg-surface-raised/50 p-4">
+ <p className="font-medium text-label-cool">Not sure which to choose?</p>
+ <p className="mt-2 text-sm text-muted-cool-secondary">
If your company changed email domains (e.g., from @oldcompany.com to @newcompany.com) and
you used Google sign-in, select{" "}
- <span className="font-medium text-gray-300">&quot;Domain or SSO change&quot;</span>. This
- will let you set up a password so you can sign in with your new email.
+ <span className="font-medium text-label-cool">&quot;Domain or SSO change&quot;</span>.
+ This will let you set up a password so you can sign in with your new email.
</p>
</div>
</div>
diff --git a/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx b/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
index 8d72aabfdf..c2b9918d94 100644
--- a/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
+++ b/frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx
@@ -42,22 +42,22 @@ export const CliRedirectPage = () => {
<title>Infisical CLI | Login Successful!</title>
<link rel="icon" href="/infisical.ico" />
</Helmet>
- <AuthPagePanel className="flex flex-col items-center space-y-4 text-gray-200">
+ <AuthPagePanel className="flex flex-col items-center space-y-4 text-foreground-cool">
{cliToken ? (
<>
<div className="pb-4">
- <p className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-3xl font-medium text-transparent">
+ <p className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-center text-3xl font-medium text-transparent">
Unable to reach CLI
</p>
- <p className="text-light mt-2 mb-1 text-center text-lg text-mineshaft-400">
+ <p className="text-light mt-2 mb-1 text-center text-lg text-muted">
Your login was successful but, Infisical couldn&apos;t automatically push your login
token to the CLI.
</p>
- <p className="text-light mb-1 text-center text-lg text-mineshaft-400">
+ <p className="text-light mb-1 text-center text-lg text-muted">
Please copy the token below and manually provide it to your CLI.
</p>
</div>
- <div className="dark relative flex max-h-36 max-w-xl flex-col items-center space-y-4 overflow-y-auto rounded-md border border-mineshaft-700 bg-mineshaft-900 p-3">
+ <div className="dark relative flex max-h-36 max-w-xl flex-col items-center space-y-4 overflow-y-auto rounded-md border border-border-subtle bg-surface-base p-3">
<SecretInput value={cliToken as string} />
<div className="mx-1 flex">
<IconButton
@@ -75,10 +75,10 @@ export const CliRedirectPage = () => {
</>
) : (
<>
- <p className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-3xl font-medium text-transparent">
+ <p className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text text-center text-3xl font-medium text-transparent">
Head back to your terminal
</p>
- <p className="text-light mb-1 text-lg text-mineshaft-400">
+ <p className="text-light mb-1 text-lg text-muted">
You&apos;ve successfully logged in to the Infisical CLI
</p>
</>
diff --git a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
index ae9cb92191..406afbdd9e 100644
--- a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
+++ b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
@@ -94,7 +94,7 @@ export const LoginLdapPage = () => {
>
<ChevronLeft />
</IconButton>
- <CardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="ml-0.5 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
LDAP Login
</CardTitle>
</div>
diff --git a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx
index 633b41b2d1..e22e57c8fe 100644
--- a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx
+++ b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx
@@ -323,7 +323,7 @@ export const InitialStep = ({ isAdmin }: Props) => {
>
<AuthPagePanel>
<CardHeader className="mb-8 gap-2">
- <CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
Log in to Infisical
</CardTitle>
<CardAction>
@@ -352,7 +352,7 @@ export const InitialStep = ({ isAdmin }: Props) => {
>
<AuthPagePanel>
<CardHeader className="mb-6 gap-2">
- <CardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="ml-0.5 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
Welcome back
</CardTitle>
<CardDescription className="ml-0.5 text-base">
diff --git a/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx b/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
index 60dab968d2..3a5bcc7657 100644
--- a/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
+++ b/frontend/src/pages/auth/LoginSsoPage/LoginSsoPage.tsx
@@ -95,7 +95,7 @@ export const LoginSsoPage = ({ type }: Props) => {
>
<ChevronLeft />
</IconButton>
- <CardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">
+ <CardTitle className="ml-0.5 bg-linear-to-b from-foreground-inverse to-foreground-soft bg-clip-text font-alliance text-2xl font-normal text-transparent">
{type} Login
</CardTitle>
</div>
diff --git a/frontend/src/pages/auth/SelectOrgPage/EmailDuplicationConfirmation.tsx b/frontend/src/pages/auth/SelectOrgPage/EmailDuplicationConfirmation.tsx
index f06c6a55bc..48d1a42093 100644
--- a/frontend/src/pages/auth/SelectOrgPage/EmailDuplicationConfirmation.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/EmailDuplicationConfirmation.tsx
@@ -58,13 +58,13 @@ export const EmailDuplicationConfirmation = ({ onRemoveDuplicateLater }: Props)
<span>You&apos;re currently logged in as</span>{" "}
<b>{duplicateAccounts?.data?.myAccount?.username}</b>.
</p>
- <div className="mt-4 mb-4 flex flex-col rounded-r border-l-2 border-l-primary bg-mineshaft-300/5 px-4 py-2.5">
- <p className="mt-1 mb-2 text-sm text-bunker-300">
+ <div className="mt-4 mb-4 flex flex-col rounded-r border-l-2 border-l-project bg-label/5 px-4 py-2.5">
+ <p className="mt-1 mb-2 text-sm text-label-secondary">
We&apos;ve detected multiple accounts using variations of the same email address.
</p>
</div>
</div>
- <div className="mb-4 w-full border-b border-mineshaft-400 pb-1 text-sm text-mineshaft-200">
+ <div className="mb-4 w-full border-b border-border-emphasis pb-1 text-sm text-foreground-secondary">
Your other accounts
</div>
<div className="flex h-full max-h-60 thin-scrollbar w-full flex-col items-stretch gap-2 overflow-auto rounded-md">
@@ -73,7 +73,7 @@ export const EmailDuplicationConfirmation = ({ onRemoveDuplicateLater }: Props)
return (
<div
key={el.id}
- className="flex items-center gap-8 rounded-md bg-mineshaft-700 px-4 py-3 text-gray-200"
+ className="flex items-center gap-8 rounded-md bg-surface-hover px-4 py-3 text-foreground-cool"
>
<div className="group flex grow flex-col">
<div className="truncate text-sm transition-colors">{el.username}</div>
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
index 0c2afeb65d..92a3bc6836 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
@@ -436,7 +436,7 @@ export const SelectOrgPage = () => {
if (userLoading || !user) {
return (
- <div className="h-screen w-screen bg-bunker-800">
+ <div className="h-screen w-screen bg-page">
<ContentLoader />
</div>
);
diff --git a/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx b/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
index 1502e42c0f..1e5c96565c 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/AlertingPage.tsx
@@ -44,7 +44,7 @@ export const AlertingPage = () => {
const hasV1Alerts = v1AlertsData?.alerts && v1AlertsData.alerts.length > 0;
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Alerting" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertRow.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertRow.tsx
index 6a579b5d08..bd4b644075 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertRow.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertRow.tsx
@@ -34,7 +34,7 @@ export const PkiAlertRow = ({ alert, handlePopUpOpen }: Props) => {
<Td>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<FontAwesomeIcon size="sm" icon={faEllipsis} />
</div>
</DropdownMenuTrigger>
@@ -68,7 +68,7 @@ export const PkiAlertRow = ({ alert, handlePopUpOpen }: Props) => {
<DropdownMenuItem
className={twMerge(
isAllowed
- ? "hover:bg-red-500! hover:text-white!"
+ ? "hover:bg-danger! hover:text-white!"
: "pointer-events-none cursor-not-allowed opacity-50"
)}
onClick={(e) => {
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
index f7db773103..b33595305a 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
@@ -33,15 +33,15 @@ export const PkiAlertsSection = () => {
};
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Alerts</p>
- <span className="rounded bg-mineshaft-600 px-2 py-0.5 text-xs tracking-wide text-mineshaft-200 uppercase">
+ <p className="text-xl font-medium text-foreground">Alerts</p>
+ <span className="rounded bg-surface-active px-2 py-0.5 text-xs tracking-wide text-foreground-secondary uppercase">
Legacy
</span>
</div>
- <p className="text-xs text-bunker-300">Create new alerts inside an Application.</p>
+ <p className="text-xs text-label-secondary">Create new alerts inside an Application.</p>
</div>
<PkiAlertsTable handlePopUpOpen={handlePopUpOpen} />
<PkiAlertModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionSection.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionSection.tsx
index af9b0f24bb..edde2b229a 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionSection.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionSection.tsx
@@ -37,9 +37,9 @@ export const PkiCollectionSection = () => {
};
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex justify-between">
- <p className="text-xl font-medium text-mineshaft-100">Certificate Collections</p>
+ <p className="text-xl font-medium text-foreground">Certificate Collections</p>
<ProjectPermissionCan
I={ProjectPermissionActions.Create}
a={ProjectPermissionSub.PkiCollections}
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
index 601df6fafa..81c3f7a4c2 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
@@ -62,7 +62,7 @@ export const PkiCollectionTable = ({ handlePopUpOpen }: Props) => {
data?.collections.map((pkiCollection) => {
return (
<Tr
- className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
+ className="h-10 cursor-pointer transition-colors duration-100 hover:bg-surface-hover"
key={`pki-collection-${pkiCollection.id}`}
onClick={() =>
navigate({
@@ -80,7 +80,7 @@ export const PkiCollectionTable = ({ handlePopUpOpen }: Props) => {
<Td>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<FontAwesomeIcon size="sm" icon={faEllipsis} />
</div>
</DropdownMenuTrigger>
@@ -114,7 +114,7 @@ export const PkiCollectionTable = ({ handlePopUpOpen }: Props) => {
<DropdownMenuItem
className={twMerge(
isAllowed
- ? "hover:bg-red-500! hover:text-white!"
+ ? "hover:bg-danger! hover:text-white!"
: "pointer-events-none cursor-not-allowed opacity-50"
)}
onClick={(e) => {
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
index 85979da4bb..07c3bdb623 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
@@ -190,8 +190,8 @@ export const ApplicationDetailsByIDPage = () => {
<Helmet>
<title>{application.name}</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
backLink={
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
index 41aa64c624..e7c142ae99 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
@@ -305,7 +305,7 @@ const AlertRow = ({ alert, onView, onEdit, onDelete, canEdit, canDelete }: Alert
{alert.eventType === PkiAlertEventTypeV2.EXPIRATION ? (
formatAlertBefore(alert.alertBefore)
) : (
- <span className="text-mineshaft-500">—</span>
+ <span className="text-surface-selected">—</span>
)}
</TableCell>
<TableCell className="whitespace-nowrap">
@@ -317,21 +317,21 @@ const AlertRow = ({ alert, onView, onEdit, onDelete, canEdit, canDelete }: Alert
</Badge>
</TooltipTrigger>
<TooltipContent side="left" className="max-w-sm">
- <div className="text-xs text-mineshaft-300">
+ <div className="text-xs text-label">
{new Date(alert.lastRun.timestamp)
.toISOString()
.replace("T", " ")
.replace("Z", " UTC")}
</div>
{alert.lastRun.error ? (
- <div className="mt-1 max-h-32 thin-scrollbar overflow-y-auto text-xs break-words text-red-400">
+ <div className="mt-1 max-h-32 thin-scrollbar overflow-y-auto text-xs break-words text-danger">
{alert.lastRun.error}
</div>
) : null}
</TooltipContent>
</Tooltip>
) : (
- <span className="text-mineshaft-500">—</span>
+ <span className="text-surface-selected">—</span>
)}
</TableCell>
<TableCell className="text-right">
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx
index 20f617103b..31554aa46d 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx
@@ -307,7 +307,7 @@ const ApiPanel = ({
href="https://infisical.com/docs/api-reference/endpoints/certificates/create-certificate"
target="_blank"
rel="noreferrer"
- className="font-medium text-primary-400"
+ className="font-medium text-project"
>
View API reference
</a>
@@ -1124,7 +1124,7 @@ const ScepPanel = ({
href={PkiDocsUrls.appConnections.microsoftIntune}
target="_blank"
rel="noopener noreferrer"
- className="text-primary-500 hover:text-primary-400"
+ className="text-project hover:text-project"
>
setup guide
</a>{" "}
diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
index 6184183d78..533b358ec8 100644
--- a/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationsPage/ApplicationsPage.tsx
@@ -124,7 +124,7 @@ export const ApplicationsPage = () => {
>
<TableCell className="w-full">
<div className="flex items-center gap-x-2 font-mono">
- <ResourceIcon className="size-4 shrink-0 text-primary" />
+ <ResourceIcon className="size-4 shrink-0 text-project" />
<span>{app.name}</span>
{app.description?.length ? (
<Tooltip>
@@ -178,8 +178,8 @@ export const ApplicationsPage = () => {
<Helmet>
<title>Applications</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx
index 0986431e6e..736cf39158 100644
--- a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx
@@ -107,12 +107,12 @@ export const ConfigureProfilesModal = ({ application, isOpen, onOpenChange }: Pr
placeholder="Select profiles..."
/>
{!profilesLoading && !profileOptions.length && (
- <p className="mt-3 text-xs text-yellow-500">
+ <p className="mt-3 text-xs text-warning">
No certificate profiles available.{" "}
<Link
to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles"
params={{ orgId: orgId ?? "", projectId: projectId ?? "" }}
- className="underline hover:text-yellow-400"
+ className="underline hover:text-warning"
>
Create one in Certificate Profiles
</Link>
diff --git a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
index c9db44ed4d..f0946f87a7 100644
--- a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/ApprovalRequestDetailPage.tsx
@@ -47,12 +47,12 @@ const CodeSigningDetailsSection = ({
}) => {
return (
<div className="flex flex-col gap-4">
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h2 className="text-lg font-medium text-mineshaft-100">
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h2 className="text-lg font-medium text-foreground">
Signing access for {requestData.signerName}
</h2>
<div className="mt-4 flex items-center gap-3">
- <div className="flex h-10 w-10 items-center justify-center rounded-full bg-mineshaft-700 text-sm font-medium text-mineshaft-200">
+ <div className="flex h-10 w-10 items-center justify-center rounded-full bg-surface-hover text-sm font-medium text-foreground-secondary">
{(requesterName || "U")
.split(" ")
.map((n) => n[0])
@@ -61,37 +61,37 @@ const CodeSigningDetailsSection = ({
.toUpperCase()}
</div>
<div>
- <p className="text-sm font-medium text-mineshaft-100">{requesterName || "Unknown"}</p>
- {requesterEmail && <p className="text-sm text-mineshaft-400">{requesterEmail}</p>}
+ <p className="text-sm font-medium text-foreground">{requesterName || "Unknown"}</p>
+ {requesterEmail && <p className="text-sm text-muted">{requesterEmail}</p>}
</div>
</div>
</div>
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-5">
- <h3 className="mb-4 text-lg font-medium text-mineshaft-100">Signing Access Details</h3>
+ <div className="rounded-lg border border-border-control bg-surface-base p-5">
+ <h3 className="mb-4 text-lg font-medium text-foreground">Signing Access Details</h3>
<div className="grid grid-cols-2 gap-4">
<div>
- <span className="text-xs text-mineshaft-400">Signer</span>
- <p className="text-sm text-mineshaft-100">{requestData.signerName}</p>
+ <span className="text-xs text-muted">Signer</span>
+ <p className="text-sm text-foreground">{requestData.signerName}</p>
</div>
{requestData.requestedWindowDuration && (
<div>
- <span className="text-xs text-mineshaft-400">Access Duration</span>
- <p className="text-sm text-mineshaft-100">
+ <span className="text-xs text-muted">Access Duration</span>
+ <p className="text-sm text-foreground">
{requestData.requestedWindowDuration} from approval
</p>
</div>
)}
{requestData.requestedSignings && (
<div>
- <span className="text-xs text-mineshaft-400">Allowed Sign Operations</span>
- <p className="text-sm text-mineshaft-100">{requestData.requestedSignings}</p>
+ <span className="text-xs text-muted">Allowed Sign Operations</span>
+ <p className="text-sm text-foreground">{requestData.requestedSignings}</p>
</div>
)}
</div>
{requestData.scope && Object.values(requestData.scope).some(Boolean) && (
- <div className="mt-4 border-t border-mineshaft-600 pt-4">
- <h4 className="mb-1 text-sm font-medium text-mineshaft-100">Request Scope</h4>
- <p className="mb-3 text-xs text-mineshaft-400">
+ <div className="mt-4 border-t border-border-control pt-4">
+ <h4 className="mb-1 text-sm font-medium text-foreground">Request Scope</h4>
+ <p className="mb-3 text-xs text-muted">
Signing is only allowed when every parameter below matches exactly.
</p>
<div className="flex flex-col gap-4">
@@ -99,12 +99,10 @@ const CodeSigningDetailsSection = ({
.filter((field) => requestData.scope?.[field])
.map((field) => (
<div key={field}>
- <span className="text-xs text-mineshaft-400">
- {codeSigningScopeFieldLabels[field]}
- </span>
+ <span className="text-xs text-muted">{codeSigningScopeFieldLabels[field]}</span>
<p
className={twMerge(
- "text-sm break-all text-mineshaft-100",
+ "text-sm break-all text-foreground",
MONOSPACED_SCOPE_FIELDS.includes(field) && "font-mono text-xs"
)}
>
@@ -252,14 +250,14 @@ const PageContent = () => {
return (
<>
<div className="flex items-center gap-3">
- <h1 className="text-2xl font-semibold text-mineshaft-100">Signing Request</h1>
+ <h1 className="text-2xl font-semibold text-foreground">Signing Request</h1>
<Badge variant={getStatusBadgeVariant(request.status)}>
{getStatusLabel(request.status)}
</Badge>
</div>
- <p className="mt-1 text-sm text-mineshaft-400">
+ <p className="mt-1 text-sm text-muted">
Signing request for signer{" "}
- <span className="font-medium text-mineshaft-200">{reqData.signerName}</span> by{" "}
+ <span className="font-medium text-foreground-secondary">{reqData.signerName}</span> by{" "}
{request.requesterName || "Unknown"}
</p>
</>
@@ -270,16 +268,14 @@ const PageContent = () => {
return (
<>
<div className="flex items-center gap-3">
- <h1 className="text-2xl font-semibold text-mineshaft-100">
- Certificate Approval Request
- </h1>
+ <h1 className="text-2xl font-semibold text-foreground">Certificate Approval Request</h1>
<Badge variant={getStatusBadgeVariant(request.status)}>
{getStatusLabel(request.status)}
</Badge>
</div>
- <p className="mt-1 text-sm text-mineshaft-400">
+ <p className="mt-1 text-sm text-muted">
Certificate issuance request for{" "}
- <span className="font-medium text-mineshaft-200">
+ <span className="font-medium text-foreground-secondary">
{reqData.certificateRequest?.commonName || reqData.profileName}
</span>{" "}
by {request.requesterName || "Unknown"}
@@ -294,7 +290,7 @@ const PageContent = () => {
projectId: currentProject.id,
applicationName: requestApplication.name
}}
- className="font-medium text-mineshaft-200 underline hover:text-mineshaft-100"
+ className="font-medium text-foreground-secondary underline hover:text-foreground"
>
{requestApplication.name}
</Link>
@@ -321,7 +317,7 @@ const PageContent = () => {
const renderBackLink = () => {
const linkClass =
- "mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400 hover:text-mineshaft-200";
+ "mb-4 flex items-center gap-x-2 text-sm text-muted hover:text-foreground-secondary";
if (applicationName) {
return (
@@ -390,14 +386,14 @@ const PageContent = () => {
};
return (
- <div className="container mx-auto flex flex-col justify-between font-inter text-white">
+ <div className="container mx-auto flex flex-col justify-between bg-page font-inter text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
{renderBackLink()}
<div className="mb-6 flex items-start justify-between">
<div>{renderTitle()}</div>
<div className="flex items-center gap-4">
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
Requested {format(new Date(request.createdAt), "yyyy-MM-dd, hh:mm aaa")}
</p>
{request.requesterId === currentUser.id &&
diff --git a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/components/CertificateDetailsSection.tsx b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/components/CertificateDetailsSection.tsx
index b63e89a76d..09d0f742e5 100644
--- a/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/components/CertificateDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalRequestDetailPage/components/CertificateDetailsSection.tsx
@@ -100,13 +100,13 @@ export const CertificateDetailsSection = ({ request }: Props) => {
return (
<div className="flex flex-col gap-4">
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h2 className="text-lg font-medium text-mineshaft-100">
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h2 className="text-lg font-medium text-foreground">
Request for {certRequest?.altNames?.[0]?.value || certRequest?.commonName || "-"}
</h2>
<div className="mt-4 flex items-center gap-3">
- <div className="flex h-10 w-10 items-center justify-center rounded-full bg-mineshaft-700 text-sm font-medium text-mineshaft-200">
+ <div className="flex h-10 w-10 items-center justify-center rounded-full bg-surface-hover text-sm font-medium text-foreground-secondary">
{(request.requesterName || "U")
.split(" ")
.map((n) => n[0])
@@ -115,45 +115,45 @@ export const CertificateDetailsSection = ({ request }: Props) => {
.toUpperCase()}
</div>
<div>
- <p className="text-sm font-medium text-mineshaft-100">
+ <p className="text-sm font-medium text-foreground">
{request.requesterName || "Unknown"}
</p>
- <p className="text-sm text-mineshaft-400">{request.requesterEmail}</p>
+ <p className="text-sm text-muted">{request.requesterEmail}</p>
</div>
</div>
</div>
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-mineshaft-100">
- <FontAwesomeIcon icon={faLock} className="text-sm text-mineshaft-400" />
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-foreground">
+ <FontAwesomeIcon icon={faLock} className="text-sm text-muted" />
Certificate Specifications
</h3>
<div className="grid grid-cols-2 gap-x-8 gap-y-3">
{certRequest?.keyAlgorithm && (
<div>
- <p className="text-xs text-mineshaft-400">Key Algorithm</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">
+ <p className="text-xs text-muted">Key Algorithm</p>
+ <p className="mt-0.5 text-sm text-foreground">
{formatKeyAlgorithm(certRequest.keyAlgorithm)}
</p>
</div>
)}
{certRequest?.signatureAlgorithm && (
<div>
- <p className="text-xs text-mineshaft-400">Signature Algorithm</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{certRequest.signatureAlgorithm}</p>
+ <p className="text-xs text-muted">Signature Algorithm</p>
+ <p className="mt-0.5 text-sm text-foreground">{certRequest.signatureAlgorithm}</p>
</div>
)}
{certRequest?.validity?.ttl && (
<div>
- <p className="text-xs text-mineshaft-400">Validity</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">
+ <p className="text-xs text-muted">Validity</p>
+ <p className="mt-0.5 text-sm text-foreground">
{formatValidity(certRequest.validity.ttl)}
</p>
</div>
)}
<div>
- <p className="text-xs text-mineshaft-400">Certificate Authority</p>
+ <p className="text-xs text-muted">Certificate Authority</p>
{isProfileLoading && <Skeleton className="mt-0.5 h-4 w-24" />}
{!isProfileLoading && isInternalCa && caId && (
<Badge variant="outline" asChild className="mt-1">
@@ -171,71 +171,71 @@ export const CertificateDetailsSection = ({ request }: Props) => {
</Badge>
)}
{!isProfileLoading && !(isInternalCa && caId) && (
- <p className="mt-0.5 text-sm text-mineshaft-100">
+ <p className="mt-0.5 text-sm text-foreground">
{profile?.certificateAuthority?.name || "N/A"}
</p>
)}
</div>
<div>
- <p className="text-xs text-mineshaft-400">Certificate Profile</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{requestData.profileName}</p>
+ <p className="text-xs text-muted">Certificate Profile</p>
+ <p className="mt-0.5 text-sm text-foreground">{requestData.profileName}</p>
</div>
</div>
</div>
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-mineshaft-100">
- <FontAwesomeIcon icon={faGlobe} className="text-sm text-mineshaft-400" />
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-foreground">
+ <FontAwesomeIcon icon={faGlobe} className="text-sm text-muted" />
Subject Information
</h3>
<div className="grid grid-cols-2 gap-x-8 gap-y-3">
{certRequest?.commonName && (
<div>
- <p className="text-xs text-mineshaft-400">Common Name (CN)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{certRequest.commonName}</p>
+ <p className="text-xs text-muted">Common Name (CN)</p>
+ <p className="mt-0.5 text-sm text-foreground">{certRequest.commonName}</p>
</div>
)}
{organization && (
<div>
- <p className="text-xs text-mineshaft-400">Organization (O)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{organization}</p>
+ <p className="text-xs text-muted">Organization (O)</p>
+ <p className="mt-0.5 text-sm text-foreground">{organization}</p>
</div>
)}
{organizationalUnit && (
<div>
- <p className="text-xs text-mineshaft-400">Organizational Unit (OU)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{organizationalUnit}</p>
+ <p className="text-xs text-muted">Organizational Unit (OU)</p>
+ <p className="mt-0.5 text-sm text-foreground">{organizationalUnit}</p>
</div>
)}
{country && (
<div>
- <p className="text-xs text-mineshaft-400">Country (C)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{country}</p>
+ <p className="text-xs text-muted">Country (C)</p>
+ <p className="mt-0.5 text-sm text-foreground">{country}</p>
</div>
)}
{state && (
<div>
- <p className="text-xs text-mineshaft-400">State (ST)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{state}</p>
+ <p className="text-xs text-muted">State (ST)</p>
+ <p className="mt-0.5 text-sm text-foreground">{state}</p>
</div>
)}
{locality && (
<div>
- <p className="text-xs text-mineshaft-400">Locality (L)</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{locality}</p>
+ <p className="text-xs text-muted">Locality (L)</p>
+ <p className="mt-0.5 text-sm text-foreground">{locality}</p>
</div>
)}
</div>
{hasDomainComponents && (
- <div className="mt-4 border-t border-mineshaft-600 pt-4">
- <p className="mb-3 text-xs text-mineshaft-400">Domain Components (DC)</p>
+ <div className="mt-4 border-t border-border-control pt-4">
+ <p className="mb-3 text-xs text-muted">Domain Components (DC)</p>
<div className="flex flex-wrap gap-2">
{domainComponents!.map((dc) => (
<span
key={dc}
- className="rounded bg-mineshaft-700 px-2.5 py-1 text-sm text-mineshaft-200"
+ className="rounded bg-surface-hover px-2.5 py-1 text-sm text-foreground-secondary"
>
{dc}
</span>
@@ -245,13 +245,13 @@ export const CertificateDetailsSection = ({ request }: Props) => {
)}
{hasAltNames && (
- <div className="mt-4 border-t border-mineshaft-600 pt-4">
- <p className="mb-3 text-xs text-mineshaft-400">Subject Alternative Names (SANs)</p>
+ <div className="mt-4 border-t border-border-control pt-4">
+ <p className="mb-3 text-xs text-muted">Subject Alternative Names (SANs)</p>
<div className="flex flex-wrap gap-2">
{filteredAltNames.map((san: { type: string; value: string }) => (
<span
key={`${san.type}-${san.value}`}
- className="rounded bg-mineshaft-700 px-2.5 py-1 text-sm text-mineshaft-200"
+ className="rounded bg-surface-hover px-2.5 py-1 text-sm text-foreground-secondary"
>
{san.value}
</span>
@@ -267,9 +267,7 @@ export const CertificateDetailsSection = ({ request }: Props) => {
!state &&
!locality &&
!hasDomainComponents &&
- !hasAltNames && (
- <p className="text-sm text-mineshaft-400">No subject information specified</p>
- )}
+ !hasAltNames && <p className="text-sm text-muted">No subject information specified</p>}
</div>
{customExtensions.length > 0 && (
@@ -283,21 +281,21 @@ export const CertificateDetailsSection = ({ request }: Props) => {
)}
{basicConstraints?.isCA && (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-mineshaft-100">
- <FontAwesomeIcon icon={faShieldHalved} className="text-sm text-mineshaft-400" />
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-foreground">
+ <FontAwesomeIcon icon={faShieldHalved} className="text-sm text-muted" />
Basic Constraints
</h3>
<div className="grid grid-cols-2 gap-x-8 gap-y-3">
<div>
- <p className="text-xs text-mineshaft-400">Certificate Authority</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">Yes (CA Certificate)</p>
+ <p className="text-xs text-muted">Certificate Authority</p>
+ <p className="mt-0.5 text-sm text-foreground">Yes (CA Certificate)</p>
</div>
{basicConstraints.pathLength !== undefined && (
<div>
- <p className="text-xs text-mineshaft-400">Path Length</p>
- <p className="mt-0.5 text-sm text-mineshaft-100">{basicConstraints.pathLength}</p>
+ <p className="text-xs text-muted">Path Length</p>
+ <p className="mt-0.5 text-sm text-foreground">{basicConstraints.pathLength}</p>
</div>
)}
</div>
@@ -305,20 +303,20 @@ export const CertificateDetailsSection = ({ request }: Props) => {
)}
{(hasKeyUsages || hasExtendedKeyUsages) && (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-mineshaft-100">
- <FontAwesomeIcon icon={faKey} className="text-sm text-mineshaft-400" />
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-foreground">
+ <FontAwesomeIcon icon={faKey} className="text-sm text-muted" />
Key Usages
</h3>
{hasKeyUsages && certRequest?.keyUsages && (
<div className="mb-4">
- <p className="mb-3 text-xs text-mineshaft-400">Key Usages</p>
+ <p className="mb-3 text-xs text-muted">Key Usages</p>
<div className="flex flex-wrap gap-2">
{certRequest.keyUsages.map((usage: string) => (
<span
key={usage}
- className="rounded bg-mineshaft-700 px-2.5 py-1 text-sm text-mineshaft-200"
+ className="rounded bg-surface-hover px-2.5 py-1 text-sm text-foreground-secondary"
>
{formatKeyUsageDisplay(usage)}
</span>
@@ -328,13 +326,13 @@ export const CertificateDetailsSection = ({ request }: Props) => {
)}
{hasExtendedKeyUsages && certRequest?.extendedKeyUsages && (
- <div className={hasKeyUsages ? "border-t border-mineshaft-600 pt-4" : ""}>
- <p className="mb-3 text-xs text-mineshaft-400">Extended Key Usages</p>
+ <div className={hasKeyUsages ? "border-t border-border-control pt-4" : ""}>
+ <p className="mb-3 text-xs text-muted">Extended Key Usages</p>
<div className="flex flex-wrap gap-2">
{certRequest.extendedKeyUsages.map((usage: string) => (
<span
key={usage}
- className="rounded bg-mineshaft-700 px-2.5 py-1 text-sm text-mineshaft-200"
+ className="rounded bg-surface-hover px-2.5 py-1 text-sm text-foreground-secondary"
>
{formatExtendedKeyUsageDisplay(usage)}
</span>
@@ -345,9 +343,9 @@ export const CertificateDetailsSection = ({ request }: Props) => {
</div>
)}
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-mineshaft-100">
- <FontAwesomeIcon icon={faTags} className="text-sm text-mineshaft-400" />
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <h3 className="mb-4 flex items-center gap-2 text-base font-medium text-foreground">
+ <FontAwesomeIcon icon={faTags} className="text-sm text-muted" />
Metadata
</h3>
{metadata.length > 0 ? (
@@ -370,7 +368,7 @@ export const CertificateDetailsSection = ({ request }: Props) => {
)}
</div>
) : (
- <p className="text-sm text-mineshaft-400">No metadata attached to this request.</p>
+ <p className="text-sm text-muted">No metadata attached to this request.</p>
)}
</div>
</div>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
index dec6cc00ce..49abff7942 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/ApprovalsPage.tsx
@@ -16,7 +16,7 @@ export const ApprovalsPage = () => {
const activeTab = selectedTab || "requests";
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<link rel="icon" href="/infisical.ico" />
</Helmet>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
index da693be364..376161cf9d 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
@@ -47,13 +47,13 @@ export const PolicyTab = () => {
};
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-start">
<div className="flex-1">
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Certificate Approval Policies</p>
+ <p className="text-xl font-medium text-foreground">Certificate Approval Policies</p>
</div>
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Existing project-level policies remain editable. Create new approval policies inside an
Application.
</p>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx
index 2c6dd2b176..573c8f52b0 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx
@@ -88,9 +88,9 @@ export const PoliciesTable = ({ handlePopUpOpen, applicationId }: Props) => {
<Tr key={policy.id} className="group">
<Td>
<div className="flex items-center gap-x-2">
- <span className="text-sm font-medium text-mineshaft-100">{policy.name}</span>
+ <span className="text-sm font-medium text-foreground">{policy.name}</span>
{policy.scopeType !== ApprovalPolicyScope.PkiApplication && (
- <span className="rounded bg-mineshaft-600 px-2 py-0.5 text-[10px] tracking-wide text-mineshaft-200 uppercase">
+ <span className="rounded bg-surface-active px-2 py-0.5 text-[10px] tracking-wide text-foreground-secondary uppercase">
Legacy
</span>
)}
@@ -101,32 +101,30 @@ export const PoliciesTable = ({ handlePopUpOpen, applicationId }: Props) => {
{profileNames.slice(0, 3).map((name) => (
<span
key={name}
- className="rounded bg-mineshaft-600 px-2 py-0.5 text-xs text-mineshaft-200"
+ className="rounded bg-surface-active px-2 py-0.5 text-xs text-foreground-secondary"
>
{name}
</span>
))}
{profileNames.length > 3 && (
- <span className="text-xs text-mineshaft-400">
- +{profileNames.length - 3} more
- </span>
+ <span className="text-xs text-muted">+{profileNames.length - 3} more</span>
)}
</div>
</Td>
<Td>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-foreground-secondary">
{policy.steps.length} step{policy.steps.length !== 1 ? "s" : ""}
</span>
</Td>
<Td>
- <span className="text-sm text-mineshaft-400">
+ <span className="text-sm text-muted">
{formatDistance(new Date(policy.createdAt), new Date(), { addSuffix: true })}
</span>
</Td>
<Td>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<IconButton
ariaLabel="More options"
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicyModal.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicyModal.tsx
index 0fd047424e..db431dc666 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicyModal.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicyModal.tsx
@@ -194,7 +194,7 @@ export const PolicyModal = ({ popUp, handlePopUpToggle, applicationId }: Props)
<FormProvider {...formMethods}>
<form>
<Tab.Group selectedIndex={selectedStepIndex} onChange={setSelectedStepIndex}>
- <Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">
+ <Tab.List className="-pb-1 mb-6 w-full border-b-2 border-border-control">
{FORM_STEPS.map((step, index) => (
<Tab
onClick={async (e) => {
@@ -205,8 +205,8 @@ export const PolicyModal = ({ popUp, handlePopUpToggle, applicationId }: Props)
className={({ selected }) =>
`-mb-[0.14rem] whitespace-nowrap ${index > selectedStepIndex ? "opacity-30" : ""} px-4 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${
selected
- ? "border-b-2 border-mineshaft-300 text-mineshaft-200"
- : "text-bunker-300"
+ ? "border-b-2 border-border-bright text-foreground-secondary"
+ : "text-label-secondary"
}`
}
key={step.key}
@@ -228,7 +228,7 @@ export const PolicyModal = ({ popUp, handlePopUpToggle, applicationId }: Props)
</Tab.Panels>
</Tab.Group>
- <div className="mt-6 flex justify-between border-t border-mineshaft-600 pt-4">
+ <div className="mt-6 flex justify-between border-t border-border-control pt-4">
<Button type="button" variant="outline_bg" onClick={handlePrev}>
{selectedStepIndex === 0 ? "Cancel" : "Back"}
</Button>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx
index b70fc6ed7f..39304507a7 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx
@@ -126,12 +126,12 @@ export const PolicyDetailsStep = ({ applicationId }: Props) => {
id="bypassForMachineIdentities"
isChecked={value}
onCheckedChange={onChange}
- checkIndicatorBg="text-primary"
+ checkIndicatorBg="text-project"
>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-foreground-secondary">
Bypass approval for machine identities
</span>
- <p className="text-xs text-mineshaft-400">
+ <p className="text-xs text-muted">
When enabled, machine identities can issue certificates without requiring approval
</p>
</Checkbox>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx
index 47e23d70aa..8746350830 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx
@@ -11,8 +11,8 @@ import { TPolicyForm } from "../PolicySchema";
const ReviewField = ({ label, value }: { label: string; value: string | number }) => (
<div className="flex gap-x-8">
- <span className="min-w-[140px] text-sm text-mineshaft-400">{label}</span>
- <span className="text-sm text-mineshaft-200">{value}</span>
+ <span className="min-w-[140px] text-sm text-muted">{label}</span>
+ <span className="text-sm text-foreground-secondary">{value}</span>
</div>
);
@@ -44,8 +44,8 @@ export const PolicyReviewStep = () => {
return (
<div className="space-y-6">
<div>
- <div className="mb-3 border-b border-mineshaft-600 pb-2">
- <h3 className="text-sm font-medium text-mineshaft-200">Policy Configuration</h3>
+ <div className="mb-3 border-b border-border-control pb-2">
+ <h3 className="text-sm font-medium text-foreground-secondary">Policy Configuration</h3>
</div>
<div className="grid grid-cols-2 gap-2">
<ReviewField label="Policy Name" value={name || "Not set"} />
@@ -64,8 +64,8 @@ export const PolicyReviewStep = () => {
</div>
<div>
- <div className="mb-3 border-b border-mineshaft-600 pb-2">
- <h3 className="text-sm font-medium text-mineshaft-200">Approval Sequence</h3>
+ <div className="mb-3 border-b border-border-control pb-2">
+ <h3 className="text-sm font-medium text-foreground-secondary">Approval Sequence</h3>
</div>
<div className="space-y-3">
{steps.map((step, index) => {
@@ -75,23 +75,23 @@ export const PolicyReviewStep = () => {
return (
<div
key={`step-${index + 1}`}
- className="rounded border border-mineshaft-600 bg-mineshaft-700 p-3"
+ className="rounded border border-border-control bg-surface-hover p-3"
>
<div className="mb-3 flex items-center justify-between">
<div className="flex items-center gap-2">
- <span className="flex h-6 w-6 items-center justify-center rounded-full bg-primary/20 text-xs font-medium text-primary">
+ <span className="flex h-6 w-6 items-center justify-center rounded-full bg-project/20 text-xs font-medium text-project">
{index + 1}
</span>
<div>
- <span className="text-sm font-medium text-mineshaft-200">
+ <span className="text-sm font-medium text-foreground-secondary">
Step {index + 1}
{step.name && (
- <span className="ml-2 text-xs text-mineshaft-400">({step.name})</span>
+ <span className="ml-2 text-xs text-muted">({step.name})</span>
)}
</span>
</div>
</div>
- <div className="text-xs text-mineshaft-400">
+ <div className="text-xs text-muted">
Requires {step.requiredApprovals} approval
{step.requiredApprovals !== 1 ? "s" : ""}
</div>
@@ -100,17 +100,17 @@ export const PolicyReviewStep = () => {
<div className="space-y-2">
{userApprovers.length > 0 && (
<div>
- <div className="mb-1 text-xs text-mineshaft-400">
+ <div className="mb-1 text-xs text-muted">
User Approvers ({userApprovers.length}):
</div>
<div className="flex flex-wrap gap-2">
{userApprovers.map((approver, approverIndex) => (
<div
key={`step-${index + 1}-user-${approverIndex + 1}`}
- className="flex items-center gap-1.5 rounded bg-mineshaft-700 px-2 py-1 text-xs text-mineshaft-300"
+ className="flex items-center gap-1.5 rounded bg-surface-hover px-2 py-1 text-xs text-label"
>
- <FontAwesomeIcon icon={faUsers} className="text-mineshaft-400" />
- <span className="text-mineshaft-200">
+ <FontAwesomeIcon icon={faUsers} className="text-muted" />
+ <span className="text-foreground-secondary">
{getApproverLabel(approver.id, ApproverType.User)}
</span>
</div>
@@ -121,17 +121,17 @@ export const PolicyReviewStep = () => {
{groupApprovers.length > 0 && (
<div>
- <div className="mb-1 text-xs text-mineshaft-400">
+ <div className="mb-1 text-xs text-muted">
Group Approvers ({groupApprovers.length}):
</div>
<div className="flex flex-wrap gap-2">
{groupApprovers.map((approver, approverIndex) => (
<div
key={`step-${index + 1}-group-${approverIndex + 1}`}
- className="flex items-center gap-1.5 rounded bg-mineshaft-700 px-2 py-1 text-xs text-mineshaft-300"
+ className="flex items-center gap-1.5 rounded bg-surface-hover px-2 py-1 text-xs text-label"
>
- <FontAwesomeIcon icon={faUsers} className="text-mineshaft-400" />
- <span className="text-mineshaft-200">
+ <FontAwesomeIcon icon={faUsers} className="text-muted" />
+ <span className="text-foreground-secondary">
{getApproverLabel(approver.id, ApproverType.Group)}
</span>
</div>
@@ -141,7 +141,7 @@ export const PolicyReviewStep = () => {
)}
{step.approvers.length === 0 && (
- <span className="text-xs text-mineshaft-500">No approvers defined</span>
+ <span className="text-xs text-surface-selected">No approvers defined</span>
)}
</div>
</div>
@@ -150,8 +150,8 @@ export const PolicyReviewStep = () => {
</div>
</div>
- <div className="rounded-md border border-primary/30 bg-primary/5 p-3">
- <p className="text-xs text-mineshaft-300">
+ <div className="rounded-md border border-project/30 bg-project/5 p-3">
+ <p className="text-xs text-label">
Please review all the details above. Submit to save this policy or go back to make
changes.
</p>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestDetailModal.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestDetailModal.tsx
index 7df897ad21..38e48701b8 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestDetailModal.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestDetailModal.tsx
@@ -70,12 +70,12 @@ const getStatusBadgeColor = (status: ApprovalRequestStatus) => {
const getStepNumberClass = (status: ApprovalRequestStepStatus) => {
if (status === ApprovalRequestStepStatus.Completed) {
- return "bg-green-500/20 text-green-500";
+ return "bg-success/20 text-success";
}
if (status === ApprovalRequestStepStatus.InProgress) {
- return "bg-primary/20 text-primary";
+ return "bg-project/20 text-project";
}
- return "bg-mineshaft-600 text-mineshaft-400";
+ return "bg-surface-active text-muted";
};
const getStepBadgeVariant = (status: ApprovalRequestStepStatus) => {
@@ -251,40 +251,42 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
<Badge variant={getStatusBadgeColor(request.status)} className="capitalize">
{request.status.split("-").join(" ")}
</Badge>
- <span className="text-sm text-mineshaft-400">
+ <span className="text-sm text-muted">
Requested{" "}
{formatDistance(new Date(request.createdAt), new Date(), { addSuffix: true })}
</span>
</div>
<div>
- <h4 className="mb-2 text-sm font-medium text-mineshaft-200">Requester</h4>
- <div className="rounded border border-mineshaft-600 bg-mineshaft-700 p-3">
- <div className="text-sm font-medium text-mineshaft-100">
+ <h4 className="mb-2 text-sm font-medium text-foreground-secondary">Requester</h4>
+ <div className="rounded border border-border-control bg-surface-hover p-3">
+ <div className="text-sm font-medium text-foreground">
{request.requesterName || "Unknown"}
</div>
- <div className="text-xs text-mineshaft-400">{request.requesterEmail}</div>
+ <div className="text-xs text-muted">{request.requesterEmail}</div>
</div>
</div>
<div>
- <h4 className="mb-2 text-sm font-medium text-mineshaft-200">Certificate Details</h4>
- <div className="space-y-2 rounded border border-mineshaft-600 bg-mineshaft-700 p-3">
+ <h4 className="mb-2 text-sm font-medium text-foreground-secondary">
+ Certificate Details
+ </h4>
+ <div className="space-y-2 rounded border border-border-control bg-surface-hover p-3">
<div className="flex justify-between">
- <span className="text-sm text-mineshaft-400">Profile</span>
- <span className="text-sm text-mineshaft-200">{requestData.profileName}</span>
+ <span className="text-sm text-muted">Profile</span>
+ <span className="text-sm text-foreground-secondary">{requestData.profileName}</span>
</div>
{requestData.certificateRequest?.commonName && (
<div className="flex justify-between">
- <span className="text-sm text-mineshaft-400">Common Name</span>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-muted">Common Name</span>
+ <span className="text-sm text-foreground-secondary">
{requestData.certificateRequest.commonName}
</span>
</div>
)}
<div className="flex justify-between">
- <span className="text-sm text-mineshaft-400">Validity</span>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-muted">Validity</span>
+ <span className="text-sm text-foreground-secondary">
{requestData.certificateRequest?.validity?.ttl
? formatValidity(requestData.certificateRequest.validity.ttl)
: "Not specified"}
@@ -293,12 +295,12 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
{requestData.certificateRequest?.domainComponents &&
requestData.certificateRequest.domainComponents.length > 0 && (
<div>
- <span className="text-sm text-mineshaft-400">Domain Components</span>
+ <span className="text-sm text-muted">Domain Components</span>
<div className="mt-1 flex flex-wrap gap-1">
{requestData.certificateRequest.domainComponents.map((dc) => (
<span
key={dc}
- className="rounded bg-mineshaft-600 px-2 py-0.5 text-xs text-mineshaft-200"
+ className="rounded bg-surface-active px-2 py-0.5 text-xs text-foreground-secondary"
>
{dc}
</span>
@@ -309,13 +311,13 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
{requestData.certificateRequest?.altNames &&
requestData.certificateRequest.altNames.length > 0 && (
<div>
- <span className="text-sm text-mineshaft-400">Alt Names</span>
+ <span className="text-sm text-muted">Alt Names</span>
<div className="mt-1 flex flex-wrap gap-1">
{requestData.certificateRequest.altNames.map(
(san: { type: string; value: string }) => (
<span
key={`${san.type}-${san.value}`}
- className="rounded bg-mineshaft-600 px-2 py-0.5 text-xs text-mineshaft-200"
+ className="rounded bg-surface-active px-2 py-0.5 text-xs text-foreground-secondary"
>
{san.type}: {san.value}
</span>
@@ -329,20 +331,22 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
{request.justification && (
<div>
- <h4 className="mb-2 text-sm font-medium text-mineshaft-200">Justification</h4>
- <div className="rounded border border-mineshaft-600 bg-mineshaft-700 p-3 text-sm text-mineshaft-300">
+ <h4 className="mb-2 text-sm font-medium text-foreground-secondary">Justification</h4>
+ <div className="rounded border border-border-control bg-surface-hover p-3 text-sm text-label">
{request.justification}
</div>
</div>
)}
<div>
- <h4 className="mb-2 text-sm font-medium text-mineshaft-200">Approval Progress</h4>
+ <h4 className="mb-2 text-sm font-medium text-foreground-secondary">
+ Approval Progress
+ </h4>
<div className="space-y-2">
{request.steps.map((step, index) => (
<div
key={step.id}
- className="rounded border border-mineshaft-600 bg-mineshaft-700 p-3"
+ className="rounded border border-border-control bg-surface-hover p-3"
>
<div className="mb-2 flex items-center justify-between">
<div className="flex items-center gap-2">
@@ -351,7 +355,7 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
>
{index + 1}
</span>
- <span className="text-sm font-medium text-mineshaft-200">
+ <span className="text-sm font-medium text-foreground-secondary">
{step.name || `Step ${index + 1}`}
</span>
</div>
@@ -359,7 +363,7 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
{step.status.split("-").join(" ")}
</Badge>
</div>
- <div className="text-xs text-mineshaft-400">
+ <div className="text-xs text-muted">
{step.approvals.length} of {step.requiredApprovals} approvals
</div>
{step.approvals.length > 0 && (
@@ -367,7 +371,7 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
{step.approvals.map((approval) => (
<div
key={approval.id}
- className="flex items-center gap-1 rounded bg-green-500/10 px-2 py-0.5 text-xs text-green-400"
+ className="flex items-center gap-1 rounded bg-success/10 px-2 py-0.5 text-xs text-success"
>
<FontAwesomeIcon icon={faUsers} />
{getApproverLabel(approval.approverUserId, ApproverType.User)}
@@ -415,7 +419,7 @@ export const RequestDetailModal = ({ popUp, handlePopUpToggle }: Props) => {
)}
{!showCommentForm && (showApprovalButtons || showCancelButton) && (
- <div className="flex gap-2 border-t border-mineshaft-600 pt-4">
+ <div className="flex gap-2 border-t border-border-control pt-4">
{showApprovalButtons && (
<>
<Button
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestsTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestsTab.tsx
index a0fe7f0856..b4f0ee4c74 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestsTab.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/RequestsTab/RequestsTab.tsx
@@ -148,12 +148,12 @@ export const RequestsTab = () => {
const isTableFiltered = filter !== ApprovalRequestStatus.Pending;
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4">
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Certificate Approval Requests</p>
+ <p className="text-xl font-medium text-foreground">Certificate Approval Requests</p>
</div>
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Review and manage certificate requests that require approval
</p>
</div>
@@ -166,8 +166,8 @@ export const RequestsTab = () => {
variant="plain"
size="sm"
className={twMerge(
- "flex h-9.5 w-[2.6rem] items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-9.5 w-[2.6rem] items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<FontAwesomeIcon icon={faFilter} />
@@ -197,7 +197,7 @@ export const RequestsTab = () => {
Closed Requests
</DropdownSubMenuTrigger>
<DropdownSubMenuContent className="max-h-80 thin-scrollbar overflow-y-auto rounded-l-none">
- <DropdownMenuLabel className="sticky top-0 bg-mineshaft-900">
+ <DropdownMenuLabel className="sticky top-0 bg-surface-base">
Filter by Status
</DropdownMenuLabel>
<DropdownMenuItem
@@ -288,7 +288,7 @@ export const RequestsTab = () => {
return (
<Tr
key={request.id}
- className="h-14 cursor-pointer transition-colors hover:bg-mineshaft-700"
+ className="h-14 cursor-pointer transition-colors hover:bg-surface-hover"
onClick={() =>
navigate({
to: "/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId",
@@ -305,26 +305,26 @@ export const RequestsTab = () => {
>
<Td>
<div>
- <div className="text-sm font-medium text-mineshaft-100">
+ <div className="text-sm font-medium text-foreground">
{request.requesterName || "Unknown"}
</div>
- <div className="text-xs text-mineshaft-400">{request.requesterEmail}</div>
+ <div className="text-xs text-muted">{request.requesterEmail}</div>
</div>
</Td>
<Td>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-foreground-secondary">
{requestData.profileName}
</span>
</Td>
<Td>
- <span className="text-sm text-mineshaft-200">
+ <span className="text-sm text-foreground-secondary">
{requestData.certificateRequest?.commonName || "-"}
</span>
</Td>
<Td>
<div className="flex items-center gap-2">
{needsApproval ? (
- <div className="flex items-center gap-1 rounded bg-primary/20 px-2 py-0.5 text-xs text-primary">
+ <div className="flex items-center gap-1 rounded bg-project/20 px-2 py-0.5 text-xs text-project">
<FontAwesomeIcon icon={faExclamationCircle} className="h-3 w-3" />
<span>Approval Required</span>
</div>
@@ -339,7 +339,7 @@ export const RequestsTab = () => {
</div>
</Td>
<Td>
- <span className="text-sm text-mineshaft-400">
+ <span className="text-sm text-muted">
{formatDistance(new Date(request.createdAt), new Date(), {
addSuffix: true
})}
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
index a0a994e32a..0f527504ba 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
@@ -104,7 +104,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{data && (
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDetailsSection.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDetailsSection.tsx
index c0b48f58af..05f68a2cd9 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDetailsSection.tsx
@@ -427,8 +427,8 @@ export const CaDetailsSection = ({ caId }: Props) => {
<FormControl>
<SwitchV2
id="auto-renewal-enabled"
- className="bg-mineshaft-400/80 shadow-inner data-[state=checked]:bg-green/80"
- thumbClassName="bg-mineshaft-800"
+ className="bg-muted/80 shadow-inner data-[state=checked]:bg-success/80"
+ thumbClassName="bg-surface-raised"
isChecked={value}
onCheckedChange={onChange}
>
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx
index e9ac2bd456..3bb0192593 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx
@@ -225,8 +225,8 @@ export const CaDistributionPointsSection = ({ caId }: Props) => {
<FormControl>
<Switch
id="disableManagedCrlDistributionPointUrl"
- className="bg-mineshaft-400/80 shadow-inner data-[state=checked]:bg-green/80"
- thumbClassName="bg-mineshaft-800"
+ className="bg-muted/80 shadow-inner data-[state=checked]:bg-success/80"
+ thumbClassName="bg-surface-raised"
isChecked={value}
onCheckedChange={onChange}
>
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx
index ad46be1f8d..53d65fc49d 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx
@@ -39,7 +39,7 @@ export const CaIssuerUrlSection = ({ caId }: Props) => {
<div className="overflow-hidden rounded-md border border-border bg-container">
<div className="border-b border-border px-3 py-2 text-xs text-accent">CA Issuer URL</div>
<div className="flex items-start gap-2 px-3 py-2">
- <span className="min-w-0 flex-1 text-sm break-all text-mineshaft-200">
+ <span className="min-w-0 flex-1 text-sm break-all text-foreground-secondary">
{caIssuerUrl}
</span>
<DropdownMenu>
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaRenewalModal.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaRenewalModal.tsx
index 267cd92aa7..689f65ec45 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaRenewalModal.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaRenewalModal.tsx
@@ -54,7 +54,7 @@ const ExternalCaRenewal = ({
onCancel
}: ExternalCaRenewalProps) => (
<div>
- <p className="mb-4 text-sm text-mineshaft-300">{description}</p>
+ <p className="mb-4 text-sm text-label">{description}</p>
<div className="flex items-center">
<Button
className="mr-4"
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
index 59c696ffc7..97a97a63cd 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/CertificateAuthoritiesPage.tsx
@@ -43,7 +43,7 @@ export const CertificateAuthoritiesPage = () => {
};
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Authorities" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
index ddb0f9b234..1ad5aab6cc 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
@@ -122,24 +122,24 @@ const RadioCard = ({
className={`flex items-center gap-4 rounded-md border px-4 py-4 text-left transition-colors disabled:cursor-not-allowed disabled:opacity-60 ${
isSelected
? "border-project/50 bg-project/5"
- : "border-mineshaft-600 bg-mineshaft-700 enabled:hover:bg-mineshaft-600"
+ : "border-border-control bg-surface-hover enabled:hover:bg-surface-active"
} ${className ?? ""}`}
>
{icon}
<div className="flex-1">
<div className="flex items-center gap-2">
- <span className="text-sm font-medium text-mineshaft-100">{name}</span>
+ <span className="text-sm font-medium text-foreground">{name}</span>
{badge && <Badge variant="neutral">{badge}</Badge>}
{isLocked && <Badge variant="info">Enterprise</Badge>}
</div>
- <p className="mt-0.5 text-xs text-mineshaft-400">{description}</p>
+ <p className="mt-0.5 text-xs text-muted">{description}</p>
</div>
<div
className={`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2 ${
- isSelected ? "border-none bg-project/30" : "border-mineshaft-500"
+ isSelected ? "border-none bg-project/30" : "border-border-strong"
}`}
>
- {isSelected && <div className="h-2 w-2 rounded-full bg-mineshaft-300" />}
+ {isSelected && <div className="h-2 w-2 rounded-full bg-label" />}
</div>
</button>
);
@@ -220,8 +220,8 @@ export const CaInstallCertModal = ({ popUp, handlePopUpToggle }: Props) => {
isLocked={lockedMethods[option.value]}
onClick={() => setSelectedMethod(option.value)}
icon={
- <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-mineshaft-600">
- <option.icon className="h-5 w-5 text-mineshaft-300" />
+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-surface-active">
+ <option.icon className="h-5 w-5 text-label" />
</div>
}
name={option.name}
@@ -260,7 +260,7 @@ export const CaInstallCertModal = ({ popUp, handlePopUpToggle }: Props) => {
<img
src={integration.image}
alt={`${integration.name} logo`}
- className="h-8 w-8 rounded-md bg-bunker-500 object-contain p-1"
+ className="h-8 w-8 rounded-md bg-surface-recessed object-contain p-1"
/>
) : undefined
}
@@ -303,30 +303,30 @@ export const CaInstallCertModal = ({ popUp, handlePopUpToggle }: Props) => {
<img
src={displayImage}
alt={`${displayName} logo`}
- className="mt-0.5 h-8 w-8 shrink-0 rounded-md bg-bunker-500 object-contain p-1"
+ className="mt-0.5 h-8 w-8 shrink-0 rounded-md bg-surface-recessed object-contain p-1"
/>
) : (
DisplayIcon && (
- <div className="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-bunker-500">
- <DisplayIcon className="h-4 w-4 text-mineshaft-300" />
+ <div className="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-surface-recessed">
+ <DisplayIcon className="h-4 w-4 text-label" />
</div>
)
)}
<div className="flex-1">
<div className="flex items-center">
- <span className="flex-1 text-sm font-medium text-mineshaft-100">{displayName}</span>
+ <span className="flex-1 text-sm font-medium text-foreground">{displayName}</span>
<button
type="button"
- className="shrink-0 text-xs text-mineshaft-400 underline underline-offset-2 hover:text-mineshaft-300"
+ className="shrink-0 text-xs text-muted underline underline-offset-2 hover:text-label"
onClick={resetState}
>
Change method
</button>
</div>
- <p className="mt-0.5 text-xs text-mineshaft-400">{displayDesc}</p>
+ <p className="mt-0.5 text-xs text-muted">{displayDesc}</p>
</div>
</div>
- <hr className="-mx-6 mb-4 border-mineshaft-600" />
+ <hr className="-mx-6 mb-4 border-border-control" />
{renderForm()}
</>
);
@@ -338,7 +338,7 @@ export const CaInstallCertModal = ({ popUp, handlePopUpToggle }: Props) => {
<div>
<button
type="button"
- className="mb-2 flex items-center gap-1 text-xs text-mineshaft-400 hover:text-mineshaft-300"
+ className="mb-2 flex items-center gap-1 text-xs text-muted hover:text-label"
onClick={goBackToMethodSelection}
>
<ArrowLeftIcon className="h-3 w-3" />
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/ExternalCaInstallForm.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/ExternalCaInstallForm.tsx
index d08ee2b549..a4193a2baa 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/ExternalCaInstallForm.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/ExternalCaInstallForm.tsx
@@ -102,7 +102,7 @@ export const ExternalCaInstallForm = ({ caId, handlePopUpToggle }: Props) => {
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{csr}</p>
</div>
</>
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CreateCaWizard/CreateCaWizard.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CreateCaWizard/CreateCaWizard.tsx
index 6846af76d7..1dd8f9f02c 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CreateCaWizard/CreateCaWizard.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CreateCaWizard/CreateCaWizard.tsx
@@ -164,11 +164,11 @@ export const CreateCaWizard = ({ isOpen, onOpenChange }: Props) => {
<ShieldIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
Create Internal CA
<DocumentationLinkBadge href={PkiDocsUrls.ca.internal} />
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
A private Certificate Authority hosted by Infisical, with its signing key managed
by Infisical or kept in your HSM.
</p>
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/DigiCertFields.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/DigiCertFields.tsx
index 9a2b1ecb00..a1327d23bf 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/DigiCertFields.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/DigiCertFields.tsx
@@ -183,7 +183,7 @@ export const DigiCertFields = ({
}}
/>
{csRequiresContact && (
- <div className="mt-3 mb-2 rounded-md border border-border bg-mineshaft-800 p-4">
+ <div className="mt-3 mb-2 rounded-md border border-border bg-surface-raised p-4">
<div className="mb-1 text-sm font-medium text-foreground">Verified Contact</div>
<div className="mb-4 text-xs text-muted">
This organization has not completed DigiCert code-signing validation yet, so a verified
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/ExternalCaHeader.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/ExternalCaHeader.tsx
index ed56a121e1..8c721579f7 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/ExternalCaHeader.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaFields/ExternalCaHeader.tsx
@@ -1,5 +1,7 @@
import { type LucideIcon } from "lucide-react";
+import { ProviderIcon } from "@app/components/v3";
+
type Props = {
name: string;
subtitle: string;
@@ -12,18 +14,14 @@ export const ExternalCaHeader = ({ name, subtitle, image, icon: Icon }: Props) =
<div className="flex w-full items-start gap-2">
<div className="relative flex h-10 w-10 items-center justify-center rounded-md bg-container">
{image ? (
- <img
- alt={`${name} logo`}
- src={`/images/integrations/${image}`}
- className="h-7 w-7 object-contain"
- />
+ <ProviderIcon alt={`${name} logo`} icon={image} className="h-7 w-7 object-contain" />
) : (
Icon && <Icon className="h-5 w-5 text-foreground" />
)}
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">{name}</div>
- <p className="text-sm leading-4 font-normal text-mineshaft-400">{subtitle}</p>
+ <div className="flex items-center gap-x-2 text-label">{name}</div>
+ <p className="text-sm leading-4 font-normal text-muted">{subtitle}</p>
</div>
</div>
);
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
index 3b59a9658d..56737b2eee 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaModal.tsx
@@ -15,6 +15,7 @@ import {
InputGroup,
InputGroupAddon,
InputGroupInput,
+ ProviderIcon,
Sheet,
SheetContent,
SheetDescription,
@@ -191,13 +192,13 @@ const CaTypeCard = ({
type="button"
onClick={onClick}
disabled={isLocked}
- 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 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:border-border disabled:hover:bg-card"
+ className="group flex cursor-pointer flex-col gap-3 rounded-md border border-border bg-card p-4 text-left transition-colors enabled:hover:border-border-strong enabled:hover:bg-surface-hover/50 disabled:cursor-not-allowed disabled:opacity-60"
>
<div className="flex items-start justify-between gap-2">
- <div className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
+ <div className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
{option.image ? (
- <img
- src={`/images/integrations/${option.image}`}
+ <ProviderIcon
+ icon={option.image}
alt={`${option.name} logo`}
className="h-6 w-6 object-contain"
/>
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
index 771697107e..47123235ef 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/CertificateDetailsByIDPage.tsx
@@ -492,7 +492,7 @@ const Page = () => {
}
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{pageBody}
<CertificateCertModal
popUp={popUp}
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateDetailsSection.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateDetailsSection.tsx
index 2178087964..f955f03f22 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateDetailsSection.tsx
@@ -47,7 +47,7 @@ export const CertificateDetailsSection = ({ certificateId }: Props) => {
{["subject", "extensions", "crypto"].map((id) => (
<Card key={id}>
<CardContent className="flex items-center justify-center py-8">
- <p className="text-sm text-mineshaft-400">Loading...</p>
+ <p className="text-sm text-muted">Loading...</p>
</CardContent>
</Card>
))}
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateMetadataSection.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateMetadataSection.tsx
index ccc75e0635..a0c90dda8b 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateMetadataSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateMetadataSection.tsx
@@ -126,7 +126,7 @@ export const CertificateMetadataSection = ({ certificateId }: Props) => {
return (
<Card>
<CardContent className="flex items-center justify-center py-8">
- <p className="text-sm text-mineshaft-400">Loading...</p>
+ <p className="text-sm text-muted">Loading...</p>
</CardContent>
</Card>
);
@@ -175,7 +175,7 @@ export const CertificateMetadataSection = ({ certificateId }: Props) => {
)}
</div>
) : (
- <p className="text-sm text-mineshaft-400">No metadata attached to this certificate.</p>
+ <p className="text-sm text-muted">No metadata attached to this certificate.</p>
)}
</CardContent>
</Card>
diff --git a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateOverviewSection.tsx b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateOverviewSection.tsx
index 5ddc4ef131..752b34a71c 100644
--- a/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateOverviewSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateOverviewSection.tsx
@@ -73,7 +73,7 @@ export const CertificateOverviewSection = ({ certificateId }: Props) => {
<div className="flex w-full flex-col gap-5 lg:max-w-[24rem]">
<Card>
<CardContent className="flex items-center justify-center py-8">
- <p className="text-sm text-mineshaft-400">Loading...</p>
+ <p className="text-sm text-muted">Loading...</p>
</CardContent>
</Card>
</div>
@@ -199,7 +199,7 @@ export const CertificateOverviewSection = ({ certificateId }: Props) => {
className="inline-flex items-center gap-1 underline"
>
{certificate.caName}
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
)}
{!showCaLink &&
@@ -228,7 +228,7 @@ export const CertificateOverviewSection = ({ certificateId }: Props) => {
className="inline-flex items-center gap-1 underline"
>
{certificate.applicationName}
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
</DetailValue>
</Detail>
@@ -287,7 +287,7 @@ export const CertificateOverviewSection = ({ certificateId }: Props) => {
certificate.renewedFromCertificateId
).displayName
}
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
</DetailValue>
</Detail>
@@ -309,7 +309,7 @@ export const CertificateOverviewSection = ({ certificateId }: Props) => {
getCertificateDisplayName(certificate, 64, certificate.renewedByCertificateId)
.displayName
}
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
</DetailValue>
</Detail>
diff --git a/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx b/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
index 6da7ff7bde..23ff91caa1 100644
--- a/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePoliciesPage/CertificatePoliciesPage.tsx
@@ -12,7 +12,7 @@ import { CertificatePoliciesTab } from "../PoliciesPage/components";
export const CertificatePoliciesPage = () => {
const { t } = useTranslation();
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Policies" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
index ddd5a81ecb..c32581d5e3 100644
--- a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
@@ -105,7 +105,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{policy && (
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx
index f329f38b99..3912117393 100644
--- a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx
@@ -43,7 +43,7 @@ export const PolicyKeyUsagesSection = ({ policy }: Props) => {
<CardContent>
<DetailGroup>
{ku && (
- <div className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0">
+ <div className="flex flex-col gap-y-3 border-b border-border-subtle pb-3 last:border-b-0 last:pb-0">
<div className="text-sm font-medium text-foreground">Key Usages</div>
{kuEmpty ? (
<p className="text-sm text-muted">
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx
index dd3ba131b7..46ba051d67 100644
--- a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx
@@ -48,7 +48,7 @@ export const PolicySansRulesSection = ({ policy }: Props) => {
<div
// eslint-disable-next-line react/no-array-index-key
key={`${rule.type}-${idx}`}
- className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0"
+ className="flex flex-col gap-y-3 border-b border-border-subtle pb-3 last:border-b-0 last:pb-0"
>
<div className="text-sm font-medium text-foreground">
{formatSANType(rule.type as CertSubjectAlternativeNameType)}
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx
index 1a1938ff6a..80baaed67e 100644
--- a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx
@@ -58,7 +58,7 @@ export const PolicySubjectRulesSection = ({ policy }: Props) => {
<div
// eslint-disable-next-line react/no-array-index-key
key={`${rule.type}-${idx}`}
- className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0"
+ className="flex flex-col gap-y-3 border-b border-border-subtle pb-3 last:border-b-0 last:pb-0"
>
<div className="text-sm font-medium text-foreground">
{formatSubjectAttributeType(rule.type as CertSubjectAttributeType)}
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
index cd2211bcff..de054dfc68 100644
--- a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
@@ -90,7 +90,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{profile && (
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx b/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
index 2c9ba7bd26..739fecaf0f 100644
--- a/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
+++ b/frontend/src/pages/cert-manager/CertificateProfilesPage/CertificateProfilesPage.tsx
@@ -12,7 +12,7 @@ import { CertificateProfilesTab } from "../PoliciesPage/components";
export const CertificateProfilesPage = () => {
const { t } = useTranslation();
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Profiles" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
index 7e70e23d91..4d7ad9da0b 100644
--- a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
@@ -270,7 +270,7 @@ export const CertificateRequestsSection = ({
aria-label="Filter Certificate Requests"
variant={isTableFiltered ? "project" : "outline"}
size="md"
- className={twMerge(isTableFiltered && "text-primary")}
+ className={twMerge(isTableFiltered && "text-project")}
>
<FontAwesomeIcon icon={faFilter} />
</IconButton>
@@ -282,13 +282,13 @@ export const CertificateRequestsSection = ({
>
<div className="space-y-4">
<div className="flex items-center justify-between">
- <h3 className="text-sm font-medium text-mineshaft-100">Filters</h3>
- <span className="text-xs text-bunker-300">
+ <h3 className="text-sm font-medium text-foreground">Filters</h3>
+ <span className="text-xs text-label-secondary">
{isTableFiltered && (
<button
type="button"
onClick={handleClearFilters}
- className="cursor-pointer text-primary hover:text-primary-600"
+ className="cursor-pointer text-project hover:text-project"
>
Clear filters
</button>
@@ -298,14 +298,14 @@ export const CertificateRequestsSection = ({
<div className="space-y-2">
<div className="flex items-center justify-between">
- <span className="text-xs font-medium text-bunker-300 uppercase">
+ <span className="text-xs font-medium text-label-secondary uppercase">
Certificate Profiles
</span>
{pendingProfileIds.length > 0 && (
<button
type="button"
onClick={handleClearProfiles}
- className="cursor-pointer text-xs text-primary hover:text-primary-600"
+ className="cursor-pointer text-xs text-project hover:text-project"
>
Clear
</button>
@@ -329,7 +329,7 @@ export const CertificateRequestsSection = ({
})) || []
}
placeholder="Select certificate profiles..."
- className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
+ className="w-full border-border-control bg-surface-hover text-foreground-soft"
isMulti
isLoading={!profilesData}
maxMenuHeight={120}
@@ -338,12 +338,14 @@ export const CertificateRequestsSection = ({
<div className="space-y-2">
<div className="flex items-center justify-between">
- <label className="text-xs font-medium text-bunker-300 uppercase">Events</label>
+ <label className="text-xs font-medium text-label-secondary uppercase">
+ Events
+ </label>
{pendingFilters.status && (
<button
type="button"
onClick={handleClearStatus}
- className="cursor-pointer text-xs text-primary hover:text-primary-600"
+ className="cursor-pointer text-xs text-project hover:text-project"
>
Clear
</button>
@@ -358,7 +360,7 @@ export const CertificateRequestsSection = ({
}));
}}
placeholder="All events"
- className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
+ className="w-full border-border-control bg-surface-hover text-foreground-soft"
position="popper"
dropdownContainerClassName="max-w-none"
>
@@ -414,7 +416,7 @@ export const CertificateRequestsSection = ({
))}
{!isLoading && isError && (
<TableRow>
- <TableCell colSpan={6} className="py-8 text-center text-red-400">
+ <TableCell colSpan={6} className="py-8 text-center text-danger">
Failed to load certificate requests. Please try again.
</TableCell>
</TableRow>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/ActiveFilterChips.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/ActiveFilterChips.tsx
index 704a1d3e9e..c4efdf06a8 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/ActiveFilterChips.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/ActiveFilterChips.tsx
@@ -27,7 +27,7 @@ const FilterChip = ({
<Badge variant="neutral" className="gap-1.5 pr-1" asChild>
<button type="button" onClick={onRemove}>
<span>{label}</span>
- <XIcon className="size-3 text-muted transition-colors hover:text-red-400" />
+ <XIcon className="size-3 text-muted transition-colors hover:text-danger" />
</button>
</Badge>
);
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateContent.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateContent.tsx
index 457129222b..1f2d80b010 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateContent.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateContent.tsx
@@ -45,7 +45,7 @@ export const CertificateContent = ({
return (
<div>
<h2 className="mb-4">Serial Number</h2>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all">{serialNumber}</p>
<Tooltip content={copyTextSerialNumber}>
<IconButton
@@ -91,7 +91,7 @@ export const CertificateContent = ({
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{certificate}</p>
</div>
{certificateChain && (
@@ -126,7 +126,7 @@ export const CertificateContent = ({
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{certificateChain}</p>
</div>
</>
@@ -163,7 +163,7 @@ export const CertificateContent = ({
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{privateKey}</p>
</div>
</>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateExportModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateExportModal.tsx
index 8fc59e0130..93d86d4315 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateExportModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateExportModal.tsx
@@ -169,7 +169,7 @@ export const CertificateExportModal = ({ popUp, handlePopUpToggle, onFormatSelec
<ModalContent title="Export Certificate">
<form onSubmit={handleSubmit(onFormSubmit)}>
<div className="space-y-4">
- <p className="text-sm text-gray-400">
+ <p className="text-sm text-muted-cool">
Choose the format for exporting your certificate
</p>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
index 78a3ca5fcf..ccf18e27b2 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
@@ -765,7 +765,7 @@ export const CertificateIssuanceModal = ({
{currentStepKey !== "profile" && (actualSelectedProfile || profileId) && (
<div className="space-y-4">
{currentStepKey === "options" && profileId && isAdcsProfile && (
- <p className="mb-4 text-xs text-mineshaft-400">{EXTERNAL_CA_TEMPLATE_HINT}</p>
+ <p className="mb-4 text-xs text-muted">{EXTERNAL_CA_TEMPLATE_HINT}</p>
)}
{(currentStepKey === "subject" || currentStepKey === "csr") && digicertProductNameId && (
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManagePkiSyncsModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManagePkiSyncsModal.tsx
index ea7dba657f..fad145836b 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManagePkiSyncsModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManagePkiSyncsModal.tsx
@@ -217,7 +217,7 @@ export const CertificateManagePkiSyncsModal = ({
<div className="mt-4 max-h-96 overflow-y-auto">
{isPending && (
<div className="flex h-32 items-center justify-center">
- <div className="text-bunker-300">Loading PKI syncs...</div>
+ <div className="text-label-secondary">Loading PKI syncs...</div>
</div>
)}
{!isPending && pkiSyncs.length === 0 && (
@@ -227,7 +227,7 @@ export const CertificateManagePkiSyncsModal = ({
<button
type="button"
onClick={handleNavigateToPkiSyncs}
- className="cursor-pointer underline hover:text-mineshaft-300"
+ className="cursor-pointer underline hover:text-label"
>
PKI sync
</button>{" "}
@@ -263,7 +263,7 @@ export const CertificateManagePkiSyncsModal = ({
className={
managesItsOwnCertificates
? "opacity-60"
- : "cursor-pointer hover:bg-mineshaft-700"
+ : "cursor-pointer hover:bg-surface-hover"
}
onClick={() => !managesItsOwnCertificates && handleSyncToggle(sync.id)}
>
@@ -280,9 +280,7 @@ export const CertificateManagePkiSyncsModal = ({
{sync.name}
</div>
{unavailableReason && (
- <div className="truncate text-xs text-mineshaft-400">
- {unavailableReason}
- </div>
+ <div className="truncate text-xs text-muted">{unavailableReason}</div>
)}
</Td>
<Td className="w-1/2 max-w-0">
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManageRenewalModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManageRenewalModal.tsx
index b042fde45a..dd10bb367c 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManageRenewalModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateManageRenewalModal.tsx
@@ -209,17 +209,17 @@ export const CertificateManageRenewalModal = ({ popUp, handlePopUpToggle }: Prop
>
<ModalContent title={getModalTitle()}>
{hasRenewalError && (
- <div className="mb-6 rounded-md border border-red-600 bg-red-900/20 p-4">
+ <div className="mb-6 rounded-md border border-danger bg-danger/20 p-4">
<div className="flex items-start gap-3">
- <div className="mt-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-600">
+ <div className="mt-1 flex h-5 w-5 items-center justify-center rounded-full bg-danger">
<span className="text-xs font-bold text-white">!</span>
</div>
<div className="flex-1">
- <h3 className="font-medium text-red-400">Automatic Renewal Failed</h3>
- <p className="mt-1 text-sm text-red-300">
+ <h3 className="font-medium text-danger">Automatic Renewal Failed</h3>
+ <p className="mt-1 text-sm text-danger">
The last automatic renewal attempt failed: {certificateData.renewalError}
</p>
- <p className="mt-2 text-sm text-red-300">
+ <p className="mt-2 text-sm text-danger">
You can reconfigure auto-renewal below or disable it completely.
</p>
</div>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalConfigModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalConfigModal.tsx
index 46e06bcdb7..6c0e163112 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalConfigModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalConfigModal.tsx
@@ -92,16 +92,16 @@ export const CertificateRenewalConfigModal = ({ popUp, handlePopUpToggle }: Prop
<ModalContent title={`Configure Auto-Renewal: ${certificateData?.commonName || ""}`}>
<form onSubmit={handleSubmit(onSubmit)}>
<div className="mb-4">
- <p className="mb-4 text-sm text-mineshaft-300">
+ <p className="mb-4 text-sm text-label">
Configure when this certificate should be automatically renewed. The certificate will
be renewed when it has the specified number of days remaining before expiration.
</p>
- <div className="mb-4 rounded border bg-mineshaft-800 p-3">
- <p className="text-sm text-mineshaft-300">
+ <div className="mb-4 rounded border bg-surface-raised p-3">
+ <p className="text-sm text-label">
<strong>Certificate TTL:</strong> {certificateData?.ttlDays} days
</p>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
<strong>Current Setting:</strong>{" "}
{certificateData?.renewBeforeDays
? `${certificateData.renewBeforeDays} days before expiration`
@@ -134,8 +134,8 @@ export const CertificateRenewalConfigModal = ({ popUp, handlePopUpToggle }: Prop
/>
{renewBeforeDays && certificateData?.ttlDays && (
- <div className="mt-2 rounded bg-primary-900/20 p-2">
- <p className="text-sm text-primary-300">
+ <div className="mt-2 rounded bg-project/20 p-2">
+ <p className="text-sm text-project">
{renewBeforeDays >= certificateData.ttlDays
? "⚠️ Renewal days must be less than certificate TTL"
: `✓ Certificate will be renewed ${renewBeforeDays} days before expiration`}
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalDisableModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalDisableModal.tsx
index e4089f092f..7c912751a7 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalDisableModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateRenewalDisableModal.tsx
@@ -49,11 +49,11 @@ export const CertificateRenewalDisableModal = ({ popUp, handlePopUpToggle }: Pro
>
<ModalContent title={`Disable Auto-Renewal: ${certificateData?.commonName || ""}`}>
<div className="mb-4">
- <p className="mb-3 text-sm text-mineshaft-300">
+ <p className="mb-3 text-sm text-label">
Are you sure you want to disable auto-renewal for this certificate?
</p>
- <div className="rounded border border-yellow-700/50 bg-yellow-900/20 p-3">
- <p className="text-sm text-yellow-300">
+ <div className="rounded border border-warning/50 bg-warning/20 p-3">
+ <p className="text-sm text-warning">
<strong>Warning:</strong> Once disabled, this certificate will not be automatically
renewed and may expire without notice. You can re-enable auto-renewal at any time.
</p>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateEnrollmentModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateEnrollmentModal.tsx
index 849cbe8321..e0df49061b 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateEnrollmentModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateEnrollmentModal.tsx
@@ -163,7 +163,11 @@ export const CertificateTemplateEnrollmentModal = ({ popUp, handlePopUpToggle }:
/>
{data && (
<FormControl label="EST Label">
- <Input value={data.certificateTemplateId} isDisabled className="bg-white/[0.07]" />
+ <Input
+ value={data.certificateTemplateId}
+ isDisabled
+ className="bg-foreground-inverse/[0.07]"
+ />
</FormControl>
)}
<Controller
@@ -198,7 +202,7 @@ export const CertificateTemplateEnrollmentModal = ({ popUp, handlePopUpToggle }:
<TextArea
{...field}
isDisabled={disableBootstrapCertValidation}
- className="min-h-60 border-none bg-mineshaft-900 text-gray-400"
+ className="min-h-60 border-none bg-surface-base text-muted-cool"
reSize="none"
/>
</FormControl>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateModal.tsx
index b53160d185..29cb457726 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplateModal.tsx
@@ -224,7 +224,7 @@ export const CertificateTemplateModal = ({ popUp, handlePopUpToggle, caId }: Pro
<form onSubmit={handleSubmit(onFormSubmit)}>
{certTemplate && (
<FormControl label="Certificate Template ID">
- <Input value={certTemplate.id} isDisabled className="bg-white/[0.07]" />
+ <Input value={certTemplate.id} isDisabled className="bg-foreground-inverse/[0.07]" />
</FormControl>
)}
<Controller
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx
index f5261b93c2..472ac7f4f6 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx
@@ -55,9 +55,9 @@ export const CertificateTemplatesSection = ({ caId }: Props) => {
};
return (
- <div className="mt-4 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">Certificate Templates</h3>
+ <div className="mt-4 rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">Certificate Templates</h3>
<ProjectPermissionCan
I={ProjectPermissionPkiTemplateActions.Create}
a={ProjectPermissionSub.CertificateTemplates}
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesTable.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesTable.tsx
index c366183099..0990d9b78f 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesTable.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesTable.tsx
@@ -66,7 +66,7 @@ export const CertificateTemplatesTable = ({ handlePopUpOpen, caId }: Props) => {
<Td className="flex justify-end">
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<FontAwesomeIcon size="sm" icon={faEllipsis} />
</Tooltip>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
index 3c2e337a5b..bb86685e2b 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
@@ -275,7 +275,7 @@ const FilterRow = ({
size="xs"
onClick={onRemove}
aria-label="Remove filter"
- className="mt-1.5 shrink-0 hover:text-red-400"
+ className="mt-1.5 shrink-0 hover:text-danger"
>
<Trash2Icon />
</IconButton>
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
index 584611d236..9c87f4d077 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/CodeSigningPage.tsx
@@ -16,7 +16,7 @@ export const CodeSigningPage = () => {
const [isCreateOpen, setIsCreateOpen] = useState(false);
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Code Signing" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/ApprovalPolicyStep.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/ApprovalPolicyStep.tsx
index dc1608f877..3fe4126622 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/ApprovalPolicyStep.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/ApprovalPolicyStep.tsx
@@ -103,8 +103,8 @@ export const ApprovalPolicyStep = ({
<div>
<div className="mb-4 flex items-center justify-between gap-4">
<div className="min-w-0">
- <div className="text-sm font-semibold text-mineshaft-100">Approves</div>
- <p className="text-xs text-mineshaft-400">
+ <div className="text-sm font-semibold text-foreground">Approves</div>
+ <p className="text-xs text-muted">
Approvals run in order. Each step needs the listed number of approvers to approve.
</p>
</div>
@@ -126,10 +126,10 @@ export const ApprovalPolicyStep = ({
return (
<div
key={s.key}
- className="rounded-md border border-mineshaft-700 bg-mineshaft-900/40 p-4"
+ className="rounded-md border border-border-subtle bg-surface-base/40 p-4"
>
<div className="mb-4 flex items-center gap-3">
- <div className="flex h-6 w-6 items-center justify-center rounded-full border border-border bg-mineshaft-800 text-[11px] font-medium text-muted">
+ <div className="flex h-6 w-6 items-center justify-center rounded-full border border-border bg-surface-raised text-[11px] font-medium text-muted">
{idx + 1}
</div>
<Input
@@ -144,7 +144,7 @@ export const ApprovalPolicyStep = ({
onClick={() => removeStep(s.key)}
aria-label="Remove step"
>
- <XIcon className="h-3.5 w-3.5 text-mineshaft-300" />
+ <XIcon className="h-3.5 w-3.5 text-label" />
</Button>
</div>
@@ -198,18 +198,18 @@ export const ApprovalPolicyStep = ({
})}
</div>
- <div className="mt-6 text-sm font-semibold text-mineshaft-100">What an approval allows</div>
- <p className="mb-3 text-xs text-mineshaft-300">
+ <div className="mt-6 text-sm font-semibold text-foreground">What an approval allows</div>
+ <p className="mb-3 text-xs text-label">
Once approval is granted, define how it can be used. At least one limit is required.
</p>
- <div className="overflow-hidden rounded-md border border-mineshaft-700 bg-mineshaft-900/40">
- <div className="grid grid-cols-[1fr_auto] items-center gap-4 border-b border-mineshaft-800 px-4 py-3">
+ <div className="overflow-hidden rounded-md border border-border-subtle bg-surface-base/40">
+ <div className="grid grid-cols-[1fr_auto] items-center gap-4 border-b border-border-faint px-4 py-3">
<div className="flex min-w-0 items-start gap-3">
- <ShieldIcon className="mt-0.5 h-4 w-4 shrink-0 text-mineshaft-300" />
+ <ShieldIcon className="mt-0.5 h-4 w-4 shrink-0 text-label" />
<div className="min-w-0">
- <div className="text-sm font-medium text-mineshaft-100">Signatures per approval</div>
- <p className="text-xs text-mineshaft-400">
+ <div className="text-sm font-medium text-foreground">Signatures per approval</div>
+ <p className="text-xs text-muted">
How many signatures one approval is good for. Leave empty for unlimited.
</p>
</div>
@@ -230,10 +230,10 @@ export const ApprovalPolicyStep = ({
</div>
<div className="grid grid-cols-[1fr_auto] items-center gap-4 px-4 py-3">
<div className="flex min-w-0 items-start gap-3">
- <ClockIcon className="mt-0.5 h-4 w-4 shrink-0 text-mineshaft-300" />
+ <ClockIcon className="mt-0.5 h-4 w-4 shrink-0 text-label" />
<div className="min-w-0">
- <div className="text-sm font-medium text-mineshaft-100">Signing window</div>
- <p className="text-xs text-mineshaft-400">
+ <div className="text-sm font-medium text-foreground">Signing window</div>
+ <p className="text-xs text-muted">
The longest signing window a request can ask for. The window runs from the moment
the request is approved.
</p>
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CertificateStep.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CertificateStep.tsx
index 091e42d2c5..f2975ae585 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CertificateStep.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CertificateStep.tsx
@@ -121,7 +121,7 @@ export const CertificateStep = ({ form, caOptions, isCasLoading }: CertificateSt
<Link
to={ROUTE_PATHS.CertManager.CertificateAuthoritiesPage.path}
params={{ orgId, projectId }}
- className="text-primary underline hover:text-primary/80"
+ className="text-project underline hover:text-project/80"
>
Create one first.
</Link>
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx
index a011143dbb..e54b9b2211 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx
@@ -360,11 +360,11 @@ export const CreateSignerWizard = ({ isOpen, onOpenChange, projectId }: Props) =
<PenTool className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
Create Signer
<DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.create} />
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
A code-signing certificate with the members and approval policy that govern its
use.
</p>
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/MembersStep.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/MembersStep.tsx
index 9f65cf92fd..00a74d4086 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/MembersStep.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/MembersStep.tsx
@@ -40,7 +40,7 @@ type MembersStepProps = {
const KindIcon = ({ kind }: { kind: MemberKind }) => {
// eslint-disable-next-line no-nested-ternary
const Icon = kind === "user" ? UserIcon : kind === "identity" ? HardDriveIcon : UsersIcon;
- return <Icon className="h-3.5 w-3.5 text-mineshaft-300" />;
+ return <Icon className="h-3.5 w-3.5 text-label" />;
};
export const MembersStep = ({
diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx
index 85da4a78a1..8f129f68a8 100644
--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx
+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx
@@ -138,7 +138,7 @@ export const SignersTable = ({ projectId, onCreateSigner }: Props) => {
signers.map((signer) => (
<TableRow
key={signer.id}
- className="cursor-pointer hover:bg-mineshaft-700"
+ className="cursor-pointer hover:bg-surface-hover"
onClick={() =>
navigate({
to: "/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId",
diff --git a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
index da5a963402..36593c7106 100644
--- a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
+++ b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
@@ -58,11 +58,11 @@ export const DashboardPage = () => {
return <PageLoader />;
}
return (
- <div className="h-full bg-bunker-800">
+ <div className="h-full bg-page">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Dashboard" })}</title>
</Helmet>
- <div className="mx-auto flex flex-col text-white">
+ <div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
index 7db042b2f8..af8899cc53 100644
--- a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/DiscoveryDetailsByIDPage.tsx
@@ -104,7 +104,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
backLink={
diff --git a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryDetailsSection.tsx b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryDetailsSection.tsx
index 7043cc359c..c79be876e2 100644
--- a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryDetailsSection.tsx
@@ -53,7 +53,7 @@ export const DiscoveryDetailsSection = ({ discovery }: Props) => {
{discovery.lastScanMessage && (
<Detail>
<DetailLabel>Last Scan Result</DetailLabel>
- <DetailValue className="text-sm text-yellow-500">
+ <DetailValue className="text-sm text-warning">
{discovery.lastScanMessage}
</DetailValue>
</Detail>
diff --git a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryScanLogsSection.tsx b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryScanLogsSection.tsx
index 3ffe843078..aacfe9cf09 100644
--- a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryScanLogsSection.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryScanLogsSection.tsx
@@ -139,7 +139,7 @@ export const DiscoveryScanLogsSection = ({
</div>
}
>
- <span className="cursor-help truncate text-yellow-500">
+ <span className="cursor-help truncate text-warning">
{scan.errorMessage.length > 20
? `${scan.errorMessage.substring(0, 20)}...`
: scan.errorMessage}
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
index a3d5bd1466..9aa36a2bfb 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/DiscoveryPage.tsx
@@ -43,7 +43,7 @@ export const DiscoveryPage = () => {
};
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Discovery" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobModal.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobModal.tsx
index d31e627d7b..868423bddc 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobModal.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobModal.tsx
@@ -430,7 +430,7 @@ export const DiscoveryJobModal = ({ isOpen, onClose, projectId, discovery }: Pro
{!isInfisicalCloud() && (
<p>
Alternatively, you can set the{" "}
- <span className="font-medium text-bunker-200">
+ <span className="font-medium text-foreground-soft">
ALLOW_INTERNAL_IP_CONNECTIONS
</span>{" "}
environment variable to <span className="font-medium">true</span> on your
@@ -463,9 +463,9 @@ export const DiscoveryJobModal = ({ isOpen, onClose, projectId, discovery }: Pro
<FormControl>
<Switch
id="auto-scan"
- className="mr-2 ml-0 bg-mineshaft-400/80 shadow-inner data-[state=checked]:bg-green/80"
+ className="mr-2 ml-0 bg-muted/80 shadow-inner data-[state=checked]:bg-success/80"
containerClassName="flex-row-reverse w-fit"
- thumbClassName="bg-mineshaft-800"
+ thumbClassName="bg-surface-raised"
isChecked={field.value}
onCheckedChange={field.onChange}
>
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
index c39891280e..5bcdea10fc 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx
@@ -155,7 +155,7 @@ export const DiscoveryJobsTab = ({ projectId }: Props) => {
<HoverCardTrigger>
<Tag>+{remainingPorts.length}</Tag>
</HoverCardTrigger>
- <HoverCardContent className="border border-gray-700 bg-mineshaft-800 p-3">
+ <HoverCardContent className="border border-border-cool bg-surface-raised p-3">
<div className="flex flex-wrap gap-1">
{remainingPorts.map((port) => (
<Tag key={port}>{port}</Tag>
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/components/EditInstallationModal.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/components/EditInstallationModal.tsx
index 43a10af845..f43386cc39 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/EditInstallationModal.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/EditInstallationModal.tsx
@@ -63,8 +63,8 @@ export const EditInstallationModal = ({ isOpen, onClose, projectId, installation
<Modal isOpen={isOpen} onOpenChange={(open) => !open && onClose()}>
<ModalContent title="Edit Installation" subTitle="Update the name for this installation">
<form onSubmit={handleSubmit(onSubmit)}>
- <div className="mb-4 rounded bg-mineshaft-700 p-3">
- <p className="text-sm text-mineshaft-300">
+ <div className="mb-4 rounded bg-surface-hover p-3">
+ <p className="text-sm text-label">
<span className="font-medium">Location:</span>{" "}
{installation.locationDetails.fqdn ||
installation.locationDetails.ipAddress ||
diff --git a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
index c20f6a6923..d6f1bfdc76 100644
--- a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/HsmConnectorDetailsByIDPage.tsx
@@ -71,7 +71,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{connector && (
<ProjectPermissionCan
renderGuardBanner
diff --git a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/components/HsmConnectorLinkedResourcesSection.tsx b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/components/HsmConnectorLinkedResourcesSection.tsx
index 1151349b35..ed3e4469f0 100644
--- a/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/components/HsmConnectorLinkedResourcesSection.tsx
+++ b/frontend/src/pages/cert-manager/HsmConnectorDetailsByIDPage/components/HsmConnectorLinkedResourcesSection.tsx
@@ -85,7 +85,9 @@ export const HsmConnectorLinkedResourcesSection = ({ connectorId }: Props) => {
)}
{!isPending && linkedCas.length > 0 && (
<div className="mb-6">
- <p className="mb-2 text-sm font-medium text-mineshaft-200">Certificate authorities</p>
+ <p className="mb-2 text-sm font-medium text-foreground-secondary">
+ Certificate authorities
+ </p>
<Table>
<TableHeader>
<TableRow>
@@ -126,7 +128,7 @@ export const HsmConnectorLinkedResourcesSection = ({ connectorId }: Props) => {
{!isPending && linked.length > 0 && (
<>
{linkedCas.length > 0 && (
- <p className="mb-2 text-sm font-medium text-mineshaft-200">Certificates</p>
+ <p className="mb-2 text-sm font-medium text-foreground-secondary">Certificates</p>
)}
<Table>
<TableHeader>
@@ -141,7 +143,7 @@ export const HsmConnectorLinkedResourcesSection = ({ connectorId }: Props) => {
{linked.map((c) => (
<TableRow
key={c.id}
- className="cursor-pointer hover:bg-mineshaft-700"
+ className="cursor-pointer hover:bg-surface-hover"
onClick={() => openCert(c.id)}
>
<TableCell className="font-medium">{c.commonName}</TableCell>
diff --git a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
index 4c6e54a759..88fcd21c12 100644
--- a/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/InstallationDetailsByIDPage/InstallationDetailsByIDPage.tsx
@@ -73,7 +73,7 @@ const Page = () => {
: "Installation");
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
backLink={
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
index d5b0090b6d..23ddcc9b7c 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -45,7 +45,7 @@ export const IntegrationsListPage = () => {
<meta property="og:title" content="Manage your certificates in seconds" />
<meta name="og:description" content="Sync and manage PKI certificates across services" />
</Helmet>
- <div className="relative mx-auto max-w-8xl pb-12 text-white">
+ <div className="relative mx-auto max-w-8xl pb-12 text-foreground-inverse">
<div className="mb-8 flex flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncRow.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncRow.tsx
index fa4ba9c3e2..f9ff6829d3 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncRow.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncRow.tsx
@@ -28,6 +28,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
+ ProviderIcon,
TableCell,
TableRow,
Tooltip,
@@ -133,9 +134,9 @@ export const PkiSyncRow = ({
key={`sync-${id}`}
>
<TableCell>
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} sync`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="w-5 min-w-5"
/>
</TableCell>
@@ -152,12 +153,14 @@ export const PkiSyncRow = ({
</Tooltip>
)}
{!applicationId && (
- <span className="ml-2 rounded bg-mineshaft-600 px-2 py-0.5 text-[10px] tracking-wide text-mineshaft-200 uppercase">
+ <span className="ml-2 rounded bg-surface-active px-2 py-0.5 text-[10px] tracking-wide text-foreground-secondary uppercase">
Legacy
</span>
)}
</div>
- <p className="truncate text-xs leading-4 text-bunker-300">{destinationDetails.name}</p>
+ <p className="truncate text-xs leading-4 text-label-secondary">
+ {destinationDetails.name}
+ </p>
</div>
</TableCell>
<PkiSyncDestinationCol pkiSync={pkiSync} />
@@ -228,7 +231,7 @@ export const PkiSyncRow = ({
<RotateCwIcon />
Trigger Sync
</span>
- <InfoIcon className="size-3.5 text-bunker-300" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent side="left" sideOffset={20}>
@@ -251,7 +254,7 @@ export const PkiSyncRow = ({
<DownloadIcon />
Import Certificates
</span>
- <InfoIcon className="size-3.5 text-bunker-300" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent
@@ -276,7 +279,7 @@ export const PkiSyncRow = ({
<EraserIcon />
Remove Certificates
</span>
- <InfoIcon className="size-3.5 text-bunker-300" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncsTable.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncsTable.tsx
index 0592d1beae..aaf9eb2a04 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncsTable.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncTable/PkiSyncsTable.tsx
@@ -30,6 +30,7 @@ import {
InputGroupAddon,
InputGroupInput,
Pagination,
+ ProviderIcon,
Table,
TableBody,
TableHead,
@@ -322,18 +323,14 @@ export const PkiSyncsTable = ({ pkiSyncs, applicationName }: Props) => {
key={destination}
>
<div className="flex items-center gap-2">
- <img
- alt={`${name} integration`}
- src={`/images/integrations/${image}`}
- className="h-4 w-4"
- />
+ <ProviderIcon alt={`${name} integration`} icon={image} className="h-4 w-4" />
<span>{name}</span>
</div>
</DropdownMenuCheckboxItem>
);
})
) : (
- <DropdownMenuLabel className="font-normal text-mineshaft-400">
+ <DropdownMenuLabel className="font-normal text-muted">
No Certificate Syncs Configured
</DropdownMenuLabel>
)}
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
index e7a293ae8b..94ebeef1e9 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
@@ -91,16 +91,16 @@ export const PkiSyncsTab = () => {
return (
<>
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div>
<div className="flex items-start gap-1">
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Certificate Syncs</p>
+ <p className="text-xl font-medium text-foreground">Certificate Syncs</p>
<DocumentationLinkBadge href={PkiDocsUrls.applications.syncs.overview} />
</div>
</div>
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Existing project-level syncs remain editable. Create new syncs inside an Application.
</p>
</div>
diff --git a/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx b/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
index c4207c04f6..d93aafdbca 100644
--- a/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
+++ b/frontend/src/pages/cert-manager/InventoryPage/InventoryPage.tsx
@@ -92,7 +92,7 @@ export const InventoryPage = () => {
}
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Inventory" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
index ad8356570f..fbae7aaf44 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
@@ -72,7 +72,7 @@ export const PkiCollectionPage = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{data && (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
@@ -94,7 +94,7 @@ export const PkiCollectionPage = () => {
>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<Button variant="outline_bg">More</Button>
</Tooltip>
@@ -129,7 +129,7 @@ export const PkiCollectionPage = () => {
<DropdownMenuItem
className={twMerge(
isAllowed
- ? "hover:bg-red-500! hover:text-white!"
+ ? "hover:bg-danger! hover:text-white!"
: "pointer-events-none cursor-not-allowed opacity-50"
)}
onClick={() =>
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionDetailsSection.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionDetailsSection.tsx
index 0f82209c9f..d30b8290d9 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionDetailsSection.tsx
@@ -21,9 +21,9 @@ export const PkiCollectionDetailsSection = ({ collectionId, handlePopUpOpen }: P
const { data: pkiCollection } = useGetPkiCollectionById(collectionId);
return pkiCollection ? (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">Collection Details</h3>
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">Collection Details</h3>
<ProjectPermissionCan
I={ProjectPermissionActions.Edit}
a={ProjectPermissionSub.PkiCollections}
@@ -51,9 +51,9 @@ export const PkiCollectionDetailsSection = ({ collectionId, handlePopUpOpen }: P
</div>
<div className="pt-4">
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">PKI Collection ID</p>
+ <p className="text-sm font-medium text-label">PKI Collection ID</p>
<div className="group flex align-top">
- <p className="text-sm text-mineshaft-300">{pkiCollection.id}</p>
+ <p className="text-sm text-label">{pkiCollection.id}</p>
<div className="opacity-0 transition-opacity duration-300 group-hover:opacity-100">
<Tooltip content={copyTextId}>
<IconButton
@@ -72,12 +72,12 @@ export const PkiCollectionDetailsSection = ({ collectionId, handlePopUpOpen }: P
</div>
</div>
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Name</p>
- <p className="text-sm text-mineshaft-300">{pkiCollection.name}</p>
+ <p className="text-sm font-medium text-label">Name</p>
+ <p className="text-sm text-label">{pkiCollection.name}</p>
</div>
<div>
- <p className="text-sm font-medium text-mineshaft-300">Description</p>
- <p className="text-sm text-mineshaft-300">{pkiCollection.description}</p>
+ <p className="text-sm font-medium text-label">Description</p>
+ <p className="text-sm text-label">{pkiCollection.description}</p>
</div>
</div>
</div>
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionItemsSection.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionItemsSection.tsx
index ea787611c3..14c9668a12 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionItemsSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/components/PkiCollectionItemsSection.tsx
@@ -45,9 +45,9 @@ export const PkiCollectionItemsSection = ({ collectionId, type }: Props) => {
const sectionName = type === PkiItemType.CA ? "Certificate Authorities" : "Certificates";
return pkiCollection ? (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">{sectionName}</h3>
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">{sectionName}</h3>
<IconButton
ariaLabel="copy icon"
variant="plain"
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
index 062b7c374d..d95a540249 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
@@ -72,7 +72,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{data && (
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
@@ -94,7 +94,7 @@ const Page = () => {
>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<Button variant="outline_bg">More</Button>
</Tooltip>
@@ -109,7 +109,7 @@ const Page = () => {
<DropdownMenuItem
className={twMerge(
isAllowed
- ? "hover:bg-red-500! hover:text-white!"
+ ? "hover:bg-danger! hover:text-white!"
: "pointer-events-none cursor-not-allowed opacity-50"
)}
onClick={() =>
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesSection.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesSection.tsx
index 11c39bd76c..90a8402ae9 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesSection.tsx
@@ -11,9 +11,9 @@ export const PkiSubscriberCertificatesSection = ({ subscriberName }: Props) => {
const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["revokeCertificate"] as const);
return (
- <div className="h-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">Certificates</h3>
+ <div className="h-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">Certificates</h3>
</div>
<div className="py-4">
<PkiSubscriberCertificatesTable
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx
index 60a8065df9..e05c8e017f 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx
@@ -147,7 +147,7 @@ export const PkiSubscriberCertificatesTable = ({ subscriberName, handlePopUpOpen
return (
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<FontAwesomeIcon size="lg" icon={faEllipsis} />
</Tooltip>
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx
index d7b687fd95..4613ce034b 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx
@@ -100,9 +100,9 @@ export const PkiSubscriberDetailsSection = ({ subscriberName, handlePopUpOpen }:
);
return pkiSubscriber ? (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">PKI Subscriber Details</h3>
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">PKI Subscriber Details</h3>
<ProjectPermissionCan
I={ProjectPermissionPkiSubscriberActions.Edit}
a={ProjectPermissionSub.PkiSubscribers}
@@ -131,9 +131,9 @@ export const PkiSubscriberDetailsSection = ({ subscriberName, handlePopUpOpen }:
</div>
<div className="pt-4">
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">PKI Subscriber ID</p>
+ <p className="text-sm font-medium text-label">PKI Subscriber ID</p>
<div className="group flex align-top">
- <p className="text-sm text-mineshaft-300">{pkiSubscriber.id}</p>
+ <p className="text-sm text-label">{pkiSubscriber.id}</p>
<div className="opacity-0 transition-opacity duration-300 group-hover:opacity-100">
<Tooltip content={copyTextId}>
<IconButton
@@ -152,31 +152,29 @@ export const PkiSubscriberDetailsSection = ({ subscriberName, handlePopUpOpen }:
</div>
</div>
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Name</p>
- <p className="text-sm text-mineshaft-300">{pkiSubscriber.name}</p>
+ <p className="text-sm font-medium text-label">Name</p>
+ <p className="text-sm text-label">{pkiSubscriber.name}</p>
</div>
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Status</p>
- <p className="text-sm text-mineshaft-300">
- {pkiSubscriberStatusToNameMap[pkiSubscriber.status]}
- </p>
+ <p className="text-sm font-medium text-label">Status</p>
+ <p className="text-sm text-label">{pkiSubscriberStatusToNameMap[pkiSubscriber.status]}</p>
</div>
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Common Name</p>
- <p className="text-sm text-mineshaft-300">{pkiSubscriber.commonName}</p>
+ <p className="text-sm font-medium text-label">Common Name</p>
+ <p className="text-sm text-label">{pkiSubscriber.commonName}</p>
</div>
{pkiSubscriber.lastOperationAt && (
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Last Operation (Local Time)</p>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm font-medium text-label">Last Operation (Local Time)</p>
+ <p className="text-sm text-label">
{new Date(pkiSubscriber.lastOperationAt).toLocaleString()}
</p>
</div>
)}
{pkiSubscriber.lastOperationStatus === SubscriberOperationStatus.FAILED && (
<div className="mb-4">
- <GenericFieldLabel labelClassName="text-red" label="Last Operation Status">
- <p className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">
+ <GenericFieldLabel labelClassName="text-danger" label="Last Operation Status">
+ <p className="rounded-sm bg-surface-active p-2 text-xs break-words">
{pkiSubscriber.lastOperationMessage}
</p>
</GenericFieldLabel>
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
index 5abab8bc06..55275f00b0 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/PkiSubscribersPage.tsx
@@ -13,8 +13,8 @@ export const PkiSubscribersPage = () => {
<Helmet>
<title>{t("common.head-title", { title: "PKI Subscribers" })}</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col justify-between text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberModal.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberModal.tsx
index ee19d91e59..bd3119835e 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberModal.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberModal.tsx
@@ -403,7 +403,11 @@ export const PkiSubscriberModal = ({ popUp, handlePopUpToggle }: Props) => {
<TabPanel value={FormTab.Configuration}>
{pkiSubscriber && (
<FormControl label="Subscriber ID">
- <Input value={pkiSubscriber.id} isDisabled className="bg-white/[0.07]" />
+ <Input
+ value={pkiSubscriber.id}
+ isDisabled
+ className="bg-foreground-inverse/[0.07]"
+ />
</FormControl>
)}
<Controller
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberSection.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberSection.tsx
index a71ead0b69..1f9181b744 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscriberSection.tsx
@@ -69,16 +69,16 @@ export const PkiSubscriberSection = () => {
const subscriberName = subscriberStatusData?.subscriberName || "";
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex justify-between">
- <p className="text-xl font-medium text-mineshaft-100">Subscribers</p>
+ <p className="text-xl font-medium text-foreground">Subscribers</p>
<div className="flex w-full justify-end">
<a
target="_blank"
rel="noopener noreferrer"
href="https://infisical.com/docs/documentation/platform/pki/subscribers"
>
- <span className="flex w-max cursor-pointer items-center rounded-md border border-mineshaft-500 bg-mineshaft-600 px-4 py-2 text-mineshaft-200 duration-200 hover:border-primary/40 hover:bg-primary/10 hover:text-white">
+ <span className="flex w-max cursor-pointer items-center rounded-md border border-border-strong bg-surface-active px-4 py-2 text-foreground-secondary duration-200 hover:border-project/40 hover:bg-project/10 hover:text-foreground-inverse">
Documentation{" "}
<FontAwesomeIcon
icon={faArrowUpRightFromSquare}
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
index 5b61dd61d0..71512f6ac5 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
@@ -73,7 +73,7 @@ export const PkiSubscribersTable = ({ handlePopUpOpen }: Props) => {
data.map((subscriber) => {
return (
<Tr
- className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
+ className="h-10 cursor-pointer transition-colors duration-100 hover:bg-surface-hover"
key={`pki-subscriber-${subscriber.id}`}
onClick={() =>
navigate({
@@ -96,7 +96,7 @@ export const PkiSubscribersTable = ({ handlePopUpOpen }: Props) => {
<Td className="text-right align-middle">
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<FontAwesomeIcon size="lg" icon={faEllipsis} />
</Tooltip>
diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
index 172d79d72d..604a59a9cb 100644
--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/PkiSyncDetailsByIDPage.tsx
@@ -20,7 +20,8 @@ import {
EmptyHeader,
EmptyMedia,
EmptyTitle,
- PageLoader
+ PageLoader,
+ ProviderIcon
} from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { PKI_SYNC_MAP } from "@app/helpers/pkiSyncs";
@@ -107,24 +108,26 @@ const PageContent = () => {
return (
<>
- <div className="container mx-auto flex flex-col justify-between font-inter text-white">
+ <div className="container mx-auto flex flex-col justify-between bg-page font-inter text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<button
type="button"
onClick={handleBack}
- className="mb-4 flex w-fit cursor-pointer items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit cursor-pointer items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-muted/80"
>
<ChevronLeftIcon className="size-4" />
{applicationName ? "Back to Application" : "Certificate Syncs"}
</button>
<div className="mb-6 flex w-full items-center gap-3">
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} sync`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="mt-1.5 ml-1 w-12"
/>
<div className="min-w-0">
- <p className="truncate text-2xl font-medium text-white">{pkiSync.name}</p>
+ <p className="truncate text-2xl font-medium text-foreground-inverse">
+ {pkiSync.name}
+ </p>
<p className="mt-1 leading-3 text-accent">
{pkiSync.description || `${destinationDetails.name} PKI Sync`}
</p>
diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
index 8cf83b9d26..f03ea1a58b 100644
--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
@@ -49,7 +49,7 @@ export const PkiSyncAuditLogsSection = ({ pkiSync }: Props) => {
}}
/>
) : (
- <div className="flex h-full items-center justify-center rounded-lg bg-mineshaft-800 text-sm text-mineshaft-200">
+ <div className="flex h-full items-center justify-center rounded-lg bg-surface-raised text-sm text-foreground-secondary">
<div className="flex flex-col items-center gap-4 py-20">
<FingerprintIcon className="size-8" />
<p>
@@ -60,7 +60,7 @@ export const PkiSyncAuditLogsSection = ({ pkiSync }: Props) => {
params={{ orgId: currentOrg.id }}
target="_blank"
rel="noopener noreferrer"
- className="cursor-pointer underline transition-all hover:text-white"
+ className="cursor-pointer underline transition-all hover:text-foreground-inverse"
>
upgrade your subscription
</Link>
@@ -69,7 +69,7 @@ export const PkiSyncAuditLogsSection = ({ pkiSync }: Props) => {
href="https://infisical.com/scheduledemo"
target="_blank"
rel="noopener noreferrer"
- className="cursor-pointer underline transition-all hover:text-white"
+ className="cursor-pointer underline transition-all hover:text-foreground-inverse"
>
upgrade your subscription
</a>
diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/SyncErrorDetail.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/SyncErrorDetail.tsx
index 2c38e7e62e..c2e99e0fb2 100644
--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/SyncErrorDetail.tsx
+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/SyncErrorDetail.tsx
@@ -7,9 +7,9 @@ type Props = {
export const SyncErrorDetail = ({ label, message }: Props) => (
<Detail>
- <DetailLabel className="text-red">{label}</DetailLabel>
+ <DetailLabel className="text-danger">{label}</DetailLabel>
<DetailValue>
- <p className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">{message}</p>
+ <p className="rounded-sm bg-surface-active p-2 text-xs break-words">{message}</p>
</DetailValue>
</Detail>
);
diff --git a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
index 9a598653cc..588acda31b 100644
--- a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx
@@ -96,18 +96,18 @@ export const PkiTemplateListPage = () => {
<Helmet>
<title>{t("common.head-title", { title: "PKI Templates" })}</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col justify-between text-foreground-inverse">
<div className="mx-auto flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
title="Certificate Templates"
description="Manage certificate template to request and issue dynamic certificates following a strict format."
/>
- <div className="container mx-auto mb-6 max-w-8xl rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="container mx-auto mb-6 max-w-8xl rounded-lg border border-border-control bg-surface-base p-4">
{/* TODO: Use subscription.pkiLegacyTemplates to block legacy templates creation */}
<div className="mb-4 flex justify-between">
- <p className="text-xl font-medium text-mineshaft-100">Templates</p>
+ <p className="text-xl font-medium text-foreground">Templates</p>
<div className="flex w-full justify-end">
<ProjectPermissionCan
I={ProjectPermissionPkiTemplateActions.Create}
diff --git a/frontend/src/pages/cert-manager/PkiTemplateListPage/components/PkiTemplateForm.tsx b/frontend/src/pages/cert-manager/PkiTemplateListPage/components/PkiTemplateForm.tsx
index fcca1deaa7..f4c47a938b 100644
--- a/frontend/src/pages/cert-manager/PkiTemplateListPage/components/PkiTemplateForm.tsx
+++ b/frontend/src/pages/cert-manager/PkiTemplateListPage/components/PkiTemplateForm.tsx
@@ -181,7 +181,7 @@ export const PkiTemplateForm = ({ certTemplate, handlePopUpToggle }: Props) => {
<form onSubmit={handleSubmit(onFormSubmit)}>
{certTemplate && (
<FormControl label="Certificate Template ID">
- <Input value={certTemplate.id} isDisabled className="bg-white/[0.07]" />
+ <Input value={certTemplate.id} isDisabled className="bg-foreground-inverse/[0.07]" />
</FormControl>
)}
<Controller
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
index 1dc213ab05..b294f8ef07 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/PoliciesPage.tsx
@@ -131,7 +131,7 @@ export const PoliciesPage = () => {
}
return (
- <div className="mx-auto flex h-full flex-col justify-between text-white">
+ <div className="mx-auto flex h-full flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: "Certificate Manager" })}</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx
index 43d104cd8a..803843daf6 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx
@@ -1213,12 +1213,12 @@ export const CreateProfileModal = ({
/>
<FieldError errors={[error]} />
{!hasCas && (
- <FieldDescription className="text-yellow-500">
+ <FieldDescription className="text-warning">
No certificate authorities available.{" "}
<Link
to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-authorities"
params={{ orgId: orgId ?? "", projectId: projectId ?? "" }}
- className="underline hover:text-yellow-400"
+ className="underline hover:text-warning"
>
Create one in Certificate Authorities
</Link>
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ScepDetailsModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ScepDetailsModal.tsx
index a194f75174..3f264be850 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ScepDetailsModal.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ScepDetailsModal.tsx
@@ -28,7 +28,7 @@ export const ScepDetailsModal = ({ isOpen, onClose, profile }: Props) => {
return (
<Modal isOpen={isOpen} onOpenChange={(open) => !open && onClose()}>
<ModalContent title="SCEP Enrollment Details">
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
SCEP configuration is not available for this profile.
</p>
</ModalContent>
@@ -115,8 +115,8 @@ export const ScepDetailsModal = ({ isOpen, onClose, profile }: Props) => {
className="mt-4"
tooltipText="The Registration Authority certificate used by SCEP clients."
/>
- <div className="flex items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
- <p className="text-xs text-mineshaft-400">Expires: {raCertExpiresAt}</p>
+ <div className="flex items-center justify-between rounded-md border border-border-control bg-surface-base px-4 py-3">
+ <p className="text-xs text-muted">Expires: {raCertExpiresAt}</p>
<IconButton
ariaLabel="download RA certificate"
variant="outline_bg"
diff --git a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
index af6ee4eef5..3d7f9763a8 100644
--- a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
+++ b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
@@ -245,8 +245,8 @@ export const RequestsPage = () => {
<Helmet>
<title>Requests</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={ProjectType.CertificateManager}
diff --git a/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx b/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
index 48e5ee0645..7664442d51 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/SettingsPage.tsx
@@ -21,7 +21,7 @@ export const SettingsPage = () => {
const activeTab = search.selectedTab ?? "app-connections";
return (
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<Helmet>
<title>Settings</title>
</Helmet>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionRow.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionRow.tsx
index 53ab65f35e..dd13011742 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionRow.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionRow.tsx
@@ -29,6 +29,7 @@ import {
TooltipContent,
TooltipTrigger
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { ProjectPermissionSub } from "@app/context";
import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";
import { APP_CONNECTION_MAP, getAppConnectionMethodDetails } from "@app/helpers/appConnections";
@@ -82,13 +83,13 @@ export const AppConnectionRow = ({
<TableCell>
<div className="flex items-center gap-2">
<div className="relative">
- <img
+ <ProviderIcon
alt={`${connectionDetails.name} integration`}
- src={`/images/integrations/${connectionDetails.image}`}
+ icon={connectionDetails.image}
className="mr-0.5 w-5"
/>
{ConnectionIcon && (
- <ConnectionIcon className="absolute -right-0.5 -bottom-0.5 size-3 text-primary-700" />
+ <ConnectionIcon className="absolute -right-0.5 -bottom-0.5 size-3 text-project" />
)}
</div>
<span>{connectionDetails.name}</span>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionsTab.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionsTab.tsx
index 600541a494..829c3d6180 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionsTab.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/AppConnectionsTab/AppConnectionsTab.tsx
@@ -34,6 +34,7 @@ import {
TableHeader,
TableRow
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { ProjectPermissionSub, useProject } from "@app/context";
import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";
import { APP_CONNECTION_MAP, getAppConnectionMethodDetails } from "@app/helpers/appConnections";
@@ -257,7 +258,7 @@ export const AppConnectionsTab = () => {
aria-label="Filter Connections"
variant={isTableFiltered ? "project" : "outline"}
size="md"
- className={twMerge(isTableFiltered && "text-primary")}
+ className={twMerge(isTableFiltered && "text-project")}
>
<FilterIcon className="size-4" />
</IconButton>
@@ -286,13 +287,13 @@ export const AppConnectionsTab = () => {
}}
>
<div className="flex w-full items-center gap-2">
- <img
+ <ProviderIcon
alt={`${APP_CONNECTION_MAP[app].name} integration`}
- src={`/images/integrations/${APP_CONNECTION_MAP[app].image}`}
+ icon={APP_CONNECTION_MAP[app].image}
className="h-4 w-4"
/>
<span className="flex-1">{APP_CONNECTION_MAP[app].name}</span>
- {isSelected && <span className="text-primary">✓</span>}
+ {isSelected && <span className="text-project">✓</span>}
</div>
</DropdownMenuItem>
);
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/CreateHsmConnectorWizard.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/CreateHsmConnectorWizard.tsx
index 8c9f601e1e..c834ccc7a6 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/CreateHsmConnectorWizard.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/CreateHsmConnectorWizard.tsx
@@ -175,10 +175,8 @@ export const CreateHsmConnectorWizard = ({ isOpen, onOpenChange }: Props) => {
<ShieldCheckIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
- Add HSM Connector
- </div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <div className="flex items-center gap-x-2 text-label">Add HSM Connector</div>
+ <p className="text-sm leading-4 text-muted">
Register a hardware security module so Infisical can route key operations through
it.
</p>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/HostStep.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/HostStep.tsx
index 7e398826c8..9c3ffaacd8 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/HostStep.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/CreateHsmConnectorWizard/HostStep.tsx
@@ -98,9 +98,9 @@ export const HostStep = ({ form, options, isLoading }: Props) => {
/>
{!isLoading && options.length === 0 && (
- <div className="rounded-md border border-border bg-mineshaft-800 p-4">
+ <div className="rounded-md border border-border bg-surface-raised p-4">
<div className="flex items-start gap-3">
- <ServerIcon className="mt-0.5 size-4 shrink-0 text-mineshaft-400" />
+ <ServerIcon className="mt-0.5 size-4 shrink-0 text-muted" />
<div className="min-w-0 flex-1 space-y-2 text-sm">
<p className="font-medium text-foreground">No Gateways are connected to an HSM yet</p>
<p className="text-muted">
@@ -110,7 +110,7 @@ export const HostStep = ({ form, options, isLoading }: Props) => {
href="https://infisical.com/docs/documentation/platform/pki/settings/hsm-connectors"
target="_blank"
rel="noreferrer"
- className="text-primary hover:underline"
+ className="text-project hover:underline"
>
Read the HSM Connectors setup guide
</a>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/DeleteHsmConnectorDialog.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/DeleteHsmConnectorDialog.tsx
index 211c4581d0..5068c4eb5a 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/DeleteHsmConnectorDialog.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/DeleteHsmConnectorDialog.tsx
@@ -51,9 +51,9 @@ export const DeleteHsmConnectorDialog = ({ connector, onClose, onDeleted }: Prop
{connector ? (
<>
Are you sure you want to delete{" "}
- <span className="font-mono text-mineshaft-100">{connector.name}</span>? Any
- certificate that references this connector will block the deletion, and the HSM key
- on your HSM is not touched.
+ <span className="font-mono text-foreground">{connector.name}</span>? Any certificate
+ that references this connector will block the deletion, and the HSM key on your HSM
+ is not touched.
</>
) : null}
</AlertDialogDescription>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/EditHsmConnectorSheet.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/EditHsmConnectorSheet.tsx
index 9d40142f80..b57f2d0978 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/EditHsmConnectorSheet.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/EditHsmConnectorSheet.tsx
@@ -175,10 +175,8 @@ export const EditHsmConnectorSheet = ({ connector, onClose }: Props) => {
<ShieldCheckIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
- Edit HSM Connector
- </div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <div className="flex items-center gap-x-2 text-label">Edit HSM Connector</div>
+ <p className="text-sm leading-4 text-muted">
Update name, description, Gateway, slot label, key label prefix, or rotate the
PIN. Changes to the PIN, slot, or Gateway re-run a Verify before saving.
</p>
@@ -353,7 +351,7 @@ export const EditHsmConnectorSheet = ({ connector, onClose }: Props) => {
PIN or point to a different slot on the same HSM.
</li>
</ul>
- <div className="mt-6 rounded-md border border-border bg-mineshaft-800 p-3 text-xs text-muted">
+ <div className="mt-6 rounded-md border border-border bg-surface-raised p-3 text-xs text-muted">
If you change the PIN, slot, or Gateway, Infisical re-runs a Verify against the
HSM before saving. A bad PIN or unreachable Gateway will surface here.
</div>
diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx
index 57739592f2..d0c9cdeb88 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx
@@ -107,10 +107,10 @@ export const HsmConnectorsTab = () => {
if (!isLicensed) {
return (
<div>
- <div className="rounded-md border border-yellow-500/30 bg-yellow-500/5 p-8 text-center">
+ <div className="rounded-md border border-warning/30 bg-warning/5 p-8 text-center">
<div className="mb-3 text-2xl">&#x1f6e1;&#xfe0f;</div>
- <h4 className="mb-2 text-lg font-medium text-mineshaft-100">Enterprise Feature</h4>
- <p className="mx-auto mb-4 max-w-md text-sm text-mineshaft-300">
+ <h4 className="mb-2 text-lg font-medium text-foreground">Enterprise Feature</h4>
+ <p className="mx-auto mb-4 max-w-md text-sm text-label">
HSM Connectors let Infisical use keys backed by a Hardware Security Module. Every
cryptographic operation is routed through your HSM.
</p>
@@ -221,7 +221,7 @@ export const HsmConnectorsTab = () => {
{filtered.map((c) => (
<TableRow
key={c.id}
- className="cursor-pointer hover:bg-mineshaft-700"
+ className="cursor-pointer hover:bg-surface-hover"
onClick={() => openDetail(c.id)}
>
<TableCell>{c.name}</TableCell>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
index 7036e22592..00ba7150f9 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx
@@ -141,8 +141,8 @@ export const SignerDetailPage = () => {
<Helmet>
<title>{t("common.head-title", { title: `Signer: ${signer.name}` })}</title>
</Helmet>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col text-foreground-inverse">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
backLink={
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/ConnectToSignerDrawer/ConnectToSignerDrawer.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/ConnectToSignerDrawer/ConnectToSignerDrawer.tsx
index b0907020b6..6dc64a6b2e 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/ConnectToSignerDrawer/ConnectToSignerDrawer.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/ConnectToSignerDrawer/ConnectToSignerDrawer.tsx
@@ -252,7 +252,7 @@ export const ConnectToSignerDrawer = ({ signer, isOpen, onOpenChange }: Props) =
const authNote =
authMethod === AuthMethod.Token ? (
- <p className="mt-2 text-xs text-yellow-600">
+ <p className="mt-2 text-xs text-warning">
This uses your personal access token, which expires, so this setup is temporary. For
unattended or CI/CD signing, use a machine identity instead.
</p>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx
index 8eea0dcfbb..7b3307fb24 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx
@@ -306,11 +306,11 @@ export const EditSignerModal = ({ isOpen, onOpenChange, signer }: Props) => {
<PenTool className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
Edit Signer
<DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.edit} />
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
Update the signer&apos;s name, validity, and certificate authority.
</p>
</div>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/ApproversStep.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/ApproversStep.tsx
index f84600dd1a..2a8f79bb93 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/ApproversStep.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/ApproversStep.tsx
@@ -30,15 +30,15 @@ export const ApproversStep = ({
onUpdateStep
}: Props) => (
<>
- <h2 className="text-xl font-semibold text-mineshaft-100">Approval policy</h2>
- <p className="mt-1 mb-4 text-sm text-mineshaft-300">
+ <h2 className="text-xl font-semibold text-foreground">Approval policy</h2>
+ <p className="mt-1 mb-4 text-sm text-label">
Add approvers if signing should require approval. Otherwise members can sign directly.
</p>
<div className="mb-4 flex items-start justify-between gap-4">
<div>
- <p className="text-sm font-semibold text-mineshaft-100">Approves</p>
- <p className="mt-0.5 text-xs text-mineshaft-300">
+ <p className="text-sm font-semibold text-foreground">Approves</p>
+ <p className="mt-0.5 text-xs text-label">
Approvals run in order. Each step needs the listed number of approvers to approve.
</p>
</div>
@@ -49,9 +49,9 @@ export const ApproversStep = ({
</div>
{steps.length === 0 ? (
- <div className="flex flex-col items-center gap-2 rounded-md border border-dashed border-mineshaft-700 p-8 text-center">
- <ShieldIcon className="h-5 w-5 text-mineshaft-500" />
- <p className="text-sm text-mineshaft-300">No approval steps. Members can sign directly.</p>
+ <div className="flex flex-col items-center gap-2 rounded-md border border-dashed border-border-subtle p-8 text-center">
+ <ShieldIcon className="h-5 w-5 text-surface-selected" />
+ <p className="text-sm text-label">No approval steps. Members can sign directly.</p>
<Button variant="outline" size="sm" onClick={onAddStep}>
<PlusIcon className="h-3.5 w-3.5" />
<span>Add a step</span>
@@ -63,12 +63,12 @@ export const ApproversStep = ({
<div key={s.key}>
{idx > 0 && (
<div className="flex justify-center py-1">
- <ArrowDownIcon className="h-4 w-4 text-mineshaft-500" />
+ <ArrowDownIcon className="h-4 w-4 text-surface-selected" />
</div>
)}
- <div className="rounded-md border border-mineshaft-700 bg-mineshaft-900/40 p-4">
+ <div className="rounded-md border border-border-subtle bg-surface-base/40 p-4">
<div className="flex items-start gap-3">
- <div className="mt-1 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-border bg-mineshaft-800 text-[11px] font-medium text-muted">
+ <div className="mt-1 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-border bg-surface-raised text-[11px] font-medium text-muted">
{idx + 1}
</div>
<Input
@@ -137,7 +137,7 @@ export const ApproversStep = ({
</div>
))}
- <p className="flex items-center gap-1.5 text-xs text-mineshaft-400">
+ <p className="flex items-center gap-1.5 text-xs text-muted">
<InfoIcon className="h-3.5 w-3.5" />
You can add or change approvers any time.
</p>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
index 8024d811a8..a79944c8e6 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx
@@ -235,11 +235,11 @@ export const EditSignerPolicyModal = ({
<ShieldIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
{isCreating ? "Add approval policy" : "Edit approval policy"}
<DocumentationLinkBadge href={PkiDocsUrls.codeSigning.approvals.policy} />
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
Choose who approves, and how much each approval gives.
</p>
</div>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/LimitsStep.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/LimitsStep.tsx
index 6ede1f27ec..4f06051878 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/LimitsStep.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/LimitsStep.tsx
@@ -31,8 +31,8 @@ export const LimitsStep = ({
showError = false
}: Props) => (
<>
- <h2 className="text-xl font-semibold text-mineshaft-100">What an approval allows</h2>
- <p className="mt-1 mb-4 text-sm text-mineshaft-300">
+ <h2 className="text-xl font-semibold text-foreground">What an approval allows</h2>
+ <p className="mt-1 mb-4 text-sm text-label">
Once approval is granted, define how it can be used. At least one limit is required.
</p>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/ExportSignerCertModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/ExportSignerCertModal.tsx
index 3155cd9894..a82267b0eb 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/ExportSignerCertModal.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/ExportSignerCertModal.tsx
@@ -96,7 +96,7 @@ export const ExportSignerCertModal = ({ isOpen, onOpenChange, signerId, signerNa
<TooltipContent>Copy serial number</TooltipContent>
</Tooltip>
</div>
- <div className="rounded-md border border-border bg-mineshaft-900 px-3 py-2 font-mono text-xs break-all text-foreground">
+ <div className="rounded-md border border-border bg-surface-base px-3 py-2 font-mono text-xs break-all text-foreground">
{data.serialNumber || "—"}
</div>
</section>
@@ -135,7 +135,7 @@ export const ExportSignerCertModal = ({ isOpen, onOpenChange, signerId, signerNa
</Tooltip>
</div>
</div>
- <pre className="max-h-72 thin-scrollbar overflow-y-auto rounded-md border border-border bg-mineshaft-900 px-3 py-2.5 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap text-mineshaft-200">
+ <pre className="max-h-72 thin-scrollbar overflow-y-auto rounded-md border border-border bg-surface-base px-3 py-2.5 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap text-foreground-secondary">
{data.certificatePem}
</pre>
</section>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
index 34bc98c6b3..ad3bdfafce 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/PreApproveSigningSheet.tsx
@@ -161,10 +161,8 @@ export const PreApproveSigningSheet = ({ isOpen, onOpenChange, signerId }: Props
<BadgeCheckIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
- Pre-approve signing
- </div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <div className="flex items-center gap-x-2 text-label">Pre-approve signing</div>
+ <p className="text-sm leading-4 text-muted">
Grant an Operator or machine identity a signed-off window without an approval
flow.
</p>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
index a1400403ec..64060b8526 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/RequestToSignSheet.tsx
@@ -123,8 +123,8 @@ export const RequestToSignSheet = ({ isOpen, onOpenChange, signerId }: Props) =>
<PenToolIcon className="h-5 w-5" />
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">Request to sign</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <div className="flex items-center gap-x-2 text-label">Request to sign</div>
+ <p className="text-sm leading-4 text-muted">
Ask the approvers to let you sign. Pick how many signatures you need and when.
</p>
</div>
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerApprovalPolicyTab.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerApprovalPolicyTab.tsx
index 481df55350..e6b14b18da 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerApprovalPolicyTab.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerApprovalPolicyTab.tsx
@@ -60,7 +60,7 @@ const initialsOf = (label: string): string => {
};
const ApproverAvatar = ({ approver }: { approver: ApproverDisplay }) => (
- <span className="flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-mineshaft-700 bg-mineshaft-800 text-[10px] font-medium text-muted ring-1 ring-mineshaft-900">
+ <span className="flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-border-subtle bg-surface-raised text-[10px] font-medium text-muted ring-1 ring-surface-base">
{approver.kind === "group" ? <UsersIcon className="h-3 w-3" /> : initialsOf(approver.label)}
</span>
);
@@ -271,7 +271,7 @@ export const SignerApprovalPolicyTab = ({ signerId, isStandalone = false }: Prop
return (
<div key={stepNumber} className="flex gap-2">
<div className="flex flex-col items-center">
- <span className="flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-border bg-mineshaft-800 text-[10px] font-medium text-muted">
+ <span className="flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-border bg-surface-raised text-[10px] font-medium text-muted">
{stepNumber}
</span>
{!isLast && <span aria-hidden="true" className="w-px flex-1 bg-border" />}
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/KindIcon.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/KindIcon.tsx
index 6315cb9779..0436483455 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/KindIcon.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/KindIcon.tsx
@@ -3,5 +3,5 @@ import { HardDriveIcon, UserIcon, UsersIcon } from "lucide-react";
export const KindIcon = ({ kind }: { kind: "user" | "identity" | "group" }) => {
// eslint-disable-next-line no-nested-ternary
const Icon = kind === "user" ? UserIcon : kind === "identity" ? HardDriveIcon : UsersIcon;
- return <Icon className="h-3.5 w-3.5 text-mineshaft-300" />;
+ return <Icon className="h-3.5 w-3.5 text-label" />;
};
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/SignerRequestsTab.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/SignerRequestsTab.tsx
index 6b1c747874..cdc9764883 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/SignerRequestsTab.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/SignerRequestsTab/SignerRequestsTab.tsx
@@ -191,7 +191,7 @@ export const SignerRequestsTab = ({ signerId, canPreApprove, canRequestSign }: P
<IconButton
aria-label="Filter requests"
variant={isTableFiltered ? "project" : "outline"}
- className={twMerge(isTableFiltered && "text-primary")}
+ className={twMerge(isTableFiltered && "text-project")}
>
<FilterIcon />
</IconButton>
@@ -251,7 +251,7 @@ export const SignerRequestsTab = ({ signerId, canPreApprove, canRequestSign }: P
return (
<TableRow
key={req.id}
- className="group cursor-pointer transition-colors hover:bg-mineshaft-700 [&>td]:py-3"
+ className="group cursor-pointer transition-colors hover:bg-surface-hover [&>td]:py-3"
onClick={() =>
navigate({
to: "/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId",
@@ -269,7 +269,7 @@ export const SignerRequestsTab = ({ signerId, canPreApprove, canRequestSign }: P
>
<TableCell isTruncatable>
<div className="flex items-start gap-2">
- <div className="mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-border bg-mineshaft-800">
+ <div className="mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-border bg-surface-raised">
<KindIcon kind={member.kind} />
</div>
<div className="min-w-0 flex-1">
diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
index 99dcdb1855..71a6c7f786 100644
--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
@@ -151,7 +151,7 @@ export const SigningOperationsTable = ({ signer, signerId, projectId }: Props) =
{Array.from({ length: 5 }).map((__, j) => (
// eslint-disable-next-line react/no-array-index-key
<TableCell key={`skeleton-cell-${j}`}>
- <div className="h-4 w-full animate-pulse rounded bg-mineshaft-700" />
+ <div className="h-4 w-full animate-pulse rounded bg-surface-hover" />
</TableCell>
))}
</TableRow>
@@ -160,7 +160,7 @@ export const SigningOperationsTable = ({ signer, signerId, projectId }: Props) =
operations.map((op) => (
<TableRow
key={op.id}
- className="cursor-pointer transition-colors hover:bg-mineshaft-700 [&>td]:py-3"
+ className="cursor-pointer transition-colors hover:bg-surface-hover [&>td]:py-3"
onClick={() =>
navigate({
to: "/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId/operations/$operationId",
diff --git a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
index 754b6f6fcf..1431ba705d 100644
--- a/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
+++ b/frontend/src/pages/cert-manager/SigningOperationDetailPage/SigningOperationDetailPage.tsx
@@ -78,7 +78,7 @@ export const SigningOperationDetailPage = () => {
</Link>
<div className="flex items-start gap-3">
- <div className="flex h-10 w-10 items-center justify-center rounded-md bg-mineshaft-800 text-muted">
+ <div className="flex h-10 w-10 items-center justify-center rounded-md bg-surface-raised text-muted">
<FileSignatureIcon className="h-5 w-5" />
</div>
<div className="min-w-0">
diff --git a/frontend/src/pages/cert-manager/components/MetadataFilterSection.tsx b/frontend/src/pages/cert-manager/components/MetadataFilterSection.tsx
index d0a10f71bf..c33474aa06 100644
--- a/frontend/src/pages/cert-manager/components/MetadataFilterSection.tsx
+++ b/frontend/src/pages/cert-manager/components/MetadataFilterSection.tsx
@@ -32,12 +32,12 @@ export const MetadataFilterSection = ({ entries, onChange }: Props) => {
return (
<div className="space-y-2">
<div className="flex items-center justify-between">
- <span className="text-xs font-medium text-bunker-300 uppercase">Metadata</span>
+ <span className="text-xs font-medium text-label-secondary uppercase">Metadata</span>
{entries.length > 0 && (
<button
type="button"
onClick={() => onChange([])}
- className="cursor-pointer text-xs text-primary hover:text-primary-600"
+ className="cursor-pointer text-xs text-project hover:text-project"
>
Clear
</button>
diff --git a/frontend/src/pages/kms/KmipPage/KmipPage.tsx b/frontend/src/pages/kms/KmipPage/KmipPage.tsx
index 4c9d1324a3..92183e706f 100644
--- a/frontend/src/pages/kms/KmipPage/KmipPage.tsx
+++ b/frontend/src/pages/kms/KmipPage/KmipPage.tsx
@@ -12,11 +12,11 @@ export const KmipPage = () => {
const { t } = useTranslation();
return (
- <div className="h-full bg-bunker-800">
+ <div className="h-full bg-page">
<Helmet>
<title>{t("common.head-title", { title: "KMS" })}</title>
</Helmet>
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.KMS}
diff --git a/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx b/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
index 91523757fc..074565f964 100644
--- a/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
+++ b/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
@@ -230,23 +230,21 @@ const KmipClientCertificateForm = ({
/>
{kmipClient && (
- <div className="mt-4 rounded-md border border-mineshaft-600 bg-mineshaft-700 p-4">
- <div className="mb-3 flex items-center text-sm font-medium text-mineshaft-200">
+ <div className="mt-4 rounded-md border border-border-control bg-surface-hover p-4">
+ <div className="mb-3 flex items-center text-sm font-medium text-foreground-secondary">
<FontAwesomeIcon icon={faInfoCircle} className="mr-2" />
Certificate Subject Values
</div>
- <p className="mb-3 text-xs text-mineshaft-300">
+ <p className="mb-3 text-xs text-label">
The signed certificate will use these fixed values for CN and OU. If your device
requires you to specify subject values when generating the CSR, use the values
below.
</p>
<div className="space-y-2">
- <div className="flex items-center justify-between rounded bg-mineshaft-600 px-3 py-2">
+ <div className="flex items-center justify-between rounded bg-surface-active px-3 py-2">
<div>
- <div className="text-xs text-mineshaft-400">
- CN (Common Name) = KMIP Client ID
- </div>
- <div className="font-mono text-sm text-mineshaft-100">{kmipClient.id}</div>
+ <div className="text-xs text-muted">CN (Common Name) = KMIP Client ID</div>
+ <div className="font-mono text-sm text-foreground">{kmipClient.id}</div>
</div>
<IconButton
ariaLabel="Copy Client ID"
@@ -257,14 +255,10 @@ const KmipClientCertificateForm = ({
<FontAwesomeIcon icon={faCopy} />
</IconButton>
</div>
- <div className="flex items-center justify-between rounded bg-mineshaft-600 px-3 py-2">
+ <div className="flex items-center justify-between rounded bg-surface-active px-3 py-2">
<div>
- <div className="text-xs text-mineshaft-400">
- OU (Organizational Unit) = Project ID
- </div>
- <div className="font-mono text-sm text-mineshaft-100">
- {kmipClient.projectId}
- </div>
+ <div className="text-xs text-muted">OU (Organizational Unit) = Project ID</div>
+ <div className="font-mono text-sm text-foreground">{kmipClient.projectId}</div>
</div>
<IconButton
ariaLabel="Copy Project ID"
@@ -276,7 +270,7 @@ const KmipClientCertificateForm = ({
</IconButton>
</div>
</div>
- <p className="mt-3 text-xs text-mineshaft-400">
+ <p className="mt-3 text-xs text-muted">
Note: Any O (Organization), L (Locality), ST (State), or C (Country) values in your
CSR will be included in the certificate.
</p>
diff --git a/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx b/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx
index b16b47c8f8..981ae13305 100644
--- a/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx
+++ b/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx
@@ -141,16 +141,16 @@ export const KmipClientTable = () => {
animate={{ opacity: 1, translateX: 0 }}
exit={{ opacity: 0, translateX: 30 }}
>
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
- <p className="text-xl font-medium whitespace-nowrap text-mineshaft-100">KMIP Clients</p>
+ <p className="text-xl font-medium whitespace-nowrap text-foreground">KMIP Clients</p>
<div className="flex w-full justify-end pr-4">
<a
target="_blank"
rel="noopener noreferrer"
href="https://infisical.com/docs/documentation/platform/kms"
>
- <span className="flex w-max cursor-pointer items-center rounded-md border border-mineshaft-500 bg-mineshaft-600 px-4 py-2 text-mineshaft-200 duration-200 hover:border-primary/40 hover:bg-primary/10 hover:text-white">
+ <span className="flex w-max cursor-pointer items-center rounded-md border border-border-strong bg-surface-active px-4 py-2 text-foreground-secondary duration-200 hover:border-project/40 hover:bg-project/10 hover:text-foreground-inverse">
Documentation{" "}
<FontAwesomeIcon
icon={faArrowUpRightFromSquare}
@@ -224,7 +224,7 @@ export const KmipClientTable = () => {
const { name, id, description, permissions } = kmipClient;
return (
- <Tr className="group h-10 hover:bg-mineshaft-700" key={`st-v3-${id}`}>
+ <Tr className="group h-10 hover:bg-surface-hover" key={`st-v3-${id}`}>
<Td>{name}</Td>
<Td className="max-w-80 break-all">{description}</Td>
<Td className="max-w-40">{[permissions.join(", ")]}</Td>
@@ -234,7 +234,7 @@ export const KmipClientTable = () => {
<IconButton
variant="plain"
colorSchema="primary"
- className="ml-4 p-0 data-[state=open]:text-primary-400"
+ className="ml-4 p-0 data-[state=open]:text-project"
ariaLabel="More options"
>
<FontAwesomeIcon size="lg" icon={faEllipsis} />
diff --git a/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx b/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
index 74ad49223c..268dbdeb67 100644
--- a/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/kms/OverviewPage/OverviewPage.tsx
@@ -12,11 +12,11 @@ export const OverviewPage = () => {
const { t } = useTranslation();
return (
- <div className="h-full bg-bunker-800">
+ <div className="h-full bg-page">
<Helmet>
<title>{t("common.head-title", { title: "KMS" })}</title>
</Helmet>
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.KMS}
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekDecryptModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekDecryptModal.tsx
index 4fd6b34193..3920bd0b46 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekDecryptModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekDecryptModal.tsx
@@ -106,7 +106,7 @@ const DecryptForm = ({ cmek }: FormProps) => {
>
Decode Base64{" "}
<Tooltip content="Toggle this switch on if your data was originally plain text.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
<div className="flex items-center">
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekEncryptModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekEncryptModal.tsx
index a5bf01d5ac..02ff76eb49 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekEncryptModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekEncryptModal.tsx
@@ -102,7 +102,7 @@ const EncryptForm = ({ cmek }: FormProps) => {
>
Data is Base64 encoded{" "}
<Tooltip content="Toggle this switch on if your data is already Base64 encoded to avoid redundant encoding.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
)}
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekExportKeyModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekExportKeyModal.tsx
index 397f726168..90dd5ac047 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekExportKeyModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekExportKeyModal.tsx
@@ -116,7 +116,7 @@ const ExportKeyForm = ({ cmek }: FormProps) => {
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{privateKeyData?.privateKey}</p>
</div>
</>
@@ -154,7 +154,7 @@ const ExportKeyForm = ({ cmek }: FormProps) => {
</Tooltip>
</div>
</div>
- <div className="mb-8 flex items-center justify-between rounded-md bg-white/[0.07] p-2 text-base text-gray-400">
+ <div className="mb-8 flex items-center justify-between rounded-md bg-foreground-inverse/[0.07] p-2 text-base text-muted-cool">
<p className="mr-4 break-all whitespace-pre-wrap">{publicKeyData?.publicKey}</p>
</div>
</>
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekGenerateMacModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekGenerateMacModal.tsx
index 8eadae7892..297fd76308 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekGenerateMacModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekGenerateMacModal.tsx
@@ -92,7 +92,7 @@ const GenerateMacForm = ({ cmek }: FormProps) => {
<Switch id="encode-base-64" isChecked={value} onCheckedChange={onChange}>
Data is Base64 encoded{" "}
<Tooltip content="Toggle this switch on if your data is already Base64 encoded to avoid redundant encoding.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
)}
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekSignModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekSignModal.tsx
index f9b86ebdef..eb5f8eb1b1 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekSignModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekSignModal.tsx
@@ -123,7 +123,7 @@ const SignForm = ({ cmek }: FormProps) => {
<Switch id="encode-base-64" isChecked={value} onCheckedChange={onChange}>
Data is Base64 encoded{" "}
<Tooltip content="Toggle this switch on if your data is already Base64 encoded to avoid redundant encoding.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
)}
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekVerifyMacModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekVerifyMacModal.tsx
index 9bcda7dc46..d364b9b6a6 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekVerifyMacModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekVerifyMacModal.tsx
@@ -131,7 +131,7 @@ const VerifyMacForm = ({ cmek }: FormProps) => {
<Switch id="encode-base-64" isChecked={value} onCheckedChange={onChange}>
Data is Base64 encoded{" "}
<Tooltip content="Toggle this switch on if your data is already Base64 encoded to avoid redundant encoding.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
)}
diff --git a/frontend/src/pages/kms/OverviewPage/components/CmekVerifyModal.tsx b/frontend/src/pages/kms/OverviewPage/components/CmekVerifyModal.tsx
index 94e407c452..5c5ac7ecfe 100644
--- a/frontend/src/pages/kms/OverviewPage/components/CmekVerifyModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/CmekVerifyModal.tsx
@@ -122,13 +122,13 @@ const VerifyForm = ({ cmek }: FormProps) => {
</div>
<div className="mt-3">
<span className="text-sm opacity-60">Signature:</span>{" "}
- <div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 p-2 text-sm break-words whitespace-pre-wrap">
+ <div className="rounded-md border border-border-subtle bg-surface-base p-2 text-sm break-words whitespace-pre-wrap">
{signature}
</div>
</div>
<div>
<span className="text-sm opacity-60">Data:</span>{" "}
- <div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 p-2 text-sm">
+ <div className="rounded-md border border-border-subtle bg-surface-base p-2 text-sm">
{isBase64Encoded ? decodeBase64(data).toString() : data}
</div>
</div>
@@ -179,7 +179,7 @@ const VerifyForm = ({ cmek }: FormProps) => {
<Switch id="encode-base-64" isChecked={value} onCheckedChange={onChange}>
Data is Base64 encoded{" "}
<Tooltip content="Toggle this switch on if your data is already Base64 encoded to avoid redundant encoding.">
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</Switch>
)}
diff --git a/frontend/src/pages/kms/OverviewPage/components/RotateCmekModal.tsx b/frontend/src/pages/kms/OverviewPage/components/RotateCmekModal.tsx
index 370f6935c4..7b1f8f2925 100644
--- a/frontend/src/pages/kms/OverviewPage/components/RotateCmekModal.tsx
+++ b/frontend/src/pages/kms/OverviewPage/components/RotateCmekModal.tsx
@@ -41,7 +41,7 @@ export const RotateCmekModal = ({ isOpen, onOpenChange, cmek }: Props) => {
onDeleteApproved={handleRotateCmek}
formContent={
<NoticeBannerV2 title="Data encrypted outside Infisical may be affected" className="mb-4">
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
Data encrypted through Infisical stays decryptable. However, any system that holds this
key&apos;s material directly, such as a KMIP client or an exported copy of the key, will
receive the new material and may be unable to decrypt data it encrypted with the
diff --git a/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx b/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
index b1c564d93a..07661ed8e3 100644
--- a/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/kms/SettingsPage/SettingsPage.tsx
@@ -18,7 +18,7 @@ export const SettingsPage = () => {
const { t } = useTranslation();
return (
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: t("settings.project.title") })}</title>
</Helmet>
diff --git a/frontend/src/pages/middlewares/restrict-login-signup.tsx b/frontend/src/pages/middlewares/restrict-login-signup.tsx
index fd6984944f..56321d2cde 100644
--- a/frontend/src/pages/middlewares/restrict-login-signup.tsx
+++ b/frontend/src/pages/middlewares/restrict-login-signup.tsx
@@ -52,8 +52,8 @@ export const AuthConsentWrapper = () => {
<>
<GtmHead />
{config.authConsentContent && !hasConsented && (
- <div className="bg-opacity-90 fixed inset-0 z-50 flex items-center justify-center bg-mineshaft-700/80">
- <div className="max-h-[80vh] w-4/12 overflow-y-auto rounded-lg bg-bunker-800 p-6 text-white">
+ <div className="bg-opacity-90 fixed inset-0 z-50 flex items-center justify-center bg-surface-hover/80">
+ <div className="max-h-[80vh] w-4/12 overflow-y-auto rounded-lg bg-page p-6 text-foreground-inverse">
<ReactMarkdown rehypePlugins={[rehypeRaw]}>
{DOMPurify.sanitize(config.authConsentContent)}
</ReactMarkdown>
diff --git a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
index 84faab01cb..4dbedac0d9 100644
--- a/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/AccessManagementPage.tsx
@@ -105,7 +105,7 @@ export const AccessManagementPage = () => {
const activeTab = selectedTabSection ? selectedTab : (visibleTabSections[0]?.key ?? selectedTab);
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: t("settings.org.title") })}</title>
</Helmet>
@@ -118,12 +118,12 @@ export const AccessManagementPage = () => {
<LookingForOrgPageLink page="accessControl" target="root" />
</PageHeader>
{!currentOrg.shouldUseNewPrivilegeSystem && (
- <div className="mt-4 mb-4 flex flex-col rounded-r border-l-2 border-l-primary bg-mineshaft-300/5 px-4 py-2.5">
+ <div className="mt-4 mb-4 flex flex-col rounded-r border-l-2 border-l-project bg-label/5 px-4 py-2.5">
<div className="mb-1 flex items-center text-sm">
- <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1.5 text-primary" />
+ <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1.5 text-project" />
Your organization is using legacy privilege management
</div>
- <p className="mt-1 mb-2 text-sm text-bunker-300">
+ <p className="mt-1 mb-2 text-sm text-label-secondary">
We&apos;ve developed an improved privilege management system to better serve your
security needs. Upgrade to our new permission-based approach that allows you to
explicitly designate who can modify specific access levels, rather than relying on
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupModal.tsx
index 887396fa3e..cef36ae0d4 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupModal.tsx
@@ -243,22 +243,21 @@ export const OrgGroupModal = ({
</TabsList>
<Tooltip>
<TooltipTrigger asChild>
- <span className="inline-flex cursor-default text-mineshaft-400">
+ <span className="inline-flex cursor-default text-muted">
<InfoIcon size={16} />
</span>
</TooltipTrigger>
<TooltipContent side="right" className="max-w-sm">
- <p className="mb-2 text-mineshaft-300">
+ <p className="mb-2 text-label">
You can add groups to your sub-organization in one of two ways:
</p>
<ul className="ml-3.5 flex list-disc flex-col gap-y-4">
- <li className="text-mineshaft-200">
- <strong className="text-mineshaft-100">Create New</strong> – Create a new
- group for this sub-organization. It will be managed at the sub-organization
- level.
+ <li className="text-foreground-secondary">
+ <strong className="text-foreground">Create New</strong> – Create a new group
+ for this sub-organization. It will be managed at the sub-organization level.
</li>
<li>
- <strong className="text-mineshaft-100">Assign Existing</strong> – Link an
+ <strong className="text-foreground">Assign Existing</strong> – Link an
existing group from the parent organization. The group stays managed at the
parent level.
</li>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
index 2e83b6196a..0d6c572081 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx
@@ -12,7 +12,7 @@ import {
import { z } from "zod";
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
-import { Badge, Combobox, Field, FieldError, FieldLabel } from "@app/components/v3";
+import { Badge, Combobox, Field, FieldError, FieldLabel, ProviderIcon } from "@app/components/v3";
import { MAX_IDENTITY_ACCESS_TOKEN_TTL_FALLBACK } from "@app/helpers/identityAuthSchemas";
import { IdentityAuthMethod } from "@app/hooks/api/identities";
import { useFetchServerStatus } from "@app/hooks/api/serverDetails";
@@ -67,12 +67,7 @@ type TIdentityAuthMethodSelectOption = TIdentityAuthMethodOption & {
};
const getProviderIcon = (fileName: string) => (
- <img
- src={`/images/integrations/${fileName}`}
- alt=""
- aria-hidden
- className="size-4 object-contain"
- />
+ <ProviderIcon icon={fileName} alt="" aria-hidden className="size-4 object-contain" />
);
const commonIdentityAuthMethods: TIdentityAuthMethodOption[] = [
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
index 9e4e4d61e7..9465c3f943 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTable.tsx
@@ -180,7 +180,7 @@ const LastUsedCell = ({ lastLoginAuthMethod, lastLoginTime }: LastUsedCellProps)
const label = formatLastUsed(lastLoginTime);
if (!lastLoginAuthMethod || !lastLoginTime) {
- return <span className="text-sm text-mineshaft-400">{label}</span>;
+ return <span className="text-sm text-muted">{label}</span>;
}
return (
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/VaultKubernetesAuthImportModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/VaultKubernetesAuthImportModal.tsx
index 2430348da6..fa9cd1d3f2 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/VaultKubernetesAuthImportModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/VaultKubernetesAuthImportModal.tsx
@@ -147,7 +147,7 @@ const Content = ({ onClose, appConnections, onImport }: ContentProps) => {
isClearable
className="w-full"
/>
- <p className="mt-1 text-xs text-mineshaft-400">
+ <p className="mt-1 text-xs text-muted">
Choose a Kubernetes auth engine to filter available roles
</p>
</>
@@ -176,7 +176,7 @@ const Content = ({ onClose, appConnections, onImport }: ContentProps) => {
isClearable
className="w-full"
/>
- <p className="mt-1 text-xs text-mineshaft-400">
+ <p className="mt-1 text-xs text-muted">
Select the Kubernetes role to load configuration from
</p>
</>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
index d72979308c..2de69fdb2d 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
@@ -247,10 +247,8 @@ export const OrgMembersSection = () => {
}
buttonText="Remove"
>
- <div className="mt-4 text-sm text-mineshaft-400">
- The following members will be removed:
- </div>
- <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-mineshaft-600 bg-red/10 p-4 pl-8 text-sm text-red-200">
+ <div className="mt-4 text-sm text-muted">The following members will be removed:</div>
+ <div className="mt-2 max-h-80 overflow-y-auto rounded-sm border border-border-control bg-danger/10 p-4 pl-8 text-sm text-danger">
<ul className="list-disc">
{(popUp.removeMembers.data?.selectedOrgMemberships as OrgUser[])?.map((member) => {
const email = member.user.email ?? member.user.username ?? member.inviteEmail;
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx
index c2a2008057..6832d61c9a 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx
@@ -66,15 +66,15 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
<ModalContent title="Privilege Management System Upgrade" className="max-w-2xl">
{step === "info" ? (
<div className="mb-4">
- <p className="mb-4 text-sm text-mineshaft-300">
+ <p className="mb-4 text-sm text-label">
We&apos;ve developed an improved privilege management system that enhances how access
controls work in your organization.
</p>
- <div className="mb-4 rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mb-4 rounded-lg border border-border-control bg-surface-raised p-4">
<div className="mb-3">
<div className="mb-3">
- <p className="mb-3 text-sm text-mineshaft-300">
+ <p className="mb-3 text-sm text-label">
<strong>Current system: </strong>
Users with higher privilege levels can modify access for anyone below them. This
rigid hierarchy makes it difficult to implement precise access control policies,
@@ -82,7 +82,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
specialized roles (like team leads) need to manage their team&apos;s access
without receiving broader administrative powers.
</p>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
<strong>New system:</strong> Users need explicit permission to modify specific
access levels, providing targeted control. After upgrading, you&apos;ll need to
grant the new &apos;Grant Privileges&apos; permission. At the organization
@@ -91,7 +91,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
href="https://infisical.com/docs/internals/permissions/organization-permissions#subject%3A-groups"
target="_blank"
rel="noreferrer"
- className="underline hover:text-bunker-200 hover:decoration-primary-700"
+ className="underline hover:text-foreground-soft hover:decoration-project"
>
Group
</a>{" "}
@@ -100,7 +100,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
href="https://infisical.com/docs/internals/permissions/organization-permissions#subject%3A-identity"
target="_blank"
rel="noreferrer"
- className="underline hover:text-bunker-200 hover:decoration-primary-700"
+ className="underline hover:text-foreground-soft hover:decoration-project"
>
Identity
</a>{" "}
@@ -109,7 +109,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
href="https://infisical.com/docs/internals/permissions/project-permissions#subject%3A-member"
target="_blank"
rel="noreferrer"
- className="underline hover:text-bunker-200 hover:decoration-primary-700"
+ className="underline hover:text-foreground-soft hover:decoration-project"
>
Member,
</a>{" "}
@@ -117,7 +117,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
href="https://infisical.com/docs/internals/permissions/project-permissions#subject%3A-groups"
target="_blank"
rel="noreferrer"
- className="underline hover:text-bunker-200 hover:decoration-primary-700"
+ className="underline hover:text-foreground-soft hover:decoration-project"
>
Group,
</a>{" "}
@@ -126,7 +126,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
href="https://infisical.com/docs/internals/permissions/project-permissions#subject%3A-identity"
target="_blank"
rel="noreferrer"
- className="underline hover:text-bunker-200 hover:decoration-primary-700"
+ className="underline hover:text-foreground-soft hover:decoration-project"
>
Identity
</a>{" "}
@@ -142,7 +142,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
variant="solid"
colorSchema="primary"
size="md"
- className="w-[120px] bg-primary hover:bg-primary-600"
+ className="w-[120px] bg-project hover:bg-project"
>
Continue
</Button>
@@ -150,19 +150,19 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
</div>
) : (
<div className="mb-4">
- <p className="mb-4 text-sm text-mineshaft-300">
+ <p className="mb-4 text-sm text-label">
Your existing access control workflows will continue to function. However, actions
that involve modifying privileges or permissions will now use the new permission-based
system, requiring users to have explicit permission to modify given resource.
</p>
- <p className="mb-4 text-sm text-mineshaft-300">
+ <p className="mb-4 text-sm text-label">
This upgrade affects operations like updating roles, managing group memberships, and
modifying privileges across your organization and projects.
</p>
- <div className="mb-4 rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4">
- <p className="mb-4 text-sm text-mineshaft-300">
+ <div className="mb-4 rounded-lg border border-border-control bg-surface-raised p-4">
+ <p className="mb-4 text-sm text-label">
Once upgraded, your organization <span className="font-bold">cannot</span> revert to
the legacy privilege system. Please ensure you&apos;ve completed all preparations
before proceeding.
@@ -261,7 +261,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
<button
type="button"
onClick={() => setStep("info")}
- className="w-[120px] text-sm text-mineshaft-300 hover:text-mineshaft-200"
+ className="w-[120px] text-sm text-label hover:text-foreground-secondary"
>
Cancel
</button>
@@ -278,7 +278,7 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
variant="solid"
colorSchema="primary"
size="md"
- className="w-[120px] bg-primary hover:bg-primary-600"
+ className="w-[120px] bg-project hover:bg-project"
isDisabled={!isAllChecksCompleted || !isAdmin}
isLoading={isSubmitting}
>
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index ef03e0bf80..62b5f71e67 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@ -128,12 +128,12 @@ const RotationConfirmation = ({
return (
<div className="p-4">
- <div className="flex flex-col rounded-xs border border-l-2 border-mineshaft-600 border-l-primary bg-mineshaft-700/80 px-4 py-3">
+ <div className="flex flex-col rounded-xs border border-l-2 border-border-control border-l-project bg-surface-hover/80 px-4 py-3">
<div className="mb-1 flex items-center text-sm">
- <InfoIcon className="mr-1.5 size-4 text-primary" />
+ <InfoIcon className="mr-1.5 size-4 text-project" />
Automatic Credential Rotation
</div>
- <p className="bor mt-1 text-sm text-bunker-200">
+ <p className="bor mt-1 text-sm text-foreground-soft">
Enabling automatic credential rotation will give Infisical full control over the lifecycle
of this credential. Infisical will automatically rotate the credential on the schedule you
configured and you will no longer be able to manage it manually. The original credential
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/WinRMConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/WinRMConnectionForm.tsx
index 68d6d111fe..79e28986b9 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/WinRMConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/WinRMConnectionForm.tsx
@@ -286,7 +286,7 @@ export const WinRMConnectionForm = ({ appConnection, onSubmit }: Props) => {
render={({ field, fieldState: { error } }) => (
<Field className={sslEnabled ? "mb-4" : "mb-4 opacity-50"}>
<FieldLabel htmlFor="ssl-certificate">
- SSL Certificate <span className="text-mineshaft-400">(optional)</span>
+ SSL Certificate <span className="text-muted">(optional)</span>
</FieldLabel>
<TextArea
id="ssl-certificate"
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/CredentialRotationBadge.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/CredentialRotationBadge.tsx
index 75f74f46ff..390c12f504 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/CredentialRotationBadge.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/CredentialRotationBadge.tsx
@@ -46,16 +46,16 @@ export const CredentialRotationStatusBadge = ({ appConnection }: Props) => {
<TooltipContent side="left" className="max-w-sm select-text">
<div className="flex flex-col gap-2 py-1 whitespace-normal">
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<XIcon className="mr-1.5 ml-1 size-3 shrink-0" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs break-words">
+ <div className="rounded-sm bg-surface-active p-2 text-xs break-words">
{errorMessage}
</div>
</div>
{rotation.nextRotationAt && (
- <span className="text-xs text-mineshaft-300">
+ <span className="text-xs text-label">
Next rotation attempt on {format(rotation.nextRotationAt, "MM/dd/yyyy")} at{" "}
{format(rotation.nextRotationAt, "h:mm aa")}.
</span>
@@ -84,7 +84,7 @@ export const CredentialRotationStatusBadge = ({ appConnection }: Props) => {
Rotates on {format(rotation.nextRotationAt, "MM/dd/yyyy")} at{" "}
{format(rotation.nextRotationAt, "h:mm aa")}
</span>{" "}
- <span className="text-mineshaft-300">(Local Time)</span>
+ <span className="text-label">(Local Time)</span>
</TooltipContent>
</Tooltip>
);
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx
index c51c5fb32f..02de260617 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx
@@ -1,4 +1,5 @@
import { DocumentationLinkBadge } from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { APP_CONNECTION_MAP } from "@app/helpers/appConnections";
import { AppConnection } from "@app/hooks/api/appConnections/enums";
@@ -14,21 +15,21 @@ export const AppConnectionHeader = ({ app, isConnected }: Props) => {
return (
<div className="flex w-full items-start gap-2">
<div className="relative flex h-10 w-10 items-center justify-center rounded-md bg-container">
- <img
+ <ProviderIcon
alt={`${appDetails.name} logo`}
- src={`/images/integrations/${appDetails.image}`}
+ icon={appDetails.image}
className="h-7 w-7 object-contain"
/>
- {AppIcon && <AppIcon className="absolute right-0.5 bottom-0.5 size-3 text-primary-700" />}
+ {AppIcon && <AppIcon className="absolute right-0.5 bottom-0.5 size-3 text-project" />}
</div>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
{appDetails.name}
<DocumentationLinkBadge
href={`https://infisical.com/docs/integrations/app-connections/${app}`}
/>
</div>
- <p className="text-sm leading-4 font-normal text-mineshaft-400">
+ <p className="text-sm leading-4 font-normal text-muted">
{isConnected ? `${appDetails.name} Connection` : `Connect to ${appDetails.name}`}
</p>
</div>
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx
index d67607517e..dad3fadc41 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx
@@ -12,6 +12,7 @@ import {
InputGroupAddon,
InputGroupInput
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { useSubscription } from "@app/context";
import { APP_CONNECTION_MAP, POPULAR_APP_CONNECTIONS } from "@app/helpers/appConnections";
import { usePopUp } from "@app/hooks";
@@ -32,16 +33,12 @@ const ProviderCard = ({ app, onClick }: { app: AppConnection; onClick: () => voi
<button
type="button"
onClick={onClick}
- 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-border-strong hover:bg-surface-hover/50"
>
<div className="flex items-start justify-between gap-2">
- <div className="relative flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
- <img
- src={`/images/integrations/${image}`}
- alt={`${name} logo`}
- className="h-6 w-6 object-contain"
- />
- {AppIcon && <AppIcon className="absolute -right-1 -bottom-1 size-3.5 text-primary-700" />}
+ <div className="relative flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
+ <ProviderIcon icon={image} alt={`${name} logo`} className="h-6 w-6 object-contain" />
+ {AppIcon && <AppIcon className="absolute -right-1 -bottom-1 size-3.5 text-project" />}
</div>
<span className="text-[10px] font-medium tracking-wider text-muted uppercase">
{category}
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
index 600d4006e3..ff19c258fc 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionRow.tsx
@@ -32,6 +32,7 @@ import {
TooltipContent,
TooltipTrigger
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { OrgPermissionSubjects, ProjectPermissionSub, useOrganization } from "@app/context";
import { OrgPermissionAppConnectionActions } from "@app/context/OrgPermissionContext/types";
import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";
@@ -134,13 +135,13 @@ export const AppConnectionRow = ({
<TableCell>
<div className="flex items-center gap-2">
<div className="relative">
- <img
+ <ProviderIcon
alt={`${connectionDetails.name} integration`}
- src={`/images/integrations/${connectionDetails.image}`}
+ icon={connectionDetails.image}
className="mr-0.5 w-5"
/>
{ConnectionIcon && (
- <ConnectionIcon className="absolute -right-0.5 -bottom-0.5 size-3 text-primary-700" />
+ <ConnectionIcon className="absolute -right-0.5 -bottom-0.5 size-3 text-project" />
)}
</div>
<span className="hidden lg:inline">{connectionDetails.name}</span>
@@ -152,7 +153,7 @@ export const AppConnectionRow = ({
{description && (
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="ml-1 size-3.5 text-mineshaft-400" />
+ <InfoIcon className="ml-1 size-3.5 text-muted" />
</TooltipTrigger>
<TooltipContent>{description}</TooltipContent>
</Tooltip>
@@ -168,24 +169,24 @@ export const AppConnectionRow = ({
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
- className="inline-flex items-center gap-1.5 text-mineshaft-100 underline-offset-2 hover:text-primary hover:underline"
+ className="inline-flex items-center gap-1.5 text-foreground underline-offset-2 hover:text-project hover:underline"
>
- <MethodIcon className="size-3.5 text-mineshaft-300/75" />
+ <MethodIcon className="size-3.5 text-label/75" />
<span className="truncate underline">{methodDetails.name}</span>
</a>
</TooltipTrigger>
<TooltipContent>
<div className="flex flex-col gap-0.5">
- <span className="text-[10px] tracking-wider text-mineshaft-400 uppercase">
+ <span className="text-[10px] tracking-wider text-muted uppercase">
{methodDetails.name}
</span>
- <span className="font-mono text-sm text-mineshaft-100">{linkedGitHubApp.slug}</span>
+ <span className="font-mono text-sm text-foreground">{linkedGitHubApp.slug}</span>
</div>
</TooltipContent>
</Tooltip>
) : (
<p className="truncate">
- <MethodIcon className="mr-1.5 inline size-3.5 text-mineshaft-300/75" />
+ <MethodIcon className="mr-1.5 inline size-3.5 text-label/75" />
{methodDetails.name}
</p>
)}
@@ -203,13 +204,13 @@ export const AppConnectionRow = ({
className="underline"
>
<p className="flex items-center gap-1.5 truncate">
- <ProjectIcon className="size-3.5 text-mineshaft-300/75" />
+ <ProjectIcon className="size-3.5 text-label/75" />
{project.name}
</p>
</Link>
) : (
<p className="flex items-center gap-1.5 truncate">
- <OrgIcon className="size-3.5 text-mineshaft-300/75" />
+ <OrgIcon className="size-3.5 text-label/75" />
Organization
</p>
)}
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
index 815f00fc35..94846c96e8 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
@@ -39,6 +39,7 @@ import {
TabsList,
TabsTrigger
} from "@app/components/v3";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
import { OrgPermissionSubjects, ProjectPermissionSub } from "@app/context";
import { OrgPermissionAppConnectionActions } from "@app/context/OrgPermissionContext/types";
import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";
@@ -394,9 +395,9 @@ export const AppConnectionsTable = ({ projectId, projectType }: Props) => {
}}
>
<div className="flex items-center gap-2">
- <img
+ <ProviderIcon
alt={`${APP_CONNECTION_MAP[app].name} integration`}
- src={`/images/integrations/${APP_CONNECTION_MAP[app].image}`}
+ icon={APP_CONNECTION_MAP[app].image}
className="h-4 w-4"
/>
<span>{APP_CONNECTION_MAP[app].name}</span>
@@ -404,7 +405,7 @@ export const AppConnectionsTable = ({ projectId, projectType }: Props) => {
</DropdownMenuCheckboxItem>
))
) : (
- <DropdownMenuLabel className="font-normal text-mineshaft-400">
+ <DropdownMenuLabel className="font-normal text-muted">
No Connections Configured
</DropdownMenuLabel>
)}
diff --git a/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx b/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
index eacf18fb6f..a7197e0d89 100644
--- a/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/AuditLogsPage.tsx
@@ -47,13 +47,13 @@ export const AuditLogsPage = () => {
};
return (
- <div className="h-full bg-bunker-800">
+ <div className="h-full bg-page">
<Helmet>
<title>Infisical | Audit Logs</title>
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 pb-6 text-white">
+ <div className="flex w-full justify-center bg-page pb-6 text-foreground-inverse">
<div className="w-full max-w-8xl">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamHeader.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamHeader.tsx
index 9d8fbbc085..4d6c75c9d0 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamHeader.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamHeader.tsx
@@ -1,6 +1,6 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { DocumentationLinkBadge } from "@app/components/v3";
+import { DocumentationLinkBadge, ProviderIcon } from "@app/components/v3";
import { AUDIT_LOG_STREAM_PROVIDER_MAP } from "@app/helpers/auditLogStreams";
import { LogProvider } from "@app/hooks/api/auditLogStreams/enums";
@@ -16,9 +16,9 @@ export const AuditLogStreamHeader = ({ provider, logStreamExists }: Props) => {
<div className="flex w-full items-start gap-2">
<div className="relative flex h-10 w-10 items-center justify-center rounded-md bg-container">
{providerDetails.image ? (
- <img
+ <ProviderIcon
alt={providerDetails.name}
- src={`/images/integrations/${providerDetails.image}`}
+ icon={providerDetails.image}
className="h-7 w-7 object-contain"
/>
) : (
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamRow.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamRow.tsx
index a8ea5f3935..85620dea1e 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamRow.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamRow.tsx
@@ -8,6 +8,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
+ ProviderIcon,
TableCell,
TableRow
} from "@app/components/v3";
@@ -38,9 +39,9 @@ export const AuditLogStreamRow = ({ logStream, onDelete, onEditCredentials }: Pr
<div className="flex items-center gap-2">
<div className="relative">
{providerDetails.image ? (
- <img
+ <ProviderIcon
alt={providerDetails.name}
- src={`/images/integrations/${providerDetails.image}`}
+ icon={providerDetails.image}
className="size-5"
/>
) : (
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
index c8c19b4320..6904e7af08 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/AuditLogStreamTable.tsx
@@ -18,6 +18,7 @@ import {
InputGroupAddon,
InputGroupInput,
Pagination,
+ ProviderIcon,
Skeleton,
Table,
TableBody,
@@ -200,9 +201,9 @@ export const AuditLogStreamTable = () => {
>
<div className="flex items-center gap-2">
{providerDetails.image ? (
- <img
+ <ProviderIcon
alt={providerDetails.name}
- src={`/images/integrations/${providerDetails.image}`}
+ icon={providerDetails.image}
className="h-4 w-4"
/>
) : (
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx
index 6f167e3575..878375a17c 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx
@@ -3,6 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Loader2Icon } from "lucide-react";
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
+import { ProviderIcon } from "@app/components/v3";
import { AUDIT_LOG_STREAM_PROVIDER_MAP } from "@app/helpers/auditLogStreams";
import { usePopUp } from "@app/hooks";
import { useGetAuditLogStreamOptions } from "@app/hooks/api";
@@ -62,8 +63,8 @@ export const LogStreamProviderSelect = ({ onSelect }: Props) => {
className="group flex h-28 cursor-pointer flex-col items-center justify-center gap-3 rounded-md border border-border bg-card p-4 transition-colors hover:border-foreground/20 hover:bg-container-hover"
>
{image && (
- <img
- src={`/images/integrations/${image}`}
+ <ProviderIcon
+ icon={image}
style={{
width: `${size}px`
}}
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/JsonHighlight.tsx b/frontend/src/pages/organization/AuditLogsPage/components/JsonHighlight.tsx
index 88785b8321..8972d30ad6 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/JsonHighlight.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/JsonHighlight.tsx
@@ -36,7 +36,7 @@ type Props = {
export const JsonHighlight = ({ value, className }: Props) => (
<pre
className={twMerge(
- "thin-scrollbar overflow-auto rounded-md border border-border bg-card p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap text-mineshaft-400",
+ "thin-scrollbar overflow-auto rounded-md border border-border bg-card p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap text-muted",
className
)}
>
diff --git a/frontend/src/pages/organization/BillingPage/OfflineBillingPage.tsx b/frontend/src/pages/organization/BillingPage/OfflineBillingPage.tsx
index 4269a0db5d..b701eee44c 100644
--- a/frontend/src/pages/organization/BillingPage/OfflineBillingPage.tsx
+++ b/frontend/src/pages/organization/BillingPage/OfflineBillingPage.tsx
@@ -14,13 +14,13 @@ export const OfflineBillingPage = () => {
const { t } = useTranslation();
return (
- <div className="h-full bg-bunker-800">
+ <div className="h-full bg-page">
<Helmet>
<title>{t("common.head-title", { title: t("billing.title") })}</title>
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
<PageHeader
scope="org"
diff --git a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
index 7905651312..2e4b02d1e3 100644
--- a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx
@@ -151,7 +151,7 @@ export const BillingV2Page = () => {
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="mb-8 flex w-full justify-center bg-bunker-800 text-white">
+ <div className="mb-8 flex w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
<PageHeader scope="org" title={t("billing.title")} description={pageDescription} />
<OrgPermissionCan
diff --git a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
index 142f5fc6b9..13b848b956 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/RemoveProductModal.tsx
@@ -145,25 +145,25 @@ export const RemoveProductModal = ({ orgId, product, onClose, onRemoved }: Props
to your next invoice, and your other products are unaffected.
</AlertDialogDescription>
</AlertDialogHeader>
- <div className="rounded-md border border-border bg-mineshaft-700/40 px-4 py-3 text-sm">
+ <div className="rounded-md border border-border bg-surface-hover/40 px-4 py-3 text-sm">
{preview.isPending && (
- <span className="text-mineshaft-300">Calculating your prorated credit...</span>
+ <span className="text-label">Calculating your prorated credit...</span>
)}
{preview.isError && (
- <span className="text-mineshaft-300">
+ <span className="text-label">
We couldn&apos;t calculate the credit, but you can still remove this product.
</span>
)}
{preview.data && (
<div className="flex flex-col gap-1.5">
<div className="flex items-center justify-between">
- <span className="text-mineshaft-300">Prorated credit to next invoice</span>
+ <span className="text-label">Prorated credit to next invoice</span>
<span className="font-semibold text-foreground tabular-nums">
{fmtMoney(credit, 2)}
</span>
</div>
<div className="flex items-center justify-between">
- <span className="text-mineshaft-300">New recurring total</span>
+ <span className="text-label">New recurring total</span>
<span className="font-semibold text-foreground tabular-nums">
{fmtMoney(preview.data.nextRecurringTotal, 2)}
</span>
diff --git a/frontend/src/pages/organization/BillingV2Page/components/shared.tsx b/frontend/src/pages/organization/BillingV2Page/components/shared.tsx
index 97604998d7..4d6b7b9035 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/shared.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/shared.tsx
@@ -1,4 +1,4 @@
-import { Fragment, ReactNode, useState } from "react";
+import { CSSProperties, Fragment, ReactNode, useState } from "react";
import { Box, MinusIcon, PlusIcon } from "lucide-react";
import { DynamicIcon, type IconName } from "lucide-react/dynamic";
@@ -50,14 +50,18 @@ export const ProductIcon = ({ product, size = 36 }: ProductIconProps) => {
const iconName = product.icon.replace(/_/g, "-") as IconName;
return (
<div
- className="flex shrink-0 items-center justify-center rounded-md border transition-colors duration-200"
- style={{
- width: size,
- height: size,
- background: `linear-gradient(to bottom right, color-mix(in srgb, ${color} 20%, transparent), color-mix(in srgb, ${color} 5%, transparent))`,
- borderColor: `color-mix(in srgb, ${color} 30%, transparent)`,
- color
- }}
+ className="product-color flex shrink-0 items-center justify-center rounded-md border transition-colors duration-200"
+ style={
+ {
+ "--product-color": color,
+ width: size,
+ height: size,
+ background:
+ "linear-gradient(to bottom right, color-mix(in srgb, var(--product-color-resolved) 20%, transparent), color-mix(in srgb, var(--product-color-resolved) 5%, transparent))",
+ borderColor: "color-mix(in srgb, var(--product-color-resolved) 30%, transparent)",
+ color: "var(--product-color-resolved)"
+ } as CSSProperties
+ }
>
<DynamicIcon name={iconName} size={glyphSize} fallback={ProductIconFallback} />
</div>
@@ -120,7 +124,7 @@ export const CostSummaryRow = ({
// Committed usage (meter fill + legend dot) takes the product's catalog tint, the same source as
// ProductIcon, at the 85% strength the old static token used. On-demand keeps the warning token:
// it flags overage cost, not product identity.
-const committedTint = (color: string) => `color-mix(in srgb, ${color} 85%, transparent)`;
+const committedTint = "color-mix(in srgb, var(--product-color-resolved) 85%, transparent)";
// Rate legend for annually-committed dimensions. DimensionMeter renders it per dim by default; a
// caller can hideLegend the meters and render one combined legend for the block.
@@ -139,12 +143,15 @@ export const DimensionRateLegend = ({
return null;
}
return (
- <div className="flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted">
+ <div
+ className="product-color flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted"
+ style={{ "--product-color": color } as CSSProperties}
+ >
{entries.map((dim) => (
<Fragment key={dim.key}>
{dim.committedRate !== undefined && (
<span className="flex items-center gap-1.5">
- <span className="size-2 rounded-full" style={{ background: committedTint(color) }} />
+ <span className="size-2 rounded-full" style={{ background: committedTint }} />
Committed {`${fmtMoney(dim.committedRate)} / ${dim.noun} /yr`}
</span>
)}
@@ -207,7 +214,10 @@ export const DimensionMeter = ({ dim, color, hideLegend }: DimensionMeterProps)
}
return (
- <div className="flex flex-col gap-1.5">
+ <div
+ className="product-color flex flex-col gap-1.5"
+ style={{ "--product-color": color } as CSSProperties}
+ >
<div className="flex items-baseline justify-between gap-2.5 text-xs">
<span className="text-muted">{dim.label}</span>
<span className="text-muted tabular-nums">{right}</span>
@@ -217,7 +227,7 @@ export const DimensionMeter = ({ dim, color, hideLegend }: DimensionMeterProps)
{/* Segments keep the soft outer corner but sit square against each other at the joint. */}
<div
className={cn("h-full rounded-xs transition-all", onDemandPct > 0 && "rounded-r-none")}
- style={{ width: `${committedPct}%`, background: committedTint(color) }}
+ style={{ width: `${committedPct}%`, background: committedTint }}
/>
{onDemandPct > 0 && (
<div
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
index 90e1c07d4a..b87cada67a 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
@@ -90,7 +90,7 @@ const Page = () => {
search={{
selectedTab: TabSections.Groups
}}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-muted/80"
>
<ChevronLeftIcon size={16} />
{isSubOrganization ? "Sub-" : ""}Organization Groups
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
index 92451bb4b6..45a82d5181 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupProjectModal.tsx
@@ -124,7 +124,7 @@ export const AddGroupProjectModal = ({ popUp, handlePopUpToggle }: Props) => {
<Td className="w-1/3">
<p>{project.name}</p>
{project.description && (
- <p className="text-sm text-mineshaft-400">{project.description}</p>
+ <p className="text-sm text-muted">{project.description}</p>
)}
</Td>
<Td>
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipIdentityRow.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipIdentityRow.tsx
index 2a99ead5ba..341922db14 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipIdentityRow.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipIdentityRow.tsx
@@ -36,7 +36,7 @@ export const GroupMembershipIdentityRow = ({
return (
<TableRow key={`group-identity-${id}`}>
<TableCell>
- <HardDriveIcon size={14} className="text-mineshaft-400" />
+ <HardDriveIcon size={14} className="text-muted" />
</TableCell>
<TableCell isTruncatable>{name}</TableCell>
<TableCell>{format(new Date(joinedGroupAt), "yyyy-MM-dd")}</TableCell>
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipUserRow.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipUserRow.tsx
index b08c0d9fb2..473cc6fcf9 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipUserRow.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembershipUserRow.tsx
@@ -45,7 +45,7 @@ export const GroupMembershipUserRow = ({
return (
<TableRow key={`group-user-${id}`}>
<TableCell>
- <UserIcon size={14} className="text-mineshaft-400" />
+ <UserIcon size={14} className="text-muted" />
</TableCell>
<TableCell isTruncatable>
{fullName ? (
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
index c35537fdc6..44d82c76a8 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
@@ -101,7 +101,7 @@ const Page = () => {
search={{
selectedTab: OrgAccessControlTabSections.Identities
}}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-muted/80"
>
<ChevronLeftIcon size={16} />
{isSubOrganization ? "Sub-" : ""}Organization Machine Identities
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityClientSecrets.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityClientSecrets.tsx
index 10129be263..b7c8545579 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityClientSecrets.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityClientSecrets.tsx
@@ -36,9 +36,9 @@ export const IdentityClientSecrets = ({ identityId, handlePopUpOpen }: Props) =>
return (
<div>
<div className="mb-4">
- <p className="text-sm font-medium text-mineshaft-300">Client ID</p>
+ <p className="text-sm font-medium text-label">Client ID</p>
<div className="group flex align-top">
- <p className="text-sm text-mineshaft-300">{identityUniversalAuth?.clientId ?? ""}</p>
+ <p className="text-sm text-label">{identityUniversalAuth?.clientId ?? ""}</p>
<div className="opacity-0 transition-opacity duration-300 group-hover:opacity-100">
<Tooltip content={copyTextClientId}>
<IconButton
@@ -58,7 +58,7 @@ export const IdentityClientSecrets = ({ identityId, handlePopUpOpen }: Props) =>
</div>
{clientSecrets?.length ? (
<div className="flex justify-between">
- <p className="text-sm font-medium text-mineshaft-300">{`Client Secrets (${clientSecrets.length})`}</p>
+ <p className="text-sm font-medium text-label">{`Client Secrets (${clientSecrets.length})`}</p>
<Button
variant="link"
onClick={() => {
@@ -90,10 +90,8 @@ export const IdentityClientSecrets = ({ identityId, handlePopUpOpen }: Props) =>
<div className="flex items-center">
<FontAwesomeIcon size="1x" icon={faKey} />
<div className="ml-4">
- <p className="text-sm font-medium text-mineshaft-300">
- {`${clientSecretPrefix}****`}
- </p>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm font-medium text-label">{`${clientSecretPrefix}****`}</p>
+ <p className="text-sm text-label">
{expiresAt ? `Expires on ${format(expiresAt, "yyyy-MM-dd")}` : "No Expiry"}
</p>
</div>
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityTokens.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityTokens.tsx
index d0c562bc94..1d3967c23e 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityTokens.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityAuthenticationSection/IdentityTokens.tsx
@@ -28,8 +28,8 @@ export const IdentityTokens = ({ identityId, handlePopUpOpen }: Props) => {
return (
<div>
{tokens?.length ? (
- <div className="flex items-center justify-between border-b border-bunker-400 pb-1">
- <p className="text-sm font-medium text-bunker-300">{`Access Tokens (${tokens.length})`}</p>
+ <div className="flex items-center justify-between border-b border-border-secondary-strong pb-1">
+ <p className="text-sm font-medium text-label-secondary">{`Access Tokens (${tokens.length})`}</p>
<Button
size="xs"
className="underline"
@@ -54,16 +54,14 @@ export const IdentityTokens = ({ identityId, handlePopUpOpen }: Props) => {
);
return (
<div
- className="group flex items-center justify-between border-b border-mineshaft-500 px-2 py-2 last:pb-0"
+ className="group flex items-center justify-between border-b border-border-strong px-2 py-2 last:pb-0"
key={`identity-token-${token.id}`}
>
<div className="flex items-center">
- <FontAwesomeIcon size="xs" className="text-mineshaft-400" icon={faKey} />
+ <FontAwesomeIcon size="xs" className="text-muted" icon={faKey} />
<div className="ml-3">
- <p className="text-sm font-medium text-mineshaft-300">
- {token.name ? token.name : "-"}
- </p>
- <p className="text-xs text-mineshaft-400">
+ <p className="text-sm font-medium text-label">{token.name ? token.name : "-"}</p>
+ <p className="text-xs text-muted">
{token.isAccessTokenRevoked
? "Revoked"
: `Expires on ${format(expiresAt, "yyyy-MM-dd")}`}
diff --git a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
index 5bbce7191f..9e20438fdc 100644
--- a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
+++ b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx
@@ -92,7 +92,7 @@ export const IntegrationsPage = () => {
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
index acb18f3778..78a77f23f2 100644
--- a/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
+++ b/frontend/src/pages/organization/KmipServersPage/KmipServersPage.tsx
@@ -9,8 +9,10 @@ export const KmipServersPage = () => {
<title>Infisical | KMIP Servers</title>
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="mx-auto flex w-full max-w-8xl flex-col">
- <KmipServerTab />
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
+ <div className="w-full max-w-8xl">
+ <KmipServerTab />
+ </div>
</div>
</>
);
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
index 6e16d323cb..aeccd6e90d 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
@@ -46,7 +46,7 @@ const Page = () => {
to="/organizations/$orgId/networking"
params={{ orgId }}
search={{ selectedTab: "gateways" }}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition hover:text-muted/80"
>
<ChevronLeftIcon size={16} />
Gateways
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayConnectedResourcesSection/GatewayConnectedResourcesSection.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayConnectedResourcesSection/GatewayConnectedResourcesSection.tsx
index 1edd310b92..2b05d6c48a 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayConnectedResourcesSection/GatewayConnectedResourcesSection.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayConnectedResourcesSection/GatewayConnectedResourcesSection.tsx
@@ -56,9 +56,9 @@ const ResourceRow = ({
<Link to={to as "/"} params={params} search={search as never}>
<ItemContent>
<ItemTitle>{name}</ItemTitle>
- <ItemDescription className="text-mineshaft-400">{subtitle}</ItemDescription>
+ <ItemDescription className="text-muted">{subtitle}</ItemDescription>
</ItemContent>
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
</Item>
);
diff --git a/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx b/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
index f68aa7528e..5057965d77 100644
--- a/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/NetworkingPage.tsx
@@ -14,7 +14,7 @@ export const NetworkingPage = () => {
<title>Infisical | Networking</title>
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
index 07ab44d1a4..0f01cbce15 100644
--- a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/RelayDetailsByIDPage.tsx
@@ -46,7 +46,7 @@ const Page = () => {
to="/organizations/$orgId/networking"
params={{ orgId }}
search={{ selectedTab: "relays" }}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition hover:text-muted/80"
>
<ChevronLeftIcon size={16} />
Relays
diff --git a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayConnectedGatewaysSection/RelayConnectedGatewaysSection.tsx b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayConnectedGatewaysSection/RelayConnectedGatewaysSection.tsx
index 80d4805bad..3e73697b11 100644
--- a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayConnectedGatewaysSection/RelayConnectedGatewaysSection.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayConnectedGatewaysSection/RelayConnectedGatewaysSection.tsx
@@ -122,11 +122,11 @@ export const RelayConnectedGatewaysSection = ({ relayId }: { relayId: string })
>
<ItemContent>
<ItemTitle>{g.name}</ItemTitle>
- <ItemDescription className="text-mineshaft-400">
+ <ItemDescription className="text-muted">
{gatewaySubtitle(g)}
</ItemDescription>
</ItemContent>
- <ExternalLinkIcon className="size-3.5 text-mineshaft-400" />
+ <ExternalLinkIcon className="size-3.5 text-muted" />
</Link>
</Item>
))}
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/EditGatewayDetailsModal.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/EditGatewayDetailsModal.tsx
index 328897180c..de465267a6 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/EditGatewayDetailsModal.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/EditGatewayDetailsModal.tsx
@@ -55,7 +55,7 @@ export const EditGatewayDetailsModal = ({ gatewayDetails, onClose }: Props) => {
return (
<form onSubmit={handleSubmit(onFormSubmit)}>
<NoticeBannerV2 className="mx-auto mb-4" title="Project Linking">
- <p className="mt-1 text-xs text-mineshaft-300">
+ <p className="mt-1 text-xs text-label">
Since the 15th May 2025, all gateways are automatically available for use in all projects
and you no longer need to link them.
<br />
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
index cc44a18273..673d51a0e6 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/PoolConnectedResourcesDrawer.tsx
@@ -47,15 +47,15 @@ type ResourceRowProps = {
const ResourceRow = ({ name, subtitle, to, params, isLast }: ResourceRowProps) => {
const className = `flex items-center justify-between px-4 py-2.5 ${
- to ? "transition-colors hover:bg-mineshaft-700/30" : ""
- } ${!isLast ? "border-b border-mineshaft-600" : ""}`;
+ to ? "transition-colors hover:bg-surface-hover/30" : ""
+ } ${!isLast ? "border-b border-border-control" : ""}`;
const inner = (
<>
<div className="flex flex-col gap-0.5">
- <span className="text-sm text-mineshaft-100">{name}</span>
- <span className="text-xs text-mineshaft-400">{subtitle}</span>
+ <span className="text-sm text-foreground">{name}</span>
+ <span className="text-xs text-muted">{subtitle}</span>
</div>
- {to ? <ExternalLinkIcon className="size-3.5 text-mineshaft-400" /> : null}
+ {to ? <ExternalLinkIcon className="size-3.5 text-muted" /> : null}
</>
);
@@ -87,7 +87,7 @@ export const PoolConnectedResourcesDrawer = ({ isOpen, onOpenChange, poolId, poo
return (
<Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="overflow-y-auto">
- <SheetHeader className="border-b border-mineshaft-600">
+ <SheetHeader className="border-b border-border-control">
<SheetTitle>Connected Resources</SheetTitle>
<SheetDescription>{poolName}</SheetDescription>
</SheetHeader>
@@ -99,7 +99,7 @@ export const PoolConnectedResourcesDrawer = ({ isOpen, onOpenChange, poolId, poo
</div>
) : (
<div className="flex flex-col gap-4">
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm text-label">
{totalCount > 0 ? (
<>
{totalCount} resource{totalCount !== 1 ? "s" : ""} connected
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
index 256c322888..b5abaa2a10 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
@@ -15,13 +15,13 @@ export const RelayOption = ({
<components.Option isSelected={isSelected} {...props}>
<div className="flex flex-row items-center justify-between">
{isCreateOption && (
- <div className="flex items-center gap-x-1 text-mineshaft-400">
+ <div className="flex items-center gap-x-1 text-muted">
<FontAwesomeIcon icon={faPlus} size="sm" />
<span className="mr-auto">Deploy New Relay</span>
</div>
)}
{isAutoOption && (
- <div className="flex items-center gap-x-1 text-mineshaft-400">
+ <div className="flex items-center gap-x-1 text-muted">
<FontAwesomeIcon icon={faWandMagicSparkles} size="sm" />
<span className="mr-auto">Auto Select Relay</span>
</div>
@@ -30,7 +30,7 @@ export const RelayOption = ({
<>
<p className="truncate">{children}</p>
{isSelected && (
- <FontAwesomeIcon className="ml-2 text-primary" icon={faCheckCircle} size="sm" />
+ <FontAwesomeIcon className="ml-2 text-project" icon={faCheckCircle} size="sm" />
)}
</>
)}
diff --git a/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodLabel.tsx b/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodLabel.tsx
index c40f148130..95c8aef706 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodLabel.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/NetworkingAuthMethodLabel.tsx
@@ -5,6 +5,8 @@ import {
} from "react-select";
import { CheckIcon, KeyIcon } from "lucide-react";
+import { ProviderIcon } from "@app/components/v3";
+
export type NetworkingAuthMethod = "aws" | "kubernetes" | "token";
export type NetworkingAuthMethodOption = {
@@ -21,8 +23,8 @@ export const NETWORKING_AUTH_METHOD_OPTIONS: NetworkingAuthMethodOption[] = [
const NetworkingAuthMethodIcon = ({ method }: { method: NetworkingAuthMethod }) => {
if (method === "aws") {
return (
- <img
- src="/images/integrations/Amazon Web Services.png"
+ <ProviderIcon
+ icon="Amazon Web Services.png"
alt=""
aria-hidden
className="size-4 object-contain"
diff --git a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
index dec4bbddd3..d266eb84da 100644
--- a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
+++ b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
@@ -104,7 +104,7 @@ export const NoOrgPage = () => {
<title>{t("common.head-title", { title: t("settings.org.title") })}</title>
<link rel="icon" href="/infisical.ico" />
</Helmet>
- <div className="min-h-screen bg-bunker-800">
+ <div className="min-h-screen bg-page">
{failed ? (
<CreateOrgModal isOpen logoutOnClose />
) : (
diff --git a/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx b/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
index d6c3852b01..4419edc152 100644
--- a/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
+++ b/frontend/src/pages/organization/OauthApplicationsPage/OauthApplicationsPage.tsx
@@ -14,7 +14,7 @@ export const OauthApplicationsPage = () => {
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx b/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
index 85e1e31609..f1e9c6e938 100644
--- a/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
+++ b/frontend/src/pages/organization/OauthConsentPage/OauthConsentPage.tsx
@@ -74,7 +74,7 @@ export const OauthConsentPage = () => {
if (isRedirecting) {
return (
- <div className="flex min-h-screen flex-col items-center justify-center bg-bunker-800">
+ <div className="flex min-h-screen flex-col items-center justify-center bg-page">
<Card className="w-full max-w-md items-center text-center">
<div className="flex size-16 items-center justify-center rounded-full bg-success/10">
<CheckCircle2 className="size-8 text-success" />
@@ -90,7 +90,7 @@ export const OauthConsentPage = () => {
}
return (
- <div className="flex min-h-screen flex-col items-center justify-center bg-bunker-800">
+ <div className="flex min-h-screen flex-col items-center justify-center bg-page">
<Helmet>
<title>Authorize Application</title>
<link rel="icon" href="/infisical.ico" />
diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
index 5b0377b66c..5ccfcb2909 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx
@@ -77,7 +77,7 @@ export const ProductSettingsPage = () => {
<link rel="icon" href="/infisical.ico" />
</Helmet>
<div className="h-full">
- <div className="mx-auto h-full w-full max-w-8xl text-white">
+ <div className="mx-auto h-full w-full max-w-8xl bg-page text-foreground-inverse">
<PageHeader
scope={ProjectType.SecretManager}
title="Product Settings"
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
index 635cdadfe1..a58b444d4e 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
@@ -153,7 +153,7 @@ export const ProjectTemplateEditRoleForm = ({
{isDisabled ? (
<div className="flex flex-col">
<span className="text-lg font-medium">{role?.name}</span>
- <span className="text-mineshaft-400">{role?.slug}</span>
+ <span className="text-muted">{role?.slug}</span>
</div>
) : (
<div className="flex w-full gap-2">
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
index ef53c7aadc..3099e7899b 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
@@ -214,7 +214,7 @@ export const ProjectTemplateEnvironmentsForm = ({
</TableCell>
{!isInfisicalTemplate && (
<TableCell>
- <div className="flex items-center justify-end gap-3 text-mineshaft-400">
+ <div className="flex items-center justify-end gap-3 text-muted">
<OrgPermissionCan
I={OrgPermissionActions.Edit}
a={OrgPermissionSubjects.ProjectTemplates}
@@ -253,7 +253,7 @@ export const ProjectTemplateEnvironmentsForm = ({
</IconButton>
)}
</OrgPermissionCan>
- <div className="h-7 w-px bg-mineshaft-600" />
+ <div className="h-7 w-px bg-surface-active" />
<OrgPermissionCan
I={OrgPermissionActions.Edit}
a={OrgPermissionSubjects.ProjectTemplates}
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
index 6115bd9f00..7ece25723e 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
@@ -248,7 +248,7 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {
name={`groups.${pos}.groupSlug`}
render={({ field }) => (
<p className="truncate">
- <span className="text-sm font-medium text-mineshaft-100">
+ <span className="text-sm font-medium text-foreground">
{getGroupName(field.value)}
</span>
</p>
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
index 2456be621a..7a7cfaada3 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
@@ -364,7 +364,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
<TableRow key={item.id}>
<TableCell className="py-2">
<p className="truncate">
- <span className="truncate text-sm font-medium text-mineshaft-100">
+ <span className="truncate text-sm font-medium text-foreground">
{item.name}
</span>
</p>
@@ -492,16 +492,16 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
</Tabs>
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon size={16} className="text-mineshaft-400" />
+ <InfoIcon size={16} className="text-muted" />
</TooltipTrigger>
<TooltipContent className="max-w-sm" side="right" align="start">
- <p className="mb-2 text-mineshaft-300">
+ <p className="mb-2 text-label">
You can add machine identities to your template in one of two ways:
</p>
<ul className="ml-3.5 flex list-disc flex-col gap-y-4">
- <li className="text-mineshaft-200">
- <strong className="font-medium text-mineshaft-100">Create New</strong> - Define
- a new machine identity that will be created when a project is made from this
+ <li className="text-foreground-secondary">
+ <strong className="font-medium text-foreground">Create New</strong> - Define a
+ new machine identity that will be created when a project is made from this
template.
<p className="mt-2">
This method is recommended for autonomous teams that need to manage machine
@@ -509,7 +509,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
</p>
</li>
<li>
- <strong className="font-medium text-mineshaft-100">Assign Existing</strong> -
+ <strong className="font-medium text-foreground">Assign Existing</strong> -
Assign an existing machine identity from your organization.
<p className="mt-2">
This method is recommended for organizations that need to maintain centralized
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
index 6915b53d4c..92bafd38e5 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
@@ -249,7 +249,7 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {
name={`users.${pos}.username`}
render={({ field }) => (
<p className="truncate">
- <span className="text-sm font-medium text-mineshaft-100">
+ <span className="text-sm font-medium text-foreground">
{field.value}
</span>
</p>
diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
index 6b5c1a3d5c..6f8e6c3a61 100644
--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatePage.tsx
@@ -56,12 +56,12 @@ export const ProjectTemplatePage = ({ templateId, projectType, onBack }: Props)
<link rel="icon" href="/infisical.ico" />
</Helmet>
<div className="h-full">
- <div className="mx-auto h-full w-full max-w-8xl text-white">
+ <div className="mx-auto h-full w-full max-w-8xl bg-page text-foreground-inverse">
<Button
variant="ghost"
type="button"
onClick={onBack}
- className="mb-2 px-0 text-mineshaft-300 hover:bg-transparent hover:text-mineshaft-100"
+ className="mb-2 px-0 text-label hover:bg-transparent hover:text-foreground"
>
<ChevronLeft className="size-4" />
Back to Templates
@@ -74,7 +74,7 @@ export const ProjectTemplatePage = ({ templateId, projectType, onBack }: Props)
{getProjectTitle(projectType)}
{projectTemplate?.description && (
<>
- <span className="px-2 text-mineshaft-500">&bull;</span>
+ <span className="px-2 text-surface-selected">&bull;</span>
{projectTemplate.description}
</>
)}
diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
index 3402885da3..c82a59429d 100644
--- a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx
@@ -594,21 +594,21 @@ const MyProjectsForType = ({
<Card key={`workspace-cards-loading-${i + 1}`} className="h-full bg-container">
<CardHeader>
<div className="flex items-start gap-3">
- <Skeleton className="h-9 w-9 shrink-0 rounded-sm bg-mineshaft-600" />
+ <Skeleton className="h-9 w-9 shrink-0 rounded-sm bg-surface-active" />
<div className="flex min-w-0 flex-1 flex-col gap-2">
- <Skeleton className="h-4 w-1/2 bg-mineshaft-600" />
- <Skeleton className="h-3 w-1/3 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-1/2 bg-surface-active" />
+ <Skeleton className="h-3 w-1/3 bg-surface-active" />
</div>
</div>
</CardHeader>
<CardContent className="flex flex-col gap-3">
<div className="flex flex-col gap-2">
- <Skeleton className="h-3 w-full bg-mineshaft-600" />
- <Skeleton className="h-3 w-2/3 bg-mineshaft-600" />
+ <Skeleton className="h-3 w-full bg-surface-active" />
+ <Skeleton className="h-3 w-2/3 bg-surface-active" />
</div>
<div className="flex items-center justify-between border-t border-border pt-3">
- <Skeleton className="h-3 w-16 bg-mineshaft-600" />
- <Skeleton className="h-3 w-24 bg-mineshaft-600" />
+ <Skeleton className="h-3 w-16 bg-surface-active" />
+ <Skeleton className="h-3 w-24 bg-surface-active" />
</div>
</CardContent>
</Card>
@@ -627,19 +627,19 @@ const MyProjectsForType = ({
{Array.apply(0, Array(3)).map((_x, i) => (
<TableRow key={`workspace-rows-loading-${i + 1}`}>
<TableCell>
- <Skeleton className="h-4 w-4 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-4 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-1/2 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-1/2 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-3/4 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-3/4 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-24 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-24 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-7 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-7 bg-surface-active" />
</TableCell>
</TableRow>
))}
@@ -856,19 +856,19 @@ const AllProjectsForType = ({
{Array.apply(0, Array(3)).map((_x, i) => (
<TableRow key={`workspace-rows-loading-${i + 1}`}>
<TableCell>
- <Skeleton className="h-4 w-4 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-4 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-1/2 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-1/2 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-3/4 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-3/4 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-24 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-24 bg-surface-active" />
</TableCell>
<TableCell>
- <Skeleton className="h-4 w-20 bg-mineshaft-600" />
+ <Skeleton className="h-4 w-20 bg-surface-active" />
</TableCell>
</TableRow>
))}
diff --git a/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx b/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
index a501f47ec5..533dd8c9c9 100644
--- a/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
+++ b/frontend/src/pages/organization/RoleByIDPage/RoleByIDPage.tsx
@@ -66,7 +66,7 @@ export const Page = () => {
const isCustomRole = !["admin", "member", "no-access"].includes(data?.slug ?? "");
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
{data && (
<div className="mx-auto w-full max-w-8xl">
<Link
diff --git a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
index 73fe35dfcf..6a32be66ce 100644
--- a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
+++ b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx
@@ -165,7 +165,7 @@ export const SecretInsightsPage = withPermission(
<link rel="icon" href="/infisical.ico" />
</Helmet>
<div className="h-full">
- <div className="mx-auto h-full w-full max-w-8xl bg-bunker-800 text-white">
+ <div className="mx-auto h-full w-full max-w-8xl bg-page text-foreground-inverse">
<PageHeader
className="mb-4 dashboard:mb-10"
scope={ProjectType.SecretManager}
@@ -174,7 +174,7 @@ export const SecretInsightsPage = withPermission(
>
<div className="flex items-center gap-3">
{lastSentReport && (
- <span className="flex items-center gap-1.5 text-xs whitespace-nowrap text-mineshaft-300">
+ <span className="flex items-center gap-1.5 text-xs whitespace-nowrap text-label">
<FileTextIcon className="size-3.5" />
Last report sent {format(new Date(lastSentReport.createdAt), "MMM d, yyyy")}
</span>
diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/RequestOrgAuditReportModal.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/RequestOrgAuditReportModal.tsx
index af716fb988..58476f56c9 100644
--- a/frontend/src/pages/organization/SecretInsightsPage/components/RequestOrgAuditReportModal.tsx
+++ b/frontend/src/pages/organization/SecretInsightsPage/components/RequestOrgAuditReportModal.tsx
@@ -123,7 +123,7 @@ export const RequestOrgAuditReportModal = ({
<FieldLabel>Reports</FieldLabel>
<button
type="button"
- className="cursor-pointer text-xs font-medium text-muted transition-colors hover:text-mineshaft-300"
+ className="cursor-pointer text-xs font-medium text-muted transition-colors hover:text-label"
onClick={() => field.onChange(allSelected ? [] : [...availableReportTypes])}
>
{allSelected ? "Deselect All" : "Select All"}
diff --git a/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx b/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
index 93f040e636..5fb125b471 100644
--- a/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/SecretSharingPage.tsx
@@ -18,7 +18,7 @@ export const SecretSharingPage = () => {
<meta name="og:description" content={String(t("approval.og-description"))} />
</Helmet>
<div className="h-full">
- <div className="mx-auto h-full w-full max-w-8xl text-white">
+ <div className="mx-auto h-full w-full max-w-8xl bg-page text-foreground-inverse">
<PageHeader
scope={ProjectType.SecretManager}
title="Secret Sharing"
diff --git a/frontend/src/pages/organization/SettingsPage/SettingsPage.tsx b/frontend/src/pages/organization/SettingsPage/SettingsPage.tsx
index e6a1519c30..66f27b0726 100644
--- a/frontend/src/pages/organization/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/organization/SettingsPage/SettingsPage.tsx
@@ -2,7 +2,7 @@ import { OrgTabGroup } from "./components";
export const SettingsPage = () => {
return (
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
<OrgTabGroup />
</div>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
index 31b7012765..8377662f60 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
@@ -162,7 +162,7 @@ export const OrgCertManagerTab = () => {
href="https://infisical.com/docs/documentation/platform/pki/migration"
target="_blank"
rel="noopener noreferrer"
- className="underline hover:text-mineshaft-200"
+ className="underline hover:text-foreground-secondary"
>
Learn more →
</a>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/AddExternalKmsForm.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/AddExternalKmsForm.tsx
index 0d9d9f0fae..ac1402ff32 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/AddExternalKmsForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/AddExternalKmsForm.tsx
@@ -7,6 +7,7 @@ import {
ItemDescription,
ItemMedia,
ItemTitle,
+ ProviderIcon,
Sheet,
SheetContent,
SheetDescription,
@@ -27,13 +28,13 @@ type Props = {
const EXTERNAL_KMS_LIST = [
{
- icon: "/images/integrations/Amazon Web Services.png",
+ icon: "Amazon Web Services.png",
provider: ExternalKmsProvider.Aws,
title: "AWS KMS",
description: "Use an AWS KMS key to encrypt organization data."
},
{
- icon: "/images/integrations/Google Cloud Platform.png",
+ icon: "Google Cloud Platform.png",
provider: ExternalKmsProvider.Gcp,
title: "GCP KMS",
description: "Use a Google Cloud KMS key to encrypt organization data."
@@ -85,7 +86,7 @@ export const AddExternalKmsForm = ({ isOpen, onToggle }: Props) => {
>
<button type="button" onClick={() => setSelectedProvider(provider)}>
<ItemMedia variant="image">
- <img src={icon} alt="" />
+ <ProviderIcon icon={icon} alt="" />
</ItemMedia>
<ItemContent>
<ItemTitle>{title}</ItemTitle>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/ExternalKmsItem.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/ExternalKmsItem.tsx
index 81ced109de..7bd1541201 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/ExternalKmsItem.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/ExternalKmsItem.tsx
@@ -8,6 +8,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
+ ProviderIcon,
TableCell,
TableRow
} from "@app/components/v3";
@@ -35,8 +36,8 @@ type Props = {
export const ExternalKmsItem = ({ kms, handlePopUpOpen, subscription }: Props) => {
const providerIcon =
kms.externalKms.provider === ExternalKmsProvider.Aws
- ? "/images/integrations/Amazon Web Services.png"
- : "/images/integrations/Google Cloud Platform.png";
+ ? "Amazon Web Services.png"
+ : "Google Cloud Platform.png";
const handleEdit = (popUpName: "editExternalKmsDetails" | "editExternalKmsCredentials") => {
if (subscription && !subscription.externalKms) {
@@ -57,7 +58,7 @@ export const ExternalKmsItem = ({ kms, handlePopUpOpen, subscription }: Props) =
<TableRow key={kms.id}>
<TableCell>
<div className="flex items-center gap-2">
- <img src={providerIcon} alt="" className="size-5 object-contain" />
+ <ProviderIcon icon={providerIcon} alt="" className="size-5 object-contain" />
<span className="font-medium text-foreground">
{kms.externalKms.provider.toUpperCase()}
</span>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
index 54e997aa07..0a6386ce14 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
@@ -63,9 +63,9 @@ export const OrgProductSelectSection = () => {
};
return (
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-6 py-5">
- <h2 className="text-xl font-medium text-mineshaft-100">Enabled Products</h2>
- <p className="mb-4 text-gray-400">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base px-6 py-5">
+ <h2 className="text-xl font-medium text-foreground">Enabled Products</h2>
+ <p className="mb-4 text-muted-cool">
Select which products are available for your organization.
</p>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/ScimEvents.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/ScimEvents.tsx
index db16b0d3a2..0c02cd8964 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/ScimEvents.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/ScimEvents.tsx
@@ -125,7 +125,7 @@ export const ScimEvents = () => {
</span>
</TooltipTrigger>
<TooltipContent className="max-w-xl">
- <div className="my-1 max-h-96 thin-scrollbar overflow-auto rounded-sm border border-border bg-bunker-800 p-2 font-mono leading-6 whitespace-pre-wrap">
+ <div className="my-1 max-h-96 thin-scrollbar overflow-auto rounded-sm border border-border bg-page p-2 font-mono leading-6 whitespace-pre-wrap">
{JSON.stringify(scimEvent, null, 4)}
</div>
</TooltipContent>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
index baee09fe8b..adb71392de 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/LDAPModal.tsx
@@ -487,7 +487,7 @@ export const LDAPModal = ({ popUp, handlePopUpClose, handlePopUpToggle, hideDele
{...field}
/>
<FieldError>{error?.message}</FieldError>
- <p className="mt-1 text-xs text-mineshaft-400">
+ <p className="mt-1 text-xs text-muted">
PEM-encoded client certificate used for mutual TLS (mTLS).
</p>
</Field>
@@ -511,7 +511,7 @@ export const LDAPModal = ({ popUp, handlePopUpClose, handlePopUpToggle, hideDele
{...field}
/>
<FieldError>{error?.message}</FieldError>
- <p className="mt-1 text-xs text-mineshaft-400">
+ <p className="mt-1 text-xs text-muted">
PEM-encoded private key matching the Client Certificate. Stored
encrypted server-side and never returned to the browser after save.
</p>
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModalHeader.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModalHeader.tsx
index 64e48ead96..002792dc0d 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModalHeader.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/SSOModalHeader.tsx
@@ -16,18 +16,18 @@ const docsBaseUrl = "https://infisical.com/docs/documentation/platform/sso";
export const SSOModalHeader = ({ providerDetails, isConnected }: Props) => {
return (
- <div className="mb-4 flex w-full items-start gap-2 border-b border-mineshaft-500 pb-4">
+ <div className="mb-4 flex w-full items-start gap-2 border-b border-border-strong pb-4">
<img
alt={`${providerDetails.label} logo`}
src={`/images/sso/${providerDetails.image}`}
className="h-10 w-10 rounded-md bg-foreground/5 p-1.5"
/>
<div>
- <div className="flex items-center gap-x-2 text-mineshaft-300">
+ <div className="flex items-center gap-x-2 text-label">
{providerDetails.label}
<DocumentationLinkBadge href={`${docsBaseUrl}/${providerDetails.docsUrl}`} />
</div>
- <p className="text-sm leading-4 text-mineshaft-400">
+ <p className="text-sm leading-4 text-muted">
{isConnected
? `${providerDetails.label} Connection`
: `Connect to ${providerDetails.label}`}
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/EditProjectTemplate.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/EditProjectTemplate.tsx
index 35f1a2006e..d020631365 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/EditProjectTemplate.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/EditProjectTemplate.tsx
@@ -47,10 +47,10 @@ export const EditProjectTemplate = ({ isInfisicalTemplate, projectTemplate, onBa
return (
<>
- <div className="mb-4 flex items-start justify-between border-b border-bunker-400 pb-4">
+ <div className="mb-4 flex items-start justify-between border-b border-border-secondary-strong pb-4">
<div className="flex-col">
<h3 className="text-xl font-medium">{name}</h3>
- <h2 className="text-sm text-mineshaft-400">
+ <h2 className="text-sm text-muted">
{`${getProjectTitle(type)} - `}
{description || "Project Template"}
</h2>
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
index 16d7644bfd..e337614afc 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEditRoleForm.tsx
@@ -116,10 +116,10 @@ export const ProjectTemplateEditRoleForm = ({
return (
<form
onSubmit={handleFormSubmit}
- className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4"
+ className="w-full rounded-lg border border-border-control bg-surface-base p-4"
>
<FormProvider {...formMethods}>
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-2">
<Button variant="ghost" disabled={isSubmitting} onClick={onGoBack}>
<ChevronLeftIcon />
{isDisabled ? "Back" : "Cancel"}
@@ -153,11 +153,11 @@ export const ProjectTemplateEditRoleForm = ({
</div>
)}
</div>
- <div className="mt-2 border-b border-gray-800 p-4 pt-2 first:rounded-t-md last:rounded-b-md">
+ <div className="mt-2 border-b border-border-cool-subtle p-4 pt-2 first:rounded-t-md last:rounded-b-md">
{isDisabled ? (
<div className="flex flex-col">
<span className="text-lg font-medium">{role?.name}</span>
- <span className="text-mineshaft-400">{role?.slug}</span>
+ <span className="text-muted">{role?.slug}</span>
</div>
) : (
<div className="flex w-full gap-2">
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
index f11e9ecc8e..361083ec2d 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateEnvironmentsForm.tsx
@@ -90,13 +90,13 @@ export const ProjectTemplateEnvironmentsForm = ({
return (
<form
onSubmit={handleSubmit(onFormSubmit)}
- className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4"
+ className="mb-6 rounded-lg border border-border-control bg-surface-base p-4"
>
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
<div>
<h2 className="text-lg font-medium">Project Environments</h2>
{!isInfisicalTemplate && (
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
Add, rename, remove and reorder environments for this project template
</p>
)}
@@ -122,7 +122,7 @@ export const ProjectTemplateEnvironmentsForm = ({
)}
</div>
{errors.environments && (
- <span className="my-4 text-sm text-red">{errors.environments.message}</span>
+ <span className="my-4 text-sm text-danger">{errors.environments.message}</span>
)}
<TableContainer>
<Table>
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
index a9a67686ef..29276144bb 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx
@@ -180,12 +180,12 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {
<>
<form
onSubmit={handleSubmit(onFormSubmit)}
- className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4"
+ className="mb-6 rounded-lg border border-border-control bg-surface-base p-4"
>
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
<div>
<h2 className="text-lg font-medium">Project Groups</h2>
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
Add groups that will be automatically added to projects created from this template
</p>
</div>
@@ -230,7 +230,7 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {
)}
</OrgPermissionCan>
</div>
- {errors.groups && <span className="my-4 text-sm text-red">{errors.groups.message}</span>}
+ {errors.groups && <span className="my-4 text-sm text-danger">{errors.groups.message}</span>}
<TableContainer>
<Table>
<THead>
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
index 9b02ab79dc..59b04cb858 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx
@@ -290,12 +290,12 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
<>
<form
onSubmit={handleSubmit(onFormSubmit)}
- className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4"
+ className="mb-6 rounded-lg border border-border-control bg-surface-base p-4"
>
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
<div>
<h2 className="text-lg font-medium">Project Machine Identities</h2>
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
Add machine identities that will be automatically added to projects created from this
template
</p>
@@ -342,10 +342,12 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
</OrgPermissionCan>
</div>
{errors.identities && (
- <span className="my-4 text-sm text-red">{errors.identities.message}</span>
+ <span className="my-4 text-sm text-danger">{errors.identities.message}</span>
)}
{errors.projectManagedIdentities && (
- <span className="my-4 text-sm text-red">{errors.projectManagedIdentities.message}</span>
+ <span className="my-4 text-sm text-danger">
+ {errors.projectManagedIdentities.message}
+ </span>
)}
<TableContainer>
<Table>
@@ -485,7 +487,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
subTitle="Create a new machine identity or assign an existing one"
>
<div className="mb-4 flex items-center justify-center gap-x-2">
- <div className="flex w-3/4 gap-x-0.5 rounded-md border border-mineshaft-600 bg-mineshaft-800 p-1">
+ <div className="flex w-3/4 gap-x-0.5 rounded-md border border-border-control bg-surface-raised p-1">
<Button
variant="outline_bg"
onClick={() => {
@@ -493,9 +495,9 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
}}
size="xs"
className={twMerge(
- "min-w-[2.4rem] flex-1 rounded border-none hover:bg-mineshaft-600",
+ "min-w-[2.4rem] flex-1 rounded border-none hover:bg-surface-active",
addMachineIdentityType === AddIdentityType.CreateNew
- ? "bg-mineshaft-500"
+ ? "bg-surface-selected"
: "bg-transparent"
)}
>
@@ -508,9 +510,9 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
}}
size="xs"
className={twMerge(
- "min-w-[2.4rem] flex-1 rounded border-none hover:bg-mineshaft-600",
+ "min-w-[2.4rem] flex-1 rounded border-none hover:bg-surface-active",
addMachineIdentityType === AddIdentityType.AssignExisting
- ? "bg-mineshaft-500"
+ ? "bg-surface-selected"
: "bg-transparent"
)}
>
@@ -523,21 +525,21 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
align="start"
content={
<>
- <p className="mb-2 text-mineshaft-300">
+ <p className="mb-2 text-label">
You can add machine identities to your template in one of two ways:
</p>
<ul className="ml-3.5 flex list-disc flex-col gap-y-4">
- <li className="text-mineshaft-200">
- <strong className="font-medium text-mineshaft-100">Create New</strong> -
- Define a new machine identity that will be created when a project is made from
- this template.
+ <li className="text-foreground-secondary">
+ <strong className="font-medium text-foreground">Create New</strong> - Define a
+ new machine identity that will be created when a project is made from this
+ template.
<p className="mt-2">
This method is recommended for autonomous teams that need to manage machine
identity authentication at the project level.
</p>
</li>
<li>
- <strong className="font-medium text-mineshaft-100">Assign Existing</strong> -
+ <strong className="font-medium text-foreground">Assign Existing</strong> -
Assign an existing machine identity from your organization.
<p className="mt-2">
This method is recommended for organizations that need to maintain
@@ -548,7 +550,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>
</>
}
>
- <InfoIcon size={16} className="text-mineshaft-400" />
+ <InfoIcon size={16} className="text-muted" />
</Tooltip>
</div>
{addMachineIdentityType === AddIdentityType.CreateNew && (
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateRolesSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateRolesSection.tsx
index 699e36b7f3..d736fe50c9 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateRolesSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateRolesSection.tsx
@@ -100,11 +100,11 @@ export const ProjectTemplateRolesSection = ({ projectTemplate, isInfisicalTempla
}
/>
) : (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
<div>
<h2 className="text-lg font-medium">Project Roles</h2>
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
{isInfisicalTemplate
? "Click a role to view the associated permissions"
: "Add, edit and remove roles for this project template"}
@@ -148,7 +148,7 @@ export const ProjectTemplateRolesSection = ({ projectTemplate, isInfisicalTempla
return (
<Tr
key={role.slug}
- className="group w-full cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
+ className="group w-full cursor-pointer transition-colors duration-100 hover:bg-surface-hover"
role="button"
tabIndex={0}
onKeyDown={(evt) => {
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
index afeb2b397f..baea33cc34 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx
@@ -181,12 +181,12 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {
<>
<form
onSubmit={handleSubmit(onFormSubmit)}
- className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4"
+ className="mb-6 rounded-lg border border-border-control bg-surface-base p-4"
>
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
<div>
<h2 className="text-lg font-medium">Project Members</h2>
- <p className="text-sm text-mineshaft-400">
+ <p className="text-sm text-muted">
Add users who will be automatically added to projects created from this template
</p>
</div>
@@ -231,7 +231,7 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {
)}
</OrgPermissionCan>
</div>
- {errors.users && <span className="my-4 text-sm text-red">{errors.users.message}</span>}
+ {errors.users && <span className="my-4 text-sm text-danger">{errors.users.message}</span>}
<TableContainer>
<Table>
<THead>
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
index 70d6562bd8..281c5ee1f8 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
@@ -129,9 +129,8 @@ const ProjectTemplateForm = ({ onComplete, projectTemplate }: FormProps) => {
<div
key={el.value}
className={twMerge(
- "flex cursor-pointer flex-col items-center gap-2 rounded-sm border border-mineshaft-600 px-2 py-4 opacity-75 transition-all hover:border-primary-400 hover:bg-mineshaft-600",
- field.value === el.value &&
- "border-primary-400 bg-mineshaft-600 opacity-100"
+ "flex cursor-pointer flex-col items-center gap-2 rounded-sm border border-border-control px-2 py-4 opacity-75 transition-all hover:border-project hover:bg-surface-active",
+ field.value === el.value && "border-project bg-surface-active opacity-100"
)}
onClick={() => field.onChange(el.value)}
role="button"
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx
index 8987674583..92811f407c 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx
@@ -29,10 +29,10 @@ export const ProjectTemplatesSection = () => {
<EditProjectTemplateSection template={editTemplate} onBack={() => setEditTemplate(null)} />
) : (
<div>
- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-6 rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex flex-wrap items-center justify-between gap-2">
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Project Templates</p>
+ <p className="text-xl font-medium text-foreground">Project Templates</p>
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/project-templates" />
</div>
<OrgPermissionCan
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
index 3c93d3c486..2445746526 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
@@ -105,7 +105,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
return (
<Tr
onClick={() => onEdit(template)}
- className="cursor-pointer hover:bg-mineshaft-700"
+ className="cursor-pointer hover:bg-surface-hover"
key={id}
>
<Td>
@@ -114,7 +114,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
<Tooltip content={description}>
<FontAwesomeIcon
size="sm"
- className="ml-2 text-mineshaft-400"
+ className="ml-2 text-muted"
icon={faCircleInfo}
/>
</Tooltip>
@@ -135,7 +135,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
>
<FontAwesomeIcon
size="sm"
- className="ml-2 text-mineshaft-400"
+ className="ml-2 text-muted"
icon={faCircleInfo}
/>
</Tooltip>
@@ -155,7 +155,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
>
<FontAwesomeIcon
size="sm"
- className="ml-2 text-mineshaft-400"
+ className="ml-2 text-muted"
icon={faCircleInfo}
/>
</Tooltip>
@@ -175,7 +175,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
>
<FontAwesomeIcon
size="sm"
- className="ml-2 text-mineshaft-400"
+ className="ml-2 text-muted"
icon={faCircleInfo}
/>
</Tooltip>
@@ -201,7 +201,7 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
>
<FontAwesomeIcon
size="sm"
- className="ml-2 text-mineshaft-400"
+ className="ml-2 text-muted"
icon={faCircleInfo}
/>
</Tooltip>
diff --git a/frontend/src/pages/organization/SsoPage/SsoPage.tsx b/frontend/src/pages/organization/SsoPage/SsoPage.tsx
index f0ef19e586..d63fa1f547 100644
--- a/frontend/src/pages/organization/SsoPage/SsoPage.tsx
+++ b/frontend/src/pages/organization/SsoPage/SsoPage.tsx
@@ -38,7 +38,7 @@ export const SsoPage = () => {
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={isSubOrganization ? "namespace" : "org"}
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
index b387c57e26..6d0d6775fc 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx
@@ -105,7 +105,7 @@ const Page = withPermission(
search={{
selectedTab: OrgAccessControlTabSections.Member
}}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-muted/80"
>
<ChevronLeftIcon size={16} />
{isSubOrganization ? "Sub-" : ""}Organization Users
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserOrgMembershipModal.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserOrgMembershipModal.tsx
index a6d4a8ca4d..608202772b 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserOrgMembershipModal.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserOrgMembershipModal.tsx
@@ -167,7 +167,7 @@ export const UserOrgMembershipModal = ({ popUp, handlePopUpOpen, handlePopUpTogg
{metadataFormFields.fields.map(({ id: metadataFieldId }, i) => (
<div key={metadataFieldId} className="flex items-end space-x-2">
<div className="grow">
- {i === 0 && <span className="text-xs text-mineshaft-400">Key</span>}
+ {i === 0 && <span className="text-xs text-muted">Key</span>}
<Controller
control={control}
name={`metadata.${i}.key`}
@@ -183,9 +183,7 @@ export const UserOrgMembershipModal = ({ popUp, handlePopUpOpen, handlePopUpTogg
/>
</div>
<div className="grow">
- {i === 0 && (
- <FormLabel label="Value" className="text-xs text-mineshaft-400" isOptional />
- )}
+ {i === 0 && <FormLabel label="Value" className="text-xs text-muted" isOptional />}
<Controller
control={control}
name={`metadata.${i}.value`}
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserAuditLogsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserAuditLogsSection.tsx
index 01b30ddd83..b0d7fc3ea0 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserAuditLogsSection.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserAuditLogsSection.tsx
@@ -14,9 +14,9 @@ export const UserAuditLogsSection = withPermission(
// eslint-disable-next-line no-nested-ternary
return (
subscription?.auditLogs && (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <p className="text-lg font-medium text-gray-200">Audit Logs</p>
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
+ <p className="text-lg font-medium text-foreground-cool">Audit Logs</p>
</div>
<LogsSection
presets={{
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts b/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
index f7a12eb0ca..14fc531695 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
+++ b/frontend/src/pages/pam/PamAccountAccessPage/useWebAccessSession.ts
@@ -1,9 +1,10 @@
import { useCallback, useEffect, useRef, useState } from "react";
import { FitAddon } from "@xterm/addon-fit";
import { WebLinksAddon } from "@xterm/addon-web-links";
-import { Terminal } from "@xterm/xterm";
+import { type ITheme, Terminal } from "@xterm/xterm";
import { Readline } from "xterm-readline";
+import { type ResolvedTheme, useTheme } from "@app/components/v3/platform/ThemeProvider";
import { apiRequest } from "@app/config/request";
import { MfaSessionStatus, TMfaSessionStatusResponse } from "@app/hooks/api/mfaSession/types";
import { PamAccountType } from "@app/hooks/api/pam";
@@ -20,6 +21,81 @@ type UseWebAccessSessionOptions = {
onSessionEnd?: (endReason?: string) => void;
};
+const DARK_TERMINAL_THEME: ITheme = {
+ background: "#0d1117",
+ foreground: "#c9d1d9",
+ cursor: "#58a6ff",
+ cursorAccent: "#0d1117",
+ selectionBackground: "#264f78",
+ black: "#0d1117",
+ red: "#ff7b72",
+ green: "#3fb950",
+ yellow: "#d29922",
+ blue: "#58a6ff",
+ magenta: "#bc8cff",
+ cyan: "#76e3ea",
+ white: "#c9d1d9",
+ brightBlack: "#484f58",
+ brightRed: "#ffa198",
+ brightGreen: "#56d364",
+ brightYellow: "#e3b341",
+ brightBlue: "#79c0ff",
+ brightMagenta: "#d2a8ff",
+ brightCyan: "#b3f0ff",
+ brightWhite: "#f0f6fc"
+};
+
+const getLightTerminalTheme = (): ITheme => {
+ const styles = getComputedStyle(document.documentElement);
+ const canvas = document.createElement("canvas");
+ const context = canvas.getContext("2d");
+
+ const resolveToken = (token: string, fallback: string) => {
+ const value = styles.getPropertyValue(token).trim();
+ if (!value || !context) return fallback;
+ context.fillStyle = fallback;
+ context.fillStyle = value;
+ return context.fillStyle;
+ };
+
+ const background = resolveToken("--color-background", "#f7f7f7");
+ const foreground = resolveToken("--color-foreground", "#19191c");
+ const muted = resolveToken("--color-muted", "#707174");
+ const danger = resolveToken("--color-danger", "#b42318");
+ const success = resolveToken("--color-success", "#1a7f37");
+ const warning = resolveToken("--color-warning", "#8a5a00");
+ const info = resolveToken("--color-info", "#0969da");
+ const magenta = resolveToken("--color-product-ss", "#8250df");
+ const cyan = resolveToken("--color-product-kms", "#087f5b");
+
+ return {
+ background,
+ foreground,
+ cursor: resolveToken("--color-project", "#4f6f00"),
+ cursorAccent: background,
+ selectionBackground: resolveToken("--color-surface-selected", "#d8dee4"),
+ black: foreground,
+ red: danger,
+ green: success,
+ yellow: warning,
+ blue: info,
+ magenta,
+ cyan,
+ white: muted,
+ brightBlack: muted,
+ brightRed: danger,
+ brightGreen: success,
+ brightYellow: warning,
+ brightBlue: info,
+ brightMagenta: magenta,
+ brightCyan: cyan,
+ brightWhite: foreground
+ };
+};
+
+const getTerminalTheme = (resolvedTheme: ResolvedTheme): ITheme =>
+ resolvedTheme === "light" ? getLightTerminalTheme() : DARK_TERMINAL_THEME;
+
export const useWebAccessSession = ({
accountId,
accountType,
@@ -27,6 +103,7 @@ export const useWebAccessSession = ({
mfaSessionId,
onSessionEnd
}: UseWebAccessSessionOptions) => {
+ const { resolvedTheme } = useTheme();
const [containerEl, setContainerEl] = useState<HTMLDivElement | null>(null);
const [isConnected, setIsConnected] = useState(false);
const wsRef = useRef<WebSocket | null>(null);
@@ -40,6 +117,8 @@ export const useWebAccessSession = ({
const readLoopActiveRef = useRef(false);
const nextPromptResolverRef = useRef<((prompt: string) => void) | null>(null);
const nextPromptRejecterRef = useRef<((reason: Error) => void) | null>(null);
+ const resolvedThemeRef = useRef(resolvedTheme);
+ resolvedThemeRef.current = resolvedTheme;
const onSessionEndRef = useRef(onSessionEnd);
const endReasonRef = useRef<string | undefined>(undefined);
@@ -50,6 +129,12 @@ export const useWebAccessSession = ({
onSessionEndRef.current = onSessionEnd;
}, [onSessionEnd]);
+ useEffect(() => {
+ if (terminalRef.current) {
+ terminalRef.current.options.theme = getTerminalTheme(resolvedTheme);
+ }
+ }, [resolvedTheme]);
+
const adjustWidthForOutput = useCallback(
(output: string, terminal: Terminal, fitAddon: FitAddon, container: HTMLDivElement) => {
const lines = output.split("\n");
@@ -398,29 +483,7 @@ export const useWebAccessSession = ({
cursorBlink: true,
fontSize: 14,
fontFamily: '"JetBrains Mono", "Fira Code", Menlo, Monaco, "Courier New", monospace',
- theme: {
- background: "#0d1117",
- foreground: "#c9d1d9",
- cursor: "#58a6ff",
- cursorAccent: "#0d1117",
- selectionBackground: "#264f78",
- black: "#0d1117",
- red: "#ff7b72",
- green: "#3fb950",
- yellow: "#d29922",
- blue: "#58a6ff",
- magenta: "#bc8cff",
- cyan: "#76e3ea",
- white: "#c9d1d9",
- brightBlack: "#484f58",
- brightRed: "#ffa198",
- brightGreen: "#56d364",
- brightYellow: "#e3b341",
- brightBlue: "#79c0ff",
- brightMagenta: "#d2a8ff",
- brightCyan: "#b3f0ff",
- brightWhite: "#f0f6fc"
- },
+ theme: getTerminalTheme(resolvedThemeRef.current),
scrollback: 10000,
allowProposedApi: true
});
diff --git a/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx b/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
index 6cd708367d..9c5a6c6c71 100644
--- a/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/PamFolderPage/PamFolderPage.tsx
@@ -32,6 +32,7 @@ import {
InputGroup,
InputGroupAddon,
InputGroupInput,
+ ProviderIcon,
Table,
TableBody,
TableHead,
@@ -310,8 +311,8 @@ export const PamFolderPage = () => {
<DropdownMenuRadioItem value="all">All types</DropdownMenuRadioItem>
{accountTypes.map((meta) => (
<DropdownMenuRadioItem key={meta.type} value={meta.type}>
- <img
- src={`/images/integrations/${meta.icon}`}
+ <ProviderIcon
+ icon={meta.icon}
alt={meta.name}
className="size-4 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/FolderApprovalsTab.tsx b/frontend/src/pages/pam/PamAccountsPage/components/FolderApprovalsTab.tsx
index 9b0b859093..f3dd767b85 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/FolderApprovalsTab.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/FolderApprovalsTab.tsx
@@ -569,7 +569,7 @@ export const FolderApprovalsTab = ({ folderId, onDirtyChange }: Props) => {
<IconButton
aria-label="Filter requests"
variant={requestsStatusFilter !== "all" ? "project" : "outline"}
- className={twMerge(requestsStatusFilter !== "all" && "text-primary")}
+ className={twMerge(requestsStatusFilter !== "all" && "text-project")}
>
<FilterIcon />
</IconButton>
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
index 69b5c1e374..0359eed176 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
@@ -423,7 +423,7 @@ export const PamDataExplorerPage = ({ reason, mfaSessionId }: Props = {}) => {
openQueryTab().catch(() => {});
}}
disabled={tabOpeningDisabled}
- className="ml-1 flex shrink-0 items-center gap-1.5 rounded border border-border px-2 py-1 text-xs text-muted transition-colors first:ml-0 hover:border-border hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-border disabled:hover:text-muted"
+ className="ml-1 flex shrink-0 items-center gap-1.5 rounded border border-border px-2 py-1 text-xs text-muted transition-colors first:ml-0 hover:border-foreground/20 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-border disabled:hover:text-muted"
aria-label="New query tab"
title={atTabLimit ? `Tab limit (${MAX_TABS}) reached` : "New query tab"}
>
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
index 1580e8f2d0..174479db97 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
@@ -176,7 +176,7 @@ export const FilterPopover = ({
<FilterIcon className="size-3" />
Filter
{filters.length > 0 && (
- <span className="rounded-full bg-primary/20 px-1.5 text-[10px] font-medium text-primary">
+ <span className="rounded-full bg-project/20 px-1.5 text-[10px] font-medium text-project">
{filters.length}
</span>
)}
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/SortPopover.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/SortPopover.tsx
index ddbd57f8e0..8b9b0a8ecb 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/SortPopover.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/SortPopover.tsx
@@ -53,7 +53,7 @@ export const SortPopover = ({
<ArrowUpDownIcon className="size-3" />
Sort
{activeSort && (
- <span className="rounded-full bg-primary/20 px-1.5 text-[10px] font-medium text-primary">
+ <span className="rounded-full bg-project/20 px-1.5 text-[10px] font-medium text-project">
{activeSort.column}
</span>
)}
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
index ba80ec3dad..bc89620414 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/SqlEditor.tsx
@@ -9,53 +9,69 @@ import { tags } from "@lezer/highlight";
import type { SqlDialect } from "../sql-generation";
const infisicalTheme = EditorView.theme({
- "&": { height: "100%", fontSize: "13px", backgroundColor: "#16181a" },
- "&.cm-editor": { backgroundColor: "#16181a" },
+ "&": { height: "100%", fontSize: "13px", backgroundColor: "var(--color-card)" },
+ "&.cm-editor": { backgroundColor: "var(--color-card)" },
".cm-scroller": {
overflow: "auto",
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace",
- backgroundColor: "#16181a",
+ backgroundColor: "var(--color-card)",
scrollbarWidth: "thin",
- scrollbarColor: "#39393d transparent"
+ scrollbarColor: "var(--color-scrollbar-track-thumb) transparent"
},
".cm-scroller::-webkit-scrollbar": { width: "4px", height: "4px" },
".cm-scroller::-webkit-scrollbar-track": { background: "transparent" },
- ".cm-scroller::-webkit-scrollbar-thumb": { background: "#39393d", borderRadius: "2px" },
- ".cm-content": { padding: "8px 0", caretColor: "#e0ed34", backgroundColor: "#16181a" },
+ ".cm-scroller::-webkit-scrollbar-thumb": {
+ background: "var(--color-scrollbar-track-thumb)",
+ borderRadius: "2px"
+ },
+ ".cm-content": {
+ padding: "8px 0",
+ caretColor: "var(--color-project)",
+ backgroundColor: "var(--color-card)"
+ },
".cm-line": { backgroundColor: "transparent" },
".cm-gutters": {
- backgroundColor: "#16181a",
- borderRight: "1px solid #2b2c30",
- color: "#707174"
+ backgroundColor: "var(--color-card)",
+ borderRight: "1px solid var(--color-border)",
+ color: "var(--color-muted)"
},
".cm-lineNumbers .cm-gutterElement": { padding: "0 12px 0 8px" },
- ".cm-activeLine": { backgroundColor: "rgba(45, 47, 51, 0.5)" },
- ".cm-activeLineGutter": { backgroundColor: "rgba(45, 47, 51, 0.5)" },
- ".cm-cursor": { borderLeftColor: "#e0ed34" },
- ".cm-selectionBackground": { backgroundColor: "#2d2f33 !important" },
- "&.cm-focused .cm-selectionBackground": { backgroundColor: "#2d2f33 !important" },
- ".cm-matchingBracket": { backgroundColor: "#323439", color: "#e0ed34 !important" }
+ ".cm-activeLine": {
+ backgroundColor: "color-mix(in srgb, var(--color-border-control) 50%, transparent)"
+ },
+ ".cm-activeLineGutter": {
+ backgroundColor: "color-mix(in srgb, var(--color-border-control) 50%, transparent)"
+ },
+ ".cm-cursor": { borderLeftColor: "var(--color-project)" },
+ ".cm-selectionBackground": { backgroundColor: "var(--color-border-control) !important" },
+ "&.cm-focused .cm-selectionBackground": {
+ backgroundColor: "var(--color-border-control) !important"
+ },
+ ".cm-matchingBracket": {
+ backgroundColor: "var(--color-surface-selected)",
+ color: "var(--color-project) !important"
+ }
});
const infisicalHighlight = HighlightStyle.define(
[
- { tag: tags.keyword, color: "#63b0bd", fontWeight: "600" },
- { tag: tags.string, color: "#29b866" },
- { tag: tags.number, color: "#f39c12" },
- { tag: tags.comment, color: "#707174", fontStyle: "italic" },
- { tag: tags.operator, color: "#adaeb0" },
- { tag: tags.punctuation, color: "#adaeb0" },
- { tag: tags.separator, color: "#adaeb0" },
- { tag: tags.bracket, color: "#adaeb0" },
- { tag: tags.name, color: "#ebebeb" },
- { tag: tags.function(tags.name), color: "#63b0bd" },
- { tag: tags.typeName, color: "#f39c12" },
- { tag: tags.bool, color: "#63b0bd" },
- { tag: tags.null, color: "#707174" },
- { tag: tags.special(tags.string), color: "#29b866" },
- { tag: tags.invalid, color: "#e74c3c" }
+ { tag: tags.keyword, color: "var(--color-info)", fontWeight: "600" },
+ { tag: tags.string, color: "var(--color-success)" },
+ { tag: tags.number, color: "var(--color-warning)" },
+ { tag: tags.comment, color: "var(--color-muted)", fontStyle: "italic" },
+ { tag: tags.operator, color: "var(--color-label)" },
+ { tag: tags.punctuation, color: "var(--color-label)" },
+ { tag: tags.separator, color: "var(--color-label)" },
+ { tag: tags.bracket, color: "var(--color-label)" },
+ { tag: tags.name, color: "var(--color-foreground)" },
+ { tag: tags.function(tags.name), color: "var(--color-info)" },
+ { tag: tags.typeName, color: "var(--color-warning)" },
+ { tag: tags.bool, color: "var(--color-info)" },
+ { tag: tags.null, color: "var(--color-muted)" },
+ { tag: tags.special(tags.string), color: "var(--color-success)" },
+ { tag: tags.invalid, color: "var(--color-danger)" }
],
- { all: { color: "#ebebeb" } }
+ { all: { color: "var(--color-foreground)" } }
);
const MAX_SQL_BYTES = 50 * 1024; // 50KB — matches backend Zod limit
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
index 971c6d5148..ebe47420bc 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
@@ -28,6 +28,7 @@ import {
InputGroup,
InputGroupAddon,
InputGroupInput,
+ ProviderIcon,
Table,
TableBody,
TableCell,
@@ -180,8 +181,8 @@ export const PamDiscoveryPage = () => {
<TableCell>
<div className="flex items-center gap-2.5">
{meta?.icon && (
- <img
- src={`/images/integrations/${meta.icon}`}
+ <ProviderIcon
+ icon={meta.icon}
alt={meta.name}
className="size-5 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
index f126fdd14b..869edc107c 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
@@ -22,6 +22,7 @@ import {
FieldLabel,
GatewayPicker,
Input,
+ ProviderIcon,
RadioGroup,
RadioGroupItem,
Sheet,
@@ -342,8 +343,8 @@ const TypeSelectorStep = ({
{types.map((type) => (
<FieldLabel key={type.type} htmlFor={`discovery-type-${type.type}`} variant="pam">
<Field orientation="horizontal" className="items-center gap-3">
- <img
- src={`/images/integrations/${type.icon}`}
+ <ProviderIcon
+ icon={type.icon}
alt={type.name}
className="size-7 shrink-0 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
index 5d93114f04..3f9f74c093 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
@@ -30,6 +30,7 @@ import {
InputGroupAddon,
InputGroupInput,
Pagination,
+ ProviderIcon,
Table,
TableBody,
TableCell,
@@ -548,8 +549,8 @@ export const DiscoverySourceDetailSheet = ({ isOpen, sourceId, onOpenChange }: P
<TableCell>
<div className="flex items-center gap-2">
{typeDetails && (
- <img
- src={`/images/integrations/${typeDetails.icon}`}
+ <ProviderIcon
+ icon={typeDetails.icon}
alt={typeDetails.name}
className="size-5 shrink-0 rounded-sm"
/>
@@ -674,8 +675,8 @@ export const DiscoverySourceDetailSheet = ({ isOpen, sourceId, onOpenChange }: P
<TableCell>
<div className="flex items-center gap-2">
{typeDetails && (
- <img
- src={`/images/integrations/${typeDetails.icon}`}
+ <ProviderIcon
+ icon={typeDetails.icon}
alt={typeDetails.name}
className="size-5 shrink-0 rounded-sm"
/>
@@ -849,8 +850,8 @@ export const DiscoverySourceDetailSheet = ({ isOpen, sourceId, onOpenChange }: P
icon={
<div className="mb-4 flex size-16 items-center justify-center rounded-lg border border-border bg-container">
{typeMeta?.icon ? (
- <img
- src={`/images/integrations/${typeMeta.icon}`}
+ <ProviderIcon
+ icon={typeMeta.icon}
alt={typeMeta.name}
className="size-10 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx b/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
index c7bf55c1d7..7a2cc296cc 100644
--- a/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
+++ b/frontend/src/pages/pam/PamSessionsPage/PamSessionsPage.tsx
@@ -25,6 +25,7 @@ import {
InputGroupAddon,
InputGroupInput,
Pagination,
+ ProviderIcon,
Select,
SelectContent,
SelectItem,
@@ -315,8 +316,8 @@ export const PamSessionsPage = () => {
<TableCell>
<div className="flex items-center gap-2">
{accountTypeDetails && (
- <img
- src={`/images/integrations/${accountTypeDetails.icon}`}
+ <ProviderIcon
+ icon={accountTypeDetails.icon}
alt={accountTypeDetails.name}
className="size-5 shrink-0 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx b/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
index 671901aba1..1aeb8f32c0 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/PamTemplatesPage.tsx
@@ -28,6 +28,7 @@ import {
InputGroup,
InputGroupAddon,
InputGroupInput,
+ ProviderIcon,
Select,
SelectContent,
SelectItem,
@@ -232,8 +233,8 @@ export const PamTemplatesPage = () => {
<SelectItem value="all">All types</SelectItem>
{accountTypes.map((meta) => (
<SelectItem key={meta.type} value={meta.type}>
- <img
- src={`/images/integrations/${meta.icon}`}
+ <ProviderIcon
+ icon={meta.icon}
alt={meta.name}
className="mr-1.5 inline-block size-4 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
index 95a94436a6..4e3a41b0e1 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
@@ -10,6 +10,7 @@ import {
FieldError,
FieldLabel,
Input,
+ ProviderIcon,
Select,
SelectContent,
SelectItem,
@@ -128,8 +129,8 @@ export const CreateTemplateModal = ({ isOpen, onOpenChange, onCreated }: Props)
<SelectContent position="popper" sideOffset={4}>
{accountTypes.map((meta) => (
<SelectItem key={meta.type} value={meta.type}>
- <img
- src={`/images/integrations/${meta.icon}`}
+ <ProviderIcon
+ icon={meta.icon}
alt={meta.name}
className="mr-1.5 inline-block size-4 rounded-sm"
/>
diff --git a/frontend/src/pages/pam/components/AccountPlatformIcon.tsx b/frontend/src/pages/pam/components/AccountPlatformIcon.tsx
index ee36ba8643..e01aaf92e3 100644
--- a/frontend/src/pages/pam/components/AccountPlatformIcon.tsx
+++ b/frontend/src/pages/pam/components/AccountPlatformIcon.tsx
@@ -1,3 +1,4 @@
+import { ProviderIcon } from "@app/components/v3";
import { PamAccountType, usePamAccountTypeMap } from "@app/hooks/api/pam";
type Props = {
@@ -12,8 +13,8 @@ export const AccountPlatformIcon = ({ accountType, size = 28 }: Props) => {
if (!meta) return null;
return (
- <img
- src={`/images/integrations/${meta.icon}`}
+ <ProviderIcon
+ icon={meta.icon}
alt={meta.name}
className="shrink-0 rounded-sm"
style={{ width: size, height: size }}
diff --git a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
index 673430ae8b..d935c70880 100644
--- a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
+++ b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
@@ -64,7 +64,7 @@ const Page = () => {
};
return (
- <div className="mx-auto flex flex-col justify-between text-foreground">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground">
<div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">
<PageHeader
scope={currentProject.type}
diff --git a/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx b/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
index add80a08c2..6d8fe3617d 100644
--- a/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
+++ b/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
@@ -14,13 +14,13 @@ export const AppConnectionsPage = withProjectPermission(
const { currentProject } = useProject();
return (
- <div className="bg-bunker-800">
+ <div className="bg-page">
<Helmet>
<title>Infisical | App Connections</title>
<link rel="icon" href="/infisical.ico" />
<meta property="og:image" content="/images/message.png" />
</Helmet>
- <div className="flex w-full justify-center bg-bunker-800 text-white">
+ <div className="flex w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
<PageHeader
scope={currentProject.type}
diff --git a/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx b/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
index 3b8f1468f9..d7ad2c63e7 100644
--- a/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
+++ b/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx
@@ -10,12 +10,12 @@ export const AuditLogsPage = () => {
const { currentProject } = useProject();
const isCertManager = currentProject.type === ProjectType.CertificateManager;
return (
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<Helmet>
<title>{isCertManager ? "Audit Logs" : "Project Audit Logs"}</title>
<link rel="icon" href="/infisical.ico" />
</Helmet>
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<div className="w-full max-w-8xl">
<PageHeader
scope={currentProject.type}
diff --git a/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx b/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
index 96a1d37f19..39a09b6d6f 100644
--- a/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
+++ b/frontend/src/pages/public/ErrorPage/components/ErrorPageFrame.tsx
@@ -92,9 +92,7 @@ export const ErrorPageFrame = ({
<div
ref={containerRef}
className={`relative flex items-center justify-center p-4 ${
- isFullScreen
- ? "min-h-screen bg-linear-to-tr from-card via-bunker-900 to-card"
- : "min-h-full"
+ isFullScreen ? "min-h-screen bg-linear-to-tr from-card via-page-deep to-card" : "min-h-full"
}`}
>
{helmetTitle && (
@@ -135,7 +133,7 @@ export const ErrorPageFrame = ({
</p>
</div>
</div>
- <div className="flex flex-col border-t border-border bg-bunker-800/50 lg:border-t-0 lg:border-l">
+ <div className="flex flex-col border-t border-border bg-page/50 lg:border-t-0 lg:border-l">
<div className="flex items-center justify-between gap-2 border-b border-border py-4 pr-5 pl-6">
<div className="flex items-center gap-2.5 text-muted">
<ActivityIcon className="size-4" />
diff --git a/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx b/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
index 928b78eaa7..3f38a3a244 100644
--- a/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
+++ b/frontend/src/pages/public/ShareSecretPage/ShareSecretPage.tsx
@@ -9,7 +9,7 @@ import { ShareSecretForm } from "./components";
export const ShareSecretPage = () => {
return (
- <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-4">
+ <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-linear-to-tr from-card via-page-deep to-card px-4">
<AuthPageBackground />
<Helmet>
<title>Securely Share Secrets | Infisical</title>
diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
index bd949d5142..c731c5037b 100644
--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/ViewSecretRequestByIDPage.tsx
@@ -167,7 +167,7 @@ export const ViewSecretRequestByIDPage = () => {
if (isPending) {
return (
- <div className="h-screen w-screen bg-bunker-800">
+ <div className="h-screen w-screen bg-page">
<PageLoader lottieClassName="w-34" />
</div>
);
@@ -250,7 +250,7 @@ export const ViewSecretRequestByIDPage = () => {
// Default: Infisical auth page layout
return (
- <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-bunker-800 px-4 text-foreground scheme-dark">
+ <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-page px-4 text-foreground scheme-dark">
<AuthPageBackground />
<Helmet>
<title>Secret Request | Infisical</title>
diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
index 8f82839011..eea16f3ea6 100644
--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/ViewSharedSecretByIDPage.tsx
@@ -210,7 +210,7 @@ export const ViewSharedSecretByIDPage = () => {
if (isLoading || isLoadingBrandingConfig) {
return (
- <div className="h-screen w-screen bg-bunker-800">
+ <div className="h-screen w-screen bg-page">
<PageLoader lottieClassName="w-34" />
</div>
);
@@ -270,7 +270,7 @@ export const ViewSharedSecretByIDPage = () => {
// Default: Infisical auth page layout
return (
- <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-bunker-800 px-4 text-foreground scheme-dark">
+ <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-page px-4 text-foreground scheme-dark">
<AuthPageBackground />
<Helmet>
<title>Securely Share Secrets | Infisical</title>
diff --git a/frontend/src/pages/root.tsx b/frontend/src/pages/root.tsx
index f9da3fb5bc..8c286bf466 100644
--- a/frontend/src/pages/root.tsx
+++ b/frontend/src/pages/root.tsx
@@ -7,6 +7,7 @@ import {
RootCommandMenu,
type RootCommandMenuShell
} from "@app/components/v3/platform/RootCommandMenu";
+import { ThemeProvider } from "@app/components/v3/platform/ThemeProvider";
import { adminQueryKeys, fetchServerConfig } from "@app/hooks/api/admin/queries";
import { TServerConfig } from "@app/hooks/api/admin/types";
import { authKeys } from "@app/hooks/api/auth/queries";
@@ -46,12 +47,15 @@ const RootCommandMenuMount = () => {
};
const RootPage = () => {
+ const pathname = useRouterState({ select: (state) => state.resolvedLocation.pathname });
return (
- <TooltipProvider>
- <Outlet />
- <RootCommandMenuMount />
- <NotificationContainer />
- </TooltipProvider>
+ <ThemeProvider pathname={pathname}>
+ <TooltipProvider>
+ <Outlet />
+ <RootCommandMenuMount />
+ <NotificationContainer />
+ </TooltipProvider>
+ </ThemeProvider>
);
};
diff --git a/frontend/src/pages/secret-manager/InsightsPage/components/DuplicatedSecretsCard.tsx b/frontend/src/pages/secret-manager/InsightsPage/components/DuplicatedSecretsCard.tsx
index 92423c3461..50db7a499d 100644
--- a/frontend/src/pages/secret-manager/InsightsPage/components/DuplicatedSecretsCard.tsx
+++ b/frontend/src/pages/secret-manager/InsightsPage/components/DuplicatedSecretsCard.tsx
@@ -172,7 +172,7 @@ export const DuplicatedSecretsCard = () => {
)}
{!isPending && isMigrationRunning && (
<div className="flex h-[200px] flex-col items-center justify-center gap-3">
- <Loader2Icon className="size-6 animate-spin text-primary" />
+ <Loader2Icon className="size-6 animate-spin text-project" />
<p className="text-sm text-muted">
Indexing secrets for duplicate detection. This may take a moment...
</p>
@@ -180,8 +180,8 @@ export const DuplicatedSecretsCard = () => {
)}
{!isPending && isMigrationFailed && (
<div className="flex h-[200px] flex-col items-center justify-center gap-3">
- <AlertTriangleIcon className="size-6 text-red-500" />
- <p className="text-sm text-red-400">
+ <AlertTriangleIcon className="size-6 text-danger" />
+ <p className="text-sm text-danger">
Failed to index secrets: {statusData?.message ?? "Unknown error"}
</p>
<Button variant="outline" onClick={handleRetryClick}>
diff --git a/frontend/src/pages/secret-manager/InsightsPage/components/RequestAuditReportModal.tsx b/frontend/src/pages/secret-manager/InsightsPage/components/RequestAuditReportModal.tsx
index ca5d0c061f..18bdc77993 100644
--- a/frontend/src/pages/secret-manager/InsightsPage/components/RequestAuditReportModal.tsx
+++ b/frontend/src/pages/secret-manager/InsightsPage/components/RequestAuditReportModal.tsx
@@ -114,7 +114,7 @@ export const RequestAuditReportModal = ({ isOpen, onOpenChange, projectId }: Pro
<FieldLabel>Reports</FieldLabel>
<button
type="button"
- className="cursor-pointer text-xs font-medium text-muted transition-colors hover:text-mineshaft-300"
+ className="cursor-pointer text-xs font-medium text-muted transition-colors hover:text-label"
onClick={() =>
field.onChange(allSelected ? [] : [...AUDIT_REPORT_TYPES_ORDERED])
}
diff --git a/frontend/src/pages/secret-manager/InsightsPage/components/WorldMap.tsx b/frontend/src/pages/secret-manager/InsightsPage/components/WorldMap.tsx
index edb64ed3f0..4f960628b3 100644
--- a/frontend/src/pages/secret-manager/InsightsPage/components/WorldMap.tsx
+++ b/frontend/src/pages/secret-manager/InsightsPage/components/WorldMap.tsx
@@ -157,7 +157,7 @@
// };
// return (
-// <div className="w-full overflow-hidden rounded-md border border-border bg-bunker-800/25">
+// <div className="w-full overflow-hidden rounded-md border border-border bg-page/25">
// <svg
// viewBox={`0 0 ${SVG_WIDTH} ${SVG_HEIGHT}`}
// className="h-auto w-full"
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
index 5de8525547..f085ff6d61 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx
@@ -82,7 +82,7 @@ export const IntegrationDetailsByIDPage = () => {
<meta property="og:title" content="Manage your .env files in seconds" />
<meta name="og:description" content={t("integrations.description") as string} />
</Helmet>
- <div className="mx-auto flex max-w-8xl flex-col justify-between text-white">
+ <div className="mx-auto flex max-w-8xl flex-col justify-between bg-page text-foreground-inverse">
{integration ? (
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
@@ -91,7 +91,7 @@ export const IntegrationDetailsByIDPage = () => {
>
<DropdownMenu>
<DropdownMenuTrigger asChild className="rounded-lg">
- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">
+ <div className="hover:text-project data-[state=open]:text-project">
<Tooltip content="More options">
<Button variant="outline_bg">More</Button>
</Tooltip>
@@ -120,7 +120,7 @@ export const IntegrationDetailsByIDPage = () => {
<DropdownMenuItem
className={twMerge(
isAllowed
- ? "hover:bg-red-500! hover:text-white!"
+ ? "hover:bg-danger! hover:text-white!"
: "pointer-events-none cursor-not-allowed opacity-50"
)}
onClick={() => {
@@ -187,7 +187,6 @@ export const IntegrationDetailsByIDPage = () => {
<div className="mt-4">
<Checkbox
id="delete-integration-secrets"
- checkIndicatorBg="text-white"
onCheckedChange={() => setShouldDeleteSecrets.toggle()}
>
Delete previously synced secrets from the destination
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx
index 13ba351259..629df17ae2 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx
@@ -22,10 +22,10 @@ export const IntegrationAuditLogsSection = ({ integration }: Props) => {
// eslint-disable-next-line no-nested-ternary
return subscription?.auditLogs ? (
- <div className="h-full w-full min-w-204 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <p className="text-lg font-medium text-gray-200">Integration Logs</p>
- <p className="text-xs text-gray-400">
+ <div className="h-full w-full min-w-204 rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
+ <p className="text-lg font-medium text-foreground-cool">Integration Logs</p>
+ <p className="text-xs text-muted-cool">
Displaying audit logs from the last {Math.min(auditLogsRetentionDays, 60)} days
</p>
</div>
@@ -43,9 +43,9 @@ export const IntegrationAuditLogsSection = ({ integration }: Props) => {
/>
</div>
) : (
- <div className="h-full w-full min-w-204 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4 opacity-60">
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <p className="text-lg font-medium text-gray-200">Integration Logs</p>
+ <div className="h-full w-full min-w-204 rounded-lg border border-border-control bg-surface-base p-4 opacity-60">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
+ <p className="text-lg font-medium text-foreground-cool">Integration Logs</p>
</div>
<EmptyState
className="rounded-lg"
@@ -61,7 +61,7 @@ export const IntegrationAuditLogsSection = ({ integration }: Props) => {
rel="noopener noreferrer"
>
<a
- className="cursor-pointer font-medium text-primary-500 transition-all hover:text-primary-600"
+ className="cursor-pointer font-medium text-project transition-all hover:text-project"
target="_blank"
>
upgrade your subscription
@@ -74,7 +74,7 @@ export const IntegrationAuditLogsSection = ({ integration }: Props) => {
rel="noopener noreferrer"
>
<a
- className="cursor-pointer font-medium text-primary-500 transition-all hover:text-primary-600"
+ className="cursor-pointer font-medium text-project transition-all hover:text-project"
target="_blank"
>
upgrade your subscription
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationConnectionSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationConnectionSection.tsx
index a46e0a3fe4..c087bbe240 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationConnectionSection.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationConnectionSection.tsx
@@ -15,19 +15,16 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
return (
<div className="flex flex-row">
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Organization" />
- <div className="text-sm text-mineshaft-300">{integration?.owner || "-"}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Organization" />
+ <div className="text-sm text-label">{integration?.owner || "-"}</div>
</div>
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Project" />
- <div className="text-sm text-mineshaft-300">{integration?.targetService || "-"}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Project" />
+ <div className="text-sm text-label">{integration?.targetService || "-"}</div>
</div>
<div className="flex flex-col">
- <FormLabel
- className="text-sm font-medium text-mineshaft-300"
- label="Target Environment"
- />
- <div className="text-sm text-mineshaft-300">{integration?.targetEnvironment || "-"}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Target Environment" />
+ <div className="text-sm text-label">{integration?.targetEnvironment || "-"}</div>
</div>
</div>
);
@@ -94,8 +91,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
return (
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label={formLabel()} />
- <div className="text-sm text-mineshaft-300">{contents()}</div>
+ <FormLabel className="text-sm font-medium text-label" label={formLabel()} />
+ <div className="text-sm text-label">{contents()}</div>
</div>
);
};
@@ -104,8 +101,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "bitbucket") {
return (
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Workspace" />
- <div className="text-sm text-mineshaft-300">
+ <FormLabel className="text-sm font-medium text-label" label="Workspace" />
+ <div className="text-sm text-label">
{integration.targetEnvironment || integration.targetEnvironmentId}
</div>
</div>
@@ -115,8 +112,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "octopus-deploy") {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Space" />
- <div className="text-sm text-mineshaft-300">{integration.targetEnvironment}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Space" />
+ <div className="text-sm text-label">{integration.targetEnvironment}</div>
</div>
);
}
@@ -127,11 +124,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
) {
return (
<div className="flex flex-col">
- <FormLabel
- className="text-sm font-medium text-mineshaft-300"
- label="Target Environment"
- />
- <div className="text-sm text-mineshaft-300">
+ <FormLabel className="text-sm font-medium text-label" label="Target Environment" />
+ <div className="text-sm text-label">
{integration.targetEnvironment || integration.targetEnvironmentId}
</div>
</div>
@@ -145,8 +139,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "checkly" && integration.targetService) {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Group" />
- <div className="text-sm text-mineshaft-300">{integration.targetService}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Group" />
+ <div className="text-sm text-label">{integration.targetService}</div>
</div>
);
}
@@ -154,8 +148,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "circleci" && integration.owner) {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Organization" />
- <div className="text-sm text-mineshaft-300">{integration.owner}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Organization" />
+ <div className="text-sm text-label">{integration.owner}</div>
</div>
);
}
@@ -163,8 +157,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "terraform-cloud" && integration.targetService) {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Category" />
- <div className="text-sm text-mineshaft-300">{integration.targetService}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Category" />
+ <div className="text-sm text-label">{integration.targetService}</div>
</div>
);
}
@@ -172,10 +166,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "checkly" || integration.integration === "github") {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Secret Suffix" />
- <div className="text-sm text-mineshaft-300">
- {integration?.metadata?.secretSuffix || "-"}
- </div>
+ <FormLabel className="text-sm font-medium text-label" label="Secret Suffix" />
+ <div className="text-sm text-label">{integration?.metadata?.secretSuffix || "-"}</div>
</div>
);
}
@@ -183,11 +175,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "bitbucket" && integration.targetServiceId) {
return (
<div>
- <FormLabel
- className="text-sm font-medium text-mineshaft-300"
- label="Deployment Environment"
- />
- <div className="text-sm text-mineshaft-300">{integration.targetService}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Deployment Environment" />
+ <div className="text-sm text-label">{integration.targetService}</div>
</div>
);
}
@@ -195,8 +184,8 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
if (integration.integration === "windmill" && integration.url) {
return (
<div>
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Instance URL" />
- <div className="text-sm text-mineshaft-300">{integration.url}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Instance URL" />
+ <div className="text-sm text-label">{integration.url}</div>
</div>
);
}
@@ -205,29 +194,29 @@ export const IntegrationConnectionSection = ({ integration }: Props) => {
};
return (
- <div className="mt-4 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">Connection</h3>
+ <div className="mt-4 rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">Connection</h3>
</div>
<div className="mt-4">
<FormLabel className="my-2" label="Source" />
- <div className="space-y-2 rounded-lg border border-mineshaft-700 bg-mineshaft-800 p-2">
+ <div className="space-y-2 rounded-lg border border-border-subtle bg-surface-raised p-2">
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Environment" />
- <div className="text-sm text-mineshaft-300">{integration.environment.name}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Environment" />
+ <div className="text-sm text-label">{integration.environment.name}</div>
</div>
<div className="flex flex-col">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Secret Path" />
- <div className="text-sm text-mineshaft-300">{integration.secretPath}</div>
+ <FormLabel className="text-sm font-medium text-label" label="Secret Path" />
+ <div className="text-sm text-label">{integration.secretPath}</div>
</div>
</div>
<FormLabel className="my-2" label="Destination" />
- <div className="space-y-2 rounded-lg border border-mineshaft-700 bg-mineshaft-800 p-2">
- <FormLabel className="text-sm font-medium text-mineshaft-300" label="Platform" />
- <div className="text-sm text-mineshaft-300">
+ <div className="space-y-2 rounded-lg border border-border-subtle bg-surface-raised p-2">
+ <FormLabel className="text-sm font-medium text-label" label="Platform" />
+ <div className="text-sm text-label">
{integrationSlugNameMapping?.[integration.integration]}
</div>
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationDetailsSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationDetailsSection.tsx
index aa841a88d6..8a3b51c7a2 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationDetailsSection.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationDetailsSection.tsx
@@ -14,40 +14,40 @@ type Props = {
export const IntegrationDetailsSection = ({ integration }: Props) => {
return (
<div>
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <h3 className="text-lg font-medium text-mineshaft-100">Integration Details</h3>
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-4">
+ <h3 className="text-lg font-medium text-foreground">Integration Details</h3>
</div>
<div className="mt-4">
<div className="space-y-3">
<div>
- <p className="text-sm font-medium text-mineshaft-300">Name</p>
- <p className="text-sm text-mineshaft-300">
+ <p className="text-sm font-medium text-label">Name</p>
+ <p className="text-sm text-label">
{integrationSlugNameMapping[integration.integration]}
</p>
</div>
<div>
- <p className="text-sm font-medium text-mineshaft-300">Sync Status</p>
+ <p className="text-sm font-medium text-label">Sync Status</p>
<div className="flex items-center">
<p
className={twMerge(
"mr-2 text-sm font-medium",
- integration.isSynced ? "text-green-500" : "text-red-500"
+ integration.isSynced ? "text-success" : "text-danger"
)}
>
{integration.isSynced ? "Synced" : "Not Synced"}
</p>
<FontAwesomeIcon
size="sm"
- className={twMerge(integration.isSynced ? "text-green-500" : "text-red-500")}
+ className={twMerge(integration.isSynced ? "text-success" : "text-danger")}
icon={integration.isSynced ? faCheckCircle : faCircleXmark}
/>
</div>
</div>
{integration.lastUsed && (
<div>
- <p className="text-sm font-medium text-mineshaft-300">Latest Successful Sync</p>
- <div className="flex items-center gap-2 text-sm text-mineshaft-300">
+ <p className="text-sm font-medium text-label">Latest Successful Sync</p>
+ <div className="flex items-center gap-2 text-sm text-label">
{format(new Date(integration.lastUsed), "yyyy-MM-dd, hh:mm aaa")}
<FontAwesomeIcon icon={faCalendarCheck} className="pt-0.5 pr-2 text-sm" />
</div>
@@ -57,8 +57,8 @@ export const IntegrationDetailsSection = ({ integration }: Props) => {
<div>
{!integration.isSynced && integration.syncMessage && (
<>
- <p className="text-sm font-medium text-mineshaft-300">Latest Sync Error</p>
- <p className="text-sm text-mineshaft-300">{integration.syncMessage}</p>
+ <p className="text-sm font-medium text-label">Latest Sync Error</p>
+ <p className="text-sm text-label">{integration.syncMessage}</p>
</>
)}
</div>
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
index 8c2983783c..4d2b2eec2f 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationSettingsSection.tsx
@@ -52,7 +52,7 @@ export const IntegrationSettingsSection = ({ integration }: Props) => {
if (typeof value === "object") {
if (key === "secretAWSTag") {
return (value as MetadataValue<"secretAWSTag">)!.map(({ key: tagKey, value: tagValue }) => (
- <p key={tagKey} className="text-sm text-gray-200">
+ <p key={tagKey} className="text-sm text-foreground-cool">
{tagKey}={tagValue}
</p>
));
@@ -80,18 +80,20 @@ export const IntegrationSettingsSection = ({ integration }: Props) => {
// eslint-disable-next-line no-nested-ternary
return (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="mb-4 flex items-center justify-between border-b border-mineshaft-400 pb-4">
- <p className="text-lg font-medium text-gray-200">Integration Settings</p>
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
+ <div className="mb-4 flex items-center justify-between border-b border-border-emphasis pb-4">
+ <p className="text-lg font-medium text-foreground-cool">Integration Settings</p>
</div>
<div className="grid grid-cols-2 gap-4">
{integration.metadata &&
Object.entries(integration.metadata).map(([key, value]) => (
<div key={key} className="flex flex-col">
- <p className="text-sm text-gray-400">
+ <p className="text-sm text-muted-cool">
{!!value && metadataMappings[key as keyof typeof metadataMappings]}
</p>
- <p className="text-sm text-gray-200">{renderValue(key as MetadataKey, value)}</p>
+ <p className="text-sm text-foreground-cool">
+ {renderValue(key as MetadataKey, value)}
+ </p>
</div>
))}
</div>
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/OctopusDeployScopeValues.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/OctopusDeployScopeValues.tsx
index 23b02bded8..c0e830b6b7 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/OctopusDeployScopeValues.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/OctopusDeployScopeValues.tsx
@@ -40,7 +40,7 @@ export const OctopusDeployScopeValues = ({ integration }: OctopusDeployScopeValu
);
if (!integration.metadata?.octopusDeployScopeValues)
- return <span className="text-sm text-mineshaft-400">Not Configured</span>;
+ return <span className="text-sm text-muted">Not Configured</span>;
if (isPending) return <Spinner size="sm" className="mt-2 ml-2" />;
@@ -73,9 +73,12 @@ export const OctopusDeployScopeValues = ({ integration }: OctopusDeployScopeValu
return (
<div className="mt-4" key={key}>
- <FormLabel className="text-sm font-medium text-mineshaft-200" label={getLabel(key)} />
+ <FormLabel
+ className="text-sm font-medium text-foreground-secondary"
+ label={getLabel(key)}
+ />
- <div className="text-sm text-mineshaft-300">
+ <div className="text-sm text-label">
{values
.map((value) => scopeValuesMap.get(key)?.get(value))
.map((name) => (
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
index 79b59b09ee..fe5891aa5c 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -71,7 +71,7 @@ export const IntegrationsListPage = () => {
<meta property="og:title" content="Manage your .env files in seconds" />
<meta name="og:description" content={t("integrations.description") as string} />
</Helmet>
- <div className="relative mx-auto max-w-8xl pb-12 text-white">
+ <div className="relative mx-auto max-w-8xl pb-12 text-foreground-inverse">
<div className="mb-8 flex flex-col gap-8">
<PageHeader
scope={ProjectType.SecretManager}
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/IntegrationDocsCard.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/IntegrationDocsCard.tsx
index fdc12a2680..a775c0832c 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/IntegrationDocsCard.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/IntegrationDocsCard.tsx
@@ -1,6 +1,8 @@
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { ProviderIcon } from "@app/components/v3/platform/ProviderIcon";
+
type Props = {
name: string;
category: string;
@@ -20,8 +22,8 @@ export const IntegrationDocsCard = ({ name, category, description, href, image,
<div className="flex items-start justify-between gap-2">
<div className="flex h-9 w-9 items-center justify-center rounded-md bg-foreground/5 shadow-inner">
{image ? (
- <img
- src={`/images/integrations/${image}.png`}
+ <ProviderIcon
+ icon={`${image}.png`}
alt={`${name} logo`}
className="h-6 w-6 object-contain"
/>
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationDetails.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationDetails.tsx
index 4974ab824e..55391a55c6 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationDetails.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationDetails.tsx
@@ -7,7 +7,7 @@ type Props = {
};
const FIELD_CLASSNAME =
- "truncate rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200";
+ "truncate rounded-md border border-border-subtle bg-surface-base px-3 py-2 font-inter text-sm text-foreground-soft";
export const getIntegrationDestination = (integration: TIntegration) =>
(integration.integration === "hashicorp-vault" &&
@@ -126,7 +126,7 @@ export const IntegrationDetails = ({ integration }: Props) => {
</div>
)}
{integration.integration === "github" && integration.metadata?.githubVisibility ? (
- <div className="mt-2 text-xs text-mineshaft-200">
+ <div className="mt-2 text-xs text-foreground-secondary">
{/* eslint-disable-next-line no-nested-ternary */}
{integration.metadata?.githubVisibility === "selected"
? "* Syncing to selected repositories in the organization. "
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
index 548472cf52..b8028fc488 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
@@ -15,7 +15,7 @@ import { twMerge } from "tailwind-merge";
import { ProjectPermissionCan } from "@app/components/permissions";
import { IconButton, Td, Tooltip, Tr } from "@app/components/v2";
-import { Badge } from "@app/components/v3";
+import { Badge, ProviderIcon } from "@app/components/v3";
import {
ProjectPermissionActions,
ProjectPermissionSub,
@@ -75,16 +75,16 @@ export const IntegrationRow = ({
})
}
className={twMerge(
- "group h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700",
- isSynced === false && "bg-red/5 hover:bg-red/10"
+ "group h-10 cursor-pointer transition-colors duration-100 hover:bg-surface-hover",
+ isSynced === false && "bg-danger/5 hover:bg-danger/10"
)}
key={`integration-${id}`}
>
<Td>
<div className="flex items-center gap-2">
- <img
+ <ProviderIcon
alt={`${cloudIntegration?.name} integration`}
- src={`/images/integrations/${cloudIntegration?.image}`}
+ icon={cloudIntegration?.image}
className="h-5 w-5"
/>
<span className="hidden lg:inline">{cloudIntegration?.name}</span>
@@ -104,7 +104,7 @@ export const IntegrationRow = ({
className="max-w-lg min-w-[20rem]"
content={<IntegrationDetails integration={integration} />}
>
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</div>
</Td>
@@ -123,7 +123,7 @@ export const IntegrationRow = ({
{integration.lastUsed && (
<div>
<div
- className={`mb-2 flex self-start ${!isSynced ? "text-yellow" : "text-green"}`}
+ className={`mb-2 flex self-start ${!isSynced ? "text-warning" : "text-success"}`}
>
<FontAwesomeIcon
icon={faCalendarCheck}
@@ -131,18 +131,18 @@ export const IntegrationRow = ({
/>
<div className="text-xs">Last Synced</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs">
+ <div className="rounded-sm bg-surface-active p-2 text-xs">
{format(new Date(integration.lastUsed!), "yyyy-MM-dd, hh:mm aaa")}
</div>
</div>
)}
{failureMessage && (
<div>
- <div className="mb-2 flex self-start text-red">
+ <div className="mb-2 flex self-start text-danger">
<FontAwesomeIcon icon={faXmark} className="ml-1 pt-0.5 pr-1.5 text-sm" />
<div className="text-xs">Failure Reason</div>
</div>
- <div className="rounded-sm bg-mineshaft-600 p-2 text-xs">{failureMessage}</div>
+ <div className="rounded-sm bg-surface-active p-2 text-xs">{failureMessage}</div>
</div>
)}
</div>
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationsTable.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationsTable.tsx
index 810edd1108..81ec6ae157 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationsTable.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationsTable.tsx
@@ -32,6 +32,7 @@ import {
Tooltip,
Tr
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import {
getUserTablePreference,
PreferenceKey,
@@ -75,9 +76,9 @@ type IntegrationFilters = {
};
const STATUS_ICON_MAP = {
- [IntegrationStatus.Synced]: { icon: faCheck, className: "text-green" },
- [IntegrationStatus.NotSynced]: { icon: faWarning, className: "text-red" },
- [IntegrationStatus.PendingSync]: { icon: faClock, className: "text-yellow" }
+ [IntegrationStatus.Synced]: { icon: faCheck, className: "text-success" },
+ [IntegrationStatus.NotSynced]: { icon: faWarning, className: "text-danger" },
+ [IntegrationStatus.PendingSync]: { icon: faClock, className: "text-warning" }
};
export const IntegrationsTable = ({
@@ -257,8 +258,8 @@ export const IntegrationsTable = ({
variant="plain"
size="sm"
className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<Tooltip content="Filter Integrations" className="mb-2">
@@ -282,7 +283,7 @@ export const IntegrationsTable = ({
key={status}
icon={
filters.status.includes(status) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
@@ -311,15 +312,15 @@ export const IntegrationsTable = ({
key={integration}
icon={
filters.integrations.includes(integration) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
>
<div className="flex items-center gap-2">
- <img
+ <ProviderIcon
alt={`${cloudIntegrationMap.get(integration)!.name} integration`}
- src={`/images/integrations/${cloudIntegrationMap.get(integration)!.image}`}
+ icon={cloudIntegrationMap.get(integration)!.image}
className="h-4 w-4"
/>
<span className="capitalize">{cloudIntegrationMap.get(integration)!.name}</span>
@@ -341,7 +342,7 @@ export const IntegrationsTable = ({
key={env.id}
icon={
filters.environmentIds.includes(env.id) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx
index c473a96947..be494b31fa 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsTab.tsx
@@ -59,9 +59,9 @@ export const NativeIntegrationsTab = () => {
return (
<>
<NativeIntegrationsDeprecationAlert />
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
- <p className="text-xl font-medium text-mineshaft-100">Native Integrations</p>
+ <p className="text-xl font-medium text-foreground">Native Integrations</p>
<Button
colorSchema="secondary"
type="submit"
@@ -124,7 +124,6 @@ export const NativeIntegrationsTab = () => {
<div className="mt-4">
<Checkbox
id="delete-integration-secrets"
- checkIndicatorBg="text-white"
onCheckedChange={() => setShouldDeleteSecrets.toggle()}
>
Delete previously synced secrets from the destination
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AwsSecretsManagerSyncDestinationCol.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AwsSecretsManagerSyncDestinationCol.tsx
index 72e35d4994..737c5b707c 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AwsSecretsManagerSyncDestinationCol.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncDestinationCol/AwsSecretsManagerSyncDestinationCol.tsx
@@ -25,7 +25,7 @@ export const AwsSecretsManagerSyncDestinationCol = ({ secretSync }: Props) => {
infoBadge: "secondary",
additionalTooltipContent: (
<div className="mt-4">
- <span className="text-xs text-label">Secret Name:</span>
+ <span className="text-xs text-label-secondary">Secret Name:</span>
<p className="text-sm">{destinationConfig.secretName}</p>
</div>
)
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
index e6ac709d97..df31ca9c61 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx
@@ -30,6 +30,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
+ ProviderIcon,
TableCell,
TableRow,
Tooltip,
@@ -148,9 +149,9 @@ export const SecretSyncRow = ({
)}
>
<TableCell>
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} sync`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="min-w-[26px] object-contain"
/>
</TableCell>
@@ -267,7 +268,7 @@ export const SecretSyncRow = ({
<RefreshCwIcon />
Trigger Sync
</span>
- <InfoIcon className="size-3.5 text-label" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent side="left" sideOffset={20}>
@@ -298,7 +299,7 @@ export const SecretSyncRow = ({
<DownloadIcon />
Import Secrets
</span>
- <InfoIcon className="size-3.5 text-label" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent side="left" sideOffset={20}>
@@ -330,7 +331,7 @@ export const SecretSyncRow = ({
<EraserIcon />
Remove Secrets
</span>
- <InfoIcon className="size-3.5 text-label" />
+ <InfoIcon className="size-3.5 text-label-secondary" />
</div>
</TooltipTrigger>
<TooltipContent side="left" sideOffset={20}>
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncsTable.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncsTable.tsx
index d58e8d00b4..302e269e33 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncsTable.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncsTable.tsx
@@ -31,6 +31,7 @@ import {
InputGroupAddon,
InputGroupInput,
Pagination,
+ ProviderIcon,
Skeleton,
Table,
TableBody,
@@ -343,9 +344,9 @@ export const SecretSyncsTable = ({ secretSyncs, isPending }: Props) => {
}));
}}
>
- <img
+ <ProviderIcon
alt={`${name} integration`}
- src={`/images/integrations/${image}`}
+ icon={image}
className="h-4 w-4"
/>
<span>{name}</span>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/CreateDynamicSecretForm/DynamicSecretProviderSelect.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/CreateDynamicSecretForm/DynamicSecretProviderSelect.tsx
index 961c51c119..f190f14fb4 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/CreateDynamicSecretForm/DynamicSecretProviderSelect.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/CreateDynamicSecretForm/DynamicSecretProviderSelect.tsx
@@ -10,7 +10,8 @@ import {
EmptyTitle,
InputGroup,
InputGroupAddon,
- InputGroupInput
+ InputGroupInput,
+ ProviderIcon
} from "@app/components/v3";
import { DynamicSecretProviders } from "@app/hooks/api/dynamicSecret/types";
@@ -34,8 +35,8 @@ const ProviderCard = ({
<div className="flex items-start justify-between gap-2">
<div className="flex size-9 items-center justify-center rounded-md bg-container">
{logoFileName ? (
- <img
- src={`/images/integrations/${logoFileName}`}
+ <ProviderIcon
+ icon={logoFileName}
alt={`${providerFamily} logo`}
className="size-6 object-contain"
/>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
index 73cf0ea353..75d66afd1c 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
@@ -194,7 +194,7 @@ export const FolderAccessSheet = ({
</Badge>
<FolderIcon className="size-3.5 shrink-0 text-folder" />
- <span className="truncate font-mono text-mineshaft-100/80">{folderPath}</span>
+ <span className="truncate font-mono text-foreground/80">{folderPath}</span>
</div>
</SheetHeader>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/TemporaryAccessPopover.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/TemporaryAccessPopover.tsx
index ec7429a3f9..7adb022e45 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/TemporaryAccessPopover.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/TemporaryAccessPopover.tsx
@@ -38,7 +38,7 @@ export const TemporaryAccessPopover = ({
<Popover open={isOpen} onOpenChange={handleOpenChange}>
<PopoverTrigger asChild>
<Button variant="neutral" size="md" className="w-full justify-between">
- <span className="flex items-center gap-2 text-mineshaft-200">
+ <span className="flex items-center gap-2 text-foreground-secondary">
<ClockIcon className="size-3.5" />
{label}
</span>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx
index 1352d1b2e6..3f75623c2c 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx
@@ -20,6 +20,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
+ ProviderIcon,
Table,
TableBody,
TableCell,
@@ -204,8 +205,8 @@ export const HoneyTokenTableRow = ({
variant="neutral"
className="mx-2.5 bg-[color-mix(in_srgb,var(--color-neutral)_15%,var(--color-container))]"
>
- <img
- src={`/images/integrations/${tokenInfo.image}`}
+ <ProviderIcon
+ icon={tokenInfo.image}
style={{ width: "11px" }}
alt={`${tokenInfo.name} logo`}
/>
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx
index 21a8a6295b..bcaf502774 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretRotationTableRow/SecretRotationTableRow.tsx
@@ -20,6 +20,7 @@ import {
Badge,
Checkbox,
IconButton,
+ ProviderIcon,
Table,
TableBody,
TableCell,
@@ -369,8 +370,8 @@ export const SecretRotationTableRow = ({
<div className="relative flex w-full items-center">
<span className="truncate">{secretRotationName}</span>
<Badge variant="neutral" className="mx-2.5">
- <img
- src={`/images/integrations/${SECRET_ROTATION_MAP[singleEnvRotation.type].image}`}
+ <ProviderIcon
+ icon={SECRET_ROTATION_MAP[singleEnvRotation.type].image}
style={{ width: "11px" }}
alt={`${SECRET_ROTATION_MAP[singleEnvRotation.type].name} logo`}
/>
@@ -474,8 +475,8 @@ export const SecretRotationTableRow = ({
<div className="relative flex w-full flex-wrap items-center">
<span>{envName}</span>
<Badge variant="neutral" className="mx-2.5">
- <img
- src={`/images/integrations/${image}`}
+ <ProviderIcon
+ icon={image}
style={{
width: "11px"
}}
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSyncStatusBadgeOverview/SecretSyncStatusBadgeOverview.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSyncStatusBadgeOverview/SecretSyncStatusBadgeOverview.tsx
index da39ddd01d..7adf4b585e 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSyncStatusBadgeOverview/SecretSyncStatusBadgeOverview.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSyncStatusBadgeOverview/SecretSyncStatusBadgeOverview.tsx
@@ -8,6 +8,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
+ ProviderIcon,
Table,
TableBody,
TableCell,
@@ -144,9 +145,9 @@ export const SecretSyncStatusBadgeOverview = ({ environmentSlugs }: Props) => {
{filteredSyncs.map((sync) => (
<TableRow key={sync.id} onClick={() => handleNavigateToSync(sync)}>
<TableCell>
- <img
+ <ProviderIcon
alt={`${SECRET_SYNC_MAP[sync.destination].name} sync`}
- src={`/images/integrations/${SECRET_SYNC_MAP[sync.destination].image}`}
+ icon={SECRET_SYNC_MAP[sync.destination].image}
className="h-5 w-5"
/>
</TableCell>
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
index cfb1b60ded..bc65ba29e6 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/SecretApprovalsPage.tsx
@@ -81,7 +81,7 @@ export const SecretApprovalsPage = () => {
<meta property="og:title" content={String(t("approval.og-title"))} />
<meta name="og:description" content={String(t("approval.og-description"))} />
</Helmet>
- <div className="mx-auto flex h-full w-full max-w-8xl flex-col gap-8 text-white">
+ <div className="mx-auto flex h-full w-full max-w-8xl flex-col gap-8 bg-page text-foreground-inverse">
<PageHeader
scope={ProjectType.SecretManager}
title="Approval Workflows"
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx
index 344cc9b68c..de4d77f227 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx
@@ -362,12 +362,12 @@ export const CreateSecretImportForm = ({
{selectedGrant && (
<Item variant="outline">
- <ItemMedia className="flex h-9 w-9 items-center justify-center rounded-md bg-mineshaft-700">
- <Key className="size-4 text-yellow-400" />
+ <ItemMedia className="flex h-9 w-9 items-center justify-center rounded-md bg-surface-hover">
+ <Key className="size-4 text-warning" />
</ItemMedia>
<ItemContent>
<ItemTitle>
- <span className="text-yellow-400">{selectedGrant.secretCount} secrets</span> will be
+ <span className="text-warning">{selectedGrant.secretCount} secrets</span> will be
imported
</ItemTitle>
<ItemDescription>
@@ -448,18 +448,18 @@ export const CreateSecretImportForm = ({
<Tooltip>
<TooltipTrigger asChild>
<span className="flex cursor-default items-center">
- <InfoIcon size={16} className="text-mineshaft-400" />
+ <InfoIcon size={16} className="text-muted" />
</span>
</TooltipTrigger>
<TooltipContent side="right" align="start" className="max-w-sm">
- <p className="mb-2 text-mineshaft-300">
+ <p className="mb-2 text-label">
You can import secrets into your project in one of two ways:
</p>
<ul className="ml-3.5 flex list-disc flex-col gap-y-4">
- <li className="text-mineshaft-200">
- <strong className="font-medium text-mineshaft-100">This Project</strong> —
+ <li className="text-foreground-secondary">
+ <strong className="font-medium text-foreground">This Project</strong> —
Inherit secrets from another environment or folder within{" "}
- <strong className="font-medium text-mineshaft-100">
+ <strong className="font-medium text-foreground">
{currentProject?.name ?? "this project"}
</strong>
.
@@ -468,8 +468,8 @@ export const CreateSecretImportForm = ({
the same project.
</p>
</li>
- <li className="text-mineshaft-200">
- <strong className="font-medium text-mineshaft-100">Another Project</strong> —
+ <li className="text-foreground-secondary">
+ <strong className="font-medium text-foreground">Another Project</strong> —
Import a folder or environment from a different project that has granted
access to this one.
<p className="mt-2">
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
index 39b9f007a2..83522e473d 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
@@ -130,7 +130,7 @@ const RenderSecretChanges = ({
content={
<div className="max-w-xs">
<p className="font-medium">References will be updated</p>
- <p className="mt-1 text-xs text-mineshaft-300">
+ <p className="mt-1 text-xs text-label">
This secret is referenced by {referenceCount} secret{referenceCount !== 1 ? "s" : ""}.
References will be automatically updated to use the new key. This can trigger secret
syncs in the respective environments.
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx
index 244d4e72d3..1a4f9e435b 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx
@@ -45,7 +45,7 @@ export const MetadataForm = ({
{metadataFormFields.fields.map(({ id: metadataFieldId }, i) => (
<div key={metadataFieldId} className="flex items-start space-x-2">
<div className="grow">
- {i === 0 && <FormLabel label="Key" className="text-xs text-mineshaft-400" />}
+ {i === 0 && <FormLabel label="Key" className="text-xs text-muted" />}
<Controller
control={control}
name={`${name}.${i}.key`}
@@ -64,7 +64,7 @@ export const MetadataForm = ({
{i === 0 && (
<FormLabel
label="Value"
- className="text-xs text-mineshaft-400"
+ className="text-xs text-muted"
isOptional={!isValueRequired}
/>
)}
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
index 4c7cf8fd91..4d8abb29b6 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/SecretSyncDetailsByIDPage.tsx
@@ -19,7 +19,8 @@ import {
EmptyHeader,
EmptyMedia,
EmptyTitle,
- PageLoader
+ PageLoader,
+ ProviderIcon
} from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { ProjectPermissionSub } from "@app/context";
@@ -80,25 +81,27 @@ const PageContent = () => {
return (
<>
- <div className="container mx-auto flex flex-col justify-between font-inter text-foreground">
+ <div className="container mx-auto flex flex-col justify-between bg-page font-inter text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<Link
to={ROUTE_PATHS.SecretManager.IntegrationsListPage.path}
params={{ orgId, projectId }}
search={{ selectedTab: IntegrationsListPageTabs.SecretSyncs }}
- className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-foreground"
+ className="mb-4 flex w-fit items-center gap-x-1 text-sm text-muted transition duration-100 hover:text-muted/80"
>
<ChevronLeftIcon className="size-4" />
Secret Syncs
</Link>
<div className="mb-6 flex w-full items-center gap-3">
- <img
+ <ProviderIcon
alt={`${destinationDetails.name} sync`}
- src={`/images/integrations/${destinationDetails.image}`}
+ icon={destinationDetails.image}
className="mt-1.5 ml-1 w-12"
/>
<div className="min-w-0">
- <p className="truncate text-2xl font-medium text-foreground">{secretSync.name}</p>
+ <p className="truncate text-2xl font-medium text-foreground-inverse">
+ {secretSync.name}
+ </p>
<p className="mt-1 leading-3 text-accent">
{secretSync.description || `${destinationDetails.name} Sync`}
</p>
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx
index 9549fb0991..0937b6957d 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx
@@ -97,7 +97,7 @@ export const SecretSyncAuditLogsSection = ({ secretSync }: Props) => {
}}
/>
) : (
- <div className="flex h-full items-center justify-center rounded-lg bg-container-hover text-sm text-foreground/80">
+ <div className="flex h-full items-center justify-center rounded-lg bg-surface-raised text-sm text-foreground-secondary">
<div className="flex flex-col items-center gap-4 py-20">
<FingerprintIcon className="size-8" />
<p>
@@ -110,7 +110,7 @@ export const SecretSyncAuditLogsSection = ({ secretSync }: Props) => {
rel="noopener noreferrer"
>
<a
- className="cursor-pointer underline transition-all hover:text-foreground"
+ className="cursor-pointer underline transition-all hover:text-foreground-inverse"
target="_blank"
>
upgrade your subscription
@@ -123,7 +123,7 @@ export const SecretSyncAuditLogsSection = ({ secretSync }: Props) => {
rel="noopener noreferrer"
>
<a
- className="cursor-pointer underline transition-all hover:text-foreground"
+ className="cursor-pointer underline transition-all hover:text-foreground-inverse"
target="_blank"
>
upgrade your subscription
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/GitHubSyncDestinationSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/GitHubSyncDestinationSection.tsx
index bed63ad43a..87af6b82c5 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/GitHubSyncDestinationSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/GitHubSyncDestinationSection.tsx
@@ -43,7 +43,7 @@ export const GitHubSyncDestinationSection = ({ secretSync }: Props) => {
{destinationConfig.selectedRepositoryIds?.length ?? 0} Repositories
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="ml-1 inline size-3 text-label" />
+ <InfoIcon className="ml-1 inline size-3 text-label-secondary" />
</TooltipTrigger>
<TooltipContent side="bottom">
<GitHubSyncSelectedRepositoriesTooltipContent secretSync={secretSync} />
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDetailsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDetailsSection.tsx
index c57058cd38..7285d8069e 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDetailsSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDetailsSection.tsx
@@ -63,7 +63,7 @@ export const SecretSyncDetailsSection = ({ secretSync }: Props) => {
<Detail>
<DetailLabel className="text-danger">Last Sync Error</DetailLabel>
<DetailValue>
- <p className="rounded-sm bg-ring p-2 text-xs break-words">{failureMessage}</p>
+ <p className="rounded-sm bg-surface-active p-2 text-xs break-words">{failureMessage}</p>
</DetailValue>
</Detail>
)}
diff --git a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
index f3e86958cf..501452dd5e 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
@@ -82,7 +82,7 @@ export const SettingsPage = () => {
const ActiveTabComponent = activeTab?.Component;
return (
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: pageTitle })}</title>
</Helmet>
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
index 688dacdfbf..86a15731a2 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/SecretValidationRulesSection.tsx
@@ -414,7 +414,7 @@ const RuleFormContent = ({
pattern and the min/max length constraints are ignored. Define the length
requirement inside the regex pattern itself
<br /> (e.g.{" "}
- <code className="rounded-md bg-mineshaft-700 px-1 py-0.5">{"[A-Z]{12,20}"}</code>
+ <code className="rounded-md bg-surface-hover px-1 py-0.5">{"[A-Z]{12,20}"}</code>
).
</p>
</AlertDescription>
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
index b2177e812c..956eb99cb7 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
@@ -16,6 +16,7 @@ import {
Select,
SelectItem
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { useOrganization, useProject } from "@app/context";
import { useSaveIntegrationAccessToken } from "@app/hooks/api";
@@ -88,19 +89,14 @@ export const AWSParameterStoreAuthorizeIntegrationPage = () => {
<Helmet>
<title>Authorize AWS Parameter Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."
>
<div className="flex flex-row items-center">
<div className="flex items-center">
- <img
- src="/images/integrations/Amazon Web Services.png"
- height={35}
- width={35}
- alt="AWS logo"
- />
+ <ProviderIcon icon="Amazon Web Services.png" height={35} width={35} alt="AWS logo" />
</div>
<span className="ml-1.5">AWS Parameter Store Integration </span>
<a
@@ -108,7 +104,7 @@ export const AWSParameterStoreAuthorizeIntegrationPage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/aws-parameter-store"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
index cf55f4d96e..c517ac3d41 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
@@ -24,7 +24,7 @@ import {
TabPanel,
Tabs
} from "@app/components/v2";
-import { Badge } from "@app/components/v3";
+import { Badge, ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useCreateIntegration } from "@app/hooks/api";
@@ -175,19 +175,14 @@ export const AWSParameterStoreConfigurePage = () => {
<Helmet>
<title>Set Up AWS Parameter Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to secerts in AWS Parameter Store."
>
<div className="flex flex-row items-center">
<div className="flex items-center">
- <img
- src="/images/integrations/Amazon Web Services.png"
- height={35}
- width={35}
- alt="AWS logo"
- />
+ <ProviderIcon icon="Amazon Web Services.png" height={35} width={35} alt="AWS logo" />
</div>
<span className="ml-1.5">AWS Parameter Store Integration </span>
<a
@@ -195,7 +190,7 @@ export const AWSParameterStoreConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -208,7 +203,7 @@ export const AWSParameterStoreConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -225,7 +220,7 @@ export const AWSParameterStoreConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -251,7 +246,7 @@ export const AWSParameterStoreConfigurePage = () => {
setSelectedAWSRegion(val);
setKmsKeyId("");
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{awsRegions.map((awsRegion) => (
<SelectItem value={awsRegion.slug} key={`aws-environment-${awsRegion.slug}`}>
@@ -317,7 +312,7 @@ export const AWSParameterStoreConfigurePage = () => {
onValueChange={(e) => {
setKmsKeyId(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{integrationAuthAwsKmsKeys?.length ? (
integrationAuthAwsKmsKeys.map((key) => {
@@ -341,7 +336,7 @@ export const AWSParameterStoreConfigurePage = () => {
</Tabs>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isLoading={isLoading}
@@ -349,13 +344,13 @@ export const AWSParameterStoreConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in AWS Parameter Store with secrets from
Infisical.
@@ -375,12 +370,12 @@ export const AWSParameterStoreConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
index b01e292b99..142772e1d3 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
@@ -16,6 +16,7 @@ import {
Select,
SelectItem
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { useOrganization, useProject } from "@app/context";
import { useSaveIntegrationAccessToken } from "@app/hooks/api";
@@ -85,19 +86,14 @@ export const AWSSecretManagerAuthorizePage = () => {
<Helmet>
<title>Authorize AWS Secrets Manager Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."
>
<div className="flex flex-row items-center">
<div className="flex items-center">
- <img
- src="/images/integrations/Amazon Web Services.png"
- height={35}
- width={35}
- alt="AWS logo"
- />
+ <ProviderIcon icon="Amazon Web Services.png" height={35} width={35} alt="AWS logo" />
</div>
<span className="ml-1.5">AWS Secrets Manager Integration </span>
<a
@@ -105,7 +101,7 @@ export const AWSSecretManagerAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
index e28296c33f..8f616ad0f5 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
@@ -28,7 +28,7 @@ import {
Tabs
} from "@app/components/v2";
import { SecretPathInput } from "@app/components/v2/SecretPathInput";
-import { Badge } from "@app/components/v3";
+import { Badge, ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import { useCreateIntegration } from "@app/hooks/api";
@@ -225,15 +225,15 @@ export const AwsSecretManagerConfigurePage = () => {
<title>Set Up AWS Secrets Manager Integration</title>
</Helmet>
<form onSubmit={handleSubmit(handleButtonClick)}>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to secerts in AWS Secrets Manager."
>
<div className="flex flex-row items-center">
<div className="flex items-center">
- <img
- src="/images/integrations/Amazon Web Services.png"
+ <ProviderIcon
+ icon="Amazon Web Services.png"
height={35}
width={35}
alt="AWS logo"
@@ -245,7 +245,7 @@ export const AwsSecretManagerConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -258,7 +258,7 @@ export const AwsSecretManagerConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -281,7 +281,7 @@ export const AwsSecretManagerConfigurePage = () => {
isError={Boolean(error)}
>
<Select
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
value={field.value}
onValueChange={(val) => {
@@ -325,7 +325,7 @@ export const AwsSecretManagerConfigurePage = () => {
<Select
defaultValue={field.value}
onValueChange={(e) => onChange(e)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
{awsRegions.map((awsRegion) => (
@@ -358,7 +358,7 @@ export const AwsSecretManagerConfigurePage = () => {
}
onChange(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
{mappingBehaviors.map((option) => (
@@ -447,7 +447,7 @@ export const AwsSecretManagerConfigurePage = () => {
setValue("tags", []);
onChange(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
<SelectItem
@@ -527,7 +527,7 @@ export const AwsSecretManagerConfigurePage = () => {
<Select
defaultValue={field.value}
onValueChange={(e) => onChange(e)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
{integrationAuthAwsKmsKeys?.length ? (
@@ -555,7 +555,7 @@ export const AwsSecretManagerConfigurePage = () => {
</TabPanel>
</Tabs>
<Button
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
type="submit"
className="mt-2 mr-6 mb-6 ml-auto"
@@ -564,13 +564,13 @@ export const AwsSecretManagerConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in AWS Secrets Manager with secrets from
Infisical.
@@ -591,12 +591,12 @@ export const AwsSecretManagerConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
index a95e7de9fa..9efac8b015 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
@@ -153,7 +153,7 @@ export const AzureAppConfigurationConfigurePage = () => {
<Helmet>
<title>Set Up Azure App Configuration Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to your Azure App Configuration."
@@ -173,7 +173,7 @@ export const AzureAppConfigurationConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -196,7 +196,7 @@ export const AzureAppConfigurationConfigurePage = () => {
isError={Boolean(error)}
>
<Select
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
value={field.value}
onValueChange={(val) => {
@@ -295,7 +295,7 @@ export const AzureAppConfigurationConfigurePage = () => {
<Select
defaultValue={field.value}
onValueChange={(e) => onChange(e)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
{initialSyncBehaviors.map((b) => {
@@ -315,7 +315,7 @@ export const AzureAppConfigurationConfigurePage = () => {
/>
<Button
type="submit"
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-4 mb-6 ml-auto"
isLoading={isSubmitting}
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
index 28abe40fd8..fa0ddd07f0 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
@@ -58,7 +58,7 @@ export const AzureDevopsAuthorizePage = () => {
<Helmet>
<title>Authorize Azure DevOps Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -78,7 +78,7 @@ export const AzureDevopsAuthorizePage = () => {
href="https://infisical.com/docs/integrations/cloud/azure-devops"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
index a83fb7e438..45f21e7ab4 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
@@ -103,7 +103,7 @@ export const AzureDevopsConfigurePage = () => {
<Helmet>
<title>Set Up Azure DevOps Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to secrets in Azure DevOps."
@@ -123,7 +123,7 @@ export const AzureDevopsConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -138,7 +138,7 @@ export const AzureDevopsConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{workspace?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -161,7 +161,7 @@ export const AzureDevopsConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
index 74fbf7384c..eb11c5b558 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/AzureKeyVaultAuthorizePage.tsx
@@ -40,7 +40,7 @@ export function AzureKeyVaultAuthorizePage() {
<title>Authorize Azure Key Vault Integration</title>
<link rel="icon" href="/infisical.ico" />
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Authenticate with a specific tenant ID or let OAuth handle it automatically."
@@ -60,7 +60,7 @@ export function AzureKeyVaultAuthorizePage() {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
index 5681e63ad1..28d71c7596 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
@@ -110,7 +110,7 @@ export const AzureKeyVaultConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{workspace?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -157,7 +157,7 @@ export const AzureKeyVaultConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
index 3c52da576e..e2a092c408 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
@@ -56,7 +56,7 @@ export const ChecklyAuthorizePage = () => {
<Helmet>
<title>Authorize Checkly Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -76,7 +76,7 @@ export const ChecklyAuthorizePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/checkly"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
index 649b3ca7ee..224b18d54d 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
@@ -133,11 +133,11 @@ export const ChecklyConfigurePage = () => {
integrationAuthApps &&
integrationAuthGroups &&
targetAppId ? (
- <div className="flex h-full w-full flex-col items-center justify-center bg-linear-to-tr from-mineshaft-900 to-bunker-900 py-6">
+ <div className="flex h-full w-full flex-col items-center justify-center bg-linear-to-tr from-surface-base to-page-deep py-6">
<Helmet>
<title>Set Up Checkly Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to Checkly environment variables."
@@ -157,7 +157,7 @@ export const ChecklyConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -170,7 +170,7 @@ export const ChecklyConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -187,7 +187,7 @@ export const ChecklyConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{workspace?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -210,7 +210,7 @@ export const ChecklyConfigurePage = () => {
<Select
value={targetAppId}
onValueChange={(val) => setTargetAppId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -233,7 +233,7 @@ export const ChecklyConfigurePage = () => {
<Select
value={targetGroupId}
onValueChange={(val) => setTargetGroupId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{integrationAuthGroups.length > 0 ? (
integrationAuthGroups.map((integrationAuthGroup) => (
@@ -273,7 +273,7 @@ export const ChecklyConfigurePage = () => {
</Tabs>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mr-6 mb-6 ml-auto"
isFullWidth={false}
@@ -296,12 +296,12 @@ export const ChecklyConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
index 1973b60e81..745a8d78b4 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
@@ -55,7 +55,7 @@ export const CircleCIAuthorizePage = () => {
<Helmet>
<title>Authorize CircleCI Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your API Token, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -75,7 +75,7 @@ export const CircleCIAuthorizePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cicd/circleci"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
index d8c5ebe64e..7a00cd9dce 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
@@ -147,7 +147,7 @@ export const CircleCIConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 flex cursor-pointer flex-row items-center gap-0.5 rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 flex cursor-pointer flex-row items-center gap-0.5 rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -234,7 +234,7 @@ export const CircleCIConfigurePage = () => {
onValueChange={(e) => {
onChange(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
<SelectItem value={CircleCiScope.Project}>Project</SelectItem>
<SelectItem value={CircleCiScope.Context}>Context</SelectItem>
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
index f77ae772c0..d3c5315abe 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
@@ -61,7 +61,7 @@ export const Cloud66AuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
index 550e373dbd..ec0a8bc919 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
@@ -97,7 +97,7 @@ export const Cloud66ConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -120,7 +120,7 @@ export const Cloud66ConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -141,7 +141,7 @@ export const Cloud66ConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
index 57a24b24c1..b46c8cd122 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
@@ -57,7 +57,7 @@ export const CloudflarePagesAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left"
subTitle="After adding your API-key, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -88,7 +88,7 @@ export const CloudflarePagesAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto w-min"
isFullWidth={false}
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
index 705526853b..049ec20e8b 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
@@ -112,8 +112,8 @@ export const CloudflarePagesConfigurePage = () => {
integrationAuthApps &&
targetEnvironment &&
targetApp ? (
- <div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-mineshaft-900 to-bunker-900">
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-surface-base to-page-deep">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left"
subTitle="Choose which environment in Infisical you want to sync with your Cloudflare Pages project."
@@ -124,7 +124,7 @@ export const CloudflarePagesConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{workspace?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -148,7 +148,7 @@ export const CloudflarePagesConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -171,7 +171,7 @@ export const CloudflarePagesConfigurePage = () => {
<Select
value={targetEnvironment}
onValueChange={(val) => setTargetEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{cloudflareEnvironments.map((cloudflareEnvironment) => (
<SelectItem
@@ -196,7 +196,7 @@ export const CloudflarePagesConfigurePage = () => {
)}
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isFullWidth={false}
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
index bb8e11d63d..07be06ba67 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
@@ -57,7 +57,7 @@ export const CloudflareWorkersAuthorizePage = () => {
return (
<div className="flex h-full w-full items-center justify-center">
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left"
subTitle="After adding your API-key, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -88,7 +88,7 @@ export const CloudflareWorkersAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto w-min"
isFullWidth={false}
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
index 43abd0cf71..6cf0169bf9 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
@@ -80,8 +80,8 @@ export const CloudflareWorkersConfigurePage = () => {
};
return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (
- <div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-mineshaft-900 to-bunker-900">
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <div className="flex h-full w-full items-center justify-center bg-linear-to-tr from-surface-base to-page-deep">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left"
subTitle="Choose which environment in Infisical you want to sync with your Cloudflare Workers project."
@@ -92,7 +92,7 @@ export const CloudflareWorkersConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -116,7 +116,7 @@ export const CloudflareWorkersConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -137,7 +137,7 @@ export const CloudflareWorkersConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isFullWidth={false}
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
index a8b3142710..a4dde487bf 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
@@ -60,7 +60,7 @@ export const CodefreshAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
index abeac0ef26..bd9aa764e9 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
@@ -93,7 +93,7 @@ export const CodefreshConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -116,7 +116,7 @@ export const CodefreshConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -137,7 +137,7 @@ export const CodefreshConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
index 303cd3f2d9..4a8ee9df6b 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
@@ -59,7 +59,7 @@ export const DatabricksAuthorizePage = () => {
<Helmet>
<title>Authorize Databricks Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your Access Token, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -79,7 +79,7 @@ export const DatabricksAuthorizePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/databricks"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
index fd1755c3cc..231c0cb5cd 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
@@ -102,7 +102,7 @@ export const DatabricksConfigurePage = () => {
<Helmet>
<title>Set Up Databricks Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment or folder in Infisical you want to sync to which Databricks secrets scope."
@@ -122,7 +122,7 @@ export const DatabricksConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -138,7 +138,7 @@ export const DatabricksConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -165,7 +165,7 @@ export const DatabricksConfigurePage = () => {
onValueChange={(val) => {
setTargetScope(val);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
placeholder={
integrationAuthScopes.length === 0 ? "No scopes found." : "Select scope..."
}
@@ -196,17 +196,17 @@ export const DatabricksConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
When integrating with Databricks, Infisical is intended to be the source of truth for the
secrets in the configured Databricks scope.
</span>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
Any secrets not present in Infisical will be removed from the specified scope. To prevent
removal of secrets not managed by Infisical, Infisical recommends creating a designated
secret scope for your integration.
@@ -226,12 +226,12 @@ export const DatabricksConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
index 179d4f87b5..23a7f8d135 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
@@ -60,7 +60,7 @@ export const DigitalOceanAppPlatformAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
index df20176d04..43e620241f 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
@@ -94,7 +94,7 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -117,7 +117,7 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -138,7 +138,7 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
index 869b6402f0..31fc354bf1 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
@@ -64,7 +64,7 @@ export const FlyioAuthorizePage = () => {
<Helmet>
<title>Authorize Fly.io Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your access token, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -79,7 +79,7 @@ export const FlyioAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
index 493c4e32ec..a2330fc407 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
@@ -105,7 +105,7 @@ export const FlyioConfigurePage = () => {
<Helmet>
<title>Set Up Fly.io Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment or folder in Infisical you want to sync to Fly.io environment variables."
@@ -120,7 +120,7 @@ export const FlyioConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -143,7 +143,7 @@ export const FlyioConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -166,7 +166,7 @@ export const FlyioConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -187,7 +187,7 @@ export const FlyioConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isLoading={isLoading}
@@ -196,13 +196,13 @@ export const FlyioConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in Fly.io with secrets from Infisical.
</span>
@@ -221,12 +221,12 @@ export const FlyioConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
index 1145ea91a6..4edd15a1d0 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
@@ -90,7 +90,7 @@ export const GcpSecretManagerAuthorizePage = () => {
<Helmet>
<title>Authorize GCP Secret Manager Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Connect Infisical to GCP Secret Manager to sync secrets."
@@ -110,7 +110,7 @@ export const GcpSecretManagerAuthorizePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/gcp-secret-manager"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -132,9 +132,9 @@ export const GcpSecretManagerAuthorizePage = () => {
Continue with OAuth
</Button>
<div className="my-4 flex w-full flex-row items-center py-2">
- <div className="w-full border-t border-mineshaft-400/40" />
- <span className="mx-2 text-xs text-mineshaft-400">or</span>
- <div className="w-full border-t border-mineshaft-400/40" />
+ <div className="w-full border-t border-border-emphasis/40" />
+ <span className="mx-2 text-xs text-muted">or</span>
+ <div className="w-full border-t border-border-emphasis/40" />
</div>
</div>
<form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">
@@ -149,7 +149,7 @@ export const GcpSecretManagerAuthorizePage = () => {
>
<TextArea
{...field}
- className="h-48 border border-mineshaft-600 bg-bunker-900/80"
+ className="h-48 border border-border-control bg-page-deep/80"
/>
</FormControl>
)}
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
index e974ec2e13..ad680bfe85 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
@@ -178,7 +178,7 @@ export const GcpSecretManagerConfigurePage = () => {
})}
className="flex h-full w-full flex-col items-center justify-center"
>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<Helmet>
<title>Set Up GCP Secret Manager Integration</title>
</Helmet>
@@ -201,7 +201,7 @@ export const GcpSecretManagerConfigurePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/gcp-secret-manager"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -214,7 +214,7 @@ export const GcpSecretManagerConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -405,13 +405,13 @@ export const GcpSecretManagerConfigurePage = () => {
Create Integration
</Button>
</Card>
- {/* <div className="border-t border-mineshaft-800 w-full max-w-md mt-6"/>
- <div className="flex flex-col bg-mineshaft-800 border border-mineshaft-600 w-full p-4 max-w-lg mt-6 rounded-md">
+ {/* <div className="border-t border-border-faint w-full max-w-md mt-6"/>
+ <div className="flex flex-col bg-surface-raised border border-border-control w-full p-4 max-w-lg mt-6 rounded-md">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-200 text-xl"/>
- <span className="ml-3 text-md text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-foreground-secondary text-xl"/>
+ <span className="ml-3 text-md text-foreground">Pro Tip</span>
</div>
- <span className="text-mineshaft-300 text-sm mt-4">
+ <span className="text-label text-sm mt-4">
After creating an integration, your secrets will start syncing immediately.
To avoid overwriting existing secrets in GCP Secret Manager, you may consider adding a secret prefix/suffix and/or enabling labeling in the options tab.
@@ -459,12 +459,12 @@ export const GcpSecretManagerConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
index 6226e1a0e1..a8788ce495 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
@@ -15,6 +15,7 @@ import {
Select,
SelectItem
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { useOrganization, useProject } from "@app/context";
import { localStorageService } from "@app/helpers/localStorage";
import { useGetCloudIntegrations } from "@app/hooks/api";
@@ -38,14 +39,14 @@ export const GithubAuthorizePage = () => {
<Helmet>
<title>Select GitHub Integration Auth</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select how you'd like to integrate with GitHub. We recommend using the GitHub App method for fine-grained access."
>
<div className="flex flex-row items-center">
<div className="flex items-center pb-0.5">
- <img src="/images/integrations/GitHub.png" height={30} width={30} alt="Github logo" />
+ <ProviderIcon icon="GitHub.png" height={30} width={30} alt="GitHub logo" />
</div>
<span className="ml-2.5">GitHub Integration </span>
<a
@@ -53,7 +54,7 @@ export const GithubAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -71,7 +72,7 @@ export const GithubAuthorizePage = () => {
onValueChange={(val) => {
setSelectedAuthMethod(val as AuthMethod);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
<SelectItem value={AuthMethod.APP}>GitHub App (Recommended)</SelectItem>
<SelectItem value={AuthMethod.OAUTH}>OAuth</SelectItem>
diff --git a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
index 3be855f75d..de9df34a98 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
@@ -34,6 +34,7 @@ import {
TabPanel,
Tabs
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { useOrganization, useProject } from "@app/context";
import {
@@ -293,20 +294,15 @@ export const GithubConfigurePage = () => {
<Helmet>
<title>Set Up GitHub Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<form onSubmit={handleSubmit(onFormSubmit)} className="px-6">
<CardTitle
className="px-0 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to environment variables in GitHub."
>
<div className="flex flex-row items-center">
- <div className="flex items-center rounded-full bg-mineshaft-200">
- <img
- src="/images/integrations/GitHub.png"
- height={30}
- width={30}
- alt="GitHub logo"
- />
+ <div className="flex items-center rounded-full bg-foreground-secondary">
+ <ProviderIcon icon="GitHub.png" height={30} width={30} alt="GitHub logo" />
</div>
<span className="ml-2.5">GitHub Integration </span>
<a
@@ -314,7 +310,7 @@ export const GithubConfigurePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cicd/githubactions"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -327,7 +323,7 @@ export const GithubConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection}>
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -352,7 +348,7 @@ export const GithubConfigurePage = () => {
<Select
defaultValue={field.value}
onValueChange={onChange}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -390,7 +386,7 @@ export const GithubConfigurePage = () => {
setValue("repoIds", []);
onChange(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
<SelectItem value="github-org">Organization</SelectItem>
<SelectItem value="github-repo">Repository</SelectItem>
@@ -412,7 +408,7 @@ export const GithubConfigurePage = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
{integrationAuthApps.length > 0 ? (
- <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-hidden data-placeholder:text-mineshaft-200">
+ <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-border-control bg-surface-base px-3 py-2 font-inter text-sm font-normal text-foreground-soft outline-hidden data-placeholder:text-foreground-secondary">
{repoIds?.length === 1
? integrationAuthApps?.reduce(
(acc, { appId, name, owner }) =>
@@ -423,7 +419,7 @@ export const GithubConfigurePage = () => {
<FontAwesomeIcon icon={faAngleDown} className="text-xs" />
</div>
) : (
- <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-hidden data-placeholder:text-mineshaft-200">
+ <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-border-control bg-surface-base px-3 py-2 font-inter text-sm font-normal text-foreground-soft outline-hidden data-placeholder:text-foreground-secondary">
No repositories found
</div>
)}
@@ -460,7 +456,7 @@ export const GithubConfigurePage = () => {
isSelected ? (
<FontAwesomeIcon
icon={faCheckCircle}
- className="pr-0.5 text-primary"
+ className="pr-0.5 text-project"
/>
) : (
<div className="pl-[1.01rem]" />
@@ -498,7 +494,7 @@ export const GithubConfigurePage = () => {
<Select
value={field.value}
onValueChange={onChange}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{integrationAuthOrgs &&
integrationAuthOrgs.map(({ name, orgId }) => (
@@ -524,7 +520,7 @@ export const GithubConfigurePage = () => {
<Select
value={field.value}
onValueChange={onChange}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{secretsVisibility.map(({ label, value }) => (
<SelectItem key={`github-visibility-${value}`} value={value}>
@@ -549,7 +545,7 @@ export const GithubConfigurePage = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
{integrationAuthApps.length > 0 ? (
- <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-hidden data-placeholder:text-mineshaft-200">
+ <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-border-control bg-surface-base px-3 py-2 font-inter text-sm font-normal text-foreground-soft outline-hidden data-placeholder:text-foreground-secondary">
{repoIds?.length === 1
? integrationAuthApps?.reduce(
(acc, { appId, name, owner }) =>
@@ -560,7 +556,7 @@ export const GithubConfigurePage = () => {
<FontAwesomeIcon icon={faAngleDown} className="text-xs" />
</div>
) : (
- <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-hidden data-placeholder:text-mineshaft-200">
+ <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-border-control bg-surface-base px-3 py-2 font-inter text-sm font-normal text-foreground-soft outline-hidden data-placeholder:text-foreground-secondary">
No repositories found
</div>
)}
@@ -597,7 +593,7 @@ export const GithubConfigurePage = () => {
isSelected ? (
<FontAwesomeIcon
icon={faCheckCircle}
- className="pr-0.5 text-primary"
+ className="pr-0.5 text-project"
/>
) : (
<div className="pl-[1.01rem]" />
@@ -639,7 +635,7 @@ export const GithubConfigurePage = () => {
setValue("repoOwner", selectedRepo?.owner);
onChange(e);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{integrationAuthApps?.length ? (
integrationAuthApps.map((app) => {
@@ -680,7 +676,7 @@ export const GithubConfigurePage = () => {
onValueChange={onChange}
isDisabled={!repoId}
className={twMerge(
- "w-full border border-mineshaft-500",
+ "w-full border border-border-strong",
!repoId && "h-10 cursor-not-allowed"
)}
>
@@ -752,7 +748,7 @@ export const GithubConfigurePage = () => {
<div className="flex w-full justify-end">
<Button
type="submit"
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mb-6"
isLoading={isLoading}
@@ -762,13 +758,13 @@ export const GithubConfigurePage = () => {
</div>
</form>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in GitHub with secrets from Infisical.
</span>
@@ -787,12 +783,12 @@ export const GithubConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="li my-2 inline text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
index 4b1c0e2a4f..e790e2279b 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx
@@ -65,7 +65,7 @@ export const GitlabAuthorizePage = () => {
<Helmet>
<title>Authorize GitLab Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Authorize this integration to sync secrets from Infisical to GitLab. If no self-hosted GitLab URL is specified, then Infisical will connect you to GitLab Cloud."
@@ -80,7 +80,7 @@ export const GitlabAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
index c9d9f830ba..6f97d8aa57 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
@@ -212,7 +212,7 @@ export const GitlabConfigurePage = () => {
<Helmet>
<title>Set Up GitLab Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select which environment or folder in Infisical you want to sync to GitLab's environment variables."
@@ -227,7 +227,7 @@ export const GitlabConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -240,7 +240,7 @@ export const GitlabConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.Connection} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.Connection}>Connection</Tab>
<Tab value={TabSections.Options}>Options</Tab>
</div>
@@ -412,7 +412,7 @@ export const GitlabConfigurePage = () => {
<Select
defaultValue={field.value}
onValueChange={(e) => onChange(e)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
dropdownContainerClassName="max-w-full"
>
{initialSyncBehaviors.map((b) => {
@@ -556,12 +556,12 @@ export const GitlabConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
index 2f41e3ba47..459d9084e4 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx
@@ -105,8 +105,8 @@ export const GitLabOAuthCallbackPage = () => {
return (
<div className="flex h-screen items-center justify-center">
<div className="text-center">
- <div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-primary" />
- <p className="text-gray-600">Connecting to GitLab...</p>
+ <div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-project" />
+ <p className="text-label">Connecting to GitLab...</p>
</div>
</div>
);
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
index bc64d93fb4..c46213bb0e 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
@@ -64,7 +64,7 @@ export const HashicorpVaultAuthorizePage = () => {
<Helmet>
<title>Authorize Vault Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After connecting to Vault, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -84,7 +84,7 @@ export const HashicorpVaultAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
index 2070cca3e3..4e4d057278 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
@@ -114,7 +114,7 @@ export const HashicorpVaultConfigurePage = () => {
<Helmet>
<title>Set Up Vault Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select which environment or folder in Infisical you want to sync to which path in HashiCorp Vault."
@@ -134,7 +134,7 @@ export const HashicorpVaultConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -160,7 +160,7 @@ export const HashicorpVaultConfigurePage = () => {
<Select
value={field.value}
onValueChange={field.onChange}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -234,13 +234,13 @@ export const HashicorpVaultConfigurePage = () => {
</form>
</CardBody>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in Vault with secrets from Infisical.
</span>
@@ -259,12 +259,12 @@ export const HashicorpVaultConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
index c749b6c49e..a983018a1e 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
@@ -62,7 +62,7 @@ export const HasuraCloudAuthorizePage = () => {
<Helmet>
<title>Authorize {APP_NAME} Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your access token, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -82,7 +82,7 @@ export const HasuraCloudAuthorizePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/hasura-cloud"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
index 3f33ef4a59..455a5b4452 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
@@ -89,7 +89,7 @@ export const HasuraCloudConfigurePage = () => {
<Helmet>
<title>Set Up {APP_NAME} Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle={`Choose which environment or folder in Infisical you want to sync to ${APP_NAME} environment variables.`}
@@ -109,7 +109,7 @@ export const HasuraCloudConfigurePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/hasura-cloud"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -132,7 +132,7 @@ export const HasuraCloudConfigurePage = () => {
isError={Boolean(error)}
>
<Select
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
value={field.value}
onValueChange={(val) => {
field.onChange(val);
@@ -171,7 +171,7 @@ export const HasuraCloudConfigurePage = () => {
isError={Boolean(error)}
>
<Select
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
value={field.value}
isDisabled={integrationAuthApps?.length === 0}
onValueChange={(val) => {
@@ -190,7 +190,7 @@ export const HasuraCloudConfigurePage = () => {
<Button
type="submit"
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mb-6 ml-auto"
isLoading={isSubmitting}
@@ -213,12 +213,12 @@ export const HasuraCloudConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
index 4904462e8a..e20f232f76 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
@@ -117,7 +117,7 @@ export const HerokuConfigurePage = () => {
<Helmet>
<title>Set Up Heroku Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select which environment or folder in Infisical you want to sync to Heroku's environment variables."
@@ -132,7 +132,7 @@ export const HerokuConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -253,13 +253,13 @@ export const HerokuConfigurePage = () => {
</form>
</Card>
{/* {integrationType === "App" && <>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in Heroku with secrets from Infisical.
</span>
@@ -278,12 +278,12 @@ export const HerokuConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
index e2ed60d4e8..94e46d61a3 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx
@@ -97,8 +97,8 @@ export const HerokuOAuthCallbackPage = () => {
return (
<div className="flex h-screen items-center justify-center">
<div className="text-center">
- <div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-primary" />
- <p className="text-gray-600">Connecting to Heroku...</p>
+ <div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-b-2 border-project" />
+ <p className="text-label">Connecting to Heroku...</p>
</div>
</div>
);
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
index 556787a3ce..2d36c41633 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
@@ -85,7 +85,7 @@ export const LaravelForgeAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
index 207c40b585..685a459c84 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
@@ -94,7 +94,7 @@ export const LaravelForgeConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -117,7 +117,7 @@ export const LaravelForgeConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -138,7 +138,7 @@ export const LaravelForgeConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
index 0ee738e104..60f0649bbd 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
@@ -105,7 +105,7 @@ export const NetlifyConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -128,7 +128,7 @@ export const NetlifyConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -151,7 +151,7 @@ export const NetlifyConfigurePage = () => {
<Select
value={targetEnvironment}
onValueChange={(val) => setTargetEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{netlifyEnvironments.map((netlifyEnvironment) => (
<SelectItem
@@ -165,7 +165,7 @@ export const NetlifyConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
index ef83936b44..4eba76d599 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
@@ -60,7 +60,7 @@ export const NorthflankAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
index aa941f2e1f..5bafdb37d4 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
@@ -115,7 +115,7 @@ export const NorthflankConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -138,7 +138,7 @@ export const NorthflankConfigurePage = () => {
<Select
value={targetAppId}
onValueChange={(val) => setTargetAppId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -162,7 +162,7 @@ export const NorthflankConfigurePage = () => {
<Select
value={targetSecretGroupId}
onValueChange={(val) => setTargetSecretGroupId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthSecretGroups.length === 0}
>
{integrationAuthSecretGroups.length > 0 ? (
@@ -184,7 +184,7 @@ export const NorthflankConfigurePage = () => {
)}
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0 || integrationAuthSecretGroups?.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
index 588a646cbc..e2b990278e 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
@@ -55,7 +55,7 @@ export const OctopusDeployAuthorizePage = () => {
<Helmet>
<title>Authorize Octopus Deploy Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your credentials, you will be prompted to set up an integration for a particular environment and secret path."
@@ -75,7 +75,7 @@ export const OctopusDeployAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
index db99c8cf9e..ef9eb7df65 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
@@ -211,9 +211,9 @@ export const OctopusDeployConfigurePage = () => {
)}
/>
<div className="col-span-2 flex w-full flex-row items-center pb-2">
- <div className="w-full border-t border-mineshaft-500" />
- <span className="mx-2 text-xs whitespace-nowrap text-mineshaft-400">Sync To</span>
- <div className="w-full border-t border-mineshaft-500" />
+ <div className="w-full border-t border-border-strong" />
+ <span className="mx-2 text-xs whitespace-nowrap text-muted">Sync To</span>
+ <div className="w-full border-t border-border-strong" />
</div>
<Controller
control={control}
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
index b5ee4a108c..1482a341f6 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
@@ -55,7 +55,7 @@ export const QoveryAuthorizePage = () => {
<Helmet>
<title>Authorize Qovery Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -70,7 +70,7 @@ export const QoveryAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
index bc6aebc440..fa099d0622 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
@@ -191,11 +191,11 @@ export const QoveryConfigurePage = () => {
};
return integrationAuth && selectedSourceEnvironment ? (
- <div className="flex h-full w-full flex-col items-center justify-center bg-linear-to-tr from-mineshaft-900 to-bunker-900">
+ <div className="flex h-full w-full flex-col items-center justify-center bg-linear-to-tr from-surface-base to-page-deep">
<Helmet>
<title>Set Up Qovery Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment in Infisical you want to sync to Checkly environment variables."
@@ -210,7 +210,7 @@ export const QoveryConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -223,7 +223,7 @@ export const QoveryConfigurePage = () => {
</CardTitle>
<Tabs defaultValue={TabSections.InfisicalSettings} className="px-6">
<TabList>
- <div className="flex w-full flex-row border-b border-mineshaft-600">
+ <div className="flex w-full flex-row border-b border-border-control">
<Tab value={TabSections.InfisicalSettings}>Infisical Settings</Tab>
<Tab value={TabSections.QoverySettings}>Qovery Settings</Tab>
</div>
@@ -240,7 +240,7 @@ export const QoveryConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -273,7 +273,7 @@ export const QoveryConfigurePage = () => {
<Select
value={scope}
onValueChange={(val) => setScope(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{qoveryScopes.map((qoveryScope) => (
<SelectItem value={qoveryScope.value} key={`target-app-${qoveryScope.value}`}>
@@ -287,7 +287,7 @@ export const QoveryConfigurePage = () => {
<Select
value={targetOrgId}
onValueChange={(val) => setTargetOrgId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthOrgs.length === 0}
>
{integrationAuthOrgs.length > 0 ? (
@@ -312,7 +312,7 @@ export const QoveryConfigurePage = () => {
<Select
value={targetProjectId}
onValueChange={(val) => setTargetProjectId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthProjects.length === 0}
>
{integrationAuthProjects.length > 0 ? (
@@ -337,7 +337,7 @@ export const QoveryConfigurePage = () => {
<Select
value={targetEnvironmentId}
onValueChange={(val) => setTargetEnvironmentId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthEnvironments.length === 0}
>
{integrationAuthEnvironments.length > 0 ? (
@@ -362,7 +362,7 @@ export const QoveryConfigurePage = () => {
<Select
value={targetAppId}
onValueChange={(val) => setTargetAppId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -387,7 +387,7 @@ export const QoveryConfigurePage = () => {
</Tabs>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mr-6 mb-6 ml-auto"
isFullWidth={false}
@@ -396,10 +396,10 @@ export const QoveryConfigurePage = () => {
Create Integration
</Button>
</Card>
- {/* <div className="border-t border-mineshaft-800 w-full max-w-md mt-6"/>
- <div className="flex flex-col bg-mineshaft-800 border border-mineshaft-600 w-full p-4 max-w-lg mt-6 rounded-md">
- <div className="flex flex-row items-center"><FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-200 text-xl"/> <span className="ml-3 text-md text-mineshaft-100">Pro Tip</span></div>
- <span className="text-mineshaft-300 text-sm mt-4">After creating an integration, your secrets will start syncing immediately. This might cause an unexpected override of current secrets in Qovery with secrets from Infisical.</span>
+ {/* <div className="border-t border-border-faint w-full max-w-md mt-6"/>
+ <div className="flex flex-col bg-surface-raised border border-border-control w-full p-4 max-w-lg mt-6 rounded-md">
+ <div className="flex flex-row items-center"><FontAwesomeIcon icon={faCircleInfo} className="text-foreground-secondary text-xl"/> <span className="ml-3 text-md text-foreground">Pro Tip</span></div>
+ <span className="text-label text-sm mt-4">After creating an integration, your secrets will start syncing immediately. This might cause an unexpected override of current secrets in Qovery with secrets from Infisical.</span>
</div> */}
</div>
) : (
@@ -415,12 +415,12 @@ export const QoveryConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
index 35764ca065..6faa53f676 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
@@ -60,7 +60,7 @@ export const RailwayAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
index 5b69edb1ff..b04303cc38 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
@@ -139,7 +139,7 @@ export const RailwayConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -162,7 +162,7 @@ export const RailwayConfigurePage = () => {
<Select
value={targetAppId}
onValueChange={(val) => setTargetAppId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -185,7 +185,7 @@ export const RailwayConfigurePage = () => {
<Select
value={targetEnvironmentId}
onValueChange={(val) => setTargetEnvironmentId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={targetEnvironments.length === 0}
>
{targetEnvironments.length > 0 ? (
@@ -208,7 +208,7 @@ export const RailwayConfigurePage = () => {
<Select
value={targetServiceId}
onValueChange={(val) => setTargetServiceId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={targetServices.length === 0}
>
{filteredTargetServices.map((targetService) => (
@@ -223,7 +223,7 @@ export const RailwayConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
index f23b4c68f8..53c7a38a9b 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
@@ -55,7 +55,7 @@ export const RenderAuthorizePage = () => {
<Helmet>
<title>Authorize Render Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -70,7 +70,7 @@ export const RenderAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
index 02ea713e9c..46a0493470 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
@@ -126,7 +126,7 @@ export const RenderConfigurePage = () => {
<Helmet>
<title>Set Up Render Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment or folder in Infisical you want to sync to Render environment variables."
@@ -141,7 +141,7 @@ export const RenderConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -259,13 +259,13 @@ export const RenderConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in Render with secrets from Infisical.
</span>
@@ -284,12 +284,12 @@ export const RenderConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
index f4105a030e..da66f0939d 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
@@ -68,7 +68,7 @@ export const RundeckAuthorizePage = () => {
<Helmet>
<title>Authorize Rundeck Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding your URL and auth token, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -88,7 +88,7 @@ export const RundeckAuthorizePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
index d6006a96b1..291eee3706 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
@@ -91,7 +91,7 @@ export const RundeckConfigurePage = () => {
<Helmet>
<title>Set Up Rundeck Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment or folder in Infisical you want to sync to the Rundeck Key Storage."
@@ -111,7 +111,7 @@ export const RundeckConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -134,7 +134,7 @@ export const RundeckConfigurePage = () => {
isError={Boolean(error)}
>
<Select
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
value={field.value}
onValueChange={(val) => {
field.onChange(val);
@@ -184,7 +184,7 @@ export const RundeckConfigurePage = () => {
<Button
type="submit"
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mb-6 ml-auto"
isLoading={isSubmitting}
@@ -207,12 +207,12 @@ export const RundeckConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
index 39523af879..6d821fd5ab 100644
--- a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
@@ -161,7 +161,7 @@ export const SelectIntegrationAuthPage = () => {
<Helmet>
<title>Select Connection</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select an existing connection below or create a new one for your integration."
@@ -198,9 +198,9 @@ export const SelectIntegrationAuthPage = () => {
})
: undefined}
<div className="mt-6 flex w-full flex-row items-center justify-center">
- <div className="w-1/5 border-t border-mineshaft-400" />
- <p className="mx-4 text-xs text-gray-400">OR</p>
- <div className="w-1/5 border-t border-mineshaft-400" />
+ <div className="w-1/5 border-t border-border-emphasis" />
+ <p className="mx-4 text-xs text-muted-cool">OR</p>
+ <div className="w-1/5 border-t border-border-emphasis" />
</div>
<Button
colorSchema="primary"
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
index 862cd7d5c9..948324d1db 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
@@ -61,7 +61,7 @@ export const SupabaseAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
index 462cef89cb..6074598ef0 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
@@ -94,7 +94,7 @@ export const SupabaseConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -117,7 +117,7 @@ export const SupabaseConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -138,7 +138,7 @@ export const SupabaseConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
index 67d4ec0d4c..a4b2c0b5bb 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
@@ -66,7 +66,7 @@ export const TeamcityAuthorizePage = () => {
<Helmet>
<title>Authorize TeamCity Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -86,7 +86,7 @@ export const TeamcityAuthorizePage = () => {
href="https://infisical.com/docs/integrations/cloud/teamcity"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
index c6e64fb388..8fc95ac3b0 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
@@ -113,7 +113,7 @@ export const TeamcityConfigurePage = () => {
<Helmet>
<title>Set Up TeamCity Integration</title>
</Helmet>
- <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="mb-12 max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Choose which environment or folders in Infisical you want to sync to which project in TeamCity."
@@ -133,7 +133,7 @@ export const TeamcityConfigurePage = () => {
target="_blank"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -148,7 +148,7 @@ export const TeamcityConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -171,7 +171,7 @@ export const TeamcityConfigurePage = () => {
<Select
value={targetAppId}
onValueChange={(val) => setTargetAppId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -194,7 +194,7 @@ export const TeamcityConfigurePage = () => {
<Select
value={targetBuildConfigId}
onValueChange={(val) => setTargetBuildConfigId(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={targetBuildConfigs.length === 0}
>
{targetBuildConfigs.length ? (
@@ -215,7 +215,7 @@ export const TeamcityConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isLoading={isLoading}
@@ -238,12 +238,12 @@ export const TeamcityConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
index 780edebc56..5639b5c13a 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
@@ -65,7 +65,7 @@ export const TerraformCloudAuthorizePage = () => {
<Helmet>
<title>Authorize Terraform Cloud Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."
@@ -85,7 +85,7 @@ export const TerraformCloudAuthorizePage = () => {
href="https://infisical.com/docs/integrations/cloud/terraform-cloud"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
index b8dd0276c1..9f6d21eb77 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
@@ -125,7 +125,7 @@ export const TerraformCloudConfigurePage = () => {
<Helmet>
<title>Create Terraform Cloud Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600">
+ <Card className="max-w-lg rounded-md border border-border-control">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Specify the encironment and path within Infisical that you want to push to which project in Terraform."
@@ -145,7 +145,7 @@ export const TerraformCloudConfigurePage = () => {
rel="noopener noreferrer"
href="https://infisical.com/docs/integrations/cloud/terraform-cloud"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -160,7 +160,7 @@ export const TerraformCloudConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -188,7 +188,7 @@ export const TerraformCloudConfigurePage = () => {
<Select
value={variableType}
onValueChange={(val) => setVariableType(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{variableTypes.map((variable) => (
<SelectItem value={variable.name} key={`target-app-${variable.name}`}>
@@ -201,7 +201,7 @@ export const TerraformCloudConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -224,7 +224,7 @@ export const TerraformCloudConfigurePage = () => {
<Select
value={initialSyncBehavior}
onValueChange={(e) => setInitialSyncBehavior(e)}
- className="w-full border border-mineshaft-600"
+ className="w-full border border-border-control"
>
{initialSyncBehaviors.map((b) => {
return (
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
index 5cdcc11fe3..86d1db1eae 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
@@ -61,7 +61,7 @@ export const TravisCIAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
index cabcbecce4..a6ec60f73b 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
@@ -95,7 +95,7 @@ export const TravisCIConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -118,7 +118,7 @@ export const TravisCIConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -139,7 +139,7 @@ export const TravisCIConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
index e87caebbd2..d6cfaa66c1 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
@@ -175,7 +175,7 @@ export const VercelConfigurePage = () => {
<Helmet>
<title>Set Up Vercel Integration</title>
</Helmet>
- <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">
+ <Card className="max-w-lg rounded-md border border-border-control p-0">
<CardTitle
className="px-6 text-left text-xl"
subTitle="Select which environment or folder in Infisical you want to sync to Vercel's environment variables."
@@ -190,7 +190,7 @@ export const VercelConfigurePage = () => {
href="https://infisical.com/docs/integrations/cloud/vercel"
rel="noopener noreferrer"
>
- <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-yellow opacity-80 hover:opacity-100">
+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-warning/20 px-1.5 pt-[0.04rem] pb-[0.03rem] text-sm text-warning opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
@@ -205,7 +205,7 @@ export const VercelConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -233,7 +233,7 @@ export const VercelConfigurePage = () => {
>
<div>
<span>Don&#39;t see the project you&#39;re looking for?</span>{" "}
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</div>
</Tooltip>
}
@@ -248,7 +248,7 @@ export const VercelConfigurePage = () => {
setTargetAppId(val);
}}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -271,7 +271,7 @@ export const VercelConfigurePage = () => {
<Select
value={targetEnvironment}
onValueChange={(val) => setTargetEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{selectedVercelEnvironments.map((vercelEnvironment) => (
<SelectItem
@@ -288,7 +288,7 @@ export const VercelConfigurePage = () => {
<Select
value={targetBranch}
onValueChange={(val) => setTargetBranch(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{filteredBranches.map((branchName) => (
<SelectItem value={branchName} key={`target-branch-${branchName}`}>
@@ -303,7 +303,7 @@ export const VercelConfigurePage = () => {
<Select
value={initialSyncBehavior}
onValueChange={(val) => setInitialSyncBehavior(val as IntegrationSyncBehavior)}
- className="w-full border border-mineshaft-500 text-sm"
+ className="w-full border border-border-strong text-sm"
>
{initialSyncBehaviors.map((syncBehavior) => (
<SelectItem value={syncBehavior.value} key={`sync-behavior-${syncBehavior.value}`}>
@@ -315,7 +315,7 @@ export const VercelConfigurePage = () => {
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
variant="outline_bg"
className="mt-2 mr-6 mb-6 ml-auto"
isLoading={isLoading}
@@ -324,13 +324,13 @@ export const VercelConfigurePage = () => {
Create Integration
</Button>
</Card>
- <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />
- <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">
+ <div className="mt-6 w-full max-w-md border-t border-border-faint" />
+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-border-control bg-surface-raised p-4">
<div className="flex flex-row items-center">
- <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}
- <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>
+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-foreground-secondary" />{" "}
+ <span className="text-md ml-3 text-foreground">Pro Tip</span>
</div>
- <span className="mt-4 text-sm text-mineshaft-300">
+ <span className="mt-4 text-sm text-label">
After creating an integration, your secrets will start syncing immediately. This might
cause an unexpected override of current secrets in Vercel with secrets from Infisical.
</span>
@@ -349,12 +349,12 @@ export const VercelConfigurePage = () => {
alt="infisical loading indicator"
/>
) : (
- <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">
+ <div className="flex h-max max-w-md flex-col rounded-md border border-border-control bg-surface-raised p-6 text-center text-foreground-secondary">
<FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />
<p>
Something went wrong. Please contact{" "}
<a
- className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"
+ className="inline cursor-pointer text-foreground underline decoration-project underline-offset-4 opacity-80 duration-200 hover:opacity-100"
target="_blank"
rel="noopener noreferrer"
href="mailto:[email protected]"
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
index 96aafd9859..1f52f84574 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
@@ -117,7 +117,7 @@ export const WindmillAuthorizePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
>
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
index 3cf218af8b..826e59e8de 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
@@ -96,7 +96,7 @@ export const WindmillConfigurePage = () => {
<Select
value={selectedSourceEnvironment}
onValueChange={(val) => setSelectedSourceEnvironment(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
>
{currentProject?.environments.map((sourceEnvironment) => (
<SelectItem
@@ -119,7 +119,7 @@ export const WindmillConfigurePage = () => {
<Select
value={targetApp}
onValueChange={(val) => setTargetApp(val)}
- className="w-full border border-mineshaft-500"
+ className="w-full border border-border-strong"
isDisabled={integrationAuthApps.length === 0}
>
{integrationAuthApps.length > 0 ? (
@@ -140,7 +140,7 @@ export const WindmillConfigurePage = () => {
</FormControl>
<Button
onClick={handleButtonClick}
- color="mineshaft"
+ colorSchema="secondary"
className="mt-4"
isLoading={isLoading}
isDisabled={integrationAuthApps.length === 0}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
index 1e7449be8e..1acafdacdb 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
@@ -5,6 +5,7 @@ import { useNavigate, useParams } from "@tanstack/react-router";
import { ProjectPermissionCan } from "@app/components/permissions";
import { Button, ContentLoader, EmptyState } from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { ProjectPermissionSub } from "@app/context";
import { ProjectPermissionSecretScanningDataSourceActions } from "@app/context/ProjectPermissionContext/types";
@@ -55,7 +56,7 @@ const PageContent = () => {
}
return (
- <div className="mx-auto flex flex-col justify-between font-inter text-white">
+ <div className="mx-auto flex flex-col justify-between bg-page font-inter text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<Button
variant="link"
@@ -74,14 +75,14 @@ const PageContent = () => {
Data Sources
</Button>
<div className="mb-6 flex w-full items-center gap-3">
- <img
+ <ProviderIcon
alt={`${details.name} data source`}
- src={`/images/integrations/${details.image}`}
+ icon={details.image}
className="mt-3 ml-1 w-14"
/>
<div>
- <p className="text-3xl font-medium text-white">{dataSource.name}</p>
- <p className="leading-3 text-bunker-300">{details.name} Data Source</p>
+ <p className="text-3xl font-medium text-foreground-inverse">{dataSource.name}</p>
+ <p className="leading-3 text-label-secondary">{details.name} Data Source</p>
</div>
</div>
<div className="flex justify-center">
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningDataSourceSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningDataSourceSection.tsx
index bcc4bce234..a4340ff632 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningDataSourceSection.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningDataSourceSection.tsx
@@ -25,10 +25,10 @@ export const SecretScanningDataSourceSection = ({ dataSource }: Props) => {
return (
<>
- <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <div className="flex w-full flex-col gap-3 rounded-lg border border-border-control bg-surface-base px-4 py-3">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-2">
<div className="mr-2 flex flex-1 items-center justify-between">
- <h3 className="font-medium text-mineshaft-100">Details</h3>
+ <h3 className="font-medium text-foreground">Details</h3>
{isDisconnected && (
<Tooltip
className="text-xs"
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
index f5de500c38..5344fef012 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
@@ -121,8 +121,8 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
return (
<Tr
className={twMerge(
- "group h-10 transition-colors duration-100 hover:bg-mineshaft-700",
- lastScanStatus === SecretScanningScanStatus.Failed && "bg-red/5 hover:bg-red/10"
+ "group h-10 transition-colors duration-100 hover:bg-surface-hover",
+ lastScanStatus === SecretScanningScanStatus.Failed && "bg-danger/5 hover:bg-danger/10"
)}
key={`resource-${id}`}
>
@@ -164,7 +164,7 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
</button>
</Badge>
) : lastScanStatus === SecretScanningScanStatus.Failed ? (
- <span className="text-mineshaft-400">No findings</span>
+ <span className="text-muted">No findings</span>
) : (
<Badge variant="success">
<FontAwesomeIcon icon={faCheck} />
@@ -172,7 +172,7 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
</Badge>
)
) : (
- <span className="text-mineshaft-400">No findings</span>
+ <span className="text-muted">No findings</span>
)}
</Td>
<Td className="whitespace-nowrap">
@@ -186,7 +186,7 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
) : lastScannedAt ? (
formatDistance(new Date(lastScannedAt), new Date(), { addSuffix: true })
) : (
- <span className="text-mineshaft-400">No scans</span>
+ <span className="text-muted">No scans</span>
)}
</Td>
<Td>
@@ -245,7 +245,7 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
<div className="flex h-full w-full items-center justify-between gap-1">
<span>Trigger Scan</span>
<FontAwesomeIcon
- className="text-bunker-300"
+ className="text-label-secondary"
size="sm"
icon={faInfoCircle}
/>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx
index 1e81357b88..6a657979b8 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx
@@ -37,11 +37,11 @@ export const SecretScanningResourceSection = ({ dataSource }: Props) => {
const resourceDetails = RESOURCE_DESCRIPTION_HELPER[dataSource.type];
return (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">{resourceDetails.pluralTitle}</p>
- <p className="text-sm text-bunker-300">
+ <p className="text-xl font-medium text-foreground">{resourceDetails.pluralTitle}</p>
+ <p className="text-sm text-label-secondary">
{resourceDetails.pluralTitle} associated with this{" "}
{SECRET_SCANNING_DATA_SOURCE_MAP[dataSource.type].name} Data Source
</p>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceTable.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceTable.tsx
index 9b94759a4f..651137e9be 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceTable.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceTable.tsx
@@ -217,8 +217,8 @@ export const SecretScanningResourcesTable = ({ dataSource }: Props) => {
variant="plain"
size="sm"
className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<FontAwesomeIcon icon={faFilter} />
@@ -230,7 +230,7 @@ export const SecretScanningResourcesTable = ({ dataSource }: Props) => {
<Tooltip
content={`Inactive ${resourceDetails.pluralNoun} will not be scanned due to exclusion in Data Source configuration.`}
>
- <FontAwesomeIcon icon={faInfoCircle} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} className="text-muted" />
</Tooltip>
</DropdownMenuLabel>
{Object.values(ResourceStatus).map((status) => (
@@ -247,7 +247,7 @@ export const SecretScanningResourcesTable = ({ dataSource }: Props) => {
key={status}
icon={
filters.status.includes(status) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
@@ -255,9 +255,7 @@ export const SecretScanningResourcesTable = ({ dataSource }: Props) => {
<div className="flex items-center gap-2">
<FontAwesomeIcon
icon={status === ResourceStatus.Active ? faBullseye : faBan}
- className={
- status === ResourceStatus.Active ? "text-primary" : "text-mineshaft-400"
- }
+ className={status === ResourceStatus.Active ? "text-project" : "text-muted"}
/>
<span className="capitalize">{status.replace("-", " ")}</span>
</div>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
index 428f1db719..33fa33044b 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
@@ -67,15 +67,15 @@ export const SecretScanningScanRow = ({ scan }: Props) => {
return (
<Tr
className={twMerge(
- "group h-10 transition-colors duration-100 hover:bg-mineshaft-700",
- status === SecretScanningScanStatus.Failed && "bg-red/5 hover:bg-red/10"
+ "group h-10 transition-colors duration-100 hover:bg-surface-hover",
+ status === SecretScanningScanStatus.Failed && "bg-danger/5 hover:bg-danger/10"
)}
key={`scan-${id}`}
>
<Td>
<p>
{format(createdAt, "MMM dd yyyy")}{" "}
- <span className="text-mineshaft-300">{format(createdAt, "h:mm aa")}</span>
+ <span className="text-label">{format(createdAt, "h:mm aa")}</span>
</p>
</Td>
<Td className="max-w-0 min-w-32!">
@@ -119,7 +119,7 @@ export const SecretScanningScanRow = ({ scan }: Props) => {
</Badge>
</div>
) : status === SecretScanningScanStatus.Failed ? (
- <span className="text-mineshaft-400">No findings</span>
+ <span className="text-muted">No findings</span>
) : (
<Badge variant="success">
<FontAwesomeIcon icon={faCheck} />
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx
index c008e385db..66273ed0e0 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx
@@ -11,11 +11,11 @@ export const SecretScanningScanSection = ({ dataSource }: Props) => {
const resourceDetails = RESOURCE_DESCRIPTION_HELPER[dataSource.type];
return (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div>
- <p className="text-xl font-medium text-mineshaft-100">Scan History</p>
- <p className="text-sm text-bunker-300">
+ <p className="text-xl font-medium text-foreground">Scan History</p>
+ <p className="text-sm text-label-secondary">
Detailed history of when {resourceDetails.singularNoun} scans occurred and their
findings
</p>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanTable.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanTable.tsx
index dbeef50650..d463f54e7d 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanTable.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanTable.tsx
@@ -177,8 +177,8 @@ export const SecretScanningScanTable = ({ dataSource }: Props) => {
variant="plain"
size="sm"
className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<FontAwesomeIcon icon={faFilter} />
@@ -202,7 +202,7 @@ export const SecretScanningScanTable = ({ dataSource }: Props) => {
key={resourceName}
icon={
filters.resourceNames.includes(resourceName) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
index 1597d43984..f5b711a14c 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/SecretScanningDataSourcesPage.tsx
@@ -23,8 +23,8 @@ export const SecretScanningDataSourcesPage = () => {
I={ProjectPermissionSecretScanningDataSourceActions.Read}
a={ProjectPermissionSub.SecretScanningDataSources}
>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.SecretScanning}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourceRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourceRow.tsx
index fc721e384a..abd91d93a3 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourceRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourceRow.tsx
@@ -30,7 +30,7 @@ import {
Tooltip,
Tr
} from "@app/components/v2";
-import { Badge } from "@app/components/v3";
+import { Badge, ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import { ProjectPermissionSub, useOrganization } from "@app/context";
import { ProjectPermissionSecretScanningDataSourceActions } from "@app/context/ProjectPermissionContext/types";
@@ -110,16 +110,16 @@ export const SecretScanningDataSourceRow = ({
})
}
className={twMerge(
- "group h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700",
- lastScanStatus === SecretScanningScanStatus.Failed && "bg-red/5 hover:bg-red/10"
+ "group h-10 cursor-pointer transition-colors duration-100 hover:bg-surface-hover",
+ lastScanStatus === SecretScanningScanStatus.Failed && "bg-danger/5 hover:bg-danger/10"
)}
key={`data-source-${id}`}
>
<Td className="max-w-0 min-w-32!">
<div className="flex w-full items-center">
- <img
+ <ProviderIcon
alt={`${sourceDetails.name} Data Source`}
- src={`/images/integrations/${sourceDetails.image}`}
+ icon={sourceDetails.image}
className="w-5"
/>
<p className="ml-2 truncate">{sourceDetails.name}</p>
@@ -130,7 +130,7 @@ export const SecretScanningDataSourceRow = ({
<p className="truncate">{name}</p>
{description && (
<Tooltip content={description}>
- <FontAwesomeIcon icon={faInfoCircle} size="xs" className="ml-1 text-mineshaft-400" />
+ <FontAwesomeIcon icon={faInfoCircle} size="xs" className="ml-1 text-muted" />
</Tooltip>
)}
</div>
@@ -169,7 +169,7 @@ export const SecretScanningDataSourceRow = ({
</button>
</Badge>
) : lastScanStatus === SecretScanningScanStatus.Failed ? (
- <span className="text-mineshaft-400">No findings</span>
+ <span className="text-muted">No findings</span>
) : (
<Badge variant="success">
<FontAwesomeIcon icon={faCheck} />
@@ -177,7 +177,7 @@ export const SecretScanningDataSourceRow = ({
</Badge>
)
) : (
- <span className="text-mineshaft-400">No findings</span>
+ <span className="text-muted">No findings</span>
)}
</Td>
<Td>
@@ -192,7 +192,7 @@ export const SecretScanningDataSourceRow = ({
) : lastScannedAt ? (
<span>{formatDistance(new Date(lastScannedAt), new Date(), { addSuffix: true })}</span>
) : (
- <span className="text-mineshaft-400">No scans</span>
+ <span className="text-muted">No scans</span>
)}
{!isAutoScanEnabled && !isDisconnected && (
<Tooltip
@@ -267,7 +267,7 @@ export const SecretScanningDataSourceRow = ({
<div className="flex h-full w-full items-center justify-between gap-1">
<span>Trigger Scan</span>
<FontAwesomeIcon
- className="text-bunker-300"
+ className="text-label-secondary"
size="sm"
icon={faInfoCircle}
/>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx
index da85d67e7d..371342ac19 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx
@@ -38,14 +38,14 @@ export const SecretScanningDataSourcesSection = () => {
return (
<>
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div>
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Data Sources</p>
+ <p className="text-xl font-medium text-foreground">Data Sources</p>
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/secret-scanning/overview" />
</div>
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Configure Data Sources to scan for secret leaks from third-party services.
</p>
</div>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesTable.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesTable.tsx
index ac61c8f54c..4dd660d861 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesTable.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesTable.tsx
@@ -31,6 +31,7 @@ import {
THead,
Tr
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { SECRET_SCANNING_DATA_SOURCE_MAP } from "@app/helpers/secretScanningV2";
import { usePagination, usePopUp, useResetPageHelper } from "@app/hooks";
import { OrderByDirection } from "@app/hooks/api/generic/types";
@@ -227,8 +228,8 @@ export const SecretScanningDataSourcesTable = ({ dataSources }: Props) => {
variant="plain"
size="sm"
className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<FontAwesomeIcon icon={faFilter} />
@@ -254,17 +255,13 @@ export const SecretScanningDataSourcesTable = ({ dataSources }: Props) => {
key={type}
icon={
filters.types.includes(type) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
>
<div className="flex items-center gap-2">
- <img
- alt={`${name} integration`}
- src={`/images/integrations/${image}`}
- className="h-4 w-4"
- />
+ <ProviderIcon alt={`${name} integration`} icon={image} className="h-4 w-4" />
<span>{name}</span>
</div>
</DropdownMenuItem>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
index 658dba8705..136c145aa6 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/SecretScanningFindingsPage.tsx
@@ -21,8 +21,8 @@ export const SecretScanningFindingsPage = () => {
I={ProjectPermissionSecretScanningFindingActions.Read}
a={ProjectPermissionSub.SecretScanningFindings}
>
- <div className="h-full bg-bunker-800">
- <div className="mx-auto flex flex-col justify-between text-white">
+ <div className="h-full bg-page">
+ <div className="mx-auto flex flex-col justify-between bg-page text-foreground-inverse">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={ProjectType.SecretScanning}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingRow.tsx
index 273c689e07..37961fca1e 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingRow.tsx
@@ -19,7 +19,7 @@ import {
Tooltip,
Tr
} from "@app/components/v2";
-import { Badge } from "@app/components/v3";
+import { Badge, ProviderIcon } from "@app/components/v3";
import {
ProjectPermissionSecretScanningFindingActions,
ProjectPermissionSub
@@ -87,7 +87,7 @@ export const SecretScanningFindingRow = ({
<Tr
onClick={setIsExpanded.toggle}
className={twMerge(
- "group h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
+ "group h-10 cursor-pointer transition-colors duration-100 hover:bg-surface-hover"
)}
key={`resource-${id}`}
>
@@ -103,9 +103,9 @@ export const SecretScanningFindingRow = ({
</Td>
<Td className="max-w-0 min-w-16!">
<div className="flex w-full items-center">
- <img
+ <ProviderIcon
alt={`${sourceDetails.name} Data Source`}
- src={`/images/integrations/${sourceDetails.image}`}
+ icon={sourceDetails.image}
className="w-5"
/>
<p className="ml-2 truncate">{sourceDetails.name}</p>
@@ -114,13 +114,13 @@ export const SecretScanningFindingRow = ({
<Td>
<div className="flex items-center gap-1 whitespace-nowrap">
<p>{format(createdAt, "MMM dd yyyy")}</p>
- <p className="text-mineshaft-300">{format(createdAt, "h:mm aa")}</p>
+ <p className="text-label">{format(createdAt, "h:mm aa")}</p>
</div>
</Td>
<Td className="max-w-0 min-w-32!">
<div className="w-full items-center">
<p className="truncate">{resourceName}</p>
- <p className="truncate text-xs text-mineshaft-400">{dataSourceName}</p>
+ <p className="truncate text-xs text-muted">{dataSourceName}</p>
</div>
</Td>
<Td className="whitespace-nowrap">{rule}</Td>
@@ -163,7 +163,7 @@ export const SecretScanningFindingRow = ({
<Tr>
<Td colSpan={7} className="border-none! p-0">
<div
- className={`w-full bg-mineshaft-900/75 transition-all duration-500 ${
+ className={`w-full bg-surface-base/75 transition-all duration-500 ${
isExpanded ? "max-h-200 overflow-y-auto opacity-100" : "max-h-0 overflow-hidden"
}`}
>
@@ -197,13 +197,13 @@ export const SecretScanningFindingRow = ({
<a
target="_blank"
rel="noopener noreferrer"
- className="cursor-pointer text-mineshaft-300 underline underline-offset-2 hover:text-mineshaft-100"
+ className="cursor-pointer text-label underline underline-offset-2 hover:text-foreground"
href={details.link}
>
{details.link}
</a>
</GenericFieldLabel>
- <div className="col-span-full flex items-center border-t border-mineshaft-500" />
+ <div className="col-span-full flex items-center border-t border-border-strong" />
<ProjectPermissionCan
I={ProjectPermissionSecretScanningFindingActions.Update}
a={ProjectPermissionSub.SecretScanningFindings}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsSection.tsx
index 1ac526dfc9..46445c07d9 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsSection.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsSection.tsx
@@ -18,14 +18,14 @@ export const SecretScanningFindingsSection = () => {
if (isFindingsPending) return <ContentLoader />;
return (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="w-full rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4 flex items-center justify-between">
<div>
<div className="flex items-center gap-x-2">
- <p className="text-xl font-medium text-mineshaft-100">Findings</p>
+ <p className="text-xl font-medium text-foreground">Findings</p>
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/secret-scanning/usage#findings" />
</div>
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Secret leaks discovered across your data sources
</p>
</div>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsTable.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsTable.tsx
index cf48ab2c25..bbc2440dcf 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsTable.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningFindingsTable.tsx
@@ -31,6 +31,7 @@ import {
THead,
Tr
} from "@app/components/v2";
+import { ProviderIcon } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import {
ProjectPermissionSecretScanningFindingActions,
@@ -210,8 +211,8 @@ export const SecretScanningFindingsTable = ({ findings }: Props) => {
variant="plain"
size="sm"
className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-border-control bg-surface-raised p-0 transition-all hover:border-project/60 hover:bg-project/10",
+ isTableFiltered && "border-project/50 text-project"
)}
>
<FontAwesomeIcon icon={faFilter} />
@@ -236,7 +237,7 @@ export const SecretScanningFindingsTable = ({ findings }: Props) => {
key={status}
icon={
filters.status.includes(status) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
@@ -272,17 +273,13 @@ export const SecretScanningFindingsTable = ({ findings }: Props) => {
key={type}
icon={
filters.dataSourceTypes.includes(type) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
+ <FontAwesomeIcon className="text-project" icon={faCheckCircle} />
)
}
iconPos="right"
>
<div className="flex items-center gap-2">
- <img
- alt={`${name} integration`}
- src={`/images/integrations/${image}`}
- className="h-4 w-4"
- />
+ <ProviderIcon alt={`${name} integration`} icon={image} className="h-4 w-4" />
<span>{name}</span>
</div>
</DropdownMenuItem>
@@ -428,7 +425,7 @@ export const SecretScanningFindingsTable = ({ findings }: Props) => {
findings={popUp.updateFinding.data}
/>
{selectedRows.length > 0 && (
- <div className="mt-4 flex items-center justify-between rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-2 pl-4">
+ <div className="mt-4 flex items-center justify-between rounded-lg border border-border-control bg-surface-raised p-2 pl-4">
<span>
{selectedRows.length} finding{selectedRows.length === 1 ? "" : "s"} selected
</span>
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningUpdateFindingModal.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningUpdateFindingModal.tsx
index c4838673b1..7a2677c2e4 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningUpdateFindingModal.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/components/SecretScanningUpdateFindingModal.tsx
@@ -95,7 +95,7 @@ const Content = ({ findings, onComplete }: ContentProps) => {
value={value}
placeholder="Select status..."
onValueChange={onChange}
- className="w-full border border-mineshaft-500 capitalize"
+ className="w-full border border-border-strong capitalize"
position="popper"
dropdownContainerClassName="max-w-none"
LucideIcon={value ? SECRET_SCANNING_FINDING_STATUS_MAP[value].Icon : undefined}
diff --git a/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx b/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
index c9a8785258..a4a039c253 100644
--- a/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/secret-scanning/SettingsPage/SettingsPage.tsx
@@ -21,7 +21,7 @@ export const SettingsPage = () => {
const activeTab = selectedTab || "general";
return (
- <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <div className="flex h-full w-full justify-center bg-page text-foreground-inverse">
<Helmet>
<title>{t("common.head-title", { title: t("settings.project.title") })}</title>
</Helmet>
diff --git a/frontend/src/pages/secret-scanning/SettingsPage/components/ProjectScanningConfigTab/SecretScanningConfigForm.tsx b/frontend/src/pages/secret-scanning/SettingsPage/components/ProjectScanningConfigTab/SecretScanningConfigForm.tsx
index 7ff36964d8..e3a0380154 100644
--- a/frontend/src/pages/secret-scanning/SettingsPage/components/ProjectScanningConfigTab/SecretScanningConfigForm.tsx
+++ b/frontend/src/pages/secret-scanning/SettingsPage/components/ProjectScanningConfigTab/SecretScanningConfigForm.tsx
@@ -50,15 +50,13 @@ export const SecretScanningConfigForm = ({ config }: Props) => {
};
return (
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="rounded-lg border border-border-control bg-surface-base p-4">
<div className="mb-4">
<div className="flex items-center gap-2">
- <h2 className="text-xl font-medium text-mineshaft-100">Project Configuration</h2>
+ <h2 className="text-xl font-medium text-foreground">Project Configuration</h2>
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/secret-scanning/usage#configuration" />
</div>
- <p className="leading-5 text-mineshaft-400">
- Configure rules and exceptions to customize scanning
- </p>
+ <p className="leading-5 text-muted">Configure rules and exceptions to customize scanning</p>
</div>
<div>
<form onSubmit={handleSubmit(onSubmit)} className="flex w-full flex-col">
diff --git a/frontend/src/views/PermissionAuditSheet/PermissionAuditRow.tsx b/frontend/src/views/PermissionAuditSheet/PermissionAuditRow.tsx
index 0539694d86..82e6de0abd 100644
--- a/frontend/src/views/PermissionAuditSheet/PermissionAuditRow.tsx
+++ b/frontend/src/views/PermissionAuditSheet/PermissionAuditRow.tsx
@@ -52,9 +52,7 @@ export const PermissionAuditRow = ({ audit }: Props) => {
</button>
</HoverCardTrigger>
<HoverCardContent align="end" className="w-auto min-w-56 p-2">
- <div className="mb-2 text-xs font-semibold text-mineshaft-100">
- {overflowLabel}
- </div>
+ <div className="mb-2 text-xs font-semibold text-foreground">{overflowLabel}</div>
<div className="flex flex-col items-start gap-1">
{extraSources.map((source) => (
<SourcePill key={source.id} source={source} forbidding={isForbidden} />
diff --git a/frontend/src/views/PermissionAuditSheet/PermissionAuditSection.tsx b/frontend/src/views/PermissionAuditSheet/PermissionAuditSection.tsx
index 8287e5587e..ba9ef61831 100644
--- a/frontend/src/views/PermissionAuditSheet/PermissionAuditSection.tsx
+++ b/frontend/src/views/PermissionAuditSheet/PermissionAuditSection.tsx
@@ -68,9 +68,7 @@ export const PermissionAuditSection = ({ resource, stateFilter, search }: Props)
</AccordionTrigger>
<AccordionContent className="bg-card p-6">
{visibleActions.length === 0 ? (
- <div className="px-4 py-3 text-xs text-mineshaft-400">
- No actions match the current filter.
- </div>
+ <div className="px-4 py-3 text-xs text-muted">No actions match the current filter.</div>
) : (
<Table containerClassName="rounded-none! bg-card border-t! border-border border-0">
<TableHeader>
diff --git a/frontend/src/views/PermissionAuditSheet/PermissionAuditSheet.tsx b/frontend/src/views/PermissionAuditSheet/PermissionAuditSheet.tsx
index c28f095a89..c5b6360b67 100644
--- a/frontend/src/views/PermissionAuditSheet/PermissionAuditSheet.tsx
+++ b/frontend/src/views/PermissionAuditSheet/PermissionAuditSheet.tsx
@@ -170,12 +170,12 @@ export const PermissionAuditSheet = ({
return (
<Sheet open={open} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full flex-col gap-y-0 p-0 sm:max-w-6xl">
- <SheetHeader className="border-b border-mineshaft-700 px-6 py-5">
+ <SheetHeader className="border-b border-border-subtle px-6 py-5">
<div className="min-w-0 flex-1">
<SheetTitle className="flex items-center gap-2">
Permission Audit
<span className="text-muted">·</span>
- <span className="inline-flex items-center gap-1 text-sm font-normal text-mineshaft-200">
+ <span className="inline-flex items-center gap-1 text-sm font-normal text-foreground-secondary">
<TargetIcon className="size-3.5" />
{targetName}
</span>
@@ -183,11 +183,11 @@ export const PermissionAuditSheet = ({
</SheetTitle>
<SheetDescription className="mt-1 text-xs">
Combined view of all permissions granted to{" "}
- <span className="text-mineshaft-100">{targetName}</span>
+ <span className="text-foreground">{targetName}</span>
{projectName ? (
<>
{" "}
- in <span className="text-mineshaft-100">{projectName}</span>
+ in <span className="text-foreground">{projectName}</span>
</>
) : null}{" "}
— direct roles, group-inherited roles, and additional privileges.
@@ -195,7 +195,7 @@ export const PermissionAuditSheet = ({
</div>
</SheetHeader>
- <div className="flex flex-wrap items-center gap-3 border-b border-mineshaft-700 px-6 py-3">
+ <div className="flex flex-wrap items-center gap-3 border-b border-border-subtle px-6 py-3">
<Select
value={stateFilter}
onValueChange={(value) => setStateFilter(value as StateFilter)}
@@ -239,7 +239,7 @@ export const PermissionAuditSheet = ({
<TooltipContent>Export CSV</TooltipContent>
</Tooltip>
- <div className="flex shrink-0 items-center gap-3 text-xs text-mineshaft-400">
+ <div className="flex shrink-0 items-center gap-3 text-xs text-muted">
<span className="flex items-center gap-1">
<CheckIcon className="size-3 text-success" /> Allow
</span>
diff --git a/frontend/src/views/PermissionAuditSheet/StatePill.tsx b/frontend/src/views/PermissionAuditSheet/StatePill.tsx
index ede7a29342..3cabaef34d 100644
--- a/frontend/src/views/PermissionAuditSheet/StatePill.tsx
+++ b/frontend/src/views/PermissionAuditSheet/StatePill.tsx
@@ -47,7 +47,7 @@ export const StatePill = ({ state, conditions, isForbidden }: Props) => {
</button>
</HoverCardTrigger>
<HoverCardContent align="end" className="w-auto max-w-2xl min-w-72">
- <div className="mb-2 border-b border-border py-2 text-xs font-semibold text-mineshaft-100">
+ <div className="mb-2 border-b border-border py-2 text-xs font-semibold text-foreground">
Conditions
</div>
<Table>
@@ -69,9 +69,7 @@ export const StatePill = ({ state, conditions, isForbidden }: Props) => {
</Badge>
</TableCell>
<TableCell className="font-mono text-xs">{entry.field}</TableCell>
- <TableCell className="font-mono text-xs text-mineshaft-300">
- {entry.operator}
- </TableCell>
+ <TableCell className="font-mono text-xs text-label">{entry.operator}</TableCell>
<TableCell className="font-mono text-xs">{entry.value}</TableCell>
</TableRow>
))}
diff --git a/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx b/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
index 87d01fe454..8a5a7726c6 100644
--- a/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
@@ -121,7 +121,7 @@ export const PkiAlertsV2Page = ({ hideContainer = false }: Props) => {
return (
<Tr>
- <Td colSpan={6} className="py-8 text-center text-gray-400">
+ <Td colSpan={6} className="py-8 text-center text-muted-cool">
{search ? "No alerts found matching your search." : "No PKI alerts configured yet."}
</Td>
</Tr>
@@ -130,22 +130,22 @@ export const PkiAlertsV2Page = ({ hideContainer = false }: Props) => {
return (
<div className={hideContainer ? "" : "container mx-auto p-6"}>
- <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
- <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <div className="flex w-full flex-col gap-3 rounded-lg border border-border-control bg-surface-base px-4 py-3">
+ <div className="flex items-center justify-between border-b border-border-emphasis pb-2">
<div className="flex items-center gap-x-2">
- <h3 className="text-lg font-medium text-mineshaft-100">Certificate Alerts</h3>
- <span className="rounded bg-mineshaft-600 px-2 py-0.5 text-xs tracking-wide text-mineshaft-200 uppercase">
+ <h3 className="text-lg font-medium text-foreground">Certificate Alerts</h3>
+ <span className="rounded bg-surface-active px-2 py-0.5 text-xs tracking-wide text-foreground-secondary uppercase">
Legacy
</span>
</div>
- <p className="text-xs text-bunker-300">Create new alerts inside an Application.</p>
+ <p className="text-xs text-label-secondary">Create new alerts inside an Application.</p>
</div>
<div className="mb-4 flex items-center">
<div className="relative w-full">
<FontAwesomeIcon
icon={faSearch}
- className="absolute top-1/2 left-3 -translate-y-1/2 transform text-gray-400"
+ className="absolute top-1/2 left-3 -translate-y-1/2 transform text-muted-cool"
/>
<Input
placeholder="Search alerts..."
diff --git a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx
index 0780c1c83c..7e72126231 100644
--- a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx
@@ -343,7 +343,7 @@ export const CreatePkiAlertV2FormSteps = ({
<>
<Tab.Panel>
<div className="space-y-6">
- <p className="mb-4 text-sm text-bunker-300">
+ <p className="mb-4 text-sm text-label-secondary">
Choose the event type and configure basic details for your alert.
</p>
@@ -427,8 +427,8 @@ export const CreatePkiAlertV2FormSteps = ({
render={({ field }) => (
<div className="flex items-center justify-between">
<div className="flex flex-col gap-1">
- <span className="text-sm text-bunker-300">Repeat daily until expiry</span>
- <p className="text-xs text-bunker-400">
+ <span className="text-sm text-label-secondary">Repeat daily until expiry</span>
+ <p className="text-xs text-muted-secondary">
Send a reminder every day from the alert threshold until the certificate
expires.
</p>
@@ -448,7 +448,7 @@ export const CreatePkiAlertV2FormSteps = ({
{showFilters && (
<Tab.Panel>
<div className="space-y-6">
- <p className="mb-4 text-sm text-bunker-300">
+ <p className="mb-4 text-sm text-label-secondary">
Add filter rules to specify which certificates should trigger this alert. Leave empty
to monitor all certificates.
</p>
@@ -470,10 +470,10 @@ export const CreatePkiAlertV2FormSteps = ({
{watchedFilters?.map((filter, index) => (
<div
key={`filter-${index}`}
- className="space-y-2 rounded-md border border-mineshaft-600 p-3"
+ className="space-y-2 rounded-md border border-border-control p-3"
>
<div className="flex items-center justify-between">
- <h4 className="text-sm font-medium text-mineshaft-100">
+ <h4 className="text-sm font-medium text-foreground">
Filter Rule #{index + 1}
</h4>
<IconButton
@@ -588,7 +588,7 @@ export const CreatePkiAlertV2FormSteps = ({
))}
{(!watchedFilters || watchedFilters.length === 0) && (
- <div className="py-8 text-center text-bunker-400">
+ <div className="py-8 text-center text-muted-secondary">
No filter rules configured. This alert will monitor all certificates.
</div>
)}
@@ -600,7 +600,7 @@ export const CreatePkiAlertV2FormSteps = ({
{showPreview && (
<Tab.Panel>
<div className="space-y-6">
- <p className="mb-4 text-sm text-bunker-300">
+ <p className="mb-4 text-sm text-label-secondary">
{watchedEventType === PkiAlertEventTypeV2.EXPIRATION &&
"Preview certificates that will expire within the configured alert window and match your filter criteria."}
{watchedEventType === PkiAlertEventTypeV2.RENEWAL &&
@@ -674,7 +674,7 @@ export const CreatePkiAlertV2FormSteps = ({
return (
<Tr>
- <Td colSpan={3} className="py-8 text-center text-gray-400">
+ <Td colSpan={3} className="py-8 text-center text-muted-cool">
No certificates currently match this alert&apos;s criteria
</Td>
</Tr>
@@ -704,9 +704,7 @@ export const CreatePkiAlertV2FormSteps = ({
<div className="flex min-h-[400px] flex-col gap-6">
<div className="flex items-center justify-end gap-3">
{isChannelLimitReached && (
- <span className="text-xs text-mineshaft-400">
- Maximum of {MAX_CHANNELS} channels reached
- </span>
+ <span className="text-xs text-muted">Maximum of {MAX_CHANNELS} channels reached</span>
)}
<DropdownMenu>
<DropdownMenuTrigger asChild disabled={isChannelLimitReached}>
@@ -765,24 +763,24 @@ export const CreatePkiAlertV2FormSteps = ({
collapsible
value={expandedChannel}
onValueChange={setExpandedChannel}
- className="border-mineshaft-500 bg-mineshaft-600"
+ className="border-border-strong bg-surface-active"
>
{channelFields.map((field, index) => {
const channel = watchedChannels[index];
const channelError = errors.channels?.[index];
return (
- <AccordionItem key={field.id} value={field.id} className="border-mineshaft-600">
- <AccordionTrigger className="group overflow-hidden bg-mineshaft-800 hover:bg-mineshaft-600 data-[state=open]:bg-mineshaft-700 data-[state=open]:hover:bg-mineshaft-600">
+ <AccordionItem key={field.id} value={field.id} className="border-border-control">
+ <AccordionTrigger className="group overflow-hidden bg-surface-raised hover:bg-surface-active data-[state=open]:bg-surface-hover data-[state=open]:hover:bg-surface-active">
<div className="flex w-0 flex-1 items-center justify-between gap-3">
<div className="flex min-w-0 flex-1 items-center gap-3">
<FontAwesomeIcon
icon={getChannelIcon(channel?.channelType)}
- className="shrink-0 text-mineshaft-300"
+ className="shrink-0 text-label"
/>
<span className="shrink-0 text-sm font-medium">
{channel?.channelType && getChannelDisplayName(channel.channelType)}
</span>
- <span className="truncate text-xs text-mineshaft-400 group-data-[state=open]:hidden">
+ <span className="truncate text-xs text-muted group-data-[state=open]:hidden">
{channel && getChannelSummary(channel)}
</span>
</div>
@@ -818,7 +816,7 @@ export const CreatePkiAlertV2FormSteps = ({
</div>
</div>
</AccordionTrigger>
- <AccordionContent className="bg-mineshaft-800 p-6">
+ <AccordionContent className="bg-surface-raised p-6">
{channel?.channelType === PkiAlertChannelTypeV2.EMAIL && (
<Controller
control={control}
@@ -917,13 +915,13 @@ export const CreatePkiAlertV2FormSteps = ({
Test
</Button>
{channelUIStates[field.id]?.webhookTest?.success === true && (
- <span className="flex items-center gap-1 text-sm text-green-500">
+ <span className="flex items-center gap-1 text-sm text-success">
<FontAwesomeIcon icon={faCheck} />
Success
</span>
)}
{channelUIStates[field.id]?.webhookTest?.success === false && (
- <span className="flex items-center gap-1 text-sm text-red-500">
+ <span className="flex items-center gap-1 text-sm text-danger">
<FontAwesomeIcon icon={faXmark} />
{channelUIStates[field.id]?.webhookTest?.error || "Failed"}
</span>
@@ -985,17 +983,17 @@ export const CreatePkiAlertV2FormSteps = ({
)}
{channelFields.length > 0 && errors.channels?.message && (
- <span className="text-sm text-red-500">{errors.channels.message}</span>
+ <span className="text-sm text-danger">{errors.channels.message}</span>
)}
{channelFields.length === 0 && (
<div className="flex flex-1 flex-col items-center justify-center gap-2">
- <span className="text-bunker-400">
+ <span className="text-muted-secondary">
At least one notification channel is required. Click &quot;Add Channel&quot; to add
one.
</span>
{errors.channels?.message && (
- <span className="text-sm text-red-500">{errors.channels.message}</span>
+ <span className="text-sm text-danger">{errors.channels.message}</span>
)}
</div>
)}
@@ -1004,13 +1002,13 @@ export const CreatePkiAlertV2FormSteps = ({
<Tab.Panel>
<div className="mb-4 flex flex-col gap-6">
- <p className="text-sm text-bunker-300">
+ <p className="text-sm text-label-secondary">
Please review the settings below before creating your alert.
</p>
<div className="flex flex-col gap-3">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-300">Basic Information</span>
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-label">Basic Information</span>
</div>
<div className="flex flex-wrap gap-x-8 gap-y-2">
<GenericFieldLabel label="Name">{watch("name") || "Not specified"}</GenericFieldLabel>
@@ -1042,8 +1040,8 @@ export const CreatePkiAlertV2FormSteps = ({
{showFilters && (
<div className="flex flex-col gap-3">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-300">Filter Rules</span>
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-label">Filter Rules</span>
</div>
<div className="flex flex-wrap gap-x-8 gap-y-2">
{watchedFilters && watchedFilters.length > 0 ? (
@@ -1063,7 +1061,7 @@ export const CreatePkiAlertV2FormSteps = ({
</GenericFieldLabel>
))
) : (
- <span className="text-bunker-400">
+ <span className="text-muted-secondary">
No filter rules - will monitor all certificates
</span>
)}
@@ -1072,43 +1070,40 @@ export const CreatePkiAlertV2FormSteps = ({
)}
<div className="flex flex-col gap-3">
- <div className="w-full border-b border-mineshaft-600">
- <span className="text-sm text-mineshaft-300">Notification Channels</span>
+ <div className="w-full border-b border-border-control">
+ <span className="text-sm text-label">Notification Channels</span>
</div>
{watchedChannels.length > 0 ? (
<div className="space-y-2">
{watchedChannels.map((channel, index) => (
<div
key={`review-channel-${index}`}
- className="flex items-center gap-3 rounded-md border border-mineshaft-600 px-3 py-2"
+ className="flex items-center gap-3 rounded-md border border-border-control px-3 py-2"
>
<FontAwesomeIcon
icon={getChannelIcon(channel.channelType)}
- className="text-mineshaft-400"
+ className="text-muted"
/>
<div className="flex min-w-0 flex-1 flex-col">
<div className="flex items-center gap-2">
- <span className="text-sm font-medium text-mineshaft-100">
+ <span className="text-sm font-medium text-foreground">
{getChannelDisplayName(channel.channelType)}
</span>
{channel.channelType === PkiAlertChannelTypeV2.WEBHOOK &&
((channel.config as TPkiAlertChannelConfigWebhook).signingSecret ? (
<Tooltip content="Signed webhook - requests will include signature verification">
- <FontAwesomeIcon
- icon={faKey}
- className="text-xs text-mineshaft-400"
- />
+ <FontAwesomeIcon icon={faKey} className="text-xs text-muted" />
</Tooltip>
) : (
<Tooltip content="Unsigned webhook - consider adding a signing secret for security">
<FontAwesomeIcon
icon={faTriangleExclamation}
- className="text-xs text-mineshaft-400"
+ className="text-xs text-muted"
/>
</Tooltip>
))}
</div>
- <span className="truncate text-xs text-mineshaft-400">
+ <span className="truncate text-xs text-muted">
{(() => {
if (channel.channelType === PkiAlertChannelTypeV2.EMAIL) {
const config = channel.config as TPkiAlertChannelConfigEmail;
@@ -1163,7 +1158,7 @@ export const CreatePkiAlertV2FormSteps = ({
))}
</div>
) : (
- <span className="text-sm text-red-400">
+ <span className="text-sm text-danger">
No channels configured - at least one is required
</span>
)}
diff --git a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx
index 230b2a3774..93757bd814 100644
--- a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx
@@ -349,7 +349,7 @@ export const CreatePkiAlertV2Modal = ({
<div className="flex-1 overflow-y-auto">
<FormProvider {...formMethods}>
<Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}>
- <Tab.List className="-pb-1 mb-6 flex w-full justify-start border-b-2 border-mineshaft-600">
+ <Tab.List className="-pb-1 mb-6 flex w-full justify-start border-b-2 border-border-control">
{formTabs.map((tab, index) => (
<Tab
onClick={async (e) => {
@@ -360,8 +360,8 @@ export const CreatePkiAlertV2Modal = ({
className={({ selected }) =>
`-mb-[0.14rem] w-28 whitespace-nowrap ${index > selectedTabIndex ? "opacity-30" : ""} px-2 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${
selected
- ? "border-b-2 border-mineshaft-300 text-mineshaft-200"
- : "text-bunker-300"
+ ? "border-b-2 border-border-bright text-foreground-secondary"
+ : "text-label-secondary"
}`
}
key={tab.key}
diff --git a/frontend/src/views/PkiAlertsV2Page/components/PkiAlertV2Row.tsx b/frontend/src/views/PkiAlertsV2Page/components/PkiAlertV2Row.tsx
index 7e0abb30d4..fc40481e75 100644
--- a/frontend/src/views/PkiAlertsV2Page/components/PkiAlertV2Row.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/components/PkiAlertV2Row.tsx
@@ -57,27 +57,27 @@ export const PkiAlertV2Row = ({ alert, onView, onEdit, onDelete }: Props) => {
<Tr>
<Td>
<div className="flex items-center gap-2">
- <div className="font-medium text-gray-200">{alert.name}</div>
+ <div className="font-medium text-foreground-cool">{alert.name}</div>
{alert.description && (
<Tooltip content={alert.description}>
- <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ <FontAwesomeIcon icon={faCircleInfo} className="text-muted" />
</Tooltip>
)}
</div>
</Td>
<Td>
- <span className="text-gray-300">{formatEventType(alert.eventType)}</span>
+ <span className="text-label-cool">{formatEventType(alert.eventType)}</span>
</Td>
<Td>
<Badge variant={alert.enabled ? "success" : "neutral"}>
{alert.enabled ? "Enabled" : "Disabled"}
</Badge>
</Td>
- <Td className="text-gray-300">
+ <Td className="text-label-cool">
{alert.eventType === PkiAlertEventTypeV2.EXPIRATION ? (
formatAlertBefore(alert.alertBefore)
) : (
- <span className="text-mineshaft-500">—</span>
+ <span className="text-surface-selected">—</span>
)}
</Td>
<Td>
@@ -85,14 +85,14 @@ export const PkiAlertV2Row = ({ alert, onView, onEdit, onDelete }: Props) => {
<Tooltip
content={
<div className="max-w-sm">
- <div className="text-xs text-mineshaft-300">
+ <div className="text-xs text-label">
{new Date(alert.lastRun.timestamp)
.toISOString()
.replace("T", " ")
.replace("Z", " UTC")}
</div>
{alert.lastRun.error && (
- <div className="mt-1 max-h-32 thin-scrollbar overflow-y-auto text-xs break-words text-red-400">
+ <div className="mt-1 max-h-32 thin-scrollbar overflow-y-auto text-xs break-words text-danger">
{alert.lastRun.error}
</div>
)}
@@ -104,7 +104,7 @@ export const PkiAlertV2Row = ({ alert, onView, onEdit, onDelete }: Props) => {
</Badge>
</Tooltip>
) : (
- <span className="text-mineshaft-500">—</span>
+ <span className="text-surface-selected">—</span>
)}
</Td>
<Td className="text-right">
@@ -127,7 +127,7 @@ export const PkiAlertV2Row = ({ alert, onView, onEdit, onDelete }: Props) => {
<FontAwesomeIcon icon={alert.enabled ? faStop : faPlay} className="mr-2 h-4 w-4" />
{alert.enabled ? "Disable" : "Enable"} alert
</DropdownMenuItem>
- <DropdownMenuItem onClick={onDelete} className="text-red-600">
+ <DropdownMenuItem onClick={onDelete} className="text-danger">
<FontAwesomeIcon icon={faTrash} className="mr-2 h-4 w-4" />
Delete alert
</DropdownMenuItem>
diff --git a/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx b/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx
index 772063fe45..0990ba0d39 100644
--- a/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx
@@ -35,7 +35,7 @@ const formatDate = (dateString: string) =>
});
const SectionHeader = ({ title }: { title: string }) => (
- <h3 className="border-b border-mineshaft-700 pb-2 text-sm font-semibold text-mineshaft-100">
+ <h3 className="border-b border-border-subtle pb-2 text-sm font-semibold text-foreground">
{title}
</h3>
);
@@ -64,7 +64,7 @@ export const ViewPkiAlertV2Modal = ({ isOpen, onOpenChange, alertId }: Props) =>
return (
<Modal isOpen={isOpen} onOpenChange={onOpenChange}>
<ModalContent title="Certificate Alert Details" className="max-w-3xl">
- <p className="py-8 text-center text-sm text-mineshaft-400">Alert not found.</p>
+ <p className="py-8 text-center text-sm text-muted">Alert not found.</p>
</ModalContent>
</Modal>
);
@@ -76,13 +76,9 @@ export const ViewPkiAlertV2Modal = ({ isOpen, onOpenChange, alertId }: Props) =>
<div className="space-y-6">
<div className="flex items-start justify-between gap-3">
<div className="min-w-0">
- <p className="text-xs text-mineshaft-400">Alert Name</p>
- <p className="mt-1 truncate text-base font-semibold text-mineshaft-100">
- {alert.name}
- </p>
- {alert.description && (
- <p className="mt-1 text-sm text-mineshaft-400">{alert.description}</p>
- )}
+ <p className="text-xs text-muted">Alert Name</p>
+ <p className="mt-1 truncate text-base font-semibold text-foreground">{alert.name}</p>
+ {alert.description && <p className="mt-1 text-sm text-muted">{alert.description}</p>}
</div>
<Badge variant={alert.enabled ? "success" : "neutral"}>
{alert.enabled ? "Enabled" : "Disabled"}
@@ -112,33 +108,28 @@ export const ViewPkiAlertV2Modal = ({ isOpen, onOpenChange, alertId }: Props) =>
<div className="space-y-3">
<SectionHeader title="Notification Channels" />
{(alert.channels || []).length === 0 ? (
- <p className="text-sm text-mineshaft-400/70 italic">
- No notification channels configured.
- </p>
+ <p className="text-sm text-muted/70 italic">No notification channels configured.</p>
) : (
<div className="space-y-2">
{(alert.channels || []).map((channel) => (
<div
key={channel.id}
- className="flex items-start gap-3 rounded-md border border-mineshaft-600 bg-mineshaft-800/40 p-3"
+ className="flex items-start gap-3 rounded-md border border-border-control bg-surface-raised/40 p-3"
>
<FontAwesomeIcon
icon={getChannelIcon(channel.channelType)}
- className="mt-0.5 shrink-0 text-mineshaft-400"
+ className="mt-0.5 shrink-0 text-muted"
/>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
- <span className="text-sm font-medium text-mineshaft-100">
+ <span className="text-sm font-medium text-foreground">
{getChannelDisplayName(channel.channelType)}
</span>
{channel.channelType === PkiAlertChannelTypeV2.WEBHOOK &&
(channel.config as TPkiAlertChannelConfigWebhookResponse)
?.hasSigningSecret && (
<Tooltip content="Signed webhook">
- <FontAwesomeIcon
- icon={faKey}
- className="text-xs text-mineshaft-400"
- />
+ <FontAwesomeIcon icon={faKey} className="text-xs text-muted" />
</Tooltip>
)}
{!channel.enabled && <Badge variant="neutral">Disabled</Badge>}
@@ -149,32 +140,30 @@ export const ViewPkiAlertV2Modal = ({ isOpen, onOpenChange, alertId }: Props) =>
const recipients = config?.recipients || [];
const count = recipients.length;
if (count === 0) {
- return <p className="mt-1 text-xs text-mineshaft-400">No recipients</p>;
+ return <p className="mt-1 text-xs text-muted">No recipients</p>;
}
const displayed = recipients.slice(0, 3).join(", ");
const text = count <= 3 ? displayed : `${displayed} +${count - 3} more`;
return count > 3 ? (
<Tooltip content={recipients.join(", ")}>
- <p className="mt-1 cursor-help text-xs text-mineshaft-400">{text}</p>
+ <p className="mt-1 cursor-help text-xs text-muted">{text}</p>
</Tooltip>
) : (
- <p className="mt-1 text-xs text-mineshaft-400">{text}</p>
+ <p className="mt-1 text-xs text-muted">{text}</p>
);
})()}
{channel.channelType === PkiAlertChannelTypeV2.WEBHOOK && (
- <p className="mt-1 truncate text-xs text-mineshaft-400">
+ <p className="mt-1 truncate text-xs text-muted">
{getWebhookHostname(
(channel.config as TPkiAlertChannelConfigWebhookResponse).url
)}
</p>
)}
{channel.channelType === PkiAlertChannelTypeV2.SLACK && (
- <p className="mt-1 text-xs text-mineshaft-400">Slack webhook configured</p>
+ <p className="mt-1 text-xs text-muted">Slack webhook configured</p>
)}
{channel.channelType === PkiAlertChannelTypeV2.PAGERDUTY && (
- <p className="mt-1 text-xs text-mineshaft-400">
- PagerDuty integration configured
- </p>
+ <p className="mt-1 text-xs text-muted">PagerDuty integration configured</p>
)}
</div>
</div>