From 78e8c27231ecd7bafd53d42123b258f1ab6f9fac Mon Sep 17 00:00:00 2001 From: Nishitha Tanukunuri Date: Tue, 17 Nov 2026 17:10:20 -0600 Subject: [PATCH] Default docs to light theme Mintlify appearance defaults to light (no longer strict, so the dark toggle is back) and the light background is #F1F4F2. Light-mode primary darkens to #15803D: #22C55E is only 2.1:1 against the new background for links and accents. The dark-mode accent (colors.light) is unchanged. style.css was written for a dark page; add light-mode overrides for the products switcher, Human/Agent switch, agent view and sidebar dividers. --- docs.json | 11 ++++++--- style.css | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/docs.json b/docs.json index 4dd4644..eda5da0 100644 --- a/docs.json +++ b/docs.json @@ -4,13 +4,18 @@ "name": "ZeroGPU", "description": "ZeroGPU is the compute efficiency layer for AI inference. It runs repeatable, high-volume tasks - classification, extraction, PII redaction, moderation, summarization, routing - on specialized small and nano language models across an edge-powered network, faster and cheaper than centralized GPUs, through one OpenAI-compatible API. Edge Providers connect Android, Chrome, Telegram, desktop and server devices to the network and earn from the inference they serve.", "colors": { - "primary": "#22C55E", + "primary": "#15803D", "light": "#4ADE80", "dark": "#16A34A" }, "appearance": { - "default": "dark", - "strict": true + "default": "light", + "strict": false + }, + "background": { + "color": { + "light": "#F1F4F2" + } }, "fonts": { "heading": { diff --git a/style.css b/style.css index 7bf4bd0..35b69f2 100644 --- a/style.css +++ b/style.css @@ -241,3 +241,73 @@ html[data-zg-audience="agent"] .nav-tabs-item { html[data-zg-audience="agent"] #navigation-items > div + div { border-top-color: rgb(34 197 94 / 0.2); } + +/* The rules above were written for dark mode; light mode (the default) needs darker text and lines to stay readable on the #F1F4F2 background. */ +html:not(.dark) .nav-dropdown-products-selector-trigger { + color: #166534 !important; +} + +html:not(.dark) .nav-dropdown-products-selector-trigger > svg:first-child { + background-color: #15803d !important; +} + +html:not(.dark) .nav-dropdown-products-selector-trigger > svg:last-child { + color: #15803d !important; +} + +html:not(.dark) #zg-audience-switch button { + color: #52605a; +} + +html:not(.dark) #zg-audience-switch button:hover { + color: #0f1a14; +} + +html:not(.dark) #zg-audience-switch button.is-active { + color: #06120b; +} + +html:not(.dark) #zg-agent-view, +html:not(.dark) .zg-agent-source { + color: #1f2a24; +} + +html:not(.dark) .zg-agent-badge, +html:not(.dark) .zg-agent-actions a, +html:not(.dark) .zg-agent-prompt summary { + color: #15803d; +} + +html:not(.dark) #zg-agent-view .zg-agent-facts { + color: #52605a; + background-color: rgb(0 0 0 / 0.03); +} + +html:not(.dark) .zg-agent-prompt { + border-color: rgb(0 0 0 / 0.15); +} + +html:not(.dark) #zg-agent-view .zg-agent-markdown { + border-top-color: rgb(0 0 0 / 0.1); +} + +html:not(.dark) #navigation-items > div + div { + border-top-color: rgb(0 0 0 / 0.08); +} + +html:not(.dark)[data-zg-audience="agent"] .sidebar-title { + color: #15803d; +} + +html:not(.dark)[data-zg-audience="agent"] .sidebar-title::before { + color: rgb(21 128 61 / 0.6); +} + +html:not(.dark)[data-zg-audience="agent"] #sidebar li a, +html:not(.dark)[data-zg-audience="agent"] .nav-tabs-item { + color: #166534; +} + +html:not(.dark)[data-zg-audience="agent"] #sidebar li a:hover { + color: #052e16; +}