Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat([issue-1924]): remap digital-twin/ off-token colors to port-* tokens

[._.]/ Adam Eivy0d43be8761e2
diff --git a/client/src/components/digital-twin/ConfidenceGauge.jsx b/client/src/components/digital-twin/ConfidenceGauge.jsx
index 4477b36586..2e2a092604 100644
--- a/client/src/components/digital-twin/ConfidenceGauge.jsx
+++ b/client/src/components/digital-twin/ConfidenceGauge.jsx
@@ -31,9 +31,9 @@ const DIMENSION_ICONS = {
};
function getConfidenceColor(score) {
- if (score >= 0.8) return { text: 'text-green-400', bg: 'bg-green-500', border: 'border-green-500/30' };
- if (score >= 0.6) return { text: 'text-yellow-400', bg: 'bg-yellow-500', border: 'border-yellow-500/30' };
- return { text: 'text-red-400', bg: 'bg-red-500', border: 'border-red-500/30' };
+ if (score >= 0.8) return { text: 'text-port-success', bg: 'bg-port-success', border: 'border-port-success/30' };
+ if (score >= 0.6) return { text: 'text-port-warning', bg: 'bg-port-warning', border: 'border-port-warning/30' };
+ return { text: 'text-port-error', bg: 'bg-port-error', border: 'border-port-error/30' };
}
function getConfidenceLabel(score) {
@@ -164,7 +164,7 @@ export default function ConfidenceGauge({ confidence, onRecalculate }) {
<div
key={dimension}
className={`flex items-center gap-3 p-2 rounded-lg ${
- isLow ? 'bg-red-500/5 border border-red-500/20' : ''
+ isLow ? 'bg-port-error/5 border border-port-error/20' : ''
}`}
>
<span className="text-lg">{icon}</span>
@@ -183,10 +183,10 @@ export default function ConfidenceGauge({ confidence, onRecalculate }) {
</div>
</div>
{isLow && (
- <TrendingDown className="w-4 h-4 text-red-400 shrink-0" />
+ <TrendingDown className="w-4 h-4 text-port-error shrink-0" />
)}
{score >= 0.8 && (
- <TrendingUp className="w-4 h-4 text-green-400 shrink-0" />
+ <TrendingUp className="w-4 h-4 text-port-success shrink-0" />
)}
</div>
);
@@ -196,15 +196,15 @@ export default function ConfidenceGauge({ confidence, onRecalculate }) {
{/* Legend */}
<div className="flex items-center gap-4 mt-4 pt-4 border-t border-port-border text-xs">
<div className="flex items-center gap-1">
- <div className="w-2 h-2 rounded-full bg-green-500" />
+ <div className="w-2 h-2 rounded-full bg-port-success" />
<span className="text-gray-400">Strong (80%+)</span>
</div>
<div className="flex items-center gap-1">
- <div className="w-2 h-2 rounded-full bg-yellow-500" />
+ <div className="w-2 h-2 rounded-full bg-port-warning" />
<span className="text-gray-400">Moderate (60-79%)</span>
</div>
<div className="flex items-center gap-1">
- <div className="w-2 h-2 rounded-full bg-red-500" />
+ <div className="w-2 h-2 rounded-full bg-port-error" />
<span className="text-gray-400">Needs Work (&lt;60%)</span>
</div>
</div>
diff --git a/client/src/components/digital-twin/GapRecommendations.jsx b/client/src/components/digital-twin/GapRecommendations.jsx
index 3f67d767fe..ce60952652 100644
--- a/client/src/components/digital-twin/GapRecommendations.jsx
+++ b/client/src/components/digital-twin/GapRecommendations.jsx
@@ -50,7 +50,7 @@ export default function GapRecommendations({ gaps, maxDisplay = 3 }) {
return (
<div className="bg-port-card rounded-lg border border-port-border p-6">
<div className="flex items-center gap-2 mb-4">
- <Lightbulb size={20} className="text-green-400" />
+ <Lightbulb size={20} className="text-port-success" />
<h2 className="text-lg font-semibold text-white">Enrichment Complete!</h2>
</div>
<p className="text-gray-400">
diff --git a/client/src/components/digital-twin/InterviewAnalysisCard.jsx b/client/src/components/digital-twin/InterviewAnalysisCard.jsx
index 10c384ca3f..2a48776ca7 100644
--- a/client/src/components/digital-twin/InterviewAnalysisCard.jsx
+++ b/client/src/components/digital-twin/InterviewAnalysisCard.jsx
@@ -33,22 +33,22 @@ export default function InterviewAnalysisCard({ analysisResult }) {
{/* Summary badges */}
<div className="flex flex-wrap gap-2">
{traitCount > 0 && (
- <span className="px-2 py-1 text-xs rounded-full bg-blue-500/20 text-blue-400 border border-blue-500/30">
+ <span className="px-2 py-1 text-xs rounded-full bg-port-accent/20 text-port-accent border border-port-accent/30">
{traitCount} trait categories updated
</span>
)}
{docsCreatedCount > 0 && (
- <span className="px-2 py-1 text-xs rounded-full bg-green-500/20 text-green-400 border border-green-500/30">
+ <span className="px-2 py-1 text-xs rounded-full bg-port-success/20 text-port-success border border-port-success/30">
{docsCreatedCount} docs created
</span>
)}
{docsUpdatedCount > 0 && (
- <span className="px-2 py-1 text-xs rounded-full bg-yellow-500/20 text-yellow-400 border border-yellow-500/30">
+ <span className="px-2 py-1 text-xs rounded-full bg-port-warning/20 text-port-warning border border-port-warning/30">
{docsUpdatedCount} docs updated
</span>
)}
{dimensionCount > 0 && (
- <span className="px-2 py-1 text-xs rounded-full bg-purple-500/20 text-purple-400 border border-purple-500/30">
+ <span className="px-2 py-1 text-xs rounded-full bg-port-accent-2/20 text-port-accent-2 border border-port-accent-2/30">
{dimensionCount} new dimensions
</span>
)}
@@ -114,7 +114,7 @@ export default function InterviewAnalysisCard({ analysisResult }) {
<div className="space-y-2">
{newDimensions.map((dim, i) => (
<div key={i} className="bg-port-bg rounded p-2">
- <div className="font-medium text-purple-400 text-xs mb-1">{dim.name}</div>
+ <div className="font-medium text-port-accent-2 text-xs mb-1">{dim.name}</div>
<div className="space-y-1">
{dim.traits.map((t, j) => (
<div key={j} className="text-xs text-gray-300">
@@ -132,10 +132,10 @@ export default function InterviewAnalysisCard({ analysisResult }) {
<CollapsibleSection title="Document Changes" icon={FileText}>
<div className="space-y-1">
{(documentsCreated || []).map((f, i) => (
- <div key={`c-${i}`} className="text-xs text-green-400">+ {f}</div>
+ <div key={`c-${i}`} className="text-xs text-port-success">+ {f}</div>
))}
{(documentsUpdated || []).map((f, i) => (
- <div key={`u-${i}`} className="text-xs text-yellow-400">~ {f}</div>
+ <div key={`u-${i}`} className="text-xs text-port-warning">~ {f}</div>
))}
</div>
</CollapsibleSection>
diff --git a/client/src/components/digital-twin/ListEnrichment.jsx b/client/src/components/digital-twin/ListEnrichment.jsx
index 13a6a8afbf..4f2c922229 100644
--- a/client/src/components/digital-twin/ListEnrichment.jsx
+++ b/client/src/components/digital-twin/ListEnrichment.jsx
@@ -335,7 +335,7 @@ export default function ListEnrichment({
<ul className="space-y-2">
{analysis.patterns.map((pattern, i) => (
<li key={i} className="flex items-start gap-2 text-gray-300">
- <Check size={16} className="text-green-400 mt-0.5 shrink-0" />
+ <Check size={16} className="text-port-success mt-0.5 shrink-0" />
{pattern}
</li>
))}
@@ -409,7 +409,7 @@ export default function ListEnrichment({
<button
onClick={saveDocument}
disabled={saving || !documentContent.trim()}
- className="px-6 py-3 min-h-[44px] bg-green-600 text-white rounded-lg font-medium hover:bg-green-500 disabled:opacity-50 flex items-center justify-center gap-2"
+ className="px-6 py-3 min-h-[44px] bg-port-success text-white rounded-lg font-medium hover:bg-port-success/80 disabled:opacity-50 flex items-center justify-center gap-2"
>
{saving ? (
<>
diff --git a/client/src/components/digital-twin/NextActionBanner.jsx b/client/src/components/digital-twin/NextActionBanner.jsx
index 6108399c03..1fe56d1def 100644
--- a/client/src/components/digital-twin/NextActionBanner.jsx
+++ b/client/src/components/digital-twin/NextActionBanner.jsx
@@ -176,9 +176,9 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
// Mode 1: No traits and no enrichment - suggest interview
if (!hasTraits && !hasEnrichment) {
return (
- <div className="bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-500/30 rounded-lg p-5">
+ <div className="bg-gradient-to-r from-port-accent-2/10 to-port-accent-2/5 border border-port-accent-2/30 rounded-lg p-5">
<div className="flex items-start gap-3">
- <MessageSquare className="w-5 h-5 text-purple-400 mt-0.5 shrink-0" />
+ <MessageSquare className="w-5 h-5 text-port-accent-2 mt-0.5 shrink-0" />
<div className="flex-1">
<h3 className="text-white font-medium mb-1">Get started with a personality assessment</h3>
<p className="text-sm text-gray-400 mb-3">
@@ -186,7 +186,7 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
</p>
<button
onClick={() => navigate('/digital-twin/interview')}
- className="px-4 py-2 bg-purple-600 text-white rounded-lg text-sm hover:bg-purple-500 flex items-center gap-2"
+ className="px-4 py-2 bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 flex items-center gap-2"
>
Go to Interview
<ArrowRight size={14} />
@@ -200,9 +200,9 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
// Mode 3: No gaps - all caught up
if (!hasGaps) {
return (
- <div className="bg-green-500/10 border border-green-500/30 rounded-lg p-5">
+ <div className="bg-port-success/10 border border-port-success/30 rounded-lg p-5">
<div className="flex items-start gap-3">
- <CheckCircle className="w-5 h-5 text-green-400 mt-0.5 shrink-0" />
+ <CheckCircle className="w-5 h-5 text-port-success mt-0.5 shrink-0" />
<div className="flex-1">
<h3 className="text-white font-medium mb-1">Your twin is well-defined</h3>
<p className="text-sm text-gray-400 mb-3">
@@ -210,7 +210,7 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
</p>
<button
onClick={() => navigate('/digital-twin/test')}
- className="px-4 py-2 bg-green-600 text-white rounded-lg text-sm hover:bg-green-500 flex items-center gap-2"
+ className="px-4 py-2 bg-port-success text-white rounded-lg text-sm hover:bg-port-success/80 flex items-center gap-2"
>
Run Tests
<ArrowRight size={14} />
@@ -229,9 +229,9 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
const prompt = weakestGap ? buildContinuationPrompt(weakestGap.dimension, weakestGap) : null;
return (
- <div className="bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-500/30 rounded-lg p-5">
+ <div className="bg-gradient-to-r from-port-accent-2/10 to-port-accent-2/5 border border-port-accent-2/30 rounded-lg p-5">
<div className="flex items-start gap-3">
- <MessageSquare className="w-5 h-5 text-purple-400 mt-0.5 shrink-0" />
+ <MessageSquare className="w-5 h-5 text-port-accent-2 mt-0.5 shrink-0" />
<div className="flex-1">
<h3 className="text-white font-medium mb-1">Deepen: {weakestLabel}</h3>
<p className="text-sm text-gray-400 mb-3">
@@ -251,14 +251,14 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
className="absolute top-2 right-2 p-1.5 text-gray-400 hover:text-white bg-port-bg rounded"
title="Copy prompt"
>
- {copied ? <Check size={14} className="text-green-400" /> : <Copy size={14} />}
+ {copied ? <Check size={14} className="text-port-success" /> : <Copy size={14} />}
</button>
</div>
)}
<div className="flex items-center gap-3">
<button
onClick={() => navigate('/digital-twin/interview')}
- className="px-4 py-2 bg-purple-600 text-white rounded-lg text-sm hover:bg-purple-500 flex items-center gap-2"
+ className="px-4 py-2 bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 flex items-center gap-2"
>
Import Results
<ArrowRight size={14} />
@@ -392,7 +392,7 @@ export default function NextActionBanner({ gaps, status, traits, onRefresh }) {
className="absolute top-2 right-2 p-1.5 text-gray-400 hover:text-white bg-port-bg rounded"
title="Copy prompt"
>
- {copied ? <Check size={14} className="text-green-400" /> : <Copy size={14} />}
+ {copied ? <Check size={14} className="text-port-success" /> : <Copy size={14} />}
</button>
</div>
<p className="text-xs text-gray-500 mt-2">
diff --git a/client/src/components/digital-twin/PersonalityMap.jsx b/client/src/components/digital-twin/PersonalityMap.jsx
index 49b3d397e6..8cd2d97d72 100644
--- a/client/src/components/digital-twin/PersonalityMap.jsx
+++ b/client/src/components/digital-twin/PersonalityMap.jsx
@@ -15,14 +15,14 @@ const BIG_FIVE_LABELS = {
const TRAIT_ORDER = ['O', 'C', 'E', 'A', 'N'];
function getConfidenceColor(confidence) {
- if (confidence >= 0.8) return 'text-green-400';
- if (confidence >= 0.6) return 'text-yellow-400';
+ if (confidence >= 0.8) return 'text-port-success';
+ if (confidence >= 0.6) return 'text-port-warning';
return 'text-gray-400';
}
function getConfidenceBg(confidence) {
- if (confidence >= 0.8) return 'bg-green-500';
- if (confidence >= 0.6) return 'bg-yellow-500';
+ if (confidence >= 0.8) return 'bg-port-success';
+ if (confidence >= 0.6) return 'bg-port-warning';
return 'bg-gray-500';
}
diff --git a/client/src/components/digital-twin/SoulWizard.jsx b/client/src/components/digital-twin/SoulWizard.jsx
index c461ba86a6..eae2e46912 100644
--- a/client/src/components/digital-twin/SoulWizard.jsx
+++ b/client/src/components/digital-twin/SoulWizard.jsx
@@ -230,7 +230,7 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}
<button
onClick={handleComplete}
disabled={saving || !canProceed()}
- className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-green-600 text-white rounded-lg hover:bg-green-500 disabled:opacity-50 disabled:cursor-not-allowed"
+ className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-port-success text-white rounded-lg hover:bg-port-success/80 disabled:opacity-50 disabled:cursor-not-allowed"
>
{saving ? (
<>
@@ -266,7 +266,7 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}
index === currentStep
? 'bg-port-accent'
: index < currentStep
- ? 'bg-green-500'
+ ? 'bg-port-success'
: 'bg-port-border'
}`}
/>
diff --git a/client/src/components/digital-twin/tabs/AccountsTab.jsx b/client/src/components/digital-twin/tabs/AccountsTab.jsx
index bf6cecfc1d..5c5b2aa8fd 100644
--- a/client/src/components/digital-twin/tabs/AccountsTab.jsx
+++ b/client/src/components/digital-twin/tabs/AccountsTab.jsx
@@ -240,11 +240,11 @@ export default function AccountsTab() {
<div className="text-xs text-gray-500">Ingestion Enabled</div>
</div>
<div className="bg-port-card border border-port-border rounded-lg p-3">
- <div className="text-2xl font-bold text-purple-400">{Object.keys(stats.byCategory || {}).length}</div>
+ <div className="text-2xl font-bold text-port-accent-2">{Object.keys(stats.byCategory || {}).length}</div>
<div className="text-xs text-gray-500">Categories</div>
</div>
<div className="bg-port-card border border-port-border rounded-lg p-3">
- <div className="text-2xl font-bold text-green-400">{Object.keys(stats.byPlatform || {}).length}</div>
+ <div className="text-2xl font-bold text-port-success">{Object.keys(stats.byPlatform || {}).length}</div>
<div className="text-xs text-gray-500">Platforms</div>
</div>
</div>
diff --git a/client/src/components/digital-twin/tabs/AdversarialBoundaryPanel.jsx b/client/src/components/digital-twin/tabs/AdversarialBoundaryPanel.jsx
index ac06764182..bec241582a 100644
--- a/client/src/components/digital-twin/tabs/AdversarialBoundaryPanel.jsx
+++ b/client/src/components/digital-twin/tabs/AdversarialBoundaryPanel.jsx
@@ -94,11 +94,11 @@ export default function AdversarialBoundaryPanel({ selectedProviders = [], perso
const getResultIcon = (result) => {
switch (result) {
case 'held':
- return <CheckCircle className="w-5 h-5 text-green-400" />;
+ return <CheckCircle className="w-5 h-5 text-port-success" />;
case 'breached':
- return <XCircle className="w-5 h-5 text-red-400" />;
+ return <XCircle className="w-5 h-5 text-port-error" />;
case 'partial':
- return <AlertCircle className="w-5 h-5 text-yellow-400" />;
+ return <AlertCircle className="w-5 h-5 text-port-warning" />;
default:
return <Clock className="w-5 h-5 text-gray-400" />;
}
@@ -246,11 +246,11 @@ export default function AdversarialBoundaryPanel({ selectedProviders = [], perso
)}
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm">
<div>
- <div className="text-green-400 text-xs mb-1">Held Response</div>
+ <div className="text-port-success text-xs mb-1">Held Response</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{scenario.heldResponse}</div>
</div>
<div>
- <div className="text-red-400 text-xs mb-1">Breached Response</div>
+ <div className="text-port-error text-xs mb-1">Breached Response</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{scenario.breachedResponse}</div>
</div>
</div>
diff --git a/client/src/components/digital-twin/tabs/AppearanceTab.jsx b/client/src/components/digital-twin/tabs/AppearanceTab.jsx
index e8832311bc..9c708e74f0 100644
--- a/client/src/components/digital-twin/tabs/AppearanceTab.jsx
+++ b/client/src/components/digital-twin/tabs/AppearanceTab.jsx
@@ -215,9 +215,9 @@ export default function AppearanceTab({ onRefresh }) {
{/* Results */}
{result && (
- <div className="bg-port-card rounded-lg border border-green-500/30 p-6 space-y-5">
+ <div className="bg-port-card rounded-lg border border-port-success/30 p-6 space-y-5">
<div className="flex items-center gap-3">
- <ScanFace className="w-6 h-6 text-green-400" />
+ <ScanFace className="w-6 h-6 text-port-success" />
<h2 className="text-lg font-semibold text-white">Appearance analysis</h2>
</div>
diff --git a/client/src/components/digital-twin/tabs/DocumentsTab.jsx b/client/src/components/digital-twin/tabs/DocumentsTab.jsx
index 7ab79ce2af..4c0cf3ff4e 100644
--- a/client/src/components/digital-twin/tabs/DocumentsTab.jsx
+++ b/client/src/components/digital-twin/tabs/DocumentsTab.jsx
@@ -217,7 +217,7 @@ export default function DocumentsTab({ onRefresh }) {
<button
onClick={() => handleToggleEnabled(selectedDoc, !selectedDoc.enabled)}
className={`p-2 min-h-[40px] min-w-[40px] flex items-center justify-center transition-colors ${
- selectedDoc.enabled ? 'text-green-400' : 'text-gray-500'
+ selectedDoc.enabled ? 'text-port-success' : 'text-gray-500'
}`}
title={selectedDoc.enabled ? 'Disable for CoS injection' : 'Enable for CoS injection'}
>
@@ -228,7 +228,7 @@ export default function DocumentsTab({ onRefresh }) {
<button
onClick={handleSave}
disabled={saving}
- className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-green-400 hover:text-green-300 transition-colors disabled:opacity-50"
+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-port-success hover:text-port-success/80 transition-colors disabled:opacity-50"
title="Save"
>
<Save size={18} />
diff --git a/client/src/components/digital-twin/tabs/EnrichTab.jsx b/client/src/components/digital-twin/tabs/EnrichTab.jsx
index 63ae4c5fa5..f714a5b801 100644
--- a/client/src/components/digital-twin/tabs/EnrichTab.jsx
+++ b/client/src/components/digital-twin/tabs/EnrichTab.jsx
@@ -287,10 +287,10 @@ export default function EnrichTab({ onRefresh }) {
<h2 className="text-xl font-semibold text-white">{categoryConfig?.label}</h2>
</div>
</div>
- <div className="p-4 bg-green-500/10 border border-green-500/30 rounded-lg">
+ <div className="p-4 bg-port-success/10 border border-port-success/30 rounded-lg">
<div className="flex items-center gap-3">
- <Check className="w-5 h-5 text-green-400" />
- <span className="text-green-400">All questions for this category have been answered. Great job!</span>
+ <Check className="w-5 h-5 text-port-success" />
+ <span className="text-port-success">All questions for this category have been answered. Great job!</span>
</div>
</div>
</div>
@@ -414,10 +414,10 @@ export default function EnrichTab({ onRefresh }) {
{/* Category completion */}
{categoryProgress?.completed && (
- <div className="mt-6 p-4 bg-green-500/10 border border-green-500/30 rounded-lg">
+ <div className="mt-6 p-4 bg-port-success/10 border border-port-success/30 rounded-lg">
<div className="flex items-center gap-3">
- <Check className="w-5 h-5 text-green-400" />
- <span className="text-green-400">
+ <Check className="w-5 h-5 text-port-success" />
+ <span className="text-port-success">
This category is complete! Continue answering to add more depth.
</span>
</div>
@@ -465,7 +465,7 @@ export default function EnrichTab({ onRefresh }) {
key={key}
onClick={() => startCategory(key)}
className={`p-4 min-h-[120px] bg-port-card rounded-lg border transition-all text-left hover:border-port-accent ${
- isComplete ? 'border-green-500/30' : 'border-port-border'
+ isComplete ? 'border-port-success/30' : 'border-port-border'
}`}
>
<div className="flex items-start justify-between mb-3">
@@ -473,7 +473,7 @@ export default function EnrichTab({ onRefresh }) {
<Icon className={`w-5 h-5 text-${config.color}-400`} />
</div>
{isComplete ? (
- <Check className="w-5 h-5 text-green-400" />
+ <Check className="w-5 h-5 text-port-success" />
) : (
<ChevronRight className="w-5 h-5 text-gray-500" />
)}
@@ -486,7 +486,7 @@ export default function EnrichTab({ onRefresh }) {
<span className="text-gray-500">
{catProgress?.answered || 0} {catProgress?.listBased ? 'items added' : 'questions answered'}
</span>
- <span className={isComplete ? 'text-green-400' : 'text-gray-500'}>
+ <span className={isComplete ? 'text-port-success' : 'text-gray-500'}>
{catProgress?.percentage || 0}%
</span>
</div>
@@ -494,7 +494,7 @@ export default function EnrichTab({ onRefresh }) {
{/* Mini progress bar */}
<div className="h-1 bg-port-border rounded-full mt-2 overflow-hidden">
<div
- className={`h-full transition-all ${isComplete ? 'bg-green-500' : 'bg-port-accent'}`}
+ className={`h-full transition-all ${isComplete ? 'bg-port-success' : 'bg-port-accent'}`}
style={{ width: `${catProgress?.percentage || 0}%` }}
/>
</div>
@@ -525,7 +525,7 @@ export default function EnrichTab({ onRefresh }) {
className="w-full p-4 flex items-center justify-between hover:bg-port-border/30 transition-colors"
>
<div className="flex items-center gap-3">
- <PenTool className="w-6 h-6 text-cyan-400" />
+ <PenTool className="w-6 h-6 text-port-accent" />
<div className="text-left">
<h3 className="font-medium text-white">Analyze Your Writing</h3>
<p className="text-sm text-gray-400">Extract communication patterns from your actual writing</p>
@@ -600,7 +600,7 @@ export default function EnrichTab({ onRefresh }) {
<button
onClick={analyzeWriting}
disabled={analyzingWriting}
- className="px-4 py-3 min-h-[44px] bg-cyan-600 text-white rounded-lg text-sm hover:bg-cyan-500 disabled:opacity-50 flex items-center justify-center gap-2"
+ className="px-4 py-3 min-h-[44px] bg-port-accent text-white rounded-lg text-sm hover:bg-port-accent/80 disabled:opacity-50 flex items-center justify-center gap-2"
>
{analyzingWriting ? (
<>
@@ -667,7 +667,7 @@ export default function EnrichTab({ onRefresh }) {
<button
onClick={saveWritingStyle}
disabled={savingWritingStyle}
- className="px-3 py-2 min-h-[40px] bg-green-600 text-white rounded text-sm hover:bg-green-500 disabled:opacity-50 flex items-center justify-center gap-1"
+ className="px-3 py-2 min-h-[40px] bg-port-success text-white rounded text-sm hover:bg-port-success/80 disabled:opacity-50 flex items-center justify-center gap-1"
>
{savingWritingStyle ? (
<BrailleSpinner />
diff --git a/client/src/components/digital-twin/tabs/ExportTab.jsx b/client/src/components/digital-twin/tabs/ExportTab.jsx
index d0a599cd32..515b7679ec 100644
--- a/client/src/components/digital-twin/tabs/ExportTab.jsx
+++ b/client/src/components/digital-twin/tabs/ExportTab.jsx
@@ -263,7 +263,7 @@ export default function ExportTab({ onRefresh: _onRefresh }) {
className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"
title="Copy to clipboard"
>
- {copied ? <Check size={18} className="text-green-400" /> : <Copy size={18} />}
+ {copied ? <Check size={18} className="text-port-success" /> : <Copy size={18} />}
</button>
<button
onClick={downloadFile}
diff --git a/client/src/components/digital-twin/tabs/GoalsTab.jsx b/client/src/components/digital-twin/tabs/GoalsTab.jsx
index 6a23dc1a85..6de7fb8b00 100644
--- a/client/src/components/digital-twin/tabs/GoalsTab.jsx
+++ b/client/src/components/digital-twin/tabs/GoalsTab.jsx
@@ -27,9 +27,9 @@ const HORIZON_OPTIONS = [
function urgencyColor(urgency) {
if (urgency == null) return 'text-gray-500';
- if (urgency >= 0.7) return 'text-red-400';
- if (urgency >= 0.4) return 'text-yellow-400';
- return 'text-green-400';
+ if (urgency >= 0.7) return 'text-port-error';
+ if (urgency >= 0.4) return 'text-port-warning';
+ return 'text-port-success';
}
function urgencyLabel(urgency) {
@@ -189,12 +189,12 @@ export default function GoalsTab({ onRefresh }) {
<div className="text-xs text-gray-600 mt-1">
Baseline: {longevity.lifeExpectancy.baseline}
{longevity.lifeExpectancy.longevityAdjustment !== 0 && (
- <span className={longevity.lifeExpectancy.longevityAdjustment > 0 ? 'text-green-500' : 'text-red-500'}>
+ <span className={longevity.lifeExpectancy.longevityAdjustment > 0 ? 'text-port-success' : 'text-port-error'}>
{' '}{longevity.lifeExpectancy.longevityAdjustment > 0 ? '+' : ''}{longevity.lifeExpectancy.longevityAdjustment} longevity
</span>
)}
{longevity.lifeExpectancy.cardiovascularAdjustment !== 0 && (
- <span className={longevity.lifeExpectancy.cardiovascularAdjustment > 0 ? 'text-green-500' : 'text-red-500'}>
+ <span className={longevity.lifeExpectancy.cardiovascularAdjustment > 0 ? 'text-port-success' : 'text-port-error'}>
{' '}{longevity.lifeExpectancy.cardiovascularAdjustment > 0 ? '+' : ''}{longevity.lifeExpectancy.cardiovascularAdjustment} cardio
</span>
)}
@@ -208,7 +208,7 @@ export default function GoalsTab({ onRefresh }) {
<div className="text-xs text-gray-500">Current Age</div>
</div>
<div className="bg-port-bg rounded-lg p-3 text-center">
- <div className="text-2xl font-bold text-green-400">{timeHorizons.yearsRemaining}</div>
+ <div className="text-2xl font-bold text-port-success">{timeHorizons.yearsRemaining}</div>
<div className="text-xs text-gray-500">Years Remaining</div>
<div className="text-xs text-gray-600 mt-1">{timeHorizons.healthyYearsRemaining} healthy</div>
</div>
@@ -411,7 +411,7 @@ export default function GoalsTab({ onRefresh }) {
onClick={() => !ms.completedAt && handleCompleteMilestone(goal.id, ms.id)}
className={`w-4 h-4 rounded border flex items-center justify-center shrink-0 ${
ms.completedAt
- ? 'bg-green-500/20 border-green-500 text-green-400'
+ ? 'bg-port-success/20 border-port-success text-port-success'
: 'border-gray-600 hover:border-port-accent'
}`}
>
@@ -462,7 +462,7 @@ export default function GoalsTab({ onRefresh }) {
<div className="flex gap-2 pt-1">
<button
onClick={() => handleUpdateGoalStatus(goal.id, 'completed')}
- className="flex items-center gap-1 px-2 py-1 text-xs rounded bg-green-500/20 text-green-400 hover:bg-green-500/30"
+ className="flex items-center gap-1 px-2 py-1 text-xs rounded bg-port-success/20 text-port-success hover:bg-port-success/30"
>
<Check className="w-3 h-3" />
Complete
@@ -498,7 +498,7 @@ export default function GoalsTab({ onRefresh }) {
{completedGoals.length > 0 && (
<div className="bg-port-card border border-port-border rounded-lg p-4">
<h3 className="font-medium text-gray-400 mb-3 flex items-center gap-2">
- <Check className="w-4 h-4 text-green-400" />
+ <Check className="w-4 h-4 text-port-success" />
Completed ({completedGoals.length})
</h3>
<div className="space-y-1">
@@ -537,8 +537,8 @@ export default function GoalsTab({ onRefresh }) {
<span className="text-gray-500 ml-1">({marker.rsid})</span>
</div>
<span className={
- marker.status === 'beneficial' ? 'text-green-400' :
- marker.status === 'concern' ? 'text-red-400' : 'text-gray-400'
+ marker.status === 'beneficial' ? 'text-port-success' :
+ marker.status === 'concern' ? 'text-port-error' : 'text-gray-400'
}>
{marker.genotype} — {marker.status}
</span>
@@ -558,8 +558,8 @@ export default function GoalsTab({ onRefresh }) {
<span className="text-gray-500 ml-1">({marker.rsid})</span>
</div>
<span className={
- marker.status === 'beneficial' ? 'text-green-400' :
- marker.status === 'concern' || marker.status === 'major_concern' ? 'text-red-400' : 'text-gray-400'
+ marker.status === 'beneficial' ? 'text-port-success' :
+ marker.status === 'concern' || marker.status === 'major_concern' ? 'text-port-error' : 'text-gray-400'
}>
{marker.genotype} — {marker.status}
</span>
diff --git a/client/src/components/digital-twin/tabs/IdentityTab.jsx b/client/src/components/digital-twin/tabs/IdentityTab.jsx
index 21ec919046..9a130bad21 100644
--- a/client/src/components/digital-twin/tabs/IdentityTab.jsx
+++ b/client/src/components/digital-twin/tabs/IdentityTab.jsx
@@ -16,8 +16,8 @@ const SECTION_CONFIG = {
};
const STATUS_COLORS = {
- active: { dot: 'bg-green-400', text: 'text-green-400' },
- pending: { dot: 'bg-yellow-400', text: 'text-yellow-400' },
+ active: { dot: 'bg-port-success', text: 'text-port-success' },
+ pending: { dot: 'bg-port-warning', text: 'text-port-warning' },
unavailable: { dot: 'bg-gray-500', text: 'text-gray-500' }
};
@@ -32,9 +32,9 @@ const GOAL_CATEGORY_ICONS = {
function urgencyColor(urgency) {
if (urgency == null) return 'text-gray-500';
- if (urgency >= 0.7) return 'text-red-400';
- if (urgency >= 0.4) return 'text-yellow-400';
- return 'text-green-400';
+ if (urgency >= 0.7) return 'text-port-error';
+ if (urgency >= 0.4) return 'text-port-warning';
+ return 'text-port-success';
}
function urgencyLabel(urgency) {
@@ -45,9 +45,9 @@ function urgencyLabel(urgency) {
}
const SEVERITY_CONFIG = {
- success: { icon: CheckCircle, color: 'text-green-400', border: 'border-green-500/30', bg: 'bg-green-500/10' },
- warning: { icon: AlertTriangle, color: 'text-yellow-400', border: 'border-yellow-500/30', bg: 'bg-yellow-500/10' },
- info: { icon: Info, color: 'text-blue-400', border: 'border-blue-500/30', bg: 'bg-blue-500/10' }
+ success: { icon: CheckCircle, color: 'text-port-success', border: 'border-port-success/30', bg: 'bg-port-success/10' },
+ warning: { icon: AlertTriangle, color: 'text-port-warning', border: 'border-port-warning/30', bg: 'bg-port-warning/10' },
+ info: { icon: Info, color: 'text-port-accent', border: 'border-port-accent/30', bg: 'bg-port-accent/10' }
};
const CATEGORY_LABELS = {
@@ -134,8 +134,8 @@ export default function IdentityTab({ onRefresh }) {
<div className="h-2 bg-port-border rounded-full overflow-hidden mb-3">
<div
className={`h-full transition-all ${
- percentage >= 80 ? 'bg-green-500' :
- percentage >= 40 ? 'bg-yellow-500' : 'bg-red-500'
+ percentage >= 80 ? 'bg-port-success' :
+ percentage >= 40 ? 'bg-port-warning' : 'bg-port-error'
}`}
style={{ width: `${percentage}%` }}
/>
@@ -175,7 +175,7 @@ export default function IdentityTab({ onRefresh }) {
{sections.genome?.status && (
<span className={`text-xs px-2 py-0.5 rounded-full ${
sections.genome.status === 'active'
- ? 'bg-green-500/20 text-green-400'
+ ? 'bg-port-success/20 text-port-success'
: 'bg-gray-500/20 text-gray-400'
}`}>
{sections.genome.status === 'active' ? 'Active' : 'Pending'}
@@ -221,8 +221,8 @@ export default function IdentityTab({ onRefresh }) {
{sections.chronotype?.status && (
<span className={`text-xs px-2 py-0.5 rounded-full ${
sections.chronotype.status === 'active'
- ? 'bg-green-500/20 text-green-400'
- : 'bg-yellow-500/20 text-yellow-400'
+ ? 'bg-port-success/20 text-port-success'
+ : 'bg-port-warning/20 text-port-warning'
}`}>
{sections.chronotype.status === 'active' ? 'Active' : 'Pending'}
</span>
@@ -233,8 +233,8 @@ export default function IdentityTab({ onRefresh }) {
<div className="space-y-3">
<div className="flex items-center gap-2">
{chronotype.type.toLowerCase().includes('evening') || chronotype.type.toLowerCase().includes('owl')
- ? <Moon className="w-4 h-4 text-indigo-400" />
- : <Sun className="w-4 h-4 text-yellow-400" />
+ ? <Moon className="w-4 h-4 text-port-accent-2" />
+ : <Sun className="w-4 h-4 text-port-warning" />
}
<span className="text-white font-medium">{chronotype.type}</span>
{chronotype.confidence != null && (
@@ -268,9 +268,9 @@ export default function IdentityTab({ onRefresh }) {
key={name}
className={`text-xs px-1.5 py-0.5 rounded ${
marker.signal < 0
- ? 'bg-indigo-500/20 text-indigo-400'
+ ? 'bg-port-accent-2/20 text-port-accent-2'
: marker.signal > 0
- ? 'bg-yellow-500/20 text-yellow-400'
+ ? 'bg-port-warning/20 text-port-warning'
: 'bg-gray-500/20 text-gray-400'
}`}
>
@@ -306,8 +306,8 @@ export default function IdentityTab({ onRefresh }) {
{sections.longevity?.status && (
<span className={`text-xs px-2 py-0.5 rounded-full ${
sections.longevity.status === 'active'
- ? 'bg-green-500/20 text-green-400'
- : 'bg-yellow-500/20 text-yellow-400'
+ ? 'bg-port-success/20 text-port-success'
+ : 'bg-port-warning/20 text-port-warning'
}`}>
{sections.longevity.status === 'active' ? 'Active' : 'Pending'}
</span>
@@ -324,7 +324,7 @@ export default function IdentityTab({ onRefresh }) {
<div className="text-xs text-gray-500">Adjusted LE</div>
</div>
<div className="bg-port-bg rounded-lg p-2 text-center">
- <div className="text-xl font-bold text-green-400">
+ <div className="text-xl font-bold text-port-success">
{longevity.timeHorizons?.yearsRemaining ?? '—'}
</div>
<div className="text-xs text-gray-500">Years Left</div>
@@ -382,8 +382,8 @@ export default function IdentityTab({ onRefresh }) {
{sections.aesthetics?.status && (
<span className={`text-xs px-2 py-0.5 rounded-full ${
sections.aesthetics.status === 'active'
- ? 'bg-green-500/20 text-green-400'
- : 'bg-yellow-500/20 text-yellow-400'
+ ? 'bg-port-success/20 text-port-success'
+ : 'bg-port-warning/20 text-port-warning'
}`}>
{sections.aesthetics.status === 'active' ? 'Active' : 'Pending'}
</span>
@@ -407,9 +407,9 @@ export default function IdentityTab({ onRefresh }) {
>
<div className={`w-2 h-2 rounded-full ${
(section.completedQuestions ?? 0) >= (section.totalQuestions ?? 1)
- ? 'bg-green-400'
+ ? 'bg-port-success'
: (section.completedQuestions ?? 0) > 0
- ? 'bg-yellow-400'
+ ? 'bg-port-warning'
: 'bg-gray-600'
}`} />
<span className="text-gray-400">{section.name || section.id}</span>
@@ -443,8 +443,8 @@ export default function IdentityTab({ onRefresh }) {
{sections.goals?.status && (
<span className={`text-xs px-2 py-0.5 rounded-full ${
sections.goals.status === 'active'
- ? 'bg-green-500/20 text-green-400'
- : 'bg-yellow-500/20 text-yellow-400'
+ ? 'bg-port-success/20 text-port-success'
+ : 'bg-port-warning/20 text-port-warning'
}`}>
{sections.goals.status === 'active' ? 'Active' : 'Pending'}
</span>
diff --git a/client/src/components/digital-twin/tabs/ImportTab.jsx b/client/src/components/digital-twin/tabs/ImportTab.jsx
index c91369bfa7..ba5f473349 100644
--- a/client/src/components/digital-twin/tabs/ImportTab.jsx
+++ b/client/src/components/digital-twin/tabs/ImportTab.jsx
@@ -130,7 +130,7 @@ export default function ImportTab() {
{/* Header */}
<div className="bg-port-card rounded-lg border border-port-border p-6">
<div className="flex items-center gap-3 mb-4">
- <Upload className="w-6 h-6 text-purple-400" />
+ <Upload className="w-6 h-6 text-port-accent-2" />
<h2 className="text-xl font-semibold text-white">Import External Data</h2>
</div>
<p className="text-gray-400">
@@ -227,7 +227,7 @@ export default function ImportTab() {
</label>
</div>
{fileContent && (
- <div className="mt-2 flex items-center gap-2 text-sm text-green-400">
+ <div className="mt-2 flex items-center gap-2 text-sm text-port-success">
<Check className="w-4 h-4" />
File loaded ({formatBytes(fileContent.length, 0)})
</div>
@@ -285,7 +285,7 @@ export default function ImportTab() {
<div className="bg-port-card rounded-lg border border-port-border p-6">
<div className="flex items-center justify-between mb-4">
<h3 className="text-lg font-semibold text-white flex items-center gap-2">
- <Check className="w-5 h-5 text-green-400" />
+ <Check className="w-5 h-5 text-port-success" />
Analysis Complete
</h3>
<button
@@ -371,7 +371,7 @@ export default function ImportTab() {
{analysisResult.insights.personalityInferences.values.map((value, i) => (
<span
key={i}
- className="px-2 py-1 bg-purple-500/20 text-purple-400 rounded-lg text-sm"
+ className="px-2 py-1 bg-port-accent-2/20 text-port-accent-2 rounded-lg text-sm"
>
{value}
</span>
@@ -386,7 +386,7 @@ export default function ImportTab() {
{analysisResult.insights.personalityInferences.interests.map((interest, i) => (
<span
key={i}
- className="px-2 py-1 bg-blue-500/20 text-blue-400 rounded-lg text-sm"
+ className="px-2 py-1 bg-port-accent/20 text-port-accent rounded-lg text-sm"
>
{interest}
</span>
@@ -422,7 +422,7 @@ export default function ImportTab() {
<ul className="space-y-2">
{analysisResult.insights.preferences.map((pref, i) => (
<li key={i} className="text-sm text-gray-300 flex items-start gap-2">
- <ChevronRight className="w-4 h-4 text-green-400 shrink-0 mt-0.5" />
+ <ChevronRight className="w-4 h-4 text-port-success shrink-0 mt-0.5" />
{pref}
</li>
))}
diff --git a/client/src/components/digital-twin/tabs/InterviewTab.jsx b/client/src/components/digital-twin/tabs/InterviewTab.jsx
index 86340fdc87..47165dce1b 100644
--- a/client/src/components/digital-twin/tabs/InterviewTab.jsx
+++ b/client/src/components/digital-twin/tabs/InterviewTab.jsx
@@ -146,9 +146,9 @@ export default function InterviewTab({ onRefresh }) {
{/* Section 2: Analysis Results */}
{analysisResult && (
- <div className="bg-port-card rounded-lg border border-green-500/30 p-6">
+ <div className="bg-port-card rounded-lg border border-port-success/30 p-6">
<div className="flex items-center gap-3 mb-4">
- <BarChart3 className="w-6 h-6 text-green-400" />
+ <BarChart3 className="w-6 h-6 text-port-success" />
<h2 className="text-lg font-semibold text-white">Analysis Results</h2>
</div>
@@ -192,8 +192,8 @@ export default function InterviewTab({ onRefresh }) {
<div className="h-1.5 bg-port-border rounded-full overflow-hidden mb-2">
<div
className={`h-full rounded-full transition-all ${
- gap.confidence < 0.3 ? 'bg-red-500' :
- gap.confidence < 0.6 ? 'bg-yellow-500' : 'bg-green-500'
+ gap.confidence < 0.3 ? 'bg-port-error' :
+ gap.confidence < 0.6 ? 'bg-port-warning' : 'bg-port-success'
}`}
style={{ width: `${Math.round(gap.confidence * 100)}%` }}
/>
@@ -232,20 +232,20 @@ export default function InterviewTab({ onRefresh }) {
key={key}
onClick={() => navigateToEnrich(key)}
className={`flex items-center gap-3 p-3 rounded-lg border transition-colors text-left hover:border-port-accent ${
- isComplete ? 'border-green-500/30 bg-green-500/5' : 'border-port-border bg-port-card'
+ isComplete ? 'border-port-success/30 bg-port-success/5' : 'border-port-border bg-port-card'
}`}
>
- <Icon size={16} className={isComplete ? 'text-green-400' : 'text-gray-500'} />
+ <Icon size={16} className={isComplete ? 'text-port-success' : 'text-gray-500'} />
<div className="flex-1 min-w-0">
<div className="flex items-center justify-between">
<span className="text-sm text-white truncate">{config.label}</span>
- <span className={`text-xs ml-2 ${isComplete ? 'text-green-400' : 'text-gray-500'}`}>
+ <span className={`text-xs ml-2 ${isComplete ? 'text-port-success' : 'text-gray-500'}`}>
{percentage}%
</span>
</div>
<div className="h-1 bg-port-border rounded-full mt-1 overflow-hidden">
<div
- className={`h-full rounded-full transition-all ${isComplete ? 'bg-green-500' : 'bg-port-accent'}`}
+ className={`h-full rounded-full transition-all ${isComplete ? 'bg-port-success' : 'bg-port-accent'}`}
style={{ width: `${percentage}%` }}
/>
</div>
diff --git a/client/src/components/digital-twin/tabs/MultiTurnPanel.jsx b/client/src/components/digital-twin/tabs/MultiTurnPanel.jsx
index 82b11e4cd4..18fd129b10 100644
--- a/client/src/components/digital-twin/tabs/MultiTurnPanel.jsx
+++ b/client/src/components/digital-twin/tabs/MultiTurnPanel.jsx
@@ -95,11 +95,11 @@ export default function MultiTurnPanel({ selectedProviders = [], personaId = '',
const getResultIcon = (result) => {
switch (result) {
case 'consistent':
- return <CheckCircle className="w-5 h-5 text-green-400" />;
+ return <CheckCircle className="w-5 h-5 text-port-success" />;
case 'inconsistent':
- return <XCircle className="w-5 h-5 text-red-400" />;
+ return <XCircle className="w-5 h-5 text-port-error" />;
case 'partial':
- return <AlertCircle className="w-5 h-5 text-yellow-400" />;
+ return <AlertCircle className="w-5 h-5 text-port-warning" />;
default:
return <Clock className="w-5 h-5 text-gray-400" />;
}
@@ -242,11 +242,11 @@ export default function MultiTurnPanel({ selectedProviders = [], personaId = '',
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm">
<div>
- <div className="text-green-400 text-xs mb-1">Consistent Trajectory</div>
+ <div className="text-port-success text-xs mb-1">Consistent Trajectory</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{scenario.consistentTrajectory}</div>
</div>
<div>
- <div className="text-red-400 text-xs mb-1">Inconsistent Trajectory</div>
+ <div className="text-port-error text-xs mb-1">Inconsistent Trajectory</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{scenario.inconsistentTrajectory}</div>
</div>
</div>
diff --git a/client/src/components/digital-twin/tabs/OverviewTab.jsx b/client/src/components/digital-twin/tabs/OverviewTab.jsx
index 49ed3591aa..994bd5a91a 100644
--- a/client/src/components/digital-twin/tabs/OverviewTab.jsx
+++ b/client/src/components/digital-twin/tabs/OverviewTab.jsx
@@ -131,17 +131,17 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div className="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full mb-8">
<div className="p-4 bg-port-card rounded-lg border border-port-border">
- <FileText className="w-8 h-8 text-purple-400 mb-3" />
+ <FileText className="w-8 h-8 text-port-accent-2 mb-3" />
<h3 className="font-semibold text-white mb-2">Core Identity</h3>
<p className="text-sm text-gray-400">Define your values, philosophy, and worldview</p>
</div>
<div className="p-4 bg-port-card rounded-lg border border-port-border">
- <Sparkles className="w-8 h-8 text-yellow-400 mb-3" />
+ <Sparkles className="w-8 h-8 text-port-warning mb-3" />
<h3 className="font-semibold text-white mb-2">Enrichment</h3>
<p className="text-sm text-gray-400">Answer questions to expand your profile</p>
</div>
<div className="p-4 bg-port-card rounded-lg border border-port-border">
- <CheckCircle className="w-8 h-8 text-green-400 mb-3" />
+ <CheckCircle className="w-8 h-8 text-port-success mb-3" />
<h3 className="font-semibold text-white mb-2">Testing</h3>
<p className="text-sm text-gray-400">Verify alignment across different models</p>
</div>
@@ -331,8 +331,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div>
<div className="flex items-center gap-4 mb-4">
<div className={`text-3xl font-bold ${
- completeness.score >= 80 ? 'text-green-400' :
- completeness.score >= 50 ? 'text-yellow-400' : 'text-red-400'
+ completeness.score >= 80 ? 'text-port-success' :
+ completeness.score >= 50 ? 'text-port-warning' : 'text-port-error'
}`}>
{completeness.score}%
</div>
@@ -348,8 +348,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div className="h-2 bg-port-border rounded-full overflow-hidden mb-4">
<div
className={`h-full transition-all ${
- completeness.score >= 80 ? 'bg-green-500' :
- completeness.score >= 50 ? 'bg-yellow-500' : 'bg-red-500'
+ completeness.score >= 80 ? 'bg-port-success' :
+ completeness.score >= 50 ? 'bg-port-warning' : 'bg-port-error'
}`}
style={{ width: `${completeness.score}%` }}
/>
@@ -440,7 +440,7 @@ export default function OverviewTab({ status, settings, onRefresh }) {
{contradictions.error ? (
<div className="text-red-400 text-sm">{contradictions.error}</div>
) : contradictions.issues?.length === 0 ? (
- <div className="flex items-center gap-2 text-green-400">
+ <div className="flex items-center gap-2 text-port-success">
<CheckCircle size={18} />
No contradictions detected
</div>
@@ -451,9 +451,9 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div
key={i}
className={`p-3 rounded-lg border ${
- issue.severity === 'high' ? 'bg-red-500/10 border-red-500/30' :
- issue.severity === 'medium' ? 'bg-yellow-500/10 border-yellow-500/30' :
- 'bg-blue-500/10 border-blue-500/30'
+ issue.severity === 'high' ? 'bg-port-error/10 border-port-error/30' :
+ issue.severity === 'medium' ? 'bg-port-warning/10 border-port-warning/30' :
+ 'bg-port-accent/10 border-port-accent/30'
}`}
>
<div className="font-medium text-white mb-1">
@@ -503,8 +503,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
onClick={() => navigate('/digital-twin/test')}
className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"
>
- <div className="p-2.5 sm:p-3 rounded-lg bg-green-500/20 shrink-0">
- <Play className="w-5 h-5 sm:w-6 sm:h-6 text-green-400" />
+ <div className="p-2.5 sm:p-3 rounded-lg bg-port-success/20 shrink-0">
+ <Play className="w-5 h-5 sm:w-6 sm:h-6 text-port-success" />
</div>
<div className="text-left min-w-0">
<div className="font-medium text-white">Run Tests</div>
@@ -520,8 +520,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
onClick={() => navigate(gaps[0]?.suggestedCategory ? `/digital-twin/enrich?category=${gaps[0].suggestedCategory}` : '/digital-twin/enrich')}
className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"
>
- <div className="p-2.5 sm:p-3 rounded-lg bg-yellow-500/20 shrink-0">
- <Sparkles className="w-5 h-5 sm:w-6 sm:h-6 text-yellow-400" />
+ <div className="p-2.5 sm:p-3 rounded-lg bg-port-warning/20 shrink-0">
+ <Sparkles className="w-5 h-5 sm:w-6 sm:h-6 text-port-warning" />
</div>
<div className="text-left min-w-0">
<div className="font-medium text-white">Enrich Soul</div>
@@ -535,8 +535,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
onClick={() => navigate('/digital-twin/export')}
className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"
>
- <div className="p-2.5 sm:p-3 rounded-lg bg-blue-500/20 shrink-0">
- <Download className="w-5 h-5 sm:w-6 sm:h-6 text-blue-400" />
+ <div className="p-2.5 sm:p-3 rounded-lg bg-port-accent/20 shrink-0">
+ <Download className="w-5 h-5 sm:w-6 sm:h-6 text-port-accent" />
</div>
<div className="text-left min-w-0">
<div className="font-medium text-white">Export Soul</div>
@@ -552,8 +552,8 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4">
<div className="flex items-center gap-4">
<div className={`text-2xl sm:text-3xl font-bold ${
- status.lastTestRun.score >= 0.8 ? 'text-green-400' :
- status.lastTestRun.score >= 0.5 ? 'text-yellow-400' : 'text-red-400'
+ status.lastTestRun.score >= 0.8 ? 'text-port-success' :
+ status.lastTestRun.score >= 0.5 ? 'text-port-warning' : 'text-port-error'
}`}>
{Math.round(status.lastTestRun.score * 100)}%
</div>
@@ -581,12 +581,12 @@ export default function OverviewTab({ status, settings, onRefresh }) {
<div className="flex items-center gap-3">
{settings?.autoInjectToCoS ? (
<>
- <CheckCircle className="w-5 h-5 text-green-400" />
+ <CheckCircle className="w-5 h-5 text-port-success" />
<span className="text-white">Soul context is being injected into CoS agents</span>
</>
) : (
<>
- <AlertCircle className="w-5 h-5 text-yellow-400" />
+ <AlertCircle className="w-5 h-5 text-port-warning" />
<span className="text-white">Soul context injection is disabled</span>
<button
onClick={() => setShowSettings(true)}
diff --git a/client/src/components/digital-twin/tabs/TasteTab.jsx b/client/src/components/digital-twin/tabs/TasteTab.jsx
index 26dc2ecf1e..802f34c4b3 100644
--- a/client/src/components/digital-twin/tabs/TasteTab.jsx
+++ b/client/src/components/digital-twin/tabs/TasteTab.jsx
@@ -300,10 +300,10 @@ export default function TasteTab({ onRefresh }) {
) : (
<div className="space-y-4">
{reviewResponses.map((r, i) => (
- <div key={i} className={`bg-port-card rounded-lg border ${r.isPersonalized ? 'border-purple-500/30' : 'border-port-border'} p-4`}>
+ <div key={i} className={`bg-port-card rounded-lg border ${r.isPersonalized ? 'border-port-accent-2/30' : 'border-port-border'} p-4`}>
<div className="flex items-start gap-2 mb-2">
{r.isPersonalized ? (
- <span className="text-xs px-2 py-0.5 bg-purple-500/20 text-purple-400 rounded">personalized</span>
+ <span className="text-xs px-2 py-0.5 bg-port-accent-2/20 text-port-accent-2 rounded">personalized</span>
) : r.isFollowUp ? (
<span className="text-xs px-2 py-0.5 bg-port-accent/20 text-port-accent rounded">follow-up</span>
) : null}
@@ -314,8 +314,8 @@ export default function TasteTab({ onRefresh }) {
))}
{section?.summary && (
- <div className="bg-port-card rounded-lg border border-violet-500/30 p-4">
- <h3 className="text-sm font-medium text-violet-400 mb-2 flex items-center gap-2">
+ <div className="bg-port-card rounded-lg border border-port-accent-2/30 p-4">
+ <h3 className="text-sm font-medium text-port-accent-2 mb-2 flex items-center gap-2">
<Sparkles size={14} />
AI Summary
</h3>
@@ -326,9 +326,9 @@ export default function TasteTab({ onRefresh }) {
<p className="text-xs text-gray-500 mb-2">Does this summary capture your taste accurately?</p>
<div className="flex items-center gap-2">
{[
- { key: 'sounds_like_me', label: 'Sounds like me', icon: ThumbsUp, active: 'bg-green-500/20 text-green-400 border border-green-500/30', inactive: 'text-gray-400 border border-port-border hover:text-green-400 hover:border-green-500/30 disabled:opacity-30' },
- { key: 'not_quite', label: 'Not quite', icon: Minus, active: 'bg-yellow-500/20 text-yellow-400 border border-yellow-500/30', inactive: 'text-gray-400 border border-port-border hover:text-yellow-400 hover:border-yellow-500/30 disabled:opacity-30' },
- { key: 'doesnt_sound_like_me', label: 'Not me', icon: ThumbsDown, active: 'bg-red-500/20 text-red-400 border border-red-500/30', inactive: 'text-gray-400 border border-port-border hover:text-red-400 hover:border-red-500/30 disabled:opacity-30' }
+ { key: 'sounds_like_me', label: 'Sounds like me', icon: ThumbsUp, active: 'bg-port-success/20 text-port-success border border-port-success/30', inactive: 'text-gray-400 border border-port-border hover:text-port-success hover:border-port-success/30 disabled:opacity-30' },
+ { key: 'not_quite', label: 'Not quite', icon: Minus, active: 'bg-port-warning/20 text-port-warning border border-port-warning/30', inactive: 'text-gray-400 border border-port-border hover:text-port-warning hover:border-port-warning/30 disabled:opacity-30' },
+ { key: 'doesnt_sound_like_me', label: 'Not me', icon: ThumbsDown, active: 'bg-port-error/20 text-port-error border border-port-error/30', inactive: 'text-gray-400 border border-port-border hover:text-port-error hover:border-port-error/30 disabled:opacity-30' }
].map(({ key, label, icon: FbIcon, active, inactive }) => (
<button
key={key}
@@ -351,7 +351,7 @@ export default function TasteTab({ onRefresh }) {
<button
onClick={() => handleGenerateSummary(reviewSection)}
disabled={generatingSummary || reviewResponses.length === 0}
- className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-violet-600 text-white rounded-lg text-sm hover:bg-violet-500 disabled:opacity-50"
+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 disabled:opacity-50"
>
{generatingSummary ? <BrailleSpinner /> : <Sparkles size={16} />}
{section?.summary ? 'Regenerate Summary' : 'Generate Summary'}
@@ -395,15 +395,15 @@ export default function TasteTab({ onRefresh }) {
<h2 className="text-xl font-semibold text-white">{section?.label}</h2>
</div>
</div>
- <div className="p-4 bg-green-500/10 border border-green-500/30 rounded-lg mb-4">
+ <div className="p-4 bg-port-success/10 border border-port-success/30 rounded-lg mb-4">
<div className="flex items-center gap-3">
- <Check className="w-5 h-5 text-green-400" />
- <span className="text-green-400">All questions for this section are complete.</span>
+ <Check className="w-5 h-5 text-port-success" />
+ <span className="text-port-success">All questions for this section are complete.</span>
</div>
</div>
{section?.summary && (
- <div className="bg-port-card rounded-lg border border-violet-500/30 p-4 mb-4">
- <h3 className="text-sm font-medium text-violet-400 mb-2 flex items-center gap-2">
+ <div className="bg-port-card rounded-lg border border-port-accent-2/30 p-4 mb-4">
+ <h3 className="text-sm font-medium text-port-accent-2 mb-2 flex items-center gap-2">
<Sparkles size={14} />
AI Summary
</h3>
@@ -423,7 +423,7 @@ export default function TasteTab({ onRefresh }) {
<button
onClick={handleGoDeeper}
disabled={loadingPersonalized || !selectedProvider}
- className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-purple-600 text-white rounded-lg text-sm hover:bg-purple-500 disabled:opacity-50"
+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 disabled:opacity-50"
title={!selectedProvider ? NO_API_PROVIDER_TITLE : ''}
>
{loadingPersonalized ? <BrailleSpinner /> : <Telescope size={16} />}
@@ -439,7 +439,7 @@ export default function TasteTab({ onRefresh }) {
<button
onClick={() => handleGenerateSummary(activeSection)}
disabled={generatingSummary || !selectedProvider}
- className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-violet-600 text-white rounded-lg text-sm hover:bg-violet-500 disabled:opacity-50"
+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 disabled:opacity-50"
title={!selectedProvider ? NO_API_PROVIDER_TITLE : ''}
>
{generatingSummary ? <BrailleSpinner /> : <Sparkles size={16} />}
@@ -497,10 +497,10 @@ export default function TasteTab({ onRefresh }) {
)}
</div>
) : (
- <div className={`bg-port-card rounded-lg border ${currentQuestion?.isPersonalized ? 'border-purple-500/30' : 'border-port-border'} p-6`}>
+ <div className={`bg-port-card rounded-lg border ${currentQuestion?.isPersonalized ? 'border-port-accent-2/30' : 'border-port-border'} p-6`}>
<div className="mb-6">
{currentQuestion?.isPersonalized ? (
- <span className="text-xs px-2 py-0.5 bg-purple-500/20 text-purple-400 rounded uppercase tracking-wider">
+ <span className="text-xs px-2 py-0.5 bg-port-accent-2/20 text-port-accent-2 rounded uppercase tracking-wider">
Personalized — referencing your identity
</span>
) : (
@@ -593,7 +593,7 @@ export default function TasteTab({ onRefresh }) {
<div className="bg-port-card rounded-lg border border-port-border p-6">
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-3">
- <Palette className="w-6 h-6 text-violet-400" />
+ <Palette className="w-6 h-6 text-port-accent-2" />
<h2 className="text-lg font-semibold text-white">Aesthetic Taste Profile</h2>
</div>
<span className="text-gray-400">
@@ -603,7 +603,7 @@ export default function TasteTab({ onRefresh }) {
<div className="h-3 bg-port-border rounded-full overflow-hidden">
<div
- className="h-full bg-gradient-to-r from-violet-500 to-pink-500 transition-all"
+ className="h-full bg-gradient-to-r from-port-accent-2 to-port-accent-2/40 transition-all"
style={{ width: `${profile?.overallPercentage || 0}%` }}
/>
</div>
@@ -627,7 +627,7 @@ export default function TasteTab({ onRefresh }) {
<div
key={section.id}
className={`bg-port-card rounded-lg border transition-all ${
- isComplete ? 'border-green-500/30' : isStarted ? 'border-port-accent/30' : 'border-port-border'
+ isComplete ? 'border-port-success/30' : isStarted ? 'border-port-accent/30' : 'border-port-border'
}`}
>
<button
@@ -639,7 +639,7 @@ export default function TasteTab({ onRefresh }) {
<Icon className={`w-5 h-5 text-${color}-400`} />
</div>
{isComplete ? (
- <Check className="w-5 h-5 text-green-400" />
+ <Check className="w-5 h-5 text-port-success" />
) : (
<ChevronRight className="w-5 h-5 text-gray-500" />
)}
@@ -653,7 +653,7 @@ export default function TasteTab({ onRefresh }) {
{section.progress?.coreAnswered || 0}/{section.progress?.coreTotal || 0} core
{section.progress?.followUpsAnswered > 0 && ` + ${section.progress.followUpsAnswered} follow-ups`}
</span>
- <span className={isComplete ? 'text-green-400' : 'text-gray-500'}>
+ <span className={isComplete ? 'text-port-success' : 'text-gray-500'}>
{section.progress?.percentage || 0}%
</span>
</div>
@@ -661,7 +661,7 @@ export default function TasteTab({ onRefresh }) {
{/* Mini progress bar */}
<div className="h-1 bg-port-border rounded-full mt-2 overflow-hidden">
<div
- className={`h-full transition-all ${isComplete ? 'bg-green-500' : 'bg-port-accent'}`}
+ className={`h-full transition-all ${isComplete ? 'bg-port-success' : 'bg-port-accent'}`}
style={{ width: `${section.progress?.percentage || 0}%` }}
/>
</div>
@@ -685,7 +685,7 @@ export default function TasteTab({ onRefresh }) {
<div className="px-4 pb-3">
<button
onClick={() => setExpandedSummary(expandedSummary === section.id ? null : section.id)}
- className="text-xs text-violet-400 hover:text-violet-300 flex items-center gap-1 py-1"
+ className="text-xs text-port-accent-2 hover:text-port-accent-2/80 flex items-center gap-1 py-1"
>
<Sparkles size={12} />
Summary
@@ -705,9 +705,9 @@ export default function TasteTab({ onRefresh }) {
{/* Overall Summary */}
{profile?.profileSummary && (
- <div className="bg-port-card rounded-lg border border-violet-500/30 p-6">
+ <div className="bg-port-card rounded-lg border border-port-accent-2/30 p-6">
<h3 className="text-lg font-semibold text-white mb-3 flex items-center gap-2">
- <Sparkles className="w-5 h-5 text-violet-400" />
+ <Sparkles className="w-5 h-5 text-port-accent-2" />
Unified Taste Profile
</h3>
<div className="text-sm"><MarkdownOutput content={profile.profileSummary} /></div>
@@ -743,7 +743,7 @@ export default function TasteTab({ onRefresh }) {
<button
onClick={handleGenerateOverallSummary}
disabled={generatingSummary || (profile?.completedCount || 0) === 0}
- className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-violet-600 text-white rounded-lg text-sm hover:bg-violet-500 disabled:opacity-50 whitespace-nowrap"
+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] bg-port-accent-2 text-white rounded-lg text-sm hover:bg-port-accent-2/80 disabled:opacity-50 whitespace-nowrap"
>
{generatingSummary ? <BrailleSpinner /> : <Sparkles size={16} />}
{profile?.profileSummary ? 'Regenerate' : 'Generate Profile'}
@@ -755,7 +755,7 @@ export default function TasteTab({ onRefresh }) {
{/* Info */}
<div className="bg-port-card rounded-lg border border-port-border p-4">
<div className="flex items-start gap-4">
- <Palette className="w-6 h-6 text-violet-400 shrink-0" />
+ <Palette className="w-6 h-6 text-port-accent-2 shrink-0" />
<div>
<h3 className="font-medium text-white mb-1">How the Taste Questionnaire Works</h3>
<p className="text-sm text-gray-400">
diff --git a/client/src/components/digital-twin/tabs/TestTab.jsx b/client/src/components/digital-twin/tabs/TestTab.jsx
index bbc9aa6c40..cc6b3320e1 100644
--- a/client/src/components/digital-twin/tabs/TestTab.jsx
+++ b/client/src/components/digital-twin/tabs/TestTab.jsx
@@ -170,11 +170,11 @@ export default function TestTab({ onRefresh }) {
const getResultIcon = (result) => {
switch (result) {
case 'passed':
- return <CheckCircle className="w-5 h-5 text-green-400" />;
+ return <CheckCircle className="w-5 h-5 text-port-success" />;
case 'failed':
- return <XCircle className="w-5 h-5 text-red-400" />;
+ return <XCircle className="w-5 h-5 text-port-error" />;
case 'partial':
- return <AlertCircle className="w-5 h-5 text-yellow-400" />;
+ return <AlertCircle className="w-5 h-5 text-port-warning" />;
default:
return <Clock className="w-5 h-5 text-gray-400" />;
}
@@ -344,7 +344,7 @@ export default function TestTab({ onRefresh }) {
<button
onClick={generateTests}
disabled={generating || selectedProviders.length === 0}
- className="flex items-center justify-center gap-2 px-4 py-3 min-h-[48px] bg-purple-600 text-white rounded-lg font-medium hover:bg-purple-500 disabled:opacity-50 disabled:cursor-not-allowed"
+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[48px] bg-port-accent-2 text-white rounded-lg font-medium hover:bg-port-accent-2/80 disabled:opacity-50 disabled:cursor-not-allowed"
>
{generating ? (
<>
@@ -368,10 +368,10 @@ export default function TestTab({ onRefresh }) {
{/* Generated Tests */}
{showGenerated && generatedTests.length > 0 && (
- <div className="bg-port-card rounded-lg border border-purple-500/30 overflow-hidden">
+ <div className="bg-port-card rounded-lg border border-port-accent-2/30 overflow-hidden">
<div className="p-4 border-b border-port-border flex items-center justify-between">
<h3 className="font-semibold text-white flex items-center gap-2">
- <Wand2 className="w-5 h-5 text-purple-400" />
+ <Wand2 className="w-5 h-5 text-port-accent-2" />
AI-Generated Tests ({generatedTests.length})
</h3>
<button
@@ -404,11 +404,11 @@ export default function TestTab({ onRefresh }) {
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 text-sm">
<div>
- <div className="text-green-400 text-xs mb-1">Expected Behavior</div>
+ <div className="text-port-success text-xs mb-1">Expected Behavior</div>
<div className="text-gray-400">{test.expectedBehavior}</div>
</div>
<div>
- <div className="text-red-400 text-xs mb-1">Failure Signals</div>
+ <div className="text-port-error text-xs mb-1">Failure Signals</div>
<div className="text-gray-400">{test.failureSignals}</div>
</div>
</div>
@@ -488,8 +488,8 @@ export default function TestTab({ onRefresh }) {
{results.map(r => (
<td key={`${r.providerId}-${r.model}-score`} className="px-4 py-3">
<span className={`text-lg font-bold ${
- r.score >= 0.8 ? 'text-green-400' :
- r.score >= 0.5 ? 'text-yellow-400' : 'text-red-400'
+ r.score >= 0.8 ? 'text-port-success' :
+ r.score >= 0.5 ? 'text-port-warning' : 'text-port-error'
}`}>
{Math.round((r.score || 0) * 100)}%
</span>
@@ -518,11 +518,11 @@ export default function TestTab({ onRefresh }) {
</div>
<div>
<h4 className="text-sm font-medium text-gray-400 mb-1">Expected Behavior</h4>
- <p className="text-green-400 bg-port-card p-3 rounded whitespace-pre-wrap">{test.expectedBehavior}</p>
+ <p className="text-port-success bg-port-card p-3 rounded whitespace-pre-wrap">{test.expectedBehavior}</p>
</div>
<div>
<h4 className="text-sm font-medium text-gray-400 mb-1">Failure Signals</h4>
- <p className="text-red-400 bg-port-card p-3 rounded whitespace-pre-wrap">{test.failureSignals}</p>
+ <p className="text-port-error bg-port-card p-3 rounded whitespace-pre-wrap">{test.failureSignals}</p>
</div>
{/* Model Responses */}
@@ -555,8 +555,8 @@ export default function TestTab({ onRefresh }) {
disabled={!!currentFeedback}
className={`flex items-center gap-1.5 px-3 py-1.5 min-h-[36px] rounded-lg text-xs transition-colors ${
currentFeedback === 'sounds_like_me'
- ? 'bg-green-500/20 text-green-400 border border-green-500/30'
- : 'text-gray-400 border border-port-border hover:text-green-400 hover:border-green-500/30 disabled:opacity-30'
+ ? 'bg-port-success/20 text-port-success border border-port-success/30'
+ : 'text-gray-400 border border-port-border hover:text-port-success hover:border-port-success/30 disabled:opacity-30'
}`}
>
<ThumbsUp size={14} />
@@ -567,8 +567,8 @@ export default function TestTab({ onRefresh }) {
disabled={!!currentFeedback}
className={`flex items-center gap-1.5 px-3 py-1.5 min-h-[36px] rounded-lg text-xs transition-colors ${
currentFeedback === 'not_quite'
- ? 'bg-yellow-500/20 text-yellow-400 border border-yellow-500/30'
- : 'text-gray-400 border border-port-border hover:text-yellow-400 hover:border-yellow-500/30 disabled:opacity-30'
+ ? 'bg-port-warning/20 text-port-warning border border-port-warning/30'
+ : 'text-gray-400 border border-port-border hover:text-port-warning hover:border-port-warning/30 disabled:opacity-30'
}`}
>
<Minus size={14} />
@@ -579,8 +579,8 @@ export default function TestTab({ onRefresh }) {
disabled={!!currentFeedback}
className={`flex items-center gap-1.5 px-3 py-1.5 min-h-[36px] rounded-lg text-xs transition-colors ${
currentFeedback === 'doesnt_sound_like_me'
- ? 'bg-red-500/20 text-red-400 border border-red-500/30'
- : 'text-gray-400 border border-port-border hover:text-red-400 hover:border-red-500/30 disabled:opacity-30'
+ ? 'bg-port-error/20 text-port-error border border-port-error/30'
+ : 'text-gray-400 border border-port-border hover:text-port-error hover:border-port-error/30 disabled:opacity-30'
}`}
>
<ThumbsDown size={14} />
@@ -615,8 +615,8 @@ export default function TestTab({ onRefresh }) {
>
<div className="flex items-center gap-4">
<span className={`text-xl font-bold ${
- run.score >= 0.8 ? 'text-green-400' :
- run.score >= 0.5 ? 'text-yellow-400' : 'text-red-400'
+ run.score >= 0.8 ? 'text-port-success' :
+ run.score >= 0.5 ? 'text-port-warning' : 'text-port-error'
}`}>
{Math.round(run.score * 100)}%
</span>
@@ -640,7 +640,7 @@ export default function TestTab({ onRefresh }) {
{feedbackStats && feedbackStats.totalFeedback > 0 && (
<div className="bg-port-card rounded-lg border border-port-border p-4">
<h3 className="font-semibold text-white mb-4 flex items-center gap-2">
- <TrendingUp size={18} className="text-purple-400" />
+ <TrendingUp size={18} className="text-port-accent-2" />
Identity Validation
</h3>
<div className="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4">
@@ -650,21 +650,21 @@ export default function TestTab({ onRefresh }) {
</div>
<div className="p-3 bg-port-bg rounded-lg text-center">
<div className={`text-2xl font-bold ${
- feedbackStats.validationRate >= 0.7 ? 'text-green-400' :
- feedbackStats.validationRate >= 0.4 ? 'text-yellow-400' : 'text-red-400'
+ feedbackStats.validationRate >= 0.7 ? 'text-port-success' :
+ feedbackStats.validationRate >= 0.4 ? 'text-port-warning' : 'text-port-error'
}`}>
{feedbackStats.validationRate != null ? `${Math.round(feedbackStats.validationRate * 100)}%` : '—'}
</div>
<div className="text-xs text-gray-500">Validation Rate</div>
</div>
<div className="p-3 bg-port-bg rounded-lg text-center">
- <div className="text-2xl font-bold text-green-400">
+ <div className="text-2xl font-bold text-port-success">
{feedbackStats.byValidation?.sounds_like_me || 0}
</div>
<div className="text-xs text-gray-500">Sounds Like Me</div>
</div>
<div className="p-3 bg-port-bg rounded-lg text-center">
- <div className="text-2xl font-bold text-red-400">
+ <div className="text-2xl font-bold text-port-error">
{feedbackStats.byValidation?.doesnt_sound_like_me || 0}
</div>
<div className="text-xs text-gray-500">Not Me</div>
@@ -673,8 +673,8 @@ export default function TestTab({ onRefresh }) {
{feedbackStats.recentTrend && feedbackStats.recentTrend.direction !== 'insufficient_data' && (
<div className={`p-3 rounded-lg text-sm ${
- feedbackStats.recentTrend.direction === 'improving' ? 'bg-green-500/10 text-green-400' :
- feedbackStats.recentTrend.direction === 'declining' ? 'bg-red-500/10 text-red-400' :
+ feedbackStats.recentTrend.direction === 'improving' ? 'bg-port-success/10 text-port-success' :
+ feedbackStats.recentTrend.direction === 'declining' ? 'bg-port-error/10 text-port-error' :
'bg-port-bg text-gray-400'
}`}>
{feedbackStats.recentTrend.direction === 'improving'
diff --git a/client/src/components/digital-twin/tabs/TimeCapsuleTab.jsx b/client/src/components/digital-twin/tabs/TimeCapsuleTab.jsx
index 06405aec75..ecb73c109f 100644
--- a/client/src/components/digital-twin/tabs/TimeCapsuleTab.jsx
+++ b/client/src/components/digital-twin/tabs/TimeCapsuleTab.jsx
@@ -240,9 +240,9 @@ export default function TimeCapsuleTab({ onRefresh: _onRefresh }) {
<span className="text-gray-400 font-medium min-w-[140px] shrink-0">{change.field}</span>
{change.before !== undefined && change.after !== undefined ? (
<span className="text-gray-300">
- <span className="text-red-400">{JSON.stringify(change.before)}</span>
+ <span className="text-port-error">{JSON.stringify(change.before)}</span>
{' → '}
- <span className="text-green-400">{JSON.stringify(change.after)}</span>
+ <span className="text-port-success">{JSON.stringify(change.after)}</span>
</span>
) : (
<span className="text-gray-300">
diff --git a/client/src/components/digital-twin/tabs/ValuesAlignmentPanel.jsx b/client/src/components/digital-twin/tabs/ValuesAlignmentPanel.jsx
index ed88406a21..cceac8bf36 100644
--- a/client/src/components/digital-twin/tabs/ValuesAlignmentPanel.jsx
+++ b/client/src/components/digital-twin/tabs/ValuesAlignmentPanel.jsx
@@ -92,11 +92,11 @@ export default function ValuesAlignmentPanel({ selectedProviders = [], personaId
const getResultIcon = (result) => {
switch (result) {
case 'aligned':
- return <CheckCircle className="w-5 h-5 text-green-400" />;
+ return <CheckCircle className="w-5 h-5 text-port-success" />;
case 'misaligned':
- return <XCircle className="w-5 h-5 text-red-400" />;
+ return <XCircle className="w-5 h-5 text-port-error" />;
case 'partial':
- return <AlertCircle className="w-5 h-5 text-yellow-400" />;
+ return <AlertCircle className="w-5 h-5 text-port-warning" />;
default:
return <Clock className="w-5 h-5 text-gray-400" />;
}
@@ -244,11 +244,11 @@ export default function ValuesAlignmentPanel({ selectedProviders = [], personaId
)}
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm">
<div>
- <div className="text-green-400 text-xs mb-1">Aligned Response</div>
+ <div className="text-port-success text-xs mb-1">Aligned Response</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{dilemma.alignedResponse}</div>
</div>
<div>
- <div className="text-red-400 text-xs mb-1">Misaligned Response</div>
+ <div className="text-port-error text-xs mb-1">Misaligned Response</div>
<div className="text-gray-400 bg-port-card p-3 rounded">{dilemma.misalignedResponse}</div>
</div>
</div>
diff --git a/client/src/components/digital-twin/tabs/VoiceStyleTab.jsx b/client/src/components/digital-twin/tabs/VoiceStyleTab.jsx
index 9ab627f7fc..cd21787a45 100644
--- a/client/src/components/digital-twin/tabs/VoiceStyleTab.jsx
+++ b/client/src/components/digital-twin/tabs/VoiceStyleTab.jsx
@@ -213,9 +213,9 @@ export default function VoiceStyleTab({ onRefresh }) {
{/* Results */}
{result && (
- <div className="bg-port-card rounded-lg border border-green-500/30 p-6 space-y-5">
+ <div className="bg-port-card rounded-lg border border-port-success/30 p-6 space-y-5">
<div className="flex items-center gap-3">
- <GitCompareArrows className="w-6 h-6 text-green-400" />
+ <GitCompareArrows className="w-6 h-6 text-port-success" />
<h2 className="text-lg font-semibold text-white">Comparison</h2>
{result.writtenSource === 'documents' && (
<span className="text-xs text-gray-500">(written style from your documents)</span>