Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): Decrease error styling intensity (#16784)

Ben Bachemfdb32701c6eb
diff --git a/web/src/components/design-system/Badge/Badge.tsx b/web/src/components/design-system/Badge/Badge.tsx
index 9aeb4843e2..fdc173e357 100644
--- a/web/src/components/design-system/Badge/Badge.tsx
+++ b/web/src/components/design-system/Badge/Badge.tsx
@@ -10,8 +10,8 @@ const badgeVariants = cva(
color: {
primary: "bg-primary text-primary-foreground",
neutral: "bg-tertiary text-tertiary-foreground",
- red: "bg-light-red text-dark-red",
- yellow: "bg-light-yellow text-dark-yellow",
+ red: "bg-light-red/60 text-dark-red/90 dark:bg-light-red/40 dark:text-dark-red/90",
+ yellow: "bg-light-yellow/80 text-dark-yellow",
blue: "bg-light-blue text-dark-blue",
violet: "bg-light-violet text-dark-violet",
teal: "bg-light-teal text-dark-teal",
diff --git a/web/src/components/ui/PrettyJsonView.tsx b/web/src/components/ui/PrettyJsonView.tsx
index 2fd089034a..744ed440aa 100644
--- a/web/src/components/ui/PrettyJsonView.tsx
+++ b/web/src/components/ui/PrettyJsonView.tsx
@@ -94,13 +94,14 @@ const PRETTY_JSON_VIEW_TONE_CLASSES: Record<
{ container: string; row: string; cell: string }
> = {
danger: {
- container: "border-dark-red bg-light-red",
- row: "hover:bg-light-red",
- cell: "border-dark-red/30",
+ container:
+ "border-dark-red/30 bg-light-red/50 dark:border-dark-red/20 dark:bg-light-red/35",
+ row: "hover:bg-light-red/50 dark:hover:bg-light-red/35",
+ cell: "border-dark-red/20 dark:border-dark-red/15",
},
warning: {
- container: "border-dark-yellow/40 bg-light-yellow",
- row: "hover:bg-light-yellow",
+ container: "border-dark-yellow/40 bg-light-yellow/80",
+ row: "hover:bg-light-yellow/80",
cell: "border-dark-yellow/20",
},
muted: {
diff --git a/web/src/features/traces/components/IOPreview/components/StatusMessageSection.tsx b/web/src/features/traces/components/IOPreview/components/StatusMessageSection.tsx
index 9ab195be7c..b75fe96578 100644
--- a/web/src/features/traces/components/IOPreview/components/StatusMessageSection.tsx
+++ b/web/src/features/traces/components/IOPreview/components/StatusMessageSection.tsx
@@ -13,8 +13,9 @@ const STATUS_MESSAGE_CLASS_NAMES: Record<
ObservationStatusMessage["level"],
string
> = {
- ERROR: "border-dark-red bg-light-red",
- WARNING: "border-dark-yellow/40 bg-light-yellow",
+ ERROR:
+ "border-dark-red/30 bg-light-red/50 dark:border-dark-red/20 dark:bg-light-red/35",
+ WARNING: "border-dark-yellow/40 bg-light-yellow/80",
DEBUG: "border-muted-foreground/15 bg-muted/30 text-muted-foreground",
DEFAULT: "bg-card",
};