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: add styles back for dark mode docs

Brad Barbin75680a7d737b
diff --git a/www/.env.example b/www/.env.example
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/www/styles.css b/www/styles.css
index bbd49630aa..624dd1f6d4 100644
--- a/www/styles.css
+++ b/www/styles.css
@@ -2,6 +2,135 @@
@tailwind components;
@tailwind utilities;
+:root {
+ --radius: 12px;
+}
+
+code {
+ @apply text-sm;
+}
+
+:root {
+ --nextra-primary-hue: 230deg;
+}
+
+.dark {
+ --nextra-primary-hue: 161deg;
+}
+
+body {
+ background: linear-gradient(
+ to bottom,
+ rgba(255, 255, 255, 0) 0%,
+ rgba(255, 255, 255, 1) 300px
+ ),
+ fixed 0 0 / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0),
+ fixed 10px 10px / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0);
+}
+
+.dark .invert-on-dark {
+ filter: invert(1) brightness(1.8);
+}
+
+#__next .nextra-body > main h1 {
+ margin-top: 0;
+}
+
+.dark body article pre {
+ background-color: transparent;
+ border: 1px solid rgba(224, 243, 255, 0.1);
+ border-radius: 5px;
+}
+
+.light body article pre {
+ background-color: transparent;
+ border: 1px solid #e5e7eb;
+ border-radius: 5px;
+}
+
+.light body {
+ --shiki-color-text: #111;
+ --shiki-token-constant: var(--shiki-color-text);
+ --shiki-token-comment: #999;
+ --shiki-token-keyword: #ff0078;
+ --shiki-token-function: #2a0093;
+ --shiki-token-string-expression: #028265;
+ --shiki-token-punctuation: var(--shiki-color-text);
+ --shiki-token-string: #797afa;
+}
+
+.dark body {
+ --shiki-color-text: #eaeaea;
+ --shiki-token-constant: var(--shiki-color-text);
+ --shiki-token-comment: #666;
+ --shiki-token-keyword: #ff0078;
+ --shiki-token-function: #12ff00;
+ --shiki-token-string-expression: #50e3c2;
+ --shiki-token-punctuation: var(--shiki-color-text);
+ --shiki-token-string: #797afa;
+
+ background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #111 300px),
+ fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0),
+ fixed 10px 10px / 20px 20px radial-gradient(#313131 1px, transparent 0);
+}
+
+code[data-language="sh"] {
+ --shiki-token-string: var(--shiki-color-text);
+}
+
+#__next article.nextra-body h1 {
+ font-size: 2em;
+}
+
+#__next article.nextra-body h2 {
+ font-size: 1.5em;
+}
+
+#__next article.nextra-body h3 {
+ font-size: 1.25em;
+}
+
+#__next article.nextra-body h4 {
+ font-size: 1em;
+}
+
+#__next article.nextra-body h5 {
+ font-size: 0.875em;
+}
+
+#__next article.nextra-body h5 {
+ font-size: 0.85em;
+}
+
+.light .nx-text-primary-600 {
+ --tw-text-opacity: 1;
+ color: hsl(
+ var(--nextra-primary-hue) var(--nextra-primary-saturation) 35% /
+ var(--tw-text-opacity)
+ );
+}
+
+.nextra-nav-container {
+ position: fixed;
+}
+
+.nextra-nav-container + div {
+ min-height: 100vh;
+}
+
+section > section {
+ padding-left: 0.5rem;
+ padding-right: 0.5rem;
+}
+
+article {
+ padding-top: 70px;
+}
+
+aside {
+ padding-top: 15px;
+}
+
@layer base {
:root {
--background: 0 0% 100%;
@@ -73,4 +202,4 @@
body {
@apply bg-background text-foreground;
}
-}
\ No newline at end of file
+}