Skip to content

Automate browser based workflows with AI

Extract error background color as CSS variable (#SKY-8129) (#4961)

Aaron Perez88335bd06717
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 031fb8074..f3bb75d0f 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -217,7 +217,7 @@ function WorkflowRun() {
finallyBlockInTimeline;
const workflowFailureReason = workflowRun?.failure_reason ? (
- <div className="bg-error-light space-y-2 rounded-md border border-red-600 p-4">
+ <div className="space-y-2 rounded-md border border-red-600 bg-error-light p-4">
<div className="font-bold">{failureReasonTitle}</div>
<div className="text-sm">{workflowRun.failure_reason}</div>
{matchedTips}
diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerRun.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerRun.tsx
index e600d52ec..15a598c73 100644
--- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerRun.tsx
@@ -5,7 +5,7 @@ function DebuggerRun() {
const { data: workflowRun } = useWorkflowRunQuery();
const workflowFailureReason = workflowRun?.failure_reason ? (
- <div className="bg-error-light h-[8rem] min-h-[8rem] w-[calc(100%-2rem)] self-start overflow-y-auto rounded-md border border-red-600 p-4">
+ <div className="h-[8rem] min-h-[8rem] w-[calc(100%-2rem)] self-start overflow-y-auto rounded-md border border-red-600 bg-error-light p-4">
<div className="font-bold">Run Failure Reason</div>
<div className="text-sm">{workflowRun.failure_reason}</div>
</div>
diff --git a/skyvern-frontend/tailwind.config.js b/skyvern-frontend/tailwind.config.js
index e4d0762eb..56a22c397 100644
--- a/skyvern-frontend/tailwind.config.js
+++ b/skyvern-frontend/tailwind.config.js
@@ -43,6 +43,7 @@ module.exports = {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
+ "error-light": "var(--error-bg-light)",
warning: {
DEFAULT: "hsl(var(--warning))",
foreground: "hsl(var(--warning-foreground))",