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(mcp-docs): heading weights to 500 + plain grey CTA card in dark mode

Gaurav Bhattcd75e864eab6
diff --git a/apps/erp/app/routes/mcp+/components/Cta.tsx b/apps/erp/app/routes/mcp+/components/Cta.tsx
index 3f8e798665..e1759bf87f 100644
--- a/apps/erp/app/routes/mcp+/components/Cta.tsx
+++ b/apps/erp/app/routes/mcp+/components/Cta.tsx
@@ -1,13 +1,31 @@
-import { Button } from "@carbon/react";
+import { Button, useMode } from "@carbon/react";
+import { useEffect, useState } from "react";
import { useInViewClass } from "../hooks/useInViewClass";
import { goToQuickstart } from "./quickstart-nav";
export function Cta() {
const ref = useInViewClass<HTMLElement>();
+ // Read the real <html> .dark class (useMode lags the toggle), and track toggles.
+ const [isDark, setIsDark] = useState(useMode() === "dark");
+ useEffect(() => {
+ const html = document.documentElement;
+ const update = () => setIsDark(html.classList.contains("dark"));
+ update();
+ const observer = new MutationObserver(update);
+ observer.observe(html, { attributes: true, attributeFilter: ["class"] });
+ return () => observer.disconnect();
+ }, []);
+
return (
<section ref={ref} className="reveal relative py-[54px] scroll-mt-20">
- <div className="bg-muted bg-[url(/cta.webp)] bg-cover bg-center border border-border rounded-[14px] px-[24px] py-[50px] text-center">
- <h2 className="font-semibold tracking-[-0.035em] leading-[1.05] m-0 mb-[8px] text-foreground [text-wrap:balance] text-[clamp(1.8rem,2.8vw,2.4rem)]">
+ <div
+ className={
+ isDark
+ ? "bg-muted bg-cover bg-center border border-border rounded-[14px] px-[24px] py-[50px] text-center"
+ : "bg-muted bg-[url(/cta.webp)] bg-cover bg-center border border-border rounded-[14px] px-[24px] py-[50px] text-center"
+ }
+ >
+ <h2 className="font-medium tracking-[-0.035em] leading-[1.05] m-0 mb-[8px] text-foreground [text-wrap:balance] text-[clamp(1.8rem,2.8vw,2.4rem)]">
Build something with Carbon
</h2>
<p className="text-muted-foreground m-0 mb-[20px]">
diff --git a/apps/erp/app/routes/mcp+/components/Lede.tsx b/apps/erp/app/routes/mcp+/components/Lede.tsx
index ff258b0263..dd044b73e0 100644
--- a/apps/erp/app/routes/mcp+/components/Lede.tsx
+++ b/apps/erp/app/routes/mcp+/components/Lede.tsx
@@ -6,14 +6,16 @@ import { goToQuickstart } from "./quickstart-nav";
export function Lede({ total }: { total: number }) {
return (
<div className="pb-[10px] mb-12">
- <h1 className="font-bold tracking-[-0.045em] text-[clamp(2.7rem,5.2vw,4.1rem)] leading-[0.98] m-0 mb-4 [text-wrap:balance]">
+ <h1 className="font-medium tracking-[-0.045em] text-[clamp(2.7rem,5.2vw,4.1rem)] leading-[0.98] m-0 mb-4 [text-wrap:balance]">
Carbon MCP server
</h1>
<p className="text-muted-foreground max-w-[58ch] m-0 mb-[18px] text-[1.0625rem] [text-wrap:pretty]">
Connect Claude, ChatGPT, Cursor, or any MCP client to Carbon. It gets{" "}
- <b>{total.toLocaleString()} tools</b> across 15 modules — sales orders,
- production jobs, inventory, purchasing, quality — and you drive them in
- plain language.
+ <span className="font-medium text-foreground">
+ {total.toLocaleString()} tools
+ </span>{" "}
+ across 15 modules — sales orders, production jobs, inventory,
+ purchasing, quality — and you drive them in plain language.
</p>
<div className="inline-flex items-center gap-[11px] bg-card border border-border rounded-[11px] py-[7px] pr-[7px] pl-[13px] mb-4 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_6px_18px_-10px_rgba(0,0,0,0.12)]">
<span className="font-[var(--mono)] text-[0.65rem] font-bold text-[var(--acc)] border border-[var(--acc)] py-[3px] px-[7px] rounded-[5px]">
diff --git a/apps/erp/app/routes/mcp+/components/Section.tsx b/apps/erp/app/routes/mcp+/components/Section.tsx
index 4c03b6595a..5672dd4ec7 100644
--- a/apps/erp/app/routes/mcp+/components/Section.tsx
+++ b/apps/erp/app/routes/mcp+/components/Section.tsx
@@ -25,7 +25,7 @@ export function Section({
<span className="text-[var(--acc)] font-medium">{fig}</span> · {label}
</div>
{title && (
- <h2 className="font-semibold tracking-[-0.03em] text-[clamp(1.5rem,2.2vw,1.9rem)] leading-[1.12] mb-[9px] text-balance">
+ <h2 className="font-medium tracking-[-0.03em] text-[clamp(1.5rem,2.2vw,1.9rem)] leading-[1.12] mb-[9px] text-balance">
{title}
</h2>
)}
diff --git a/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx b/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx
index f6accdfc35..39b8743336 100644
--- a/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx
+++ b/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx
@@ -18,7 +18,7 @@ export function WhatYouCanAsk() {
</div>
{/* Heading */}
<h2
- className="font-semibold tracking-[-0.03em] leading-[1.12] m-0 mb-[9px] text-white [text-wrap:balance]"
+ className="font-medium tracking-[-0.03em] leading-[1.12] m-0 mb-[9px] text-white [text-wrap:balance]"
style={{ fontSize: "1.6rem" }}
>
What you can ask