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-meatspace]): remap meatspace/ off-token colors onto port-* tokens

[._.]/ Adam Eivyc1842c044ac3
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 99bd1d096f..51554bc2a1 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -65,6 +65,7 @@
- **[issue-1924] Digital Twin theme consistency** — remapped off-token colors across the Digital Twin UI (overview, identity, enrichment, taste, testing, goals, and the rest of its tabs) onto the existing `--port-*` theme tokens, so status badges, score gradients, and AI-content highlights now follow the active theme instead of staying a fixed hue. Per-platform/per-category color palettes that intentionally differentiate unrelated items (e.g. social-account platform badges, test-category badges) were left as-is. (#1924)
- **[issue-1909] `cos/TerminalCoSPanel.jsx` foreground+background re-themed together** — the panel's background had been intentionally left pinned to a fixed dark hex because the inner content hardcoded light text and status colors, so swapping the background alone onto the (lighter, in day themes) `--port-terminal-bg` token would have rendered light-on-light. The background now uses that token and the inner text uses opacity tiers of the paired `--port-terminal-text` token — blending foreground into background keeps contrast correct whether the active theme's terminal surface is dark or light — while the traffic-light dots, status indicators, log levels, and start/stop buttons move onto the existing `port-success`/`port-warning`/`port-error`/`port-accent` tokens. Refs #1909 — the remainder of the ~900-site sweep stays tracked there.
- **[issue-1924] Chief of Staff panel theme consistency** — remapped off-token colors across the Chief of Staff dashboard (task list, agent cards, memory/learning/productivity/health/digest tabs, schedule editor, terminal event log) onto the existing `--port-*` theme tokens, so status badges, metric highlights, and AI-content accents now follow the active theme instead of staying a fixed blue/green/cyan/purple. Fixed 7-hue category-color palettes that intentionally differentiate unrelated categories — the per-agent-state mood colors (`AGENT_STATES`), the memory-type badge palette (`MEMORY_TYPE_COLORS`), and the workflow-stage palette (`STAGE_COLORS`) — were deliberately left as raw hues; collapsing them onto the ~4-5 available semantic tokens would make several of those categories render identically. Also documented (not yet fixed) a known contrast gap: the mood-color enum's amber "thinking" state is hard to read against light day themes in the 2 consumers with a theme-aware background; a full per-theme fix is blocked because most consumers feed the color straight into three.js material props, which can't resolve CSS custom properties. Refs #1909, Refs #1924 — remaining feature areas (`meatspace/` remainder, `city/`, `ui/`, `goals/`, `brain/`, `apps/`, `pipeline/`, `messages/`, `agents/`, `writers-room/`, `wiki/`, `settings/`, `gsd/`, `voice/`, and the rest of `client/src/pages/`) stay tracked there.
+- **[issue-1924-meatspace] MeatSpace health-tracking theme consistency** — remapped off-token colors across the genome tracker and cognitive-training (POST) drills onto the existing `--port-*` theme tokens: genotype beneficial/typical status badges now follow `port-success`/`port-accent`, and ClinVar severity + genetics-flavored icons and the recurring "Training mode" accent across the POST drill runners now follow `port-accent-2`, so these surfaces stay theme-consistent instead of a fixed green/blue/purple. Per-category color palettes that intentionally differentiate unrelated categories (genome-marker-category cards, cognitive-domain badges, periodic-table element groups, life-calendar event types, and the health-overview tile colors) were left as-is. Refs #1924 — the remaining feature areas stay tracked there.
## UX & Accessibility
diff --git a/client/src/components/meatspace/GenomeCategoryCard.jsx b/client/src/components/meatspace/GenomeCategoryCard.jsx
index 0e6d551eb1..cab71d58fc 100644
--- a/client/src/components/meatspace/GenomeCategoryCard.jsx
+++ b/client/src/components/meatspace/GenomeCategoryCard.jsx
@@ -4,8 +4,8 @@ import InlineConfirmRow from '../ui/InlineConfirmRow';
import { useConfirmDelete } from '../../hooks/useConfirmDelete';
const STATUS_DOT = {
- beneficial: 'bg-green-400',
- typical: 'bg-blue-400',
+ beneficial: 'bg-port-success',
+ typical: 'bg-port-accent',
concern: 'bg-yellow-400',
major_concern: 'bg-red-400',
not_found: 'bg-gray-500'
@@ -20,8 +20,8 @@ const STATUS_LABEL = {
};
const STATUS_BADGE = {
- beneficial: { bg: 'bg-green-500/20', text: 'text-green-400', border: 'border-green-500/30' },
- typical: { bg: 'bg-blue-500/20', text: 'text-blue-400', border: 'border-blue-500/30' },
+ beneficial: { bg: 'bg-port-success/20', text: 'text-port-success', border: 'border-port-success/30' },
+ typical: { bg: 'bg-port-accent/20', text: 'text-port-accent', border: 'border-port-accent/30' },
concern: { bg: 'bg-yellow-500/20', text: 'text-yellow-400', border: 'border-yellow-500/30' },
major_concern: { bg: 'bg-red-500/20', text: 'text-red-400', border: 'border-red-500/30' },
not_found: { bg: 'bg-gray-500/20', text: 'text-gray-400', border: 'border-gray-500/30' }
@@ -76,7 +76,7 @@ export default function GenomeCategoryCard({ category: _category, label, emoji,
</div>
<div className="flex items-center gap-3">
<div className="flex gap-1.5 text-xs">
- {statusSummary.beneficial > 0 && <span className="text-green-400">{statusSummary.beneficial} good</span>}
+ {statusSummary.beneficial > 0 && <span className="text-port-success">{statusSummary.beneficial} good</span>}
{statusSummary.concern > 0 && <span className="text-yellow-400">{statusSummary.concern} concern</span>}
{statusSummary.major_concern > 0 && <span className="text-red-400">{statusSummary.major_concern} major</span>}
</div>
@@ -145,7 +145,7 @@ export default function GenomeCategoryCard({ category: _category, label, emoji,
{/* What this means — friendly description */}
{marker.description && (
<div className={`p-2.5 rounded-lg ${
- marker.status === 'beneficial' ? 'bg-green-500/5 border border-green-500/20' :
+ marker.status === 'beneficial' ? 'bg-port-success/5 border border-port-success/20' :
marker.status === 'major_concern' ? 'bg-red-500/5 border border-red-500/20' :
marker.status === 'concern' ? 'bg-yellow-500/5 border border-yellow-500/20' :
'bg-port-card/50 border border-port-border/50'
diff --git a/client/src/components/meatspace/post/PostDrillConfig.jsx b/client/src/components/meatspace/post/PostDrillConfig.jsx
index 8d1ff2c310..d6f3e836e7 100644
--- a/client/src/components/meatspace/post/PostDrillConfig.jsx
+++ b/client/src/components/meatspace/post/PostDrillConfig.jsx
@@ -246,13 +246,13 @@ export default function PostDrillConfig({ config, onSaved, onBack }) {
{/* LLM Drills Section */}
<div className="flex items-center justify-between mt-6">
<div className="flex items-center gap-2">
- <Brain size={16} className="text-purple-400" />
+ <Brain size={16} className="text-port-accent-2" />
<h3 className="text-sm font-medium text-gray-500 uppercase tracking-wider">Wit & Memory (LLM)</h3>
</div>
<button
onClick={() => setLlmEnabled(!llmEnabled)}
className={`w-10 h-5 rounded-full transition-colors relative ${
- llmEnabled ? 'bg-purple-500' : 'bg-port-border'
+ llmEnabled ? 'bg-port-accent-2' : 'bg-port-border'
}`}
>
<div className={`absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform ${
@@ -264,7 +264,7 @@ export default function PostDrillConfig({ config, onSaved, onBack }) {
{llmEnabled && (
<>
{/* Provider & Model Selection */}
- <div className="bg-port-card border border-purple-500/30 rounded-lg p-4">
+ <div className="bg-port-card border border-port-accent-2/30 rounded-lg p-4">
<h4 className="text-sm font-medium text-gray-400 mb-3">AI Provider</h4>
<div className="grid grid-cols-2 gap-3">
<div>
@@ -303,7 +303,7 @@ export default function PostDrillConfig({ config, onSaved, onBack }) {
return (
<div key={type} className={`bg-port-card border rounded-lg p-4 transition-colors ${
- enabled ? 'border-purple-500/30' : 'border-port-border/50 opacity-60'
+ enabled ? 'border-port-accent-2/30' : 'border-port-border/50 opacity-60'
}`}>
<div className="flex items-center justify-between mb-3">
<div>
@@ -313,7 +313,7 @@ export default function PostDrillConfig({ config, onSaved, onBack }) {
<button
onClick={() => toggleLlmDrill(type)}
className={`w-10 h-5 rounded-full transition-colors relative ${
- enabled ? 'bg-purple-500' : 'bg-port-border'
+ enabled ? 'bg-port-accent-2' : 'bg-port-border'
}`}
>
<div className={`absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform ${
diff --git a/client/src/components/meatspace/post/PostDrillRunner.jsx b/client/src/components/meatspace/post/PostDrillRunner.jsx
index 6eefe311c9..7695c32174 100644
--- a/client/src/components/meatspace/post/PostDrillRunner.jsx
+++ b/client/src/components/meatspace/post/PostDrillRunner.jsx
@@ -95,7 +95,7 @@ export default function PostDrillRunner({ session }) {
return (
<div className="max-w-lg mx-auto space-y-6">
<div className="flex items-center justify-between text-sm text-gray-400">
- <span className="text-purple-400">{DRILL_LABELS[currentDrill.type] || currentDrill.type} — Training</span>
+ <span className="text-port-accent-2">{DRILL_LABELS[currentDrill.type] || currentDrill.type} — Training</span>
<span>Drill {currentDrillIndex + 1} of {drillCount}</span>
</div>
@@ -130,7 +130,7 @@ export default function PostDrillRunner({ session }) {
<button
onClick={acknowledgeAnswer}
autoFocus
- className="w-full px-6 py-3 bg-purple-600 hover:bg-purple-500 text-white font-medium rounded-lg transition-colors"
+ className="w-full px-6 py-3 bg-port-accent-2 hover:bg-port-accent-2/80 text-white font-medium rounded-lg transition-colors"
>
Next
</button>
@@ -141,7 +141,7 @@ export default function PostDrillRunner({ session }) {
<span>{Math.round(progressPct)}%</span>
</div>
<div className="w-full h-1.5 bg-port-border rounded-full overflow-hidden">
- <div className="h-full bg-purple-500/60 transition-all" style={{ width: `${progressPct}%` }} />
+ <div className="h-full bg-port-accent-2/60 transition-all" style={{ width: `${progressPct}%` }} />
</div>
</div>
</div>
@@ -152,7 +152,7 @@ export default function PostDrillRunner({ session }) {
<div className="max-w-lg mx-auto space-y-6">
{/* Drill header */}
<div className="flex items-center justify-between text-sm text-gray-400">
- <span className={isTraining ? 'text-purple-400' : ''}>
+ <span className={isTraining ? 'text-port-accent-2' : ''}>
{DRILL_LABELS[currentDrill.type] || currentDrill.type}
{isTraining && ' — Training'}
</span>
@@ -199,7 +199,7 @@ export default function PostDrillRunner({ session }) {
<button
type="submit"
disabled={inputValue.trim() === ''}
- className={`px-6 py-3 ${isTraining ? 'bg-purple-600 hover:bg-purple-500' : 'bg-port-accent hover:bg-port-accent/80'} disabled:opacity-50 text-white font-medium rounded-lg transition-colors`}
+ className={`px-6 py-3 ${isTraining ? 'bg-port-accent-2 hover:bg-port-accent-2/80' : 'bg-port-accent hover:bg-port-accent/80'} disabled:opacity-50 text-white font-medium rounded-lg transition-colors`}
>
Enter
</button>
@@ -223,7 +223,7 @@ export default function PostDrillRunner({ session }) {
</div>
<div className="w-full h-1.5 bg-port-border rounded-full overflow-hidden">
<div
- className={`h-full ${isTraining ? 'bg-purple-500/60' : 'bg-port-accent/60'} transition-all`}
+ className={`h-full ${isTraining ? 'bg-port-accent-2/60' : 'bg-port-accent/60'} transition-all`}
style={{ width: `${progressPct}%` }}
/>
</div>
diff --git a/client/src/components/meatspace/post/PostLlmDrillRunner.jsx b/client/src/components/meatspace/post/PostLlmDrillRunner.jsx
index b69d5a4a2c..c72648aecd 100644
--- a/client/src/components/meatspace/post/PostLlmDrillRunner.jsx
+++ b/client/src/components/meatspace/post/PostLlmDrillRunner.jsx
@@ -208,7 +208,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
return (
<div className="max-w-lg mx-auto space-y-6">
<div className="flex items-center justify-between text-sm text-gray-400">
- <span className="text-purple-400">{DRILL_LABELS[drillType] || drillType} — Training</span>
+ <span className="text-port-accent-2">{DRILL_LABELS[drillType] || drillType} — Training</span>
<span>Drill {drillIndex + 1} of {drillCount}</span>
</div>
<AILoadingIndicator label="Evaluating your response..." />
@@ -223,7 +223,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
return (
<div className="max-w-lg mx-auto space-y-6">
<div className="flex items-center justify-between text-sm text-gray-400">
- <span className="text-purple-400">{DRILL_LABELS[drillType] || drillType} — Training</span>
+ <span className="text-port-accent-2">{DRILL_LABELS[drillType] || drillType} — Training</span>
<span>Drill {drillIndex + 1} of {drillCount}</span>
</div>
<div className="text-center py-6">
@@ -237,7 +237,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
<button
onClick={acknowledgeTrainingFeedback}
autoFocus
- className="w-full px-6 py-3 bg-purple-600 hover:bg-purple-500 text-white font-medium rounded-lg transition-colors"
+ className="w-full px-6 py-3 bg-port-accent-2 hover:bg-port-accent-2/80 text-white font-medium rounded-lg transition-colors"
>
Next
</button>
@@ -246,7 +246,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
<span>Prompt {questionIndex + 1} of {totalPrompts}</span>
</div>
<div className="w-full h-1.5 bg-port-border rounded-full overflow-hidden">
- <div className="h-full bg-purple-500/60 transition-all" style={{ width: `${((questionIndex + 1) / totalPrompts) * 100}%` }} />
+ <div className="h-full bg-port-accent-2/60 transition-all" style={{ width: `${((questionIndex + 1) / totalPrompts) * 100}%` }} />
</div>
</div>
</div>
@@ -257,7 +257,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
<div className="max-w-lg mx-auto space-y-6">
{/* Header */}
<div className="flex items-center justify-between text-sm text-gray-400">
- <span className={isTraining ? 'text-purple-400' : ''}>
+ <span className={isTraining ? 'text-port-accent-2' : ''}>
{DRILL_LABELS[drillType] || drillType}
{isTraining && ' — Training'}
</span>
@@ -400,7 +400,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
label="Imagine this scenario"
prompt={currentPrompt?.prompt}
badge={currentPrompt?.category}
- badgeColor="bg-cyan-500/20 text-cyan-400"
+ badgeColor="bg-port-accent/20 text-port-accent"
placeholder="Describe what would happen..."
inputValue={inputValue}
setInputValue={setInputValue}
@@ -432,7 +432,7 @@ export default function PostLlmDrillRunner({ drill, timeLimitSec, drillIndex, dr
<div className="text-sm text-gray-500 mb-3">Write a micro-story using all 3 words:</div>
<div className="flex justify-center gap-3">
{(currentPrompt?.words || []).map((w, i) => (
- <span key={i} className="px-3 py-1.5 bg-indigo-500/20 text-indigo-400 rounded-lg text-lg font-medium">{w}</span>
+ <span key={i} className="px-3 py-1.5 bg-port-accent-2/20 text-port-accent-2 rounded-lg text-lg font-medium">{w}</span>
))}
</div>
</div>
@@ -708,7 +708,7 @@ function PunWordplayUI({ challenge, inputValue, setInputValue, onSubmit, inputRe
<>
<div className="bg-port-card border border-port-border rounded-lg p-6 text-center">
<div className="text-sm text-gray-500 mb-3">
- {challenge?.type && <span className="inline-block px-2 py-0.5 rounded text-xs mr-2 bg-purple-500/20 text-purple-400">{challenge.type}</span>}
+ {challenge?.type && <span className="inline-block px-2 py-0.5 rounded text-xs mr-2 bg-port-accent-2/20 text-port-accent-2">{challenge.type}</span>}
Create wordplay
</div>
<p className="text-white text-lg leading-relaxed">{challenge?.prompt}</p>
diff --git a/client/src/components/meatspace/post/PostSessionLauncher.jsx b/client/src/components/meatspace/post/PostSessionLauncher.jsx
index 0c7083fa13..195a64e007 100644
--- a/client/src/components/meatspace/post/PostSessionLauncher.jsx
+++ b/client/src/components/meatspace/post/PostSessionLauncher.jsx
@@ -197,7 +197,7 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, o
{enabledLlmDrills.length > 0 && (
<div className="bg-port-card border border-port-border rounded-lg p-4">
<div className="flex items-center gap-2 mb-3">
- <Brain size={14} className="text-purple-400" />
+ <Brain size={14} className="text-port-accent-2" />
<h3 className="text-sm font-medium text-gray-400">Wit & Memory</h3>
{(llmProviderId || providers.length > 0) && (
<span className="text-xs text-gray-600 ml-auto">
@@ -244,7 +244,7 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, o
onClick={() => setMode('train')}
className={`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${
mode === 'train'
- ? 'bg-purple-600 text-white'
+ ? 'bg-port-accent-2 text-white'
: 'bg-port-bg border border-port-border text-gray-400 hover:text-white'
}`}
>
@@ -286,7 +286,7 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, o
disabled={!hasAnyDrills}
className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${
mode === 'train'
- ? 'bg-purple-600 hover:bg-purple-500'
+ ? 'bg-port-accent-2 hover:bg-port-accent-2/80'
: 'bg-port-success hover:bg-port-success/80'
} disabled:opacity-50 disabled:cursor-not-allowed text-white font-medium rounded-lg transition-colors`}
>
@@ -299,7 +299,7 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, o
disabled={!hasAnyDrills}
className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${
mode === 'train'
- ? 'bg-purple-600/70 hover:bg-purple-500/70'
+ ? 'bg-port-accent-2/70 hover:bg-port-accent-2/80'
: 'bg-port-accent hover:bg-port-accent/80'
} disabled:opacity-50 disabled:cursor-not-allowed text-white font-medium rounded-lg transition-colors`}
>
diff --git a/client/src/components/meatspace/post/PostSessionResults.jsx b/client/src/components/meatspace/post/PostSessionResults.jsx
index 71ec4cc889..a68bcf417d 100644
--- a/client/src/components/meatspace/post/PostSessionResults.jsx
+++ b/client/src/components/meatspace/post/PostSessionResults.jsx
@@ -19,11 +19,11 @@ export default function PostSessionResults({ session, tags = {}, onSaved, onBack
{/* Overall Score */}
<div className="text-center py-8">
<div className="flex items-center justify-center gap-3 mb-2">
- {isTraining ? <Dumbbell size={28} className="text-purple-400" /> : <CheckCircle size={28} className={scoreColor} />}
+ {isTraining ? <Dumbbell size={28} className="text-port-accent-2" /> : <CheckCircle size={28} className={scoreColor} />}
<span className="text-sm text-gray-400">{isTraining ? 'Training Session' : 'Session Score'}</span>
</div>
{isTraining ? (
- <div className="text-2xl text-purple-400 font-medium">Practice Complete</div>
+ <div className="text-2xl text-port-accent-2 font-medium">Practice Complete</div>
) : (
<div className={`text-6xl font-mono font-bold ${scoreColor}`}>
{sessionScore}
@@ -138,7 +138,7 @@ export default function PostSessionResults({ session, tags = {}, onSaved, onBack
<button
onClick={handleSave}
className={`w-full flex items-center justify-center gap-2 px-6 py-3 ${
- isTraining ? 'bg-purple-600 hover:bg-purple-500' : 'bg-port-success hover:bg-port-success/80'
+ isTraining ? 'bg-port-accent-2 hover:bg-port-accent-2/80' : 'bg-port-success hover:bg-port-success/80'
} text-white font-medium rounded-lg transition-colors`}
>
{isTraining ? <Dumbbell size={18} /> : <Save size={18} />}
diff --git a/client/src/components/meatspace/post/WordplayDrillUI.jsx b/client/src/components/meatspace/post/WordplayDrillUI.jsx
index be0e2aa9c6..f5a220e51c 100644
--- a/client/src/components/meatspace/post/WordplayDrillUI.jsx
+++ b/client/src/components/meatspace/post/WordplayDrillUI.jsx
@@ -9,7 +9,7 @@ const LOADING_MESSAGES = [
'Almost ready...',
];
-export function AILoadingIndicator({ label, color = 'text-purple-400' }) {
+export function AILoadingIndicator({ label, color = 'text-port-accent-2' }) {
const [elapsed, setElapsed] = useState(0);
useEffect(() => {
@@ -152,7 +152,7 @@ export function BridgeWordUI({ puzzle, inputValue, setInputValue, onSubmit, inpu
<div className="text-sm text-gray-500 mb-3">Find the word that fills all blanks:</div>
<div className="flex flex-col items-center gap-2">
{(puzzle?.clues || []).map((clue, i) => (
- <span key={i} className="px-4 py-2 bg-purple-500/20 text-purple-300 rounded-lg text-lg font-mono">{clue}</span>
+ <span key={i} className="px-4 py-2 bg-port-accent-2/20 text-port-accent-2 rounded-lg text-lg font-mono">{clue}</span>
))}
</div>
<div className="text-xs text-gray-600 mt-3 italic">One word completes all the blanks above</div>
@@ -270,7 +270,7 @@ export function IdiomTwistUI({ challenge, inputValue, setInputValue, onSubmit, i
<p className="text-white text-lg leading-relaxed italic mb-3">"{challenge?.idiom}"</p>
<div className="flex items-center justify-center gap-2">
<span className="text-gray-500">New domain:</span>
- <span className="px-3 py-1 bg-cyan-500/20 text-cyan-400 rounded-lg font-medium">{challenge?.domain}</span>
+ <span className="px-3 py-1 bg-port-accent/20 text-port-accent rounded-lg font-medium">{challenge?.domain}</span>
</div>
<ExampleHint example={challenge?.example} />
{challenge?.difficulty && <div className="mt-3"><DifficultyBadge difficulty={challenge.difficulty} /></div>}
diff --git a/client/src/components/meatspace/tabs/AgeTab.jsx b/client/src/components/meatspace/tabs/AgeTab.jsx
index 0418d4445d..0aa73fea78 100644
--- a/client/src/components/meatspace/tabs/AgeTab.jsx
+++ b/client/src/components/meatspace/tabs/AgeTab.jsx
@@ -141,7 +141,7 @@ export default function AgeTab() {
{latestEpigenetic ? (
<div className="bg-port-card border border-port-border rounded-xl p-6">
<div className="flex items-center gap-2 mb-4">
- <Dna size={18} className="text-purple-400" />
+ <Dna size={18} className="text-port-accent-2" />
<h3 className="text-sm font-medium text-gray-400 uppercase tracking-wider">Epigenetic Age</h3>
<ProvenanceChip
level="experimental"
diff --git a/client/src/components/meatspace/tabs/BodyTab.jsx b/client/src/components/meatspace/tabs/BodyTab.jsx
index 6b057850f8..96b761f9e8 100644
--- a/client/src/components/meatspace/tabs/BodyTab.jsx
+++ b/client/src/components/meatspace/tabs/BodyTab.jsx
@@ -104,7 +104,7 @@ export default function BodyTab() {
<div>
<div className="flex items-center justify-between mb-3">
<div className="flex items-center gap-2">
- <Eye size={18} className="text-blue-400" />
+ <Eye size={18} className="text-port-accent" />
<h3 className="text-sm font-medium text-gray-400 uppercase tracking-wider">
Eye Prescriptions ({eyeLoading ? '...' : eyeExams.length})
</h3>
diff --git a/client/src/components/meatspace/tabs/GenomeTab.jsx b/client/src/components/meatspace/tabs/GenomeTab.jsx
index b3052f8c07..05d38e8fa2 100644
--- a/client/src/components/meatspace/tabs/GenomeTab.jsx
+++ b/client/src/components/meatspace/tabs/GenomeTab.jsx
@@ -98,17 +98,17 @@ const CATEGORY_META = {
const STAR_LABELS = ['No criteria', 'Single submitter', 'Multiple submitters', 'Expert panel', 'Practice guideline'];
const STATUS_FILTERS = [
- { key: 'beneficial', label: 'Beneficial', active: 'bg-green-500/20 text-green-400 border border-green-500/30', inactive: 'bg-port-card border border-port-border text-green-400/60 hover:text-green-400' },
- { key: 'typical', label: 'Typical', active: 'bg-blue-500/20 text-blue-400 border border-blue-500/30', inactive: 'bg-port-card border border-port-border text-blue-400/60 hover:text-blue-400' },
+ { key: 'beneficial', label: 'Beneficial', active: 'bg-port-success/20 text-port-success border border-port-success/30', inactive: 'bg-port-card border border-port-border text-port-success/60 hover:text-port-success' },
+ { key: 'typical', label: 'Typical', active: 'bg-port-accent/20 text-port-accent border border-port-accent/30', inactive: 'bg-port-card border border-port-border text-port-accent/60 hover:text-port-accent' },
{ key: 'concern', label: 'Concern', active: 'bg-yellow-500/20 text-yellow-400 border border-yellow-500/30', inactive: 'bg-port-card border border-port-border text-yellow-400/60 hover:text-yellow-400' },
{ key: 'major_concern', label: 'Major Concern', active: 'bg-red-500/20 text-red-400 border border-red-500/30', inactive: 'bg-port-card border border-port-border text-red-400/60 hover:text-red-400' }
];
const SEVERITY_LABELS = {
pathogenic: { label: 'Pathogenic', bg: 'bg-red-500/20', text: 'text-red-400', border: 'border-red-500/30' },
- drug_response: { label: 'Drug Response', bg: 'bg-purple-500/20', text: 'text-purple-400', border: 'border-purple-500/30' },
+ drug_response: { label: 'Drug Response', bg: 'bg-port-accent-2/20', text: 'text-port-accent-2', border: 'border-port-accent-2/30' },
risk_factor: { label: 'Risk Factor', bg: 'bg-yellow-500/20', text: 'text-yellow-400', border: 'border-yellow-500/30' },
- protective: { label: 'Protective', bg: 'bg-green-500/20', text: 'text-green-400', border: 'border-green-500/30' }
+ protective: { label: 'Protective', bg: 'bg-port-success/20', text: 'text-port-success', border: 'border-port-success/30' }
};
export default function GenomeTab() {
@@ -355,7 +355,7 @@ export default function GenomeTab() {
return (
<div className="space-y-6">
<div className="text-center space-y-2">
- <Dna className="w-12 h-12 text-purple-400 mx-auto" />
+ <Dna className="w-12 h-12 text-port-accent-2 mx-auto" />
<h2 className="text-xl font-bold text-white">Genome Data</h2>
<p className="text-gray-400">Upload your 23andMe raw data export to track health and longevity markers.</p>
</div>
@@ -694,7 +694,7 @@ export default function GenomeTab() {
<button
onClick={handleClinvarSync}
disabled={clinvarSyncing}
- className="flex items-center gap-2 px-3 py-2 bg-purple-500/20 text-purple-400 border border-purple-500/30 rounded hover:bg-purple-500/30 transition-colors disabled:opacity-50 text-sm"
+ className="flex items-center gap-2 px-3 py-2 bg-port-accent-2/20 text-port-accent-2 border border-port-accent-2/30 rounded hover:bg-port-accent-2/30 transition-colors disabled:opacity-50 text-sm"
>
{clinvarSyncing ? <BrailleSpinner /> : <Download size={14} />}
{clinvarSyncing ? 'Syncing...' : 'Sync ClinVar Database'}
@@ -708,7 +708,7 @@ export default function GenomeTab() {
<button
onClick={handleClinvarScan}
disabled={clinvarScanning}
- className="flex items-center gap-2 px-3 py-2 bg-purple-500/20 text-purple-400 border border-purple-500/30 rounded hover:bg-purple-500/30 transition-colors disabled:opacity-50 text-sm"
+ className="flex items-center gap-2 px-3 py-2 bg-port-accent-2/20 text-port-accent-2 border border-port-accent-2/30 rounded hover:bg-port-accent-2/30 transition-colors disabled:opacity-50 text-sm"
>
{clinvarScanning ? <BrailleSpinner /> : <Search size={14} />}
{clinvarScanning ? 'Scanning...' : 'Scan Against ClinVar'}
@@ -726,7 +726,7 @@ export default function GenomeTab() {
{/* Sync progress */}
{clinvarProgress && (
- <div className="flex items-center gap-2 p-3 rounded bg-purple-500/10 border border-purple-500/20 text-sm text-purple-300">
+ <div className="flex items-center gap-2 p-3 rounded bg-port-accent-2/10 border border-port-accent-2/20 text-sm text-port-accent-2">
<BrailleSpinner />
{clinvarProgress}
</div>
@@ -751,12 +751,12 @@ export default function GenomeTab() {
</span>
)}
{clinvarResults.bySeverity.drug_response > 0 && (
- <span className="px-2 py-1 rounded bg-purple-500/10 text-purple-400 border border-purple-500/20">
+ <span className="px-2 py-1 rounded bg-port-accent-2/10 text-port-accent-2 border border-port-accent-2/20">
{clinvarResults.bySeverity.drug_response} drug response
</span>
)}
{clinvarResults.bySeverity.protective > 0 && (
- <span className="px-2 py-1 rounded bg-green-500/10 text-green-400 border border-green-500/20">
+ <span className="px-2 py-1 rounded bg-port-success/10 text-port-success border border-port-success/20">
{clinvarResults.bySeverity.protective} protective
</span>
)}
@@ -909,7 +909,7 @@ export default function GenomeTab() {
<div className="text-xs text-gray-500 flex gap-4">
<span>Chr {searchResult.chromosome}</span>
<span>Pos {searchResult.position}</span>
- {searchResult.curated && <span className="text-purple-400">Curated marker</span>}
+ {searchResult.curated && <span className="text-port-accent-2">Curated marker</span>}
</div>
{searchResult.description && (
<p className="text-sm text-gray-400">{searchResult.description}</p>
@@ -955,10 +955,10 @@ function StatCard({ label, value, statusCounts }) {
{statusCounts && (
<div className="flex flex-wrap gap-1.5 mt-2">
{statusCounts.beneficial > 0 && (
- <span className="text-[10px] text-green-400">{statusCounts.beneficial} beneficial</span>
+ <span className="text-[10px] text-port-success">{statusCounts.beneficial} beneficial</span>
)}
{statusCounts.typical > 0 && (
- <span className="text-[10px] text-blue-400">{statusCounts.typical} typical</span>
+ <span className="text-[10px] text-port-accent">{statusCounts.typical} typical</span>
)}
{statusCounts.concern > 0 && (
<span className="text-[10px] text-yellow-400">{statusCounts.concern} concern</span>
@@ -977,8 +977,8 @@ function StatCard({ label, value, statusCounts }) {
function StatusBadgeInline({ status }) {
const styles = {
- beneficial: 'bg-green-500/20 text-green-400 border-green-500/30',
- typical: 'bg-blue-500/20 text-blue-400 border-blue-500/30',
+ beneficial: 'bg-port-success/20 text-port-success border-port-success/30',
+ typical: 'bg-port-accent/20 text-port-accent border-port-accent/30',
concern: 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30',
major_concern: 'bg-red-500/20 text-red-400 border-red-500/30',
not_found: 'bg-gray-500/20 text-gray-400 border-gray-500/30'
diff --git a/client/src/components/meatspace/tabs/PostTab.jsx b/client/src/components/meatspace/tabs/PostTab.jsx
index fd60a8f39e..81d3f19e84 100644
--- a/client/src/components/meatspace/tabs/PostTab.jsx
+++ b/client/src/components/meatspace/tabs/PostTab.jsx
@@ -98,7 +98,7 @@ export default function PostTab({ tab = 'launcher', subtab }) {
if (session.state === 'loading' && isLlmDrill) {
return (
<div className="flex flex-col items-center justify-center h-64 gap-3">
- <Loader size={32} className="text-purple-400 animate-spin" />
+ <Loader size={32} className="text-port-accent animate-spin" />
<div className="text-gray-400">Processing {currentDrillConfig?.type ? currentDrillConfig.type.replace(/-/g, ' ') : 'drill'}...</div>
</div>
);