fix: dark mode components + PostHog tracking#133
Merged
rogeriochaves merged 14 commits intomainfrom Mar 20, 2026
Merged
Conversation
- Remove white background hover — only borders and text lighten on hover - Use Mintlify theme vars (--tw-prose-hr, --tw-prose-td-borders, --tw-prose-headings) - Change "Copy Prompt" → "Copy Full Prompt" to clarify it copies the full prompt - Add posthog.capture() tracking for copy events (docs_copy_prompt, docs_copy_line, docs_copy_skill_install)
Same project key as app.langwatch.ai for full user journey tracking.
@langwatch/scenario/config → @langwatch/scenario/integrations/vitest/config
e038013 to
a554ecb
Compare
CSS vars like --tw-prose-hr resolve to light-mode values in dark context. Switch to hardcoded Tailwind gray scale: - Default border: #374151 (gray-700) — subtle in dark mode - Hover border: #6b7280 (gray-500) — visible but not white - Hover text: #f9fafb (gray-50) — bright without being harsh - No background change on hover
….txt docs.json still referenced features/triggers and api-reference/triggers even though files were renamed to automations. Fixes nav and llms.txt.
Use MutationObserver on document.documentElement to detect Mintlify's dark class. Light mode keeps original styling (#e5e7eb borders, #f9fafb hover bg). Dark mode uses #374151 borders, #6b7280 hover, no bg change.
Mintlify's JSX runtime doesn't support useEffect. Use a plain function that reads document.documentElement.classList at render time instead. Also fix stale api-reference/traces nav entries in docs.json.
Mintlify uses RSC so useEffect/document access is unavailable. Move all theme-aware styling to style.css using .dark class selector. Components use className refs, CSS handles light/dark via .dark parent. Light mode: #e5e7eb borders, #f9fafb hover bg (same as original) Dark mode: #374151 borders, #6b7280 hover, no bg change, #f9fafb text
- Move copy button inline next to `npx skills add` command - Remove background box from "Then use /command" line - Add second copy button next to the slash command - Fix all slash commands: /langwatch-tracing → /tracing (no prefix)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs_copy_prompt,docs_copy_line,docs_copy_skill_install) viawindow.posthog.capture(). Uses same PostHog project as app.langwatch.ai for full user journey tracking.analytics.posthogto docs.json with production key.@langwatch/scenario/integrations/vitest/configimport path.Test plan