Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(academy,docs): neutralize editorial grays; guides keep warm paper

Sidwebworks9773a0f15d00
diff --git a/apps/academy/app/components/SiteHeader.tsx b/apps/academy/app/components/SiteHeader.tsx
index d741e88f34..ffa6de389a 100644
--- a/apps/academy/app/components/SiteHeader.tsx
+++ b/apps/academy/app/components/SiteHeader.tsx
@@ -31,8 +31,8 @@ export function SiteHeader({ mobileNav }: { mobileNav?: ReactNode }) {
<header
className="fixed inset-x-0 top-0 z-[60] h-16"
style={{
- background: "#F5F5F2",
- borderBottom: "1px solid #E8E7E6",
+ background: "#F5F5F5",
+ borderBottom: "1px solid #E8E8E8",
boxShadow: "0 1px 0 0 #fff"
}}
>
diff --git a/apps/academy/app/routes/course+/$moduleId.$courseId.tsx b/apps/academy/app/routes/course+/$moduleId.$courseId.tsx
index bbeb483368..1a088c46dd 100644
--- a/apps/academy/app/routes/course+/$moduleId.$courseId.tsx
+++ b/apps/academy/app/routes/course+/$moduleId.$courseId.tsx
@@ -106,7 +106,7 @@ export default function CourseRoute() {
</p>
<div className="mt-6 flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-ed-hairline pt-5">
- <div className="flex items-center gap-5 font-mono text-ed-12 text-ed-ink/50">
+ <div className="flex items-center gap-5 font-mono text-ed-12 text-ed-ink/70">
<span>{formatDuration(totalDuration)}</span>
<span>
{progress.lessonsTotal} lesson
@@ -285,7 +285,7 @@ function LessonRow({
{name}
</span>
</span>
- <span className="shrink-0 font-mono text-ed-12 text-ed-ink/45">
+ <span className="shrink-0 font-mono text-ed-12 text-ed-ink/60">
{formatDuration(duration)}
</span>
</Link>
diff --git a/apps/academy/app/routes/lesson+/$id.tsx b/apps/academy/app/routes/lesson+/$id.tsx
index 287373c81c..350716924b 100644
--- a/apps/academy/app/routes/lesson+/$id.tsx
+++ b/apps/academy/app/routes/lesson+/$id.tsx
@@ -293,7 +293,7 @@ export default function LessonRoute() {
<LessonThumb completed={isCompleted} className="w-12" />
<span className="truncate">{topicLesson.name}</span>
</span>
- <span className="shrink-0 font-mono text-ed-11 text-ed-ink/40">
+ <span className="shrink-0 font-mono text-ed-11 text-ed-ink/60">
{formatDuration(topicLesson.duration)}
</span>
</Link>
diff --git a/apps/academy/app/styles/editorial-tokens.css b/apps/academy/app/styles/editorial-tokens.css
index d4a60fc7c7..4c339f225f 100644
--- a/apps/academy/app/styles/editorial-tokens.css
+++ b/apps/academy/app/styles/editorial-tokens.css
@@ -14,29 +14,29 @@
--color-ed-ink: #262323;
--color-ed-ink-78: rgba(38, 35, 35, 0.86);
--color-ed-ink-66: rgba(38, 35, 35, 0.74);
- --color-ed-ink-60: rgba(38, 35, 35, 0.68);
- --color-ed-ink-45: rgba(38, 35, 35, 0.52);
- --color-ed-hairline: #e7e7e3;
- --color-ed-paper: #fbfbf8;
- --color-ed-svg-line: #d8d7d2;
+ --color-ed-ink-60: rgba(38, 35, 35, 0.6);
+ --color-ed-ink-45: rgba(38, 35, 35, 0.45);
+ --color-ed-hairline: #e7e7e7;
+ --color-ed-paper: #fbfbfb;
+ --color-ed-svg-line: #d8d8d8;
--color-ed-brand: #00b0ff;
--color-ed-brand-ink: #1e84b0;
--color-ed-accent-fill: #eaf8ff;
--color-ed-amber-fill: #fff2d8;
--color-ed-amber-stroke: #e6cfa3;
--color-ed-amber-text: #9c7136;
- --color-ed-header: #f1f1ec; /* table header strip */
- --color-ed-inset: #f6f6f1; /* expanded row panel */
+ --color-ed-header: #f1f1f1; /* table header strip */
+ --color-ed-inset: #f6f6f6; /* expanded row panel */
--color-ed-row-hover: rgba(38, 35, 35, 0.025); /* row hover */
/* Warm-gray ramp + status + dark-surface + link families. Light-only. */
- --color-ed-warm-100: #f5f5f2;
- --color-ed-warm-150: #ecece7;
- --color-ed-warm-300: #e3e3df;
- --color-ed-warm-400: #dadad5;
- --color-ed-warm-500: #d2d2cc;
- --color-ed-text-faint: #c9c9c5;
- --color-ed-text-muted: #9a9a96;
+ --color-ed-warm-100: #f5f5f5;
+ --color-ed-warm-150: #ececec;
+ --color-ed-warm-300: #e3e3e3;
+ --color-ed-warm-400: #dadada;
+ --color-ed-warm-500: #d2d2d2;
+ --color-ed-text-faint: #c9c9c9;
+ --color-ed-text-muted: #9a9a9a;
--color-ed-graphite: #4b4b4a;
--color-ed-dark-bg: #1b1b1a;
--color-ed-dark-surface: #262624;
diff --git a/apps/academy/app/styles/editorial.css b/apps/academy/app/styles/editorial.css
index a57b72dcb4..58747b5f99 100644
--- a/apps/academy/app/styles/editorial.css
+++ b/apps/academy/app/styles/editorial.css
@@ -118,7 +118,7 @@
.reference-desc {
font-size: 1.0625rem;
line-height: 1.6;
- color: rgba(38, 35, 35, 0.72);
+ color: rgba(38, 35, 35, 0.78);
}
/* Editorial reading rhythm for prose bodies (lesson description, about copy). */
diff --git a/apps/academy/app/styles/tailwind.css b/apps/academy/app/styles/tailwind.css
index f0db1017b2..08e97c934c 100644
--- a/apps/academy/app/styles/tailwind.css
+++ b/apps/academy/app/styles/tailwind.css
@@ -16,37 +16,37 @@
/* Warm paper editorial palette — matches the docs Guide (#F5F5F2 paper, #262323 ink).
* @carbon/react components (dropdowns, toasts, auth forms) read these tokens, so they
* pick up the warm surface automatically. Light-only. */
- --background: 60 11% 95%;
+ --background: 0 0% 96%;
--foreground: 0 4% 14%;
- --card: 60 33% 98%;
+ --card: 0 0% 99%;
--card-foreground: 0 4% 14%;
- --popover: 60 20% 99%;
+ --popover: 0 0% 99%;
--popover-foreground: 0 4% 14%;
- --active: 60 8% 90%;
+ --active: 0 0% 90%;
--active-foreground: 0 4% 14%;
--primary: 0 4% 14%;
- --primary-foreground: 60 11% 96%;
- --secondary: 60 9% 93%;
+ --primary-foreground: 0 0% 96%;
+ --secondary: 0 0% 93%;
--secondary-foreground: 0 4% 14%;
- --muted: 60 9% 93%;
- --muted-foreground: 24 4% 44%;
- --accent: 60 8% 90%;
+ --muted: 0 0% 93%;
+ --muted-foreground: 0 0% 44%;
+ --accent: 0 0% 90%;
--accent-foreground: 0 4% 14%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 98%;
- --border: 60 8% 90%;
- --input: 60 8% 90%;
+ --border: 0 0% 90%;
+ --input: 0 0% 90%;
--ring: 0 4% 30%;
--success: 142 60% 40%;
--success-foreground: 0 0% 98%;
--radius: 0.5rem;
- --sidebar-background: 60 33% 98%;
+ --sidebar-background: 0 0% 99%;
--sidebar-foreground: 0 4% 26%;
--sidebar-primary: 0 4% 14%;
- --sidebar-primary-foreground: 60 11% 96%;
- --sidebar-accent: 60 8% 90%;
+ --sidebar-primary-foreground: 0 0% 96%;
+ --sidebar-accent: 0 0% 90%;
--sidebar-accent-foreground: 0 4% 14%;
- --sidebar-border: 60 8% 90%;
+ --sidebar-border: 0 0% 90%;
--sidebar-ring: 199 100% 50%;
/* Editorial highlight accent — the docs #00B0FF blue. */
diff --git a/docs/app/global.css b/docs/app/global.css
index b8e79da92f..6f113c27da 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -25,26 +25,26 @@
* Next app has no React Router root route to inject them at runtime. */
:root {
/* Warm paper editorial palette — matches the Guide (#F5F5F2 paper, #262323 ink). */
- --background: 60 11% 95%;
+ --background: 0 0% 96%;
--foreground: 0 4% 14%;
- --card: 60 33% 98%;
+ --card: 0 0% 99%;
--card-foreground: 0 4% 14%;
- --popover: 60 20% 99%;
+ --popover: 0 0% 99%;
--popover-foreground: 0 4% 14%;
- --active: 60 8% 90%;
+ --active: 0 0% 90%;
--active-foreground: 0 4% 14%;
--primary: 0 4% 14%;
- --primary-foreground: 60 11% 96%;
- --secondary: 60 9% 93%;
+ --primary-foreground: 0 0% 96%;
+ --secondary: 0 0% 93%;
--secondary-foreground: 0 4% 14%;
- --muted: 60 9% 93%;
- --muted-foreground: 24 4% 44%;
- --accent: 60 8% 90%;
+ --muted: 0 0% 93%;
+ --muted-foreground: 0 0% 44%;
+ --accent: 0 0% 90%;
--accent-foreground: 0 4% 14%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 98%;
- --border: 60 8% 90%;
- --input: 60 8% 90%;
+ --border: 0 0% 90%;
+ --input: 0 0% 90%;
--ring: 0 4% 30%;
--success: 142 60% 40%;
--success-foreground: 0 0% 98%;
@@ -99,29 +99,29 @@
--color-ed-ink-66: rgba(38, 35, 35, 0.66);
--color-ed-ink-60: rgba(38, 35, 35, 0.6);
--color-ed-ink-45: rgba(38, 35, 35, 0.45);
- --color-ed-hairline: #e7e7e3;
- --color-ed-paper: #fbfbf8;
- --color-ed-svg-line: #d8d7d2;
+ --color-ed-hairline: #e7e7e7;
+ --color-ed-paper: #fbfbfb;
+ --color-ed-svg-line: #d8d8d8;
--color-ed-brand: #00b0ff;
--color-ed-brand-ink: #1e84b0;
--color-ed-accent-fill: #eaf8ff;
--color-ed-amber-fill: #fff2d8;
--color-ed-amber-stroke: #e6cfa3;
--color-ed-amber-text: #9c7136;
- --color-ed-header: #f1f1ec; /* table header strip */
- --color-ed-inset: #f6f6f1; /* expanded row panel */
+ --color-ed-header: #f1f1f1; /* table header strip */
+ --color-ed-inset: #f6f6f6; /* expanded row panel */
--color-ed-row-hover: rgba(38, 35, 35, 0.025); /* row hover */
/* Long-tail editorial palette (Tier B). Warm-gray ramp consolidates a dozen
* near-identical border/surface grays into 5 stops; status + dark-surface +
* link families replace one-off hex literals. Light-only, like the set above. */
- --color-ed-warm-100: #f5f5f2; /* warm-gray ramp: lightest surface … */
- --color-ed-warm-150: #ecece7;
- --color-ed-warm-300: #e3e3df;
- --color-ed-warm-400: #dadad5;
- --color-ed-warm-500: #d2d2cc; /* … darkest hairline */
- --color-ed-text-faint: #c9c9c5; /* faint placeholder text */
- --color-ed-text-muted: #9a9a96; /* muted secondary text */
+ --color-ed-warm-100: #f5f5f5; /* warm-gray ramp: lightest surface … */
+ --color-ed-warm-150: #ececec;
+ --color-ed-warm-300: #e3e3e3;
+ --color-ed-warm-400: #dadada;
+ --color-ed-warm-500: #d2d2d2; /* … darkest hairline */
+ --color-ed-text-faint: #c9c9c9; /* faint placeholder text */
+ --color-ed-text-muted: #9a9a9a; /* muted secondary text */
--color-ed-graphite: #4b4b4a; /* mid-gray text (used with opacity) */
--color-ed-dark-bg: #1b1b1a; /* inverted/code surfaces */
--color-ed-dark-surface: #262624;
diff --git a/docs/app/layout.tsx b/docs/app/layout.tsx
index ea702c4c0e..16643dce42 100644
--- a/docs/app/layout.tsx
+++ b/docs/app/layout.tsx
@@ -66,7 +66,7 @@ export const metadata: Metadata = {
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
- themeColor: "#F5F5F2"
+ themeColor: "#F5F5F5"
};
// Prerender likely-next pages on hover (~200ms) so in-site navigation feels instant.
diff --git a/docs/app/manifest.ts b/docs/app/manifest.ts
index d8c2e48df1..2c79b7fe41 100644
--- a/docs/app/manifest.ts
+++ b/docs/app/manifest.ts
@@ -8,8 +8,8 @@ export default function manifest(): MetadataRoute.Manifest {
"Technical documentation for Carbon — a manufacturing system for the office (ERP) and the floor (MES).",
start_url: "/",
display: "standalone",
- background_color: "#F5F5F2",
- theme_color: "#F5F5F2",
+ background_color: "#F5F5F5",
+ theme_color: "#F5F5F5",
icons: [
{ src: "/carbon-mark-light.svg", sizes: "any", type: "image/svg+xml" }
]
diff --git a/docs/app/reference.css b/docs/app/reference.css
index 1260e49a00..f3e7885958 100644
--- a/docs/app/reference.css
+++ b/docs/app/reference.css
@@ -19,7 +19,7 @@
.reference-desc {
font-size: 1.0625rem !important;
line-height: 1.6;
- color: rgba(38, 35, 35, 0.62) !important;
+ color: rgba(38, 35, 35, 0.78) !important;
}
/* ── Body headings ─────────────────────────────────────────────────────────── */
@@ -41,7 +41,7 @@
.prose :where(p, li):not(:where([class~="not-prose"] *)) {
font-size: 0.97rem;
line-height: 1.72;
- color: rgba(38, 35, 35, 0.78);
+ color: rgba(38, 35, 35, 0.86);
}
/* ── Custom dot bullets (matches the Guide's list style) ───────────────────── */
diff --git a/docs/components/editorial/how-to-layout.tsx b/docs/components/editorial/how-to-layout.tsx
index 5143cb931e..dd5e39a593 100644
--- a/docs/components/editorial/how-to-layout.tsx
+++ b/docs/components/editorial/how-to-layout.tsx
@@ -122,7 +122,7 @@ export function HowToLayout({ bodies }: { bodies: ReactNode[] }) {
const nextInFlow = flowChapters[posInFlow + 1];
return (
- <main className="min-h-screen bg-ed-paper" style={{ paddingTop: "116px" }}>
+ <main className="min-h-screen bg-[#fbfbf8]" style={{ paddingTop: "116px" }}>
<MobileContextBar chapter={currentChapter.title} section={currentChapter.items[active.item]?.title} />
<div className="mx-auto flex w-full max-w-360 px-5">
{/* Sidebar (desktop) — sticky, self-start so it tracks the page scroll instead
diff --git a/docs/components/editorial/site-header.tsx b/docs/components/editorial/site-header.tsx
index f9d6f553e8..c5a93863c7 100644
--- a/docs/components/editorial/site-header.tsx
+++ b/docs/components/editorial/site-header.tsx
@@ -24,9 +24,9 @@ export function SiteHeader() {
<header
className="site-header fixed top-0 left-0 right-0 z-[201] flex justify-center"
style={{
- background: "#F5F5F2",
+ background: "#F5F5F5",
borderBottom: "1px solid",
- borderColor: "#E8E7E6",
+ borderColor: "#E8E8E8",
boxShadow: "0 1px 0 0 #fff",
}}
>
diff --git a/docs/components/main-header.tsx b/docs/components/main-header.tsx
index b7c4b8feb6..2328d1582d 100644
--- a/docs/components/main-header.tsx
+++ b/docs/components/main-header.tsx
@@ -20,7 +20,12 @@ export function MainHeader({ active, mobileNav }: { active?: Active; mobileNav?:
return (
<header
className="fixed inset-x-0 top-0 z-[60] h-16"
- style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}
+ style={{
+ // Guides keeps the warm paper chrome; every other surface is neutral.
+ background: active === "guides" ? "#F5F5F2" : "#F5F5F5",
+ borderBottom: `1px solid ${active === "guides" ? "#E8E7E6" : "#E8E8E8"}`,
+ boxShadow: "0 1px 0 0 #fff"
+ }}
>
{/* Inner row capped to the content width so the logo/CTA don't drift to the
screen edges on large displays — aligns with the docs/api/mcp containers. */}