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

refactor(writers-room): centralize sepia paper color, hoist label class, drop no-op

Adam Eivy39cf61a6e3c8
diff --git a/client/src/components/writers-room/AiPanel.jsx b/client/src/components/writers-room/AiPanel.jsx
index a22b5f3d76..46b940309c 100644
--- a/client/src/components/writers-room/AiPanel.jsx
+++ b/client/src/components/writers-room/AiPanel.jsx
@@ -221,13 +221,14 @@ export default function AiPanel({ work, onApplyFormat, readingTheme = 'dark' })
function EvaluateResult({ result, readingTheme = 'dark' }) {
if (!result) return null;
const light = readingTheme === 'light';
+ const labelCls = `uppercase text-[9px] ${light ? 'text-gray-600' : 'text-gray-500'}`;
return (
- <div className={`space-y-2 text-[11px] rounded p-2 ${light ? 'bg-[#f5f1e8] text-gray-900' : 'text-gray-300'}`}>
- {result.logline && <div><span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Logline</span><div className="italic">{result.logline}</div></div>}
- {result.summary && <div><span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Summary</span><div>{result.summary}</div></div>}
+ <div className={`space-y-2 text-[11px] rounded p-2 ${light ? 'bg-[var(--wr-reading-paper)] text-gray-900' : 'text-gray-300'}`}>
+ {result.logline && <div><span className={labelCls}>Logline</span><div className="italic">{result.logline}</div></div>}
+ {result.summary && <div><span className={labelCls}>Summary</span><div>{result.summary}</div></div>}
{result.themes?.length > 0 && (
<div>
- <span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Themes</span>
+ <span className={labelCls}>Themes</span>
<div className="flex flex-wrap gap-1 mt-0.5">
{result.themes.map((t, i) => (
<span key={i} className={`px-1.5 py-0.5 border rounded text-[10px] ${light ? 'bg-white border-gray-300 text-gray-800' : 'bg-port-card border-port-border'}`}>{t}</span>
@@ -237,7 +238,7 @@ function EvaluateResult({ result, readingTheme = 'dark' }) {
)}
{result.strengths?.length > 0 && (
<div>
- <span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Strengths</span>
+ <span className={labelCls}>Strengths</span>
<ul className={`list-disc list-inside space-y-0.5 mt-0.5 ${light ? 'text-gray-800' : 'text-gray-400'}`}>
{result.strengths.map((s, i) => <li key={i}>{s}</li>)}
</ul>
@@ -245,7 +246,7 @@ function EvaluateResult({ result, readingTheme = 'dark' }) {
)}
{result.issues?.length > 0 && (
<div>
- <span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Issues</span>
+ <span className={labelCls}>Issues</span>
<ul className="space-y-1 mt-0.5">
{result.issues.map((iss, i) => (
<li key={i} className={`pl-2 border-l-2 ${SEVERITY_COLOR[iss.severity] || SEVERITY_COLOR.minor}`}>
@@ -259,7 +260,7 @@ function EvaluateResult({ result, readingTheme = 'dark' }) {
)}
{result.suggestions?.length > 0 && (
<div>
- <span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Suggestions</span>
+ <span className={labelCls}>Suggestions</span>
<ul className="space-y-1 mt-0.5">
{result.suggestions.map((s, i) => (
<li key={i} className="pl-2 border-l-2 border-port-accent/40">
@@ -278,10 +279,11 @@ function FormatResult({ result, onApply, readingTheme = 'dark' }) {
const text = result?.formattedBody || '';
if (!text) return <div className="text-gray-500">Format pass returned no text.</div>;
const light = readingTheme === 'light';
+ const labelCls = `uppercase text-[9px] ${light ? 'text-gray-600' : 'text-gray-500'}`;
return (
<div className="space-y-2 text-[11px]">
<div className="flex items-center justify-between">
- <span className={light ? 'text-gray-600 uppercase text-[9px]' : 'text-gray-500 uppercase text-[9px]'}>Cleaned prose ({text.length.toLocaleString()} chars)</span>
+ <span className={labelCls}>Cleaned prose ({text.length.toLocaleString()} chars)</span>
<button
onClick={() => onApply?.(text)}
className="flex items-center gap-1 px-2 py-1 bg-port-accent text-white rounded text-[10px] hover:bg-port-accent/80"
@@ -291,7 +293,7 @@ function FormatResult({ result, onApply, readingTheme = 'dark' }) {
</button>
</div>
<pre className={`whitespace-pre-wrap font-serif border rounded p-2 max-h-64 overflow-y-auto ${
- light ? 'text-gray-900 bg-[#f5f1e8] border-gray-300' : 'text-gray-300 bg-port-bg border-port-border'
+ light ? 'text-gray-900 bg-[var(--wr-reading-paper)] border-gray-300' : 'text-gray-300 bg-port-bg border-port-border'
}`}>{text}</pre>
</div>
);
@@ -541,7 +543,7 @@ function SceneCard({ scene, workId, analysisId, workTitle, imageCfg = WR_IMAGE_D
return (
<div className={`border rounded p-2 space-y-1.5 ${
- light ? 'border-gray-300 bg-[#f5f1e8] text-gray-900' : 'border-port-border bg-port-card/40'
+ light ? 'border-gray-300 bg-[var(--wr-reading-paper)] text-gray-900' : 'border-port-border bg-port-card/40'
}`}>
<div className="flex items-start gap-2">
<div className="flex-1 min-w-0">
diff --git a/client/src/components/writers-room/WorkEditor.jsx b/client/src/components/writers-room/WorkEditor.jsx
index 05bcba4e52..b31d49f0cd 100644
--- a/client/src/components/writers-room/WorkEditor.jsx
+++ b/client/src/components/writers-room/WorkEditor.jsx
@@ -304,15 +304,14 @@ export default function WorkEditor({ work, onChange }) {
// to our value), and set the matching text color the same way for
// visual consistency across themes.
style={readingTheme === 'light'
- ? { '--port-input-bg': '#f5f1e8', color: '#1a1a1a' }
+ ? { '--port-input-bg': 'var(--wr-reading-paper)', color: '#1a1a1a' }
: undefined}
className="w-full h-full resize-none px-6 py-6 font-serif text-base leading-relaxed focus:outline-none"
spellCheck
/>
<div
- style={readingTheme === 'light' ? { backgroundColor: 'rgba(245, 241, 232, 0.85)' } : undefined}
className={`absolute bottom-2 right-3 flex items-center gap-3 text-[11px] px-2 py-1 rounded ${
- readingTheme === 'light' ? 'text-gray-700' : 'text-gray-500 bg-port-bg/80'
+ readingTheme === 'light' ? 'text-gray-700 bg-[var(--wr-reading-paper)]/85' : 'text-gray-500 bg-port-bg/80'
}`}
>
<span>{wordCount.toLocaleString()} words</span>
diff --git a/client/src/index.css b/client/src/index.css
index 70f6d689f4..0616541979 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -31,6 +31,10 @@
--port-text-muted: 163 163 163;
--port-control-text: 212 212 216;
--port-focus-ring: 59 130 246;
+ /* Writers Room "light reading" theme — sepia paper tone used by the prose
+ textarea, the AI panel's Evaluate/Format/Adapt result containers, and
+ the per-scene cards. Centralized so the shade can be tweaked once. */
+ --wr-reading-paper: #f5f1e8;
--port-bg-alpha: 1;
--port-card-alpha: 1;
--port-border-alpha: 1;
@@ -437,7 +441,6 @@ html[data-port-theme="blueprint-ops"] header :is(h1, h2, h3) {
:is(input, textarea, select, [contenteditable="true"], [contenteditable=""]):focus-visible {
outline: 1px solid rgb(var(--port-focus-ring) / 0.35);
outline-offset: 0;
- box-shadow: none;
}
/* Accessibility: Remove focus outline for mouse users while keeping it for keyboard */