Skip to content

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

update colors for existing pam components

x03220517a603f2e85f
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
index 3c08c9e1dc..1f9c43c1e2 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
@@ -34,32 +34,32 @@ const TerminalContent = ({
};
let statusLabel = "Connecting";
- let statusDotClass = "bg-yellow-500";
+ let statusDotClass = "bg-warning";
if (isConnected) {
statusLabel = "Connected";
- statusDotClass = "bg-green-500";
+ statusDotClass = "bg-success";
} else if (sessionEnded) {
statusLabel = "Disconnected";
- statusDotClass = "bg-mineshaft-400";
+ statusDotClass = "bg-muted";
}
return (
- <div className="flex h-screen w-screen flex-col bg-[#0d1117]">
+ <div className="flex h-screen w-screen flex-col bg-background">
<div
className="thin-scrollbar flex-1 overflow-x-auto overflow-y-hidden p-2 [&_.xterm-viewport]:thin-scrollbar"
style={{ minHeight: 0 }}
>
<div ref={containerRef} className="h-full" style={{ minWidth: "100%" }} />
</div>
- <div className="flex items-center justify-between border-t border-mineshaft-600 bg-mineshaft-800 px-3 py-1.5 text-xs">
+ <div className="flex items-center justify-between border-t border-border bg-card px-3 py-1.5 text-xs">
<span className="flex items-center gap-1.5">
<span className={`inline-block size-2 rounded-full ${statusDotClass}`} />
- <span className="text-mineshaft-300">{statusLabel}</span>
+ <span className="text-muted">{statusLabel}</span>
{isConnected && (
<button
type="button"
onClick={disconnect}
- className="ml-2 text-mineshaft-400 hover:text-red-400"
+ className="ml-2 text-muted hover:text-danger"
>
Disconnect
</button>
@@ -68,7 +68,7 @@ const TerminalContent = ({
<button
type="button"
onClick={handleReconnect}
- className="ml-2 text-mineshaft-400 hover:text-green-400"
+ className="ml-2 text-muted hover:text-success"
>
Reconnect
</button>
@@ -76,8 +76,8 @@ const TerminalContent = ({
</span>
<div className="flex items-center gap-4">
<span>
- <span className="text-mineshaft-400">Account:</span>{" "}
- <span className="text-mineshaft-300">{account.name}</span>
+ <span className="text-muted">Account:</span>{" "}
+ <span className="text-muted">{account.name}</span>
</span>
</div>
</div>
@@ -99,7 +99,7 @@ const PageContent = () => {
if (isPending) {
return (
- <div className="flex h-screen w-screen items-center justify-center bg-[#0d1117] text-mineshaft-300">
+ <div className="flex h-screen w-screen items-center justify-center bg-background text-muted">
Loading...
</div>
);
@@ -107,8 +107,8 @@ const PageContent = () => {
if (!account) {
return (
- <div className="flex h-screen w-screen items-center justify-center bg-[#0d1117]">
- <p className="text-mineshaft-300">Could not find account with ID {accountId}</p>
+ <div className="flex h-screen w-screen items-center justify-center bg-background">
+ <p className="text-muted">Could not find account with ID {accountId}</p>
</div>
);
}
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx b/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
index ce9d296c98..f0e8dd9762 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
@@ -42,20 +42,20 @@ export const RdpContent = ({
const isConnecting = !isConnected && !error && !sessionEnded;
let statusLabel = "Connecting";
- let statusDotClass = "bg-yellow-500";
+ let statusDotClass = "bg-warning";
if (isConnected) {
statusLabel = "Connected";
- statusDotClass = "bg-green-500";
+ statusDotClass = "bg-success";
} else if (error) {
statusLabel = `Error: ${error}`;
- statusDotClass = "bg-red-500";
+ statusDotClass = "bg-danger";
} else if (sessionEnded) {
statusLabel = "Disconnected";
- statusDotClass = "bg-mineshaft-400";
+ statusDotClass = "bg-muted";
}
return (
- <div className="flex h-dvh w-screen flex-col bg-[#0d1117]">
+ <div className="flex h-dvh w-screen flex-col bg-background">
<div ref={containerRef} className="relative min-h-0 flex-1 overflow-hidden">
{isConnecting && (
<ContentLoader
@@ -65,15 +65,15 @@ export const RdpContent = ({
)}
{error && (
<div className="absolute inset-0 z-10 flex flex-col items-center justify-center gap-4">
- <FontAwesomeIcon icon={faPlugCircleXmark} size="3x" className="text-red-500/80" />
+ <FontAwesomeIcon icon={faPlugCircleXmark} size="3x" className="text-danger/80" />
<div className="flex flex-col items-center gap-1">
- <p className="text-sm font-medium text-mineshaft-200">Connection failed</p>
- <p className="max-w-md text-center text-xs text-mineshaft-400">{error}</p>
+ <p className="text-sm font-medium text-foreground">Connection failed</p>
+ <p className="max-w-md text-center text-xs text-muted">{error}</p>
</div>
<button
type="button"
onClick={handleReconnect}
- className="mt-2 rounded border border-mineshaft-500 px-4 py-1.5 text-xs text-mineshaft-300 transition-colors hover:border-green-700 hover:text-green-400"
+ className="mt-2 rounded border border-border px-4 py-1.5 text-xs text-muted transition-colors hover:border-success hover:text-success"
>
Reconnect
</button>
@@ -81,27 +81,27 @@ export const RdpContent = ({
)}
{sessionEnded && !error && (
<div className="absolute inset-0 z-10 flex flex-col items-center justify-center gap-4">
- <FontAwesomeIcon icon={faCircleXmark} size="3x" className="text-mineshaft-400" />
- <p className="text-sm text-mineshaft-300">Session ended</p>
+ <FontAwesomeIcon icon={faCircleXmark} size="3x" className="text-muted" />
+ <p className="text-sm text-muted">Session ended</p>
<button
type="button"
onClick={handleReconnect}
- className="mt-2 rounded border border-mineshaft-500 px-4 py-1.5 text-xs text-mineshaft-300 transition-colors hover:border-green-700 hover:text-green-400"
+ className="mt-2 rounded border border-border px-4 py-1.5 text-xs text-muted transition-colors hover:border-success hover:text-success"
>
Reconnect
</button>
</div>
)}
</div>
- <div className="flex h-[33px] shrink-0 items-center justify-between border-t border-mineshaft-600 bg-mineshaft-800 px-3 text-xs">
+ <div className="flex h-[33px] shrink-0 items-center justify-between border-t border-border bg-card px-3 text-xs">
<span className="flex items-center gap-1.5">
<span className={`inline-block size-2 rounded-full ${statusDotClass}`} />
- <span className="text-mineshaft-300">{statusLabel}</span>
+ <span className="text-muted">{statusLabel}</span>
{isConnected && (
<button
type="button"
onClick={disconnect}
- className="ml-2 text-mineshaft-400 hover:text-red-400"
+ className="ml-2 text-muted hover:text-danger"
>
Disconnect
</button>
@@ -109,13 +109,13 @@ export const RdpContent = ({
</span>
<div className="flex items-center gap-4">
<span>
- <span className="text-mineshaft-400">Resource:</span>{" "}
- <span className="text-mineshaft-300">{resourceName}</span>
+ <span className="text-muted">Resource:</span>{" "}
+ <span className="text-muted">{resourceName}</span>
</span>
- <span className="text-mineshaft-500">|</span>
+ <span className="text-muted">|</span>
<span>
- <span className="text-mineshaft-400">Account:</span>{" "}
- <span className="text-mineshaft-300">{account.name}</span>
+ <span className="text-muted">Account:</span>{" "}
+ <span className="text-muted">{account.name}</span>
</span>
</div>
</div>
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
index 9c44bef4bb..6c1d38ef92 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/PamDataExplorerPage.tsx
@@ -278,23 +278,23 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
if (isConnecting && !isConnected) {
return (
- <div className="flex h-screen w-screen flex-col items-center justify-center gap-4 bg-bunker-800">
+ <div className="flex h-screen w-screen flex-col items-center justify-center gap-4 bg-background">
<Spinner className="h-8 w-8" />
- <p className="text-sm text-mineshaft-300">Connecting to database...</p>
+ <p className="text-sm text-muted">Connecting to database...</p>
</div>
);
}
if (mfaState?.required) {
return (
- <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-bunker-800">
- <ShieldCheckIcon className="size-8 text-mineshaft-400" />
- <h2 className="text-sm font-medium text-mineshaft-100">MFA Verification Required</h2>
- <p className="max-w-sm text-center text-xs text-mineshaft-400">
+ <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-background">
+ <ShieldCheckIcon className="size-8 text-muted" />
+ <h2 className="text-sm font-medium text-foreground">MFA Verification Required</h2>
+ <p className="max-w-sm text-center text-xs text-muted">
Multi-factor authentication is required to access this database account.
</p>
{mfaState.verifying ? (
- <div className="flex items-center gap-2 text-xs text-mineshaft-400">
+ <div className="flex items-center gap-2 text-xs text-muted">
<Spinner className="h-4 w-4" />
Waiting for verification...
</div>
@@ -309,15 +309,15 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
if (approvalState?.required) {
return (
- <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-bunker-800">
- <AlertTriangleIcon className="size-8 text-mineshaft-400" />
- <h2 className="text-sm font-medium text-mineshaft-100">Approval Required</h2>
- <p className="max-w-sm text-center text-xs text-mineshaft-400">
+ <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-background">
+ <AlertTriangleIcon className="size-8 text-muted" />
+ <h2 className="text-sm font-medium text-foreground">Approval Required</h2>
+ <p className="max-w-sm text-center text-xs text-muted">
This account is protected by policy: {approvalState.policyName ?? "Unknown"}
</p>
{approvalState.submitted ? (
<div className="flex flex-col items-center gap-2">
- <p className="text-xs text-mineshaft-300">Approval request created successfully.</p>
+ <p className="text-xs text-muted">Approval request created successfully.</p>
{approvalRequestUrl && (
<a
href={approvalRequestUrl}
@@ -335,14 +335,14 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
) : (
<div className="flex w-full max-w-sm flex-col gap-2">
<textarea
- className="w-full rounded border border-mineshaft-600 bg-bunker-700 px-3 py-2 text-xs text-mineshaft-200 placeholder:text-mineshaft-500 focus:border-mineshaft-400 focus:outline-none"
+ className="w-full rounded border border-border bg-container px-3 py-2 text-xs text-foreground placeholder:text-muted focus:border-border focus:outline-none"
placeholder="Justification (optional)"
rows={2}
value={approvalJustification}
onChange={(e) => setApprovalJustification(e.target.value)}
/>
{approvalState.errorMessage && (
- <p className="text-xs text-red-400">{approvalState.errorMessage}</p>
+ <p className="text-xs text-danger">{approvalState.errorMessage}</p>
)}
<div className="flex justify-center gap-2">
<Button
@@ -362,10 +362,10 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
if (errorMessage && !isConnected) {
return (
- <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-bunker-800">
- <AlertTriangleIcon className="size-8 text-mineshaft-400" />
- <h2 className="text-sm font-medium text-mineshaft-100">Connection Error</h2>
- <p className="max-w-sm text-center text-xs text-mineshaft-400">{errorMessage}</p>
+ <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-background">
+ <AlertTriangleIcon className="size-8 text-muted" />
+ <h2 className="text-sm font-medium text-foreground">Connection Error</h2>
+ <p className="max-w-sm text-center text-xs text-muted">{errorMessage}</p>
<Button variant="outline" size="xs" onClick={handleReconnect}>
Try Again
</Button>
@@ -375,10 +375,10 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
if (hasDisconnected && !isConnected && !isConnecting) {
return (
- <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-bunker-800">
- <UnplugIcon className="size-8 text-mineshaft-400" />
- <h2 className="text-sm font-medium text-mineshaft-100">Disconnected</h2>
- <p className="text-xs text-mineshaft-400">
+ <div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-background">
+ <UnplugIcon className="size-8 text-muted" />
+ <h2 className="text-sm font-medium text-foreground">Disconnected</h2>
+ <p className="text-xs text-muted">
{disconnectReason ?? "The database connection was closed."}
</p>
<Button variant="outline" size="xs" onClick={handleReconnect}>
@@ -393,7 +393,7 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
const tabOpeningDisabled = isOpeningTab || atTabLimit;
return (
- <div ref={mountRef} className="flex h-screen w-screen flex-col bg-bunker-800">
+ <div ref={mountRef} className="flex h-screen w-screen flex-col bg-background">
<div className="flex flex-1 overflow-hidden">
<DataExplorerSidebar
schemas={schemas}
@@ -408,7 +408,7 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
/>
<div className="flex flex-1 flex-col overflow-hidden">
- <div className="flex min-h-[34px] shrink-0 items-center overflow-x-auto border-b border-mineshaft-600 bg-mineshaft-800 px-2 [scrollbar-color:transparent_transparent] [scrollbar-width:thin] hover:[scrollbar-color:#4a4b4e_transparent] [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-transparent hover:[&::-webkit-scrollbar-thumb]:bg-mineshaft-600 [&::-webkit-scrollbar-track]:bg-transparent">
+ <div className="flex min-h-[34px] shrink-0 items-center overflow-x-auto border-b border-border bg-card px-2 [scrollbar-color:transparent_transparent] [scrollbar-width:thin] hover:[scrollbar-color:var(--color-border)_transparent] [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-transparent hover:[&::-webkit-scrollbar-thumb]:bg-border [&::-webkit-scrollbar-track]:bg-transparent">
{tabs.map((tab) => {
const isActive = activeTabId === tab.id;
const Icon = tab.kind === "browse" ? TableIcon : TerminalSquareIcon;
@@ -426,9 +426,9 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
className={cn(
"group flex shrink-0 cursor-pointer items-center gap-1 border-b-2 px-3 py-2 text-xs font-medium transition-colors",
isActive
- ? "border-info text-mineshaft-100"
- : "border-transparent text-mineshaft-400 hover:text-mineshaft-200",
- tab.isDead && "text-red-400"
+ ? "border-info text-foreground"
+ : "border-transparent text-muted hover:text-foreground",
+ tab.isDead && "text-danger"
)}
>
<span className="flex items-center gap-1.5">
@@ -441,7 +441,7 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
e.stopPropagation();
closeTab(tab.id);
}}
- className="ml-1 rounded p-0.5 text-mineshaft-300 transition-colors hover:text-mineshaft-100"
+ className="ml-1 rounded p-0.5 text-muted transition-colors hover:text-foreground"
aria-label={`Close ${tab.title}`}
>
<XIcon className="size-3" />
@@ -456,7 +456,7 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
openQueryTab().catch(() => {});
}}
disabled={tabOpeningDisabled}
- className="ml-1 flex shrink-0 items-center gap-1.5 rounded border border-mineshaft-600 px-2 py-1 text-xs text-mineshaft-300 transition-colors first:ml-0 hover:border-mineshaft-500 hover:text-mineshaft-100 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:border-mineshaft-600 disabled:hover:text-mineshaft-300"
+ 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"
aria-label="New query tab"
title={atTabLimit ? `Tab limit (${MAX_TABS}) reached` : "New query tab"}
>
@@ -471,8 +471,8 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
{tabs.map((tab) => {
const deadTabView = (
<div className="flex flex-1 flex-col items-center justify-center gap-3 text-center">
- <AlertTriangleIcon className="size-8 text-red-400" />
- <p className="text-sm text-mineshaft-300">
+ <AlertTriangleIcon className="size-8 text-danger" />
+ <p className="text-sm text-muted">
This connection was closed and cannot be reused.
</p>
<Button variant="outline" size="xs" onClick={() => closeTab(tab.id)}>
@@ -521,8 +521,8 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
{tabs.length === 0 && (
<div className="flex flex-1 flex-col items-center justify-center gap-3 text-center">
- <DatabaseIcon className="size-12 text-mineshaft-600" />
- <p className="text-sm text-mineshaft-400">No tabs open</p>
+ <DatabaseIcon className="size-12 text-muted" />
+ <p className="text-sm text-muted">No tabs open</p>
<Button
variant="outline"
size="xs"
@@ -539,14 +539,14 @@ export const PamDataExplorerPage = ({ reason }: Props = {}) => {
</div>
{/* Status bar */}
- <div className="flex items-center justify-between border-t border-mineshaft-600 bg-mineshaft-800 px-3 py-1.5 text-xs">
- <span className="text-mineshaft-400">
+ <div className="flex items-center justify-between border-t border-border bg-card px-3 py-1.5 text-xs">
+ <span className="text-muted">
{tables.length} table{tables.length !== 1 ? "s" : ""}
</span>
<div className="flex items-center gap-4">
<span>
- <span className="text-mineshaft-400">Account:</span>{" "}
- <span className="text-mineshaft-300">{account?.name ?? "Account"}</span>
+ <span className="text-muted">Account:</span>{" "}
+ <span className="text-muted">{account?.name ?? "Account"}</span>
</span>
</div>
</div>
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerGrid.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerGrid.tsx
index d58af64525..e641e4f824 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerGrid.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerGrid.tsx
@@ -745,7 +745,7 @@ export const DataExplorerGrid = ({
)}
{/* Dice UI DataGrid */}
- <div className="data-explorer-grid relative flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-foreground [--color-gray-200:var(--color-border)] [&_[data-slot=grid-footer]]:hidden [&_[data-slot=grid-header]]:bg-container [&_[data-slot=grid]]:thin-scrollbar [&_[data-slot=grid]]:rounded-none [&_[data-slot=grid]]:border-0 [&_[data-slot=grid]]:bg-bunker-800">
+ <div className="data-explorer-grid relative flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-foreground [--color-gray-200:var(--color-border)] [&_[data-slot=grid-footer]]:hidden [&_[data-slot=grid-header]]:bg-container [&_[data-slot=grid]]:thin-scrollbar [&_[data-slot=grid]]:rounded-none [&_[data-slot=grid]]:border-0 [&_[data-slot=grid]]:bg-background">
{isDataLoading && !hasLoaded && <ContentLoader className="h-full" />}
<DataGrid
{...gridProps}
@@ -753,7 +753,7 @@ export const DataExplorerGrid = ({
stretchColumns
/>
{isDataLoading && hasLoaded && (
- <div className="absolute inset-0 z-20 flex items-center justify-center bg-bunker-800/60">
+ <div className="absolute inset-0 z-20 flex items-center justify-center bg-background/60">
<ContentLoader className="h-auto" lottieClassName="h-24 w-24" />
</div>
)}
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
index 1144f5e9bd..a239f41542 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerRowEditor.tsx
@@ -85,7 +85,7 @@ export const DataExplorerRowEditor = ({
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
<label
htmlFor={`row-editor-${col.name}`}
- className="text-xs font-medium text-mineshaft-200"
+ className="text-xs font-medium text-foreground"
>
{col.name}
</label>
@@ -99,7 +99,7 @@ export const DataExplorerRowEditor = ({
</Badge>
)}
{isNull && (
- <Badge variant="outline" className="text-[10px] text-yellow-500">
+ <Badge variant="outline" className="text-[10px] text-warning">
NULL
</Badge>
)}
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerToolbar.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerToolbar.tsx
index 54d225036b..13018d85ec 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerToolbar.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/DataExplorerToolbar.tsx
@@ -264,9 +264,9 @@ const LimitOffsetPopover = ({
value={limitInput}
onChange={(e) => setLimitInput(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && applyChanges()}
- className={`h-8 w-16 rounded border bg-transparent text-center text-sm text-mineshaft-200 outline-none ${
+ className={`h-8 w-16 rounded border bg-transparent text-center text-sm text-foreground outline-none ${
limitError
- ? "border-red-500 focus:border-red-500"
+ ? "border-danger focus:border-danger"
: "border-border focus:border-ring"
}`}
min={1}
@@ -279,9 +279,9 @@ const LimitOffsetPopover = ({
value={offsetInput}
onChange={(e) => setOffsetInput(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && applyChanges()}
- className={`h-8 w-16 rounded border bg-transparent text-center text-sm text-mineshaft-200 outline-none ${
+ className={`h-8 w-16 rounded border bg-transparent text-center text-sm text-foreground outline-none ${
offsetError
- ? "border-red-500 focus:border-red-500"
+ ? "border-danger focus:border-danger"
: "border-border focus:border-ring"
}`}
min={0}
@@ -289,7 +289,7 @@ const LimitOffsetPopover = ({
</div>
</div>
{(limitError || offsetError) && (
- <p className="text-center text-[10px] text-red-400">{limitError || offsetError}</p>
+ <p className="text-center text-[10px] text-danger">{limitError || offsetError}</p>
)}
<Button
variant="outline"
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
index f1dd4c18b6..47120f9751 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
@@ -164,7 +164,7 @@ export const FilterPopover = ({ columns, filters, onFiltersChange }: FilterPopov
</PopoverTrigger>
<PopoverContent className="w-[580px] p-3" align="start">
<div className="mb-2 flex items-center justify-between">
- <span className="text-sm font-medium text-mineshaft-200">Filters</span>
+ <span className="text-sm font-medium text-foreground">Filters</span>
{draft.length > 0 && (
<Button variant="ghost" size="xs" onClick={clearAll} className="h-auto p-0 text-xs">
Clear all
@@ -173,7 +173,7 @@ export const FilterPopover = ({ columns, filters, onFiltersChange }: FilterPopov
</div>
{draft.length === 0 ? (
- <p className="py-3 text-center text-xs text-mineshaft-400">No filters applied</p>
+ <p className="py-3 text-center text-xs text-muted">No filters applied</p>
) : (
<div className="space-y-2">
{draft.map((filter, index) => {
@@ -188,7 +188,7 @@ export const FilterPopover = ({ columns, filters, onFiltersChange }: FilterPopov
>
<SelectTrigger
size="sm"
- className="w-40 text-xs text-mineshaft-200"
+ className="w-40 text-xs text-foreground"
title={filter.column}
>
<SelectValue />
@@ -208,7 +208,7 @@ export const FilterPopover = ({ columns, filters, onFiltersChange }: FilterPopov
updateFilter(index, { operator: val as FilterOperator })
}
>
- <SelectTrigger size="sm" className="w-28 text-xs text-mineshaft-200">
+ <SelectTrigger size="sm" className="w-28 text-xs text-foreground">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -225,14 +225,14 @@ export const FilterPopover = ({ columns, filters, onFiltersChange }: FilterPopov
value={filter.value}
onChange={(e) => updateFilter(index, { value: e.target.value })}
placeholder={getFilterPlaceholder(colInfo?.type ?? "", filter.operator)}
- className="h-7 flex-1 text-xs text-mineshaft-200"
+ className="h-7 flex-1 text-xs text-foreground"
/>
)}
<button
type="button"
onClick={() => removeFilter(index)}
- className="rounded p-1 text-mineshaft-400 hover:bg-mineshaft-700 hover:text-mineshaft-200"
+ className="rounded p-1 text-muted hover:bg-container-hover hover:text-foreground"
>
<XIcon className="size-3" />
</button>
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
index b546e14af0..1436612e2c 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
@@ -132,7 +132,7 @@ export function QueryPanel({
<div
ref={editorPaneRef}
className="min-h-0 overflow-hidden"
- style={{ backgroundColor: "#16181a" }}
+ style={{ backgroundColor: "var(--color-card)" }}
>
<SqlEditor
value={tab.sql}
@@ -155,27 +155,27 @@ export function QueryPanel({
>
<div
className={cn(
- "absolute inset-x-0 top-0 h-px bg-mineshaft-600 transition-colors group-hover:bg-mineshaft-400",
- isDragging && "bg-mineshaft-400"
+ "absolute inset-x-0 top-0 h-px bg-border transition-colors group-hover:bg-muted",
+ isDragging && "bg-muted"
)}
/>
<div
className={cn(
- "absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-sm bg-mineshaft-600 px-2 text-mineshaft-300 transition-colors group-hover:bg-mineshaft-500 group-hover:text-mineshaft-100",
- isDragging && "bg-mineshaft-500 text-mineshaft-100"
+ "absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-sm bg-border px-2 text-muted transition-colors group-hover:bg-muted group-hover:text-foreground",
+ isDragging && "bg-muted text-foreground"
)}
>
<GripHorizontalIcon className="size-3" />
</div>
</div>
- <div className="relative z-0 flex min-h-0 flex-1 flex-col overflow-hidden bg-bunker-800">
+ <div className="relative z-0 flex min-h-0 flex-1 flex-col overflow-hidden bg-background">
<div className="min-h-0 flex-1 overflow-hidden">
<QueryResultsTable result={result} error={error} isRunning={isRunning} />
</div>
{!isRunning && result && !error && (
- <div className="flex shrink-0 items-center justify-between border-t border-mineshaft-600 px-3 py-1">
- <span className="text-xs text-mineshaft-400">
+ <div className="flex shrink-0 items-center justify-between border-t border-border px-3 py-1">
+ <span className="text-xs text-muted">
{result.rowCount != null
? getRowLabel(result.rowCount, result.isTruncated)
: result.command}
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryResultsTable.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryResultsTable.tsx
index 6b7c29e063..e77b0f6c63 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryResultsTable.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryResultsTable.tsx
@@ -56,11 +56,11 @@ function ResultsGrid({ result }: { result: QueryResult }) {
return (
<div className="flex h-full flex-col overflow-hidden">
- <div className="data-explorer-grid relative flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-foreground [--color-gray-200:var(--color-border)] [&_[data-slot=grid-footer]]:hidden [&_[data-slot=grid-header]]:bg-container [&_[data-slot=grid]]:thin-scrollbar [&_[data-slot=grid]]:rounded-none [&_[data-slot=grid]]:border-0 [&_[data-slot=grid]]:bg-bunker-800">
+ <div className="data-explorer-grid relative flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-foreground [--color-gray-200:var(--color-border)] [&_[data-slot=grid-footer]]:hidden [&_[data-slot=grid-header]]:bg-container [&_[data-slot=grid]]:thin-scrollbar [&_[data-slot=grid]]:rounded-none [&_[data-slot=grid]]:border-0 [&_[data-slot=grid]]:bg-background">
<DataGrid {...gridProps} className="min-h-0 flex-1" stretchColumns />
</div>
{isTruncated && (
- <div className="shrink-0 border-t border-mineshaft-600 bg-mineshaft-800 px-3 py-1.5 text-xs text-yellow-500/80">
+ <div className="shrink-0 border-t border-border bg-card px-3 py-1.5 text-xs text-warning/80">
Showing first {result.rows.length.toLocaleString()} rows (results truncated)
</div>
)}
@@ -80,7 +80,7 @@ export function QueryResultsTable({ result, error, isRunning }: Props) {
if (error) {
return (
<div className="p-4">
- <div className="rounded-md border border-red-500/30 bg-red-500/10 px-4 py-3 font-mono text-xs whitespace-pre-wrap text-red-400">
+ <div className="rounded-md border border-danger/30 bg-danger/10 px-4 py-3 font-mono text-xs whitespace-pre-wrap text-danger">
{error}
</div>
</div>
@@ -90,7 +90,7 @@ export function QueryResultsTable({ result, error, isRunning }: Props) {
if (!result) {
return (
<div className="flex h-full items-center justify-center">
- <p className="text-sm text-mineshaft-300">Run a query to see results</p>
+ <p className="text-sm text-muted">Run a query to see results</p>
</div>
);
}
@@ -122,9 +122,9 @@ export function QueryResultsTable({ result, error, isRunning }: Props) {
return (
<div className="flex h-full flex-col items-center justify-center gap-2">
- <span className="rounded border-2 border-mineshaft-500 bg-mineshaft-700 px-3 py-1.5 font-mono text-sm text-mineshaft-200">
+ <span className="rounded border-2 border-border bg-container px-3 py-1.5 font-mono text-sm text-foreground">
{message}
- {isMutation && <span className="ml-2 text-mineshaft-400">· No rows returned</span>}
+ {isMutation && <span className="ml-2 text-muted">· No rows returned</span>}
</span>
</div>
);
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
index edb5ae893e..9ea3a1ee4c 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
@@ -24,11 +24,11 @@ export function QueryToolbar({
onCancel
}: Props) {
return (
- <div className="flex shrink-0 items-center justify-between border-b border-mineshaft-600 bg-bunker-800 px-3 py-1.5">
+ <div className="flex shrink-0 items-center justify-between border-b border-border bg-background px-3 py-1.5">
<div className="flex items-center gap-3">
{isRunning ? (
<Button size="xs" variant="outline" onClick={onCancel} className="gap-1.5">
- <SquareIcon className="size-3 text-red-400" />
+ <SquareIcon className="size-3 text-danger" />
Cancel
</Button>
) : (
@@ -64,7 +64,7 @@ export function QueryToolbar({
)}
</div>
{isInTransaction && (
- <span className="rounded bg-yellow-500/15 px-2 py-0.5 text-xs font-medium text-yellow-400">
+ <span className="rounded bg-warning/15 px-2 py-0.5 text-xs font-medium text-warning">
Transaction open
</span>
)}