Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(ui): replace hardcoded Tailwind color utilities with explicit hex values

Steven Enamakel69182159bd49
diff --git a/app/src/components/intelligence/HarnessGlyph.tsx b/app/src/components/intelligence/HarnessGlyph.tsx
index 99151005ef..3d6bc259ce 100644
--- a/app/src/components/intelligence/HarnessGlyph.tsx
+++ b/app/src/components/intelligence/HarnessGlyph.tsx
@@ -22,7 +22,7 @@ const GLYPH: Record<GlyphKind, { label: string; tone: string }> = {
gemini: { label: 'G', tone: 'bg-primary-500 text-content-inverted' },
// Literal hex (Tailwind's slate-800) rather than the `bg-slate-*` utility —
// this is cursor's brand identity color, not a themed neutral surface.
- cursor: { label: 'Cu', tone: 'bg-slate-800 text-content-inverted' },
+ cursor: { label: 'Cu', tone: 'bg-[#1e293b] text-content-inverted' },
windsurf: { label: 'Ws', tone: 'bg-teal-500 text-content-inverted' },
openhuman: { label: 'OH', tone: 'bg-sage-500 text-content-inverted' },
};
diff --git a/app/src/components/settings/panels/ai/ProviderListRow.tsx b/app/src/components/settings/panels/ai/ProviderListRow.tsx
index 23f02a2636..2ef3775411 100644
--- a/app/src/components/settings/panels/ai/ProviderListRow.tsx
+++ b/app/src/components/settings/panels/ai/ProviderListRow.tsx
@@ -73,28 +73,28 @@ export interface ProviderRowAction {
}
const PROVIDER_SWATCH_TONES: Record<string, string> = {
- openai: 'bg-black text-white ring-white/30',
- anthropic: 'bg-[#D97757] text-white ring-white/30',
- 'claude-code': 'bg-[#D97757] text-white ring-white/30',
- google: 'bg-[#4285F4] text-white ring-white/30',
- mistral: 'bg-[#FF7000] text-white ring-white/30',
- huggingface: 'bg-[#B88600] text-white ring-white/30',
- nvidia: 'bg-[#5A8F00] text-white ring-white/30',
- 'vercel-ai-gateway': 'bg-black text-white ring-white/30',
- xai: 'bg-black text-white ring-white/30',
- zai: 'bg-[#FF6A00] text-white ring-white/30',
- ollama: 'bg-black text-white ring-white/30',
- lmstudio: 'bg-[#303E5C] text-white ring-white/30',
- omlx: 'bg-[#6E6E73] text-white ring-white/30',
- gmi: 'bg-[#0F766E] text-white ring-white/30',
- openrouter: 'bg-[#7624F4] text-white ring-white/30',
- deepseek: 'bg-[#4D6BFE] text-white ring-white/30',
- cerebras: 'bg-[#FF6A00] text-white ring-white/30',
- fireworks: 'bg-[#EF476F] text-white ring-white/30',
- groq: 'bg-[#F55036] text-white ring-white/30',
- minimax: 'bg-[#7048E8] text-white ring-white/30',
- moonshot: 'bg-[#5B5CE2] text-white ring-white/30',
- together: 'bg-[#9D36D5] text-white ring-white/30',
+ openai: 'bg-[#000000] text-content-inverted ring-content-inverted/30',
+ anthropic: 'bg-[#D97757] text-content-inverted ring-content-inverted/30',
+ 'claude-code': 'bg-[#D97757] text-content-inverted ring-content-inverted/30',
+ google: 'bg-[#4285F4] text-content-inverted ring-content-inverted/30',
+ mistral: 'bg-[#FF7000] text-content-inverted ring-content-inverted/30',
+ huggingface: 'bg-[#B88600] text-content-inverted ring-content-inverted/30',
+ nvidia: 'bg-[#5A8F00] text-content-inverted ring-content-inverted/30',
+ 'vercel-ai-gateway': 'bg-[#000000] text-content-inverted ring-content-inverted/30',
+ xai: 'bg-[#000000] text-content-inverted ring-content-inverted/30',
+ zai: 'bg-[#FF6A00] text-content-inverted ring-content-inverted/30',
+ ollama: 'bg-[#000000] text-content-inverted ring-content-inverted/30',
+ lmstudio: 'bg-[#303E5C] text-content-inverted ring-content-inverted/30',
+ omlx: 'bg-[#6E6E73] text-content-inverted ring-content-inverted/30',
+ gmi: 'bg-[#0F766E] text-content-inverted ring-content-inverted/30',
+ openrouter: 'bg-[#7624F4] text-content-inverted ring-content-inverted/30',
+ deepseek: 'bg-[#4D6BFE] text-content-inverted ring-content-inverted/30',
+ cerebras: 'bg-[#FF6A00] text-content-inverted ring-content-inverted/30',
+ fireworks: 'bg-[#EF476F] text-content-inverted ring-content-inverted/30',
+ groq: 'bg-[#F55036] text-content-inverted ring-content-inverted/30',
+ minimax: 'bg-[#7048E8] text-content-inverted ring-content-inverted/30',
+ moonshot: 'bg-[#5B5CE2] text-content-inverted ring-content-inverted/30',
+ together: 'bg-[#9D36D5] text-content-inverted ring-content-inverted/30',
};
/**
@@ -122,7 +122,8 @@ export const ProviderSwatch = ({
data-slot="provider-swatch"
className={cn(
'flex h-8 w-8 shrink-0 items-center justify-center rounded-xl text-xs font-semibold ring-1',
- PROVIDER_SWATCH_TONES[slug] ?? 'bg-[#27272A] text-white ring-white/30'
+ PROVIDER_SWATCH_TONES[slug] ??
+ 'bg-[#27272A] text-content-inverted ring-content-inverted/30'
)}>
{icon ?? (label.trim().charAt(0).toUpperCase() || '?')}
</span>
diff --git a/app/src/components/settings/panels/ai/providerIcons.tsx b/app/src/components/settings/panels/ai/providerIcons.tsx
index 98331868df..4695173541 100644
--- a/app/src/components/settings/panels/ai/providerIcons.tsx
+++ b/app/src/components/settings/panels/ai/providerIcons.tsx
@@ -109,7 +109,7 @@ const PROVIDER_ASSETS: Record<string, ProviderAsset> = {
*/
export const providerIcon = (slug: string, className: string): ReactElement | null => {
const icon = PROVIDER_ICONS[slug];
- if (icon) return createElement(icon, { className: cn(className, 'text-white') });
+ if (icon) return createElement(icon, { className: cn(className, 'text-content-inverted') });
const asset = PROVIDER_ASSETS[slug];
return asset ? (
<img
diff --git a/app/src/components/settings/panels/builtinCloudProviders.ts b/app/src/components/settings/panels/builtinCloudProviders.ts
index 2001e99e9a..0d2df152a8 100644
--- a/app/src/components/settings/panels/builtinCloudProviders.ts
+++ b/app/src/components/settings/panels/builtinCloudProviders.ts
@@ -18,7 +18,8 @@ const TONE = {
// (100/500/300/900) rather than `slate-*` utilities so it does not ride the
// banned palette scale that `lint:ui-tokens` guards. Do NOT swap it for a
// saturated hue — that collides with `sky` and changes the design intent.
- slate: 'bg-slate-100 dark:bg-slate-500/15 ring-slate-300 text-slate-900 dark:text-slate-100',
+ slate:
+ 'bg-[#f1f5f9] dark:bg-[#64748b]/15 ring-[#cbd5e1] text-[#0f172a] dark:text-[#f1f5f9]',
sky: 'bg-sky-50 dark:bg-sky-500/10 ring-sky-200 text-sky-900 dark:text-sky-100',
fuchsia:
'bg-fuchsia-50 dark:bg-fuchsia-500/10 ring-fuchsia-200 text-fuchsia-900 dark:text-fuchsia-100',