Skip to content

The only tool you need to know what is happening and how to fix it.

better contact us + styling on docs

ddux9d4b540aa1a0
diff --git a/docs/pages/_app.jsx b/docs/pages/_app.jsx
index 6bb94c61..bd6ece35 100644
--- a/docs/pages/_app.jsx
+++ b/docs/pages/_app.jsx
@@ -1,19 +1,39 @@
import { useEffect } from 'react'
import { useRouter } from 'next/router'
+import { JetBrains_Mono, IBM_Plex_Mono } from 'next/font/google'
import '../styles/custom.css'
import { SdkProvider } from '../components/SdkContext'
+const jetbrainsMono = JetBrains_Mono({
+ variable: '--font-display',
+ subsets: ['latin'],
+ weight: ['400', '500', '600', '700'],
+ display: 'swap',
+})
+
+const ibmPlexMono = IBM_Plex_Mono({
+ variable: '--font-mono',
+ subsets: ['latin'],
+ weight: ['400', '500', '600'],
+ display: 'swap',
+})
+
export default function App({ Component, pageProps }) {
const router = useRouter()
useEffect(() => {
const path = router.pathname.replace(/\//g, '-').replace(/^-/, '') || 'index'
document.body.setAttribute('data-page', path)
+ // lock to dark — Nextra's forcedTheme is respected but belt-and-suspenders
+ document.documentElement.classList.add('dark')
+ document.documentElement.style.colorScheme = 'dark'
}, [router.pathname])
return (
- <SdkProvider>
- <Component {...pageProps} />
- </SdkProvider>
+ <div className={`${jetbrainsMono.variable} ${ibmPlexMono.variable}`}>
+ <SdkProvider>
+ <Component {...pageProps} />
+ </SdkProvider>
+ </div>
)
}
diff --git a/docs/styles/custom.css b/docs/styles/custom.css
index d39015f2..f76999d4 100644
--- a/docs/styles/custom.css
+++ b/docs/styles/custom.css
@@ -1,4 +1,297 @@
-/* Navbar - align nav items to the left (right after the logo) */
+/* =========================================================================
+ Traceway Docs — dark-only design tokens ported from website design-guidelines
+ (styles.css). Override Nextra's default theme colors and apply mono-native
+ typography.
+ ========================================================================= */
+
+:root,
+:is(html[class~="dark"]) {
+ /* Ink & surfaces */
+ --ink-0: #05070c;
+ --ink-1: #0a0d14;
+ --ink-2: #0f131c;
+ --ink-3: #151a24;
+ --ink-4: #1d2430;
+ --ink-5: #283041;
+ --hair: rgba(255, 255, 255, 0.06);
+ --hair-2: rgba(255, 255, 255, 0.10);
+
+ /* Text */
+ --fg-0: #f4f6fb;
+ --fg-1: #c9d0dd;
+ --fg-2: #8a93a6;
+ --fg-3: #5a6374;
+
+ /* Accent — Electric Indigo */
+ --a1: #7c5cff;
+ --a2: #00d4ff;
+ --a3: #ff4d8d;
+ --a4: #ffd166;
+ --ok: #22e0a8;
+ --crit: #ff5a5f;
+
+ /* Nextra theme overrides */
+ --nextra-primary-hue: 253deg;
+ --nextra-primary-saturation: 100%;
+ --nextra-bg: 5, 7, 12; /* ink-0 triplet */
+
+ /* Radius + layout */
+ --radius: 6px;
+ --radius-lg: 10px;
+ --max: 1240px;
+
+ /* Font aliases mirroring website var names
+ (--font-display / --font-mono are populated by next/font in _app.jsx) */
+ --f-display: var(--font-display, "JetBrains Mono"), "IBM Plex Mono", ui-monospace, monospace;
+ --f-body: var(--font-mono, "IBM Plex Mono"), "JetBrains Mono", ui-monospace, monospace;
+ --f-mono: var(--font-mono, "IBM Plex Mono"), "JetBrains Mono", ui-monospace, monospace;
+}
+
+/* =========================================================================
+ Base / typography
+ ========================================================================= */
+
+html,
+body {
+ background: var(--ink-0) !important;
+ color: var(--fg-1);
+ color-scheme: dark;
+ font-family: var(--font-mono, "IBM Plex Mono"), "JetBrains Mono", ui-monospace,
+ monospace;
+ -webkit-font-smoothing: antialiased;
+}
+
+body {
+ background:
+ radial-gradient(1200px 700px at 85% -10%, color-mix(in oklab, var(--a1) 12%, transparent), transparent 60%),
+ radial-gradient(900px 600px at -10% 20%, color-mix(in oklab, var(--a2) 8%, transparent), transparent 60%),
+ var(--ink-0) !important;
+}
+
+main h1,
+main h2,
+main h3,
+main h4,
+main h5,
+main h6,
+.nextra-content h1,
+.nextra-content h2,
+.nextra-content h3,
+.nextra-content h4,
+.nextra-content h5,
+.nextra-content h6 {
+ font-family: var(--font-display, "JetBrains Mono"), "IBM Plex Mono",
+ ui-monospace, monospace !important;
+ color: var(--fg-0) !important;
+ letter-spacing: -0.015em;
+ text-wrap: balance;
+}
+
+main h1,
+.nextra-content h1 {
+ font-size: clamp(40px, 5.6vw, 75px) !important;
+ line-height: 1.02 !important;
+ letter-spacing: -0.035em !important;
+ font-weight: 700 !important;
+}
+
+main h2,
+.nextra-content h2 {
+ font-size: clamp(28px, 3.2vw, 46px) !important;
+ line-height: 1.05 !important;
+ letter-spacing: -0.025em !important;
+ font-weight: 700 !important;
+}
+
+main h3,
+.nextra-content h3 {
+ font-size: clamp(20px, 1.7vw, 26px) !important;
+ line-height: 1.2 !important;
+ letter-spacing: -0.015em !important;
+ font-weight: 600 !important;
+}
+
+main h1 em,
+main h2 em,
+.nextra-content h1 em,
+.nextra-content h2 em {
+ font-style: normal;
+ font-weight: 700;
+ background: linear-gradient(90deg, var(--a2), var(--a1) 60%, var(--a3));
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent !important;
+}
+
+main p,
+.nextra-content p {
+ color: var(--fg-1);
+}
+
+main a,
+.nextra-content a {
+ color: var(--a2) !important;
+ text-decoration-color: color-mix(in oklab, var(--a2) 40%, transparent);
+ text-underline-offset: 3px;
+}
+
+main a:hover,
+.nextra-content a:hover {
+ color: var(--a1) !important;
+}
+
+/* =========================================================================
+ Navbar + sidebar + content containers
+ ========================================================================= */
+
+.nextra-nav-container {
+ background: color-mix(in oklab, var(--ink-0) 75%, transparent) !important;
+ backdrop-filter: blur(14px) saturate(140%);
+ -webkit-backdrop-filter: blur(14px) saturate(140%);
+ border-bottom: 1px solid var(--hair);
+}
+
+.nextra-nav-container-blur {
+ background: transparent !important;
+ backdrop-filter: none !important;
+}
+
+.nextra-sidebar-container {
+ background: transparent !important;
+ border-right: 1px solid var(--hair);
+}
+
+/* Sidebar links */
+.nextra-sidebar-container a,
+.nextra-sidebar-container button {
+ color: var(--fg-2) !important;
+ font-family: var(--font-mono), ui-monospace, monospace;
+}
+
+.nextra-sidebar-container a:hover,
+.nextra-sidebar-container button:hover {
+ color: var(--fg-0) !important;
+ background: var(--ink-2) !important;
+}
+
+.nextra-sidebar-container .nx-text-primary-600,
+.nextra-sidebar-container a[aria-current="page"] {
+ color: var(--a2) !important;
+ background: color-mix(in oklab, var(--a1) 14%, transparent) !important;
+}
+
+/* Right TOC */
+nav.nextra-toc a {
+ color: var(--fg-3) !important;
+}
+nav.nextra-toc a:hover {
+ color: var(--fg-0) !important;
+}
+nav.nextra-toc .nx-text-primary-600 {
+ color: var(--a2) !important;
+}
+
+/* Footer */
+.nextra-footer,
+footer.nextra-footer {
+ background: transparent !important;
+ border-top: 1px solid var(--hair);
+ color: var(--fg-3);
+}
+
+/* =========================================================================
+ Code blocks + inline code
+ ========================================================================= */
+
+.nextra-content code,
+main code {
+ background: color-mix(in oklab, var(--a2) 10%, transparent);
+ color: var(--a2);
+ border: 1px solid color-mix(in oklab, var(--a2) 20%, transparent);
+ border-radius: 4px;
+ padding: 2px 6px;
+ font-family: var(--font-mono), ui-monospace, monospace;
+ font-size: 0.92em;
+}
+
+.nextra-code-block pre,
+pre.nextra-code {
+ background: linear-gradient(180deg, #080b12, #0d1220) !important;
+ border: 1px solid var(--hair-2);
+ border-radius: 10px;
+ box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
+}
+
+.nextra-code-block pre code,
+pre code {
+ background: transparent !important;
+ border: 0 !important;
+ padding: 0 !important;
+ color: var(--fg-1);
+}
+
+/* =========================================================================
+ Tables, callouts, cards, bullet points
+ ========================================================================= */
+
+main table,
+.nextra-content table {
+ border: 1px solid var(--hair);
+ border-radius: 8px;
+ overflow: hidden;
+}
+
+main th,
+.nextra-content th {
+ background: var(--ink-2) !important;
+ color: var(--fg-0) !important;
+ border-color: var(--hair) !important;
+}
+
+main td,
+.nextra-content td {
+ border-color: var(--hair) !important;
+ color: var(--fg-1) !important;
+}
+
+main blockquote,
+.nextra-content blockquote {
+ background: color-mix(in oklab, var(--a2) 8%, transparent);
+ border-left: 3px solid var(--a2);
+ color: var(--fg-1);
+}
+
+/* Nextra callouts */
+.nextra-callout {
+ border-radius: 10px !important;
+}
+
+/* Horizontal rule */
+main hr,
+.nextra-content hr {
+ border-color: var(--hair) !important;
+}
+
+/* =========================================================================
+ Search box
+ ========================================================================= */
+
+.nextra-search input {
+ background: color-mix(in oklab, var(--ink-2) 80%, transparent) !important;
+ border: 1px solid var(--hair-2) !important;
+ color: var(--fg-0) !important;
+ font-family: var(--font-mono), ui-monospace, monospace;
+}
+
+.nextra-search input:focus {
+ border-color: color-mix(in oklab, var(--a1) 60%, var(--hair-2)) !important;
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--a1) 15%, transparent);
+}
+
+/* =========================================================================
+ Navbar alignment (pre-existing rules, preserved)
+ ========================================================================= */
+
.nextra-nav-container nav > a:first-child {
margin-right: 20px !important;
}
@@ -7,7 +300,6 @@
margin-left: auto;
}
-/* Mobile navbar - keep logo on the left */
@media (max-width: 767px) {
.nextra-nav-container nav {
justify-content: flex-start !important;
@@ -18,7 +310,153 @@
}
}
-/* SDK Selector - injected into sidebar via separator */
+/* =========================================================================
+ Utility classes — opt-in, ported from website/design guidelines/styles.css.
+ Available to MDX authors via className; no !important except where a more
+ specific existing rule (e.g., `main a { color: ... !important }`) would win.
+ ========================================================================= */
+
+.wrap {
+ max-width: var(--max);
+ margin: 0 auto;
+ padding: 0 28px;
+}
+
+.eyebrow {
+ font-family: var(--f-mono);
+ font-size: 11px;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: var(--a2);
+ font-weight: 500;
+ display: inline-block;
+}
+.eyebrow::before {
+ content: "// ";
+ opacity: 0.5;
+}
+
+.muted { color: var(--fg-2); }
+.dim { color: var(--fg-3); }
+
+.hair-rule {
+ height: 1px;
+ background: var(--hair);
+ width: 100%;
+}
+
+.surface-card {
+ background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
+ border: 1px solid var(--hair);
+ border-radius: var(--radius-lg);
+ padding: 22px;
+}
+
+.gridbg { position: relative; }
+.gridbg::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ background-image:
+ linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
+ background-size: 56px 56px;
+ mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
+ -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
+}
+
+/* Chips */
+.chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 4px 8px;
+ border-radius: 999px;
+ font-family: var(--f-mono);
+ font-size: 11px;
+ letter-spacing: 0.04em;
+ color: var(--fg-1);
+ background: var(--ink-3);
+ border: 1px solid var(--hair);
+}
+.chip .dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--a2);
+ box-shadow: 0 0 8px var(--a2);
+ flex-shrink: 0;
+}
+.chip.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
+.chip.crit .dot { background: var(--crit); box-shadow: 0 0 8px var(--crit); }
+
+/* Buttons — !important on color values to beat `main a { color: var(--a2) !important }` */
+.btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ padding: 12px 18px;
+ border-radius: var(--radius);
+ font-family: var(--f-display);
+ font-weight: 500;
+ font-size: 14px;
+ letter-spacing: -0.01em;
+ transition: transform 0.12s ease, background 0.2s, border-color 0.2s,
+ color 0.2s, filter 0.2s, box-shadow 0.2s;
+ border: 1px solid transparent;
+ white-space: nowrap;
+ cursor: pointer;
+ text-decoration: none !important;
+}
+.btn:active { transform: scale(0.97); }
+
+.btn-primary {
+ background: var(--fg-0);
+ color: var(--ink-0) !important;
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
+ 0 0 0 1px rgba(255, 255, 255, 0.12);
+}
+.btn-primary:hover {
+ background: #fff;
+ color: var(--ink-0) !important;
+}
+
+.btn-accent {
+ background: linear-gradient(
+ 180deg,
+ color-mix(in oklab, var(--a1) 100%, white 12%),
+ var(--a1)
+ );
+ color: #0a0612 !important;
+ box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--a1) 80%, transparent),
+ 0 0 0 1px color-mix(in oklab, var(--a1) 40%, transparent);
+}
+.btn-accent:hover {
+ filter: brightness(1.06);
+ color: #0a0612 !important;
+}
+
+.btn-ghost {
+ border-color: var(--hair-2);
+ color: var(--fg-0) !important;
+ background: transparent;
+}
+.btn-ghost:hover {
+ background: var(--ink-3);
+ border-color: var(--hair-2);
+ color: var(--fg-0) !important;
+}
+
+.btn-sm {
+ padding: 7px 12px;
+ font-size: 13px;
+}
+
+/* =========================================================================
+ SDK Selector — injected into sidebar via separator
+ ========================================================================= */
+
li:has(> .sdk-selector) {
padding: 0 !important;
margin: 0 0 8px 0 !important;
@@ -44,16 +482,18 @@ li:has(> .sdk-selector) > span:first-child {
padding: 8px 12px;
font-size: 13px;
font-weight: 500;
- border: 1px solid #e5e7eb;
+ font-family: var(--font-display), ui-monospace, monospace;
+ border: 1px solid var(--hair-2);
border-radius: 8px;
- background: #fff;
- color: #111827;
+ background: var(--ink-2);
+ color: var(--fg-0);
cursor: pointer;
- transition: border-color 0.15s;
+ transition: border-color 0.15s, background 0.15s;
}
.sdk-selector-trigger:hover {
- border-color: #9ca3af;
+ border-color: color-mix(in oklab, var(--a1) 50%, var(--hair-2));
+ background: var(--ink-3);
}
.sdk-selector-dropdown {
@@ -61,10 +501,11 @@ li:has(> .sdk-selector) > span:first-child {
top: calc(100% + 4px);
left: 8px;
right: 8px;
- background: #fff;
- border: 1px solid #e5e7eb;
+ background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
+ border: 1px solid var(--hair-2);
border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6),
+ 0 0 0 1px rgba(255, 255, 255, 0.03);
z-index: 100;
}
@@ -72,12 +513,13 @@ li:has(> .sdk-selector) > span:first-child {
width: 100%;
padding: 8px 12px;
font-size: 13px;
+ font-family: var(--font-mono), ui-monospace, monospace;
border: none;
- border-bottom: 1px solid #e5e7eb;
+ border-bottom: 1px solid var(--hair);
outline: none;
box-shadow: none;
background: transparent;
- color: #111827;
+ color: var(--fg-0);
}
.sdk-selector-search:focus {
@@ -86,7 +528,7 @@ li:has(> .sdk-selector) > span:first-child {
}
.sdk-selector-search::placeholder {
- color: #9ca3af;
+ color: var(--fg-3);
}
.sdk-selector-list {
@@ -107,31 +549,38 @@ li:has(> .sdk-selector) > span:first-child {
width: 100%;
padding: 6px 8px;
font-size: 13px;
+ font-family: var(--font-mono), ui-monospace, monospace;
text-align: left;
border: none;
border-radius: 4px;
background: transparent;
- color: #374151;
+ color: var(--fg-1);
cursor: pointer;
+ transition: background 0.12s, color 0.12s;
}
.sdk-selector-option:hover {
- background: #f3f4f6;
+ background: var(--ink-3);
+ color: var(--fg-0);
}
.sdk-selector-option.active {
- background: #eff6ff;
- color: #2563eb;
+ background: color-mix(in oklab, var(--a1) 18%, transparent);
+ color: var(--a2);
font-weight: 500;
}
.sdk-selector-empty {
padding: 8px 12px;
font-size: 13px;
- color: #9ca3af;
+ color: var(--fg-3);
+ font-family: var(--font-mono), ui-monospace, monospace;
}
-/* Framework Picker */
+/* =========================================================================
+ Framework Picker (card grid on /client)
+ ========================================================================= */
+
.framework-picker {
margin-top: 24px;
}
@@ -140,12 +589,14 @@ li:has(> .sdk-selector) > span:first-child {
font-size: 20px;
font-weight: 600;
margin: 0 0 8px 0;
- color: #111827;
+ color: var(--fg-0);
+ font-family: var(--font-display), ui-monospace, monospace;
+ letter-spacing: -0.01em;
}
.framework-picker-subheading {
font-size: 15px;
- color: #6b7280;
+ color: var(--fg-2);
margin: 0 0 24px 0;
}
@@ -167,20 +618,20 @@ li:has(> .sdk-selector) > span:first-child {
align-items: flex-start;
gap: 8px;
padding: 24px;
- border: 1px solid #e5e7eb;
+ border: 1px solid var(--hair);
border-radius: 12px;
- background: #fff;
+ background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
cursor: pointer;
- transition:
- border-color 0.15s,
- box-shadow 0.15s;
+ transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
text-align: left;
font-family: inherit;
}
.framework-picker-card:hover {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+ border-color: color-mix(in oklab, var(--a1) 50%, var(--hair-2));
+ box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--a1) 30%, transparent),
+ 0 0 0 1px color-mix(in oklab, var(--a1) 20%, transparent);
+ transform: translateY(-2px);
}
.framework-picker-top {
@@ -197,26 +648,20 @@ li:has(> .sdk-selector) > span:first-child {
border-radius: 4px;
letter-spacing: 0.02em;
line-height: 1.5;
+ font-family: var(--font-mono), ui-monospace, monospace;
+ text-transform: uppercase;
}
.badge-production {
- background: #4ba0f2;
- color: white;
+ background: color-mix(in oklab, var(--a1) 18%, transparent);
+ color: var(--a1);
+ border: 1px solid color-mix(in oklab, var(--a1) 40%, transparent);
}
.badge-new {
- background: #15803d;
- color: white;
-}
-
-:is(html[class~="dark"]) .badge-production {
- background: rgba(59, 130, 246, 0.15);
- color: #93bbfd;
-}
-
-:is(html[class~="dark"]) .badge-new {
- background: rgba(34, 197, 94, 0.15);
- color: #86efac;
+ background: color-mix(in oklab, var(--ok) 18%, transparent);
+ color: var(--ok);
+ border: 1px solid color-mix(in oklab, var(--ok) 40%, transparent);
}
.framework-picker-icon {
@@ -228,42 +673,21 @@ li:has(> .sdk-selector) > span:first-child {
.framework-picker-label {
font-size: 16px;
font-weight: 600;
- color: #111827;
+ color: var(--fg-0);
+ font-family: var(--font-display), ui-monospace, monospace;
+ letter-spacing: -0.01em;
}
.framework-picker-desc {
font-size: 14px;
- color: #6b7280;
+ color: var(--fg-2);
line-height: 1.5;
}
-:is(html[class~="dark"]) .framework-picker-heading {
- color: #e5e7eb;
-}
-
-:is(html[class~="dark"]) .framework-picker-subheading {
- color: #9ca3af;
-}
-
-:is(html[class~="dark"]) .framework-picker-card {
- background: #1a1a2e;
- border-color: #374151;
-}
-
-:is(html[class~="dark"]) .framework-picker-card:hover {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
-}
-
-:is(html[class~="dark"]) .framework-picker-label {
- color: #e5e7eb;
-}
-
-:is(html[class~="dark"]) .framework-picker-desc {
- color: #9ca3af;
-}
+/* =========================================================================
+ Deployment Cards (learn / self-host pages)
+ ========================================================================= */
-/* Deployment Cards */
.deployment-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
@@ -282,18 +706,17 @@ li:has(> .sdk-selector) > span:first-child {
flex-direction: column;
gap: 8px;
padding: 24px;
- border: 1px solid #e5e7eb;
+ border: 1px solid var(--hair);
border-radius: 12px;
- background: #fff;
- text-decoration: none;
- transition:
- border-color 0.15s,
- box-shadow 0.15s;
+ background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
+ text-decoration: none !important;
+ transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.deployment-card:hover {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+ border-color: color-mix(in oklab, var(--a1) 50%, var(--hair-2));
+ box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--a1) 30%, transparent);
+ transform: translateY(-2px);
}
.deployment-card-top {
@@ -305,7 +728,9 @@ li:has(> .sdk-selector) > span:first-child {
.deployment-card-title {
font-size: 16px;
font-weight: 600;
- color: #111827;
+ color: var(--fg-0);
+ font-family: var(--font-display), ui-monospace, monospace;
+ letter-spacing: -0.01em;
}
.deployment-card-badge {
@@ -313,94 +738,31 @@ li:has(> .sdk-selector) > span:first-child {
font-weight: 600;
padding: 2px 8px;
border-radius: 4px;
- background: #3b82f6;
- color: white;
+ background: color-mix(in oklab, var(--a2) 18%, transparent);
+ color: var(--a2);
+ border: 1px solid color-mix(in oklab, var(--a2) 40%, transparent);
letter-spacing: 0.02em;
line-height: 1.5;
+ font-family: var(--font-mono), ui-monospace, monospace;
+ text-transform: uppercase;
}
.deployment-card-subtitle {
font-size: 13px;
font-weight: 500;
- color: #374151;
+ color: var(--fg-1);
+ font-family: var(--font-mono), ui-monospace, monospace;
}
.deployment-card-desc {
font-size: 14px;
- color: #6b7280;
+ color: var(--fg-2);
line-height: 1.5;
}
-:is(html[class~="dark"]) .deployment-card {
- background: #1a1a2e;
- border-color: #374151;
-}
-
-:is(html[class~="dark"]) .deployment-card:hover {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
-}
-
-:is(html[class~="dark"]) .deployment-card-title {
- color: #e5e7eb;
-}
-
-:is(html[class~="dark"]) .deployment-card-badge {
- background: rgba(59, 130, 246, 0.15);
- color: #93bbfd;
-}
-
-:is(html[class~="dark"]) .deployment-card-subtitle {
- color: #d1d5db;
-}
-
-:is(html[class~="dark"]) .deployment-card-desc {
- color: #9ca3af;
-}
-
-/* Dark mode */
-:is(html[class~="dark"]) .sdk-selector-trigger {
- background: #1a1a2e;
- border-color: #374151;
- color: #e5e7eb;
-}
-
-:is(html[class~="dark"]) .sdk-selector-trigger:hover {
- border-color: #6b7280;
-}
-
-:is(html[class~="dark"]) .sdk-selector-dropdown {
- background: #1a1a2e;
- border-color: #374151;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
-}
-
-:is(html[class~="dark"]) .sdk-selector-search {
- border-bottom-color: #374151;
- color: #e5e7eb;
-}
-
-:is(html[class~="dark"]) .sdk-selector-search:focus {
- outline: none;
- box-shadow: none;
-}
-
-:is(html[class~="dark"]) .sdk-selector-search::placeholder {
- color: #6b7280;
-}
-
-:is(html[class~="dark"]) .sdk-selector-option {
- color: #d1d5db;
-}
-
-:is(html[class~="dark"]) .sdk-selector-option:hover {
- background: #374151;
-}
-
-:is(html[class~="dark"]) .sdk-selector-option.active {
- background: #1e3a5f;
- color: #60a5fa;
-}
+/* =========================================================================
+ Per-page layout tweaks (preserved from original)
+ ========================================================================= */
/* Protocol page - hide sidebar placeholder to expand content */
body[data-page="protocol"] .nx-mx-auto.nx-flex > div.nx-w-64.nx-shrink-0,
@@ -410,16 +772,12 @@ body[data-page^="protocol"] .nx-mx-auto.nx-flex > div.nx-w-64.nx-shrink-0 {
/* Client index page - full width content on large screens */
@media (min-width: 1280px) {
- /* Hide left sidebar placeholder */
body[data-page="client"] .nx-mx-auto.nx-flex > div.nx-w-64.nx-shrink-0 {
display: none !important;
}
-
- /* Hide right TOC */
body[data-page="client"] nav.nextra-toc {
display: none !important;
}
-
body[data-page="client"] main.nx-max-w-6xl {
max-width: none !important;
}
diff --git a/docs/theme.config.jsx b/docs/theme.config.jsx
index fdd9a60e..155f097d 100644
--- a/docs/theme.config.jsx
+++ b/docs/theme.config.jsx
@@ -1,6 +1,4 @@
-import { useState, useEffect } from "react";
import { useRouter } from "next/router";
-import { useTheme } from "nextra-theme-docs";
import SdkSelector from "./components/SdkSelector";
import HiddenItem from "./components/HiddenItem";
import { useSdk } from "./components/SdkContext";
@@ -31,16 +29,9 @@ const SDK_VISIBILITY = {
export default {
logoLink: "https://tracewayapp.com",
logo: function Logo() {
- const { resolvedTheme } = useTheme();
- const [mounted, setMounted] = useState(false);
- useEffect(() => setMounted(true), []);
return (
<img
- src={
- mounted && resolvedTheme === "dark"
- ? "/traceway-logo-white.png"
- : "/traceway-logo.png"
- }
+ src="/traceway-logo-white.png"
alt="Traceway"
style={{ height: "32px" }}
/>
@@ -68,12 +59,17 @@ export default {
name="description"
content="Traceway - Error tracking and monitoring platform"
/>
+ <meta name="theme-color" content="#05070c" />
+ <meta name="color-scheme" content="dark" />
</>
),
- primaryHue: 205,
- darkMode: true,
+ // Electric Indigo (#7c5cff) ≈ hsl(253, 100%, 68%)
+ primaryHue: 253,
+ primarySaturation: 100,
+ darkMode: false,
nextThemes: {
- defaultTheme: "light",
+ defaultTheme: "dark",
+ forcedTheme: "dark",
},
sidebar: {
defaultMenuCollapseLevel: 1,
diff --git a/website/app/contact/page.tsx b/website/app/contact/page.tsx
index 9c447123..5402f550 100644
--- a/website/app/contact/page.tsx
+++ b/website/app/contact/page.tsx
@@ -4,26 +4,6 @@ import { useState, FormEvent } from "react";
import { ChevronDown } from "lucide-react";
import { Eyebrow } from "@/components/eyebrow";
-const COUNTRIES = [
- "United States",
- "Canada",
- "United Kingdom",
- "Germany",
- "France",
- "Netherlands",
- "Spain",
- "Italy",
- "Sweden",
- "Poland",
- "India",
- "Australia",
- "Japan",
- "Singapore",
- "Brazil",
- "Mexico",
- "Other",
-];
-
const COMPANY_SIZES = [
"Just me",
"2 – 10",
@@ -33,32 +13,40 @@ const COMPANY_SIZES = [
"500+",
];
-const CALENDLY_URL =
- process.env.NEXT_PUBLIC_CALENDLY_URL ??
- "https://calendly.com/tracewayapp/demo";
+const REGISTER_URL = "https://cloud.tracewayapp.com/register";
export default function Contact() {
const [firstName, setFirstName] = useState("");
const [lastName, setLastName] = useState("");
const [email, setEmail] = useState("");
- const [country, setCountry] = useState("");
const [companySize, setCompanySize] = useState("");
const [submitting, setSubmitting] = useState(false);
- function handleSubmit(e: FormEvent) {
+ async function handleSubmit(e: FormEvent) {
e.preventDefault();
setSubmitting(true);
- const params = new URLSearchParams();
- const fullName = `${firstName.trim()} ${lastName.trim()}`.trim();
- if (fullName) params.set("name", fullName);
- if (email.trim()) params.set("email", email.trim());
- if (country) params.set("a1", country);
- if (companySize) params.set("a2", companySize);
-
- const url = `${CALENDLY_URL}${
- params.toString() ? `?${params.toString()}` : ""
- }`;
+ const trimmed = email.trim();
+ const payload = {
+ firstName: firstName.trim(),
+ lastName: lastName.trim(),
+ email: trimmed,
+ companySize,
+ };
+
+ try {
+ await fetch("/api/contact", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(payload),
+ });
+ } catch {
+ // Don't block the user if the notification fails — they still get to sign up.
+ }
+
+ const url = trimmed
+ ? `${REGISTER_URL}?email=${encodeURIComponent(trimmed)}`
+ : REGISTER_URL;
window.location.href = url;
}
@@ -84,17 +72,17 @@ export default function Contact() {
<section className="hero gridbg relative overflow-hidden pt-20 pb-24">
<div className="wrap relative z-10 max-w-3xl mx-auto">
<div className="text-center mb-10">
- <Eyebrow>Book a demo</Eyebrow>
+ <Eyebrow>Get started</Eyebrow>
<h1 className="mt-4">
We&apos;d love to hear from you.{" "}
- <em>Submit the form to pick a time.</em>
+ <em>Start your free account.</em>
</h1>
<p
className="mt-5 text-[17px] max-w-[560px] mx-auto"
style={{ color: "var(--fg-2)" }}
>
- Tell us a bit about you and your team. On submit we&apos;ll hand
- you over to Calendly so you can grab a 30-minute slot.
+ Tell us a bit about you and your team. On submit we&apos;ll take
+ you to sign-up with your email pre-filled.
</p>
</div>
@@ -144,47 +132,8 @@ export default function Contact() {
style={inputStyle}
/>
- {/* Country */}
- <div className="mt-8">
- <label
- htmlFor="country"
- className="block text-[15px] font-medium"
- style={labelStyle}
- >
- Which country is your company&apos;s headquarters based in?{" "}
- <span style={{ color: "var(--crit)" }}>*</span>
- </label>
- <p className="mt-1 text-[13px]" style={helperStyle}>
- This info will help us connect you to the right person.
- </p>
- <div className="mt-3 relative">
- <select
- id="country"
- required
- value={country}
- onChange={(e) => setCountry(e.target.value)}
- className="w-full appearance-none px-4 py-3.5 pr-10 rounded-md text-[15px] outline-none focus:border-[color:var(--a1)] transition-colors"
- style={inputStyle}
- >
- <option value="" disabled>
- Select an option
- </option>
- {COUNTRIES.map((c) => (
- <option key={c} value={c}>
- {c}
- </option>
- ))}
- </select>
- <ChevronDown
- className="absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none"
- size={18}
- style={{ color: "var(--fg-3)" }}
- />
- </div>
- </div>
-
{/* Company size */}
- <div className="mt-7">
+ <div className="mt-8">
<label
htmlFor="company-size"
className="block text-[15px] font-medium"
@@ -239,7 +188,7 @@ export default function Contact() {
fontFamily: "var(--font-mono)",
}}
>
- We&apos;ll redirect you to Calendly with your info pre-filled.
+ We&apos;ll take you to sign-up with your email pre-filled.
</p>
</form>
</div>
diff --git a/website/app/globals.css b/website/app/globals.css
index 43164afe..f9badd84 100644
--- a/website/app/globals.css
+++ b/website/app/globals.css
@@ -196,7 +196,7 @@
text-wrap: balance;
}
h1 {
- font-size: clamp(40px, 5.6vw, 76px);
+ font-size: clamp(40px, 5.6vw, 75px);
line-height: 1.02;
letter-spacing: -0.035em;
font-weight: 700;
diff --git a/website/components/mobile-nav.tsx b/website/components/mobile-nav.tsx
index 6d7aa0b7..19c6fced 100644
--- a/website/components/mobile-nav.tsx
+++ b/website/components/mobile-nav.tsx
@@ -2,7 +2,7 @@
import { useState } from "react";
import Link from "next/link";
-import { Github, Menu, ArrowUpRight } from "lucide-react";
+import { Github, Menu } from "lucide-react";
import type { LucideIcon } from "lucide-react";
import {
Sheet,
@@ -103,14 +103,6 @@ export function MobileNav({
className="p-6 flex flex-col gap-3"
style={{ borderTop: "1px solid var(--hair)" }}
>
- <Link
- href="https://cloud.tracewayapp.com/register"
- onClick={() => setOpen(false)}
- className="btn btn-accent w-full justify-center"
- >
- Try for free
- <ArrowUpRight className="h-4 w-4" />
- </Link>
<Link
href="https://cloud.tracewayapp.com/login"
onClick={() => setOpen(false)}
diff --git a/website/components/pricing-calculator.tsx b/website/components/pricing-calculator.tsx
index 4927cc0b..81e68b47 100644
--- a/website/components/pricing-calculator.tsx
+++ b/website/components/pricing-calculator.tsx
@@ -41,7 +41,9 @@ const TIERS = [
name: "Enterprise+",
limit: "Unlimited",
price: "Contact Us",
- description: "Dedicated SRE, shared Slack, tailored SLAs.",
+ description:
+ "Dedicated SRE, shared Slack, tailored SLAs. No data leaves your cloud.",
+ badge: "Managed self-hosting",
},
];
@@ -83,13 +85,27 @@ export function PricingCalculator() {
}}
>
<div
- className="col-span-3 font-semibold flex items-center gap-2"
+ className="col-span-3 font-semibold flex flex-col gap-1.5"
style={{
color: tier.highlight ? "var(--a2)" : "var(--fg-0)",
fontFamily: "var(--font-display)",
}}
>
- {tier.name}
+ <span>{tier.name}</span>
+ {tier.badge ? (
+ <span
+ className="inline-flex items-center self-start gap-1 px-2 py-0.5 rounded text-[10px] font-medium uppercase tracking-wider"
+ style={{
+ fontFamily: "var(--font-mono)",
+ color: "var(--ok)",
+ background: "color-mix(in oklab, var(--ok) 12%, transparent)",
+ border: "1px solid color-mix(in oklab, var(--ok) 35%, transparent)",
+ letterSpacing: "0.08em",
+ }}
+ >
+ {tier.badge}
+ </span>
+ ) : null}
</div>
<div
className="col-span-3 text-sm"
diff --git a/website/components/site-header.tsx b/website/components/site-header.tsx
index c1668346..7fbd829f 100644
--- a/website/components/site-header.tsx
+++ b/website/components/site-header.tsx
@@ -14,7 +14,6 @@ import {
Workflow,
Activity,
Smartphone,
- ArrowUpRight,
} from "lucide-react";
import { MobileNav } from "@/components/mobile-nav";
import { cn } from "@/lib/utils";
@@ -260,13 +259,6 @@ export function SiteHeader() {
>
Sign in
</Link>
- <Link
- href="https://cloud.tracewayapp.com/register"
- className="btn btn-accent btn-sm"
- >
- Try for free
- <ArrowUpRight className="h-3.5 w-3.5" />
- </Link>
</div>
<MobileNav pillars={PILLARS} specialized={SPECIALIZED} />
diff --git a/website/functions/worker.ts b/website/functions/worker.ts
index 407d5b38..649aadbc 100644
--- a/website/functions/worker.ts
+++ b/website/functions/worker.ts
@@ -20,12 +20,7 @@ async function handleContact(request: Request, env: Env): Promise<Response> {
try {
const formData = await request.json<any>();
- if (
- !formData.subject ||
- !formData.email ||
- !formData.message ||
- !formData.customerType
- ) {
+ if (!formData.email || !formData.firstName || !formData.lastName) {
return new Response(
JSON.stringify({ error: "Missing required fields" }),
{
@@ -35,6 +30,9 @@ async function handleContact(request: Request, env: Env): Promise<Response> {
);
}
+ const fullName = `${formData.firstName} ${formData.lastName}`.trim();
+ const companySize = formData.companySize || "Not provided";
+
const msg = {
personalizations: [
{
@@ -42,19 +40,17 @@ async function handleContact(request: Request, env: Env): Promise<Response> {
},
],
from: { email: env.SENDGRID_FROM_EMAIL },
- subject: `New Contact Request: ${formData.subject}`,
+ reply_to: { email: formData.email, name: fullName },
+ subject: `New signup from ${fullName} (${companySize})`,
content: [
{
type: "text/plain",
value: `
-New contact request from Traceway website:
+New signup from Traceway website:
-Subject: ${formData.subject}
+Name: ${fullName}
Email: ${formData.email}
-Customer Type: ${formData.customerType}
-
-Message:
-${formData.message}
+Company size: ${companySize}
`.trim(),
},
],