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.

docs: update font to geist

Brad Barbinbb1c7711ef54
diff --git a/package-lock.json b/package-lock.json
index 43ae17ed3e..506f4d9c72 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12856,6 +12856,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/geist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/geist/-/geist-1.2.0.tgz",
+ "integrity": "sha512-RZsgCkGnSi1IV1Ozg3s6Ou4r/jzLff9+47ChjpJ5yX8ncEC/RwdStGwhdFzDcnSv0xU0+9J/fTX5Kht0NajTXA==",
+ "peerDependencies": {
+ "next": "^13.2 || ^14"
+ }
+ },
"node_modules/generic-names": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/generic-names/-/generic-names-4.0.0.tgz",
@@ -26777,6 +26785,7 @@
"dependencies": {
"clsx": "2.0.0",
"framer-motion": "^10.13.1",
+ "geist": "1.2.0",
"next": "^13.4.16",
"nextra": "^2.5.2",
"nextra-theme-docs": "^2.5.2",
diff --git a/www/components/features.tsx b/www/components/features.tsx
index f1784a0fa4..9d7eb838b2 100644
--- a/www/components/features.tsx
+++ b/www/components/features.tsx
@@ -9,49 +9,61 @@ const features = [
{
name: "High-Performance",
icon: GiSpeedometer,
+ description:
+ "Built on best open-source technologies for incredible performance and security.",
},
{
name: "Open Source",
icon: HiCode,
+ description:
+ "Unlike other open-source ERPs, you can use Carbon to build your own proprietary systems.",
},
{
- name: "Cloud Native",
+ name: "Serverless Architecture",
icon: GoSync,
- },
- {
- name: "Single Tenant",
- icon: HiFingerPrint,
+ description:
+ "So you can focus on your business systems, not your infrastructure.",
},
{
name: "Realtime",
icon: BsLightningCharge,
+ description: "All data can be updated in realtime across applications.",
},
{
name: "Manufacturing",
icon: TbBuildingFactory2,
+ description: "Carbon has first-class support for American manufacturing.",
+ },
+ {
+ name: "Single Tenant",
+ icon: HiFingerPrint,
+ description:
+ "You're not sharing databases with other companies. Your data is yours.",
},
-];
+] as const;
-function Features() {
+function Features({ showIcons = false }) {
return (
<>
<div className="grid grid-cols-1 gap-6 my-12 sm:grid-cols-2 md:grid-cols-3 ">
{features.map(({ icon: Icon, ...feature }, i) => (
<div
- className="backdrop-blur-sm flex items-center p-8 space-x-4 bg-black/[0.03] hover:bg-black/[0.05] dark:bg-zinc-900 dark:hover:bg-zinc-800/50 sm:-inset-x-6 rounded-md shadow-lg"
+ className="flex items-start p-8 space-x-4 backdrop-blur-sm bg-black/[0.03] hover:bg-black/[0.05] dark:bg-zinc-900 dark:hover:bg-zinc-800/50 sm:-inset-x-6 rounded-md shadow-sm hover:scale-105 hover:translate hover:shadow-xl transition-all duration-300 ease-in-out"
key={feature.name.split(" ").join("-")}
>
- <div>
+ {showIcons && (
<Icon
- className="block w-8 h-8"
+ className="mt-0.5 block w-8 h-8"
style={{ height: 24, width: 24 }}
aria-hidden="true"
/>
- </div>
- <div>
- <div className="my-0 font-medium dark:text-white">
- {feature.name}
- </div>
+ )}
+
+ <div className="flex flex-col space-y-2">
+ <h2 className="font-semibold dark:text-white">{feature.name}</h2>
+ <p className="font-medium dark:text-white text-sm">
+ {feature.description}
+ </p>
</div>
</div>
))}
diff --git a/www/components/pages/Home.tsx b/www/components/pages/Home.tsx
index 052d71ceeb..83d9912bfc 100644
--- a/www/components/pages/Home.tsx
+++ b/www/components/pages/Home.tsx
@@ -40,7 +40,7 @@ function Hero() {
width={width}
render={({ progress }) => {
const blur = {
- filter: `blur(${progress * 3}px)`,
+ filter: `blur(${progress * 2}px)`,
opacity: 1 - progress * 1.4,
};
@@ -66,10 +66,10 @@ function Hero() {
duration: 2.5,
ease: "easeInOut",
}}
- className="max-w-5xl mx-auto nx-text-6xl font-extrabold tracking-tighter leading-[1.1] text-6xl sm:text-7xl lg:nx-text-8xl xl:nx-text-8xl"
+ className="max-w-5xl mx-auto nx-text-6xl font-extrabold tracking-tighter leading-tighter text-6xl sm:text-7xl lg:nx-text-8xl xl:nx-text-8xl"
>
ERP for{" "}
- <span className="bg-gradient-to-r from-amber-500 via-orange-600 to-yellow-500 dark:from-purple-100 dark:via-purple-200 dark:to-orange-200 bg-clip-text text-transparent">
+ <span className="bg-gradient-to-r from-black via-orange-600 to-amber-500 dark:from-white dark:via-purple-300 dark:to-orange-300 bg-clip-text text-transparent">
the builders
</span>
</motion.h1>
@@ -82,7 +82,7 @@ function Hero() {
}}
className="mt-6 nx-text-xl font-medium leading-tight text-black/60 dark:text-white/60 sm:nx-text-2xl md:nx-text-3xl lg:nx-text-4xl"
>
- Carbon is an open-source starting point for business planning
+ Carbon is an open-source starting point for resource planning
</motion.p>
</div>
<div
@@ -126,9 +126,9 @@ function Overview() {
return (
<motion.section id="overview" className="relative" {...fadeIn}>
<div className="px-4 py-16 mx-auto sm:pt-20 sm:pb-24 lg:max-w-7xl lg:pt-24">
- <h2 className="nx-text-4xl font-extrabold tracking-tight lg:nx-text-5xl xl:nx-text-6xl lg:text-center dark:text-white">
+ <h2 className="nx-text-4xl font-extrabold tracking-tighter lg:nx-text-5xl xl:nx-text-6xl lg:text-center dark:text-white">
The{" "}
- <span className="bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-100 dark:via-purple-200 dark:to-orange-200 bg-clip-text text-transparent">
+ <span className="bg-gradient-to-r from-purple-600 to-pink-600 dark:from-white dark:to-white bg-clip-text text-transparent">
open core
</span>{" "}
for your digital operations
@@ -138,12 +138,55 @@ function Overview() {
to build your own proprietary business systems with the best in
modern, open-source software.
</p>
- <Features />
+ <Features showIcons />
</div>
</motion.section>
);
}
+function OpenSource() {
+ return (
+ <section id="open-source" className="relative">
+ <div className="relative mt-20 border-t border-gray-200 dark:border-gray-900 bg-white/10 dark:bg-black/10 py-20 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] dark:shadow-[inset_10px_-50px_94px_0_rgb(50,50,50,0.2)] backdrop-blur">
+ <div className="mx-auto w-full lg:max-w-7xl px-2.5">
+ <div className="mx-auto text-center">
+ <h2 className="text-gray-800 dark:text-white font-display text-4xl font-extrabold leading-tight sm:text-5xl sm:leading-tight tracking-tighter">
+ Join the movement
+ </h2>
+ <p className="mt-5 text-gray-600 dark:text-gray-300 sm:text-lg font-medium">
+ Our source code is available on GitHub - feel free to use, modify,
+ or contribute!
+ </p>
+ </div>
+ <div className="flex items-center justify-center py-10">
+ <a
+ href="https://github.com/barbinbrad/carbon"
+ target="_blank"
+ rel="noreferrer"
+ >
+ <div className="flex items-center">
+ <div className="flex h-10 items-center space-x-2 rounded-md border border-gray-600 dark:border-none bg-gray-800 dark:bg-black p-6">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="20"
+ height="20"
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ className="h-5 w-5 text-white"
+ >
+ <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"></path>
+ </svg>
+ <p className="font-medium text-white">Star</p>
+ </div>
+ </div>
+ </a>
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+}
+
export default function Home() {
return (
<>
@@ -159,6 +202,7 @@ export default function Home() {
<Gradient />
<Hero />
<Overview />
+ <OpenSource />
</section>
</>
);
diff --git a/www/components/sticky.tsx b/www/components/sticky.tsx
index f589aef17b..a3f89117d9 100644
--- a/www/components/sticky.tsx
+++ b/www/components/sticky.tsx
@@ -19,23 +19,28 @@ const Sticky = ({ render, cover, height, width }: StickyProps) => {
offset: ["start", "end start"],
});
+ const isMobile = width < 768;
+
const [progress, setProgress] = useState(0);
useMotionValueEvent(scrollYProgress, "change", (latest) => {
- console.log(width);
- if (width < 768) return;
+ if (isMobile) return;
setProgress(latest);
});
return (
<div ref={ref} data-component="sticky">
- <div className="relative h-screen" style={{ height: height * 1.5 }}>
+ <div
+ className="relative h-screen"
+ style={{ height: isMobile ? height : height * 1.5 }}
+ >
<div className="h-full">
<div
className={clsx(
- "flex justify-center items-center overflow-x-hidden sticky top-0 left-0 right-0 z-[1] min-h-[initial] w-full",
+ "flex justify-center items-center overflow-x-hidden z-[1] min-h-[initial] w-full",
{
"h-screen overflow-y-hidden": cover,
"h-[initial]": !cover,
+ "sticky top-0 left-0 right-0": !isMobile,
}
)}
>
diff --git a/www/next.config.js b/www/next.config.js
index c262a9fade..0918793996 100644
--- a/www/next.config.js
+++ b/www/next.config.js
@@ -6,4 +6,5 @@ const withNextra = require("nextra")({
module.exports = withNextra({
reactStrictMode: true,
+ transpilePackages: ["geist"],
});
diff --git a/www/package.json b/www/package.json
index b8770fc707..4e2b1ce06f 100644
--- a/www/package.json
+++ b/www/package.json
@@ -12,6 +12,7 @@
"dependencies": {
"clsx": "2.0.0",
"framer-motion": "^10.13.1",
+ "geist": "1.2.0",
"next": "^13.4.16",
"nextra": "^2.5.2",
"nextra-theme-docs": "^2.5.2",
diff --git a/www/pages/_app.tsx b/www/pages/_app.tsx
index 7c2cacf201..081937c892 100644
--- a/www/pages/_app.tsx
+++ b/www/pages/_app.tsx
@@ -1,5 +1,8 @@
import type { AppProps } from "next/app";
import "nextra-theme-docs/style.css";
+
+import { GeistMono } from "geist/font/mono";
+import { GeistSans } from "geist/font/sans";
import React from "react";
import "../styles.css";
@@ -9,5 +12,10 @@ export default function Docs({ Component, pageProps }: AppProps) {
if (footer) footer.classList.add("relative");
}, []);
- return <Component {...pageProps} />;
+ return (
+ <Component
+ {...pageProps}
+ className={[GeistSans.className, GeistMono.className].join(" ")}
+ />
+ );
}
diff --git a/www/pages/learn/introduction.mdx b/www/pages/learn/introduction.mdx
index 2aa768f519..16364bfd13 100644
--- a/www/pages/learn/introduction.mdx
+++ b/www/pages/learn/introduction.mdx
@@ -9,10 +9,6 @@ import { Features } from "../../components";
The major difference between Carbon and other open-source ERPs is the license. ERPs like [Odoo](https://www.odoo.com/) and [ERPNext](https://erpnext.com/) require that you open-source your code if you use their code. With Carbon, you can use the code as a starting point for your own ERP without having to open-source your code. This is known as a "permissive" license.
-<Features />
-
-Carbon ERP is a high permformance, [open-source](https://github.com/barbinbrad/carbon), single-tenant (incomplete) ERP. It allows customers, suppliers, and employees to share a common platform.
-
## Why Carbon ERP?
We built Carbon ERP because we wanted a real solution to manufacturing scheduling. But in order to solve scheduling, we needed to build routing, which required bill of materials, which required inventory, which required purchasing, and so on. So we built Carbon ERP.
diff --git a/www/styles.css b/www/styles.css
index dae4e83c01..5a2d4070f4 100644
--- a/www/styles.css
+++ b/www/styles.css
@@ -104,6 +104,15 @@ code[data-language="sh"] {
position: fixed;
}
+.nextra-nav-container + div {
+ min-height: 100vh;
+}
+
+section > section {
+ padding-left: 0.5rem;
+ padding-right: 0.5rem;
+}
+
article {
padding-top: 70px;
}
@@ -157,6 +166,10 @@ aside {
filter: invert(1);
}
+.dark .background:after {
+ filter: invert(0);
+}
+
.gradient {
height: fit-content;
z-index: 3;
diff --git a/www/tailwind.config.js b/www/tailwind.config.js
index 77ac5dc3b7..33e70e2ad3 100644
--- a/www/tailwind.config.js
+++ b/www/tailwind.config.js
@@ -20,15 +20,12 @@ module.exports = {
theme: {
extend: {
fontFamily: {
- sans: [`"Inter"`, "sans-serif"],
+ sans: ["var(--font-geist-sans)", "sans-serif"],
mono: [
+ "var(--font-geist-mono)",
"Menlo",
"Monaco",
"Lucida Console",
- "Liberation Mono",
- "DejaVu Sans Mono",
- "Bitstream Vera Sans Mono",
- "Courier New",
"monospace",
],
},