diff --git a/web/src/components/ChecklistContentView.tsx b/web/src/components/ChecklistContentView.tsx index 7b7c560..b26a6cd 100644 --- a/web/src/components/ChecklistContentView.tsx +++ b/web/src/components/ChecklistContentView.tsx @@ -65,11 +65,14 @@ export default function ChecklistContentView({ const isCompleted = status === 'completed' return ( -
+
+
+ {/* The article sits on its own paper card, centered, off the module's tinted background. */} +
@@ -81,7 +84,7 @@ export default function ChecklistContentView({
-
+
{content.body.map((block, i) => ( ))} @@ -125,6 +128,8 @@ export default function ChecklistContentView({ ) : }
+
+
) } diff --git a/web/src/components/contentBlocks.constants.ts b/web/src/components/contentBlocks.constants.ts index 28a24d9..885d6c5 100644 --- a/web/src/components/contentBlocks.constants.ts +++ b/web/src/components/contentBlocks.constants.ts @@ -3,10 +3,12 @@ * so contentBlocks.tsx can stay component-only (Vite Fast Refresh). */ -export const CALLOUT_VARIANT: Record = { - info: { color: '#1D7FC4', bg: '#E8F0F8', icon: 'i' }, - tip: { color: '#2D9E72', bg: '#ECF6F0', icon: '*' }, - warning: { color: '#C47A12', bg: '#FFF3E0', icon: '!' }, +// No fixed light background: the callout tints itself from `color`, so it +// reads in dark mode too (a hex tint there left its light text unreadable). +export const CALLOUT_VARIANT: Record = { + info: { color: '#1D7FC4', icon: 'i' }, + tip: { color: '#2D9E72', icon: '*' }, + warning: { color: '#C47A12', icon: '!' }, } export const TYPE_BADGE_META: Record = { diff --git a/web/src/components/contentBlocks.tsx b/web/src/components/contentBlocks.tsx index c6c892e..c304bc6 100644 --- a/web/src/components/contentBlocks.tsx +++ b/web/src/components/contentBlocks.tsx @@ -255,7 +255,7 @@ export function ContentBlockRenderer({ block, accentColor }: { block: ContentBlo case 'callout': { const v = CALLOUT_VARIANT[block.variant] ?? CALLOUT_VARIANT.info return ( -
+
{v.icon}