Skip to content

[GTMBot] Restructure dark mode docs#140

Closed
izhan wants to merge 1 commit into
mainfrom
gtmbot/restructure-dark-mode-docs
Closed

[GTMBot] Restructure dark mode docs#140
izhan wants to merge 1 commit into
mainfrom
gtmbot/restructure-dark-mode-docs

Conversation

@izhan

@izhan izhan commented May 5, 2026

Copy link
Copy Markdown
Contributor

What this does

Restructures the dark mode documentation based on Irvin's feedback. The previous guides/dark-mode.mdx was a single bloated article that mixed designer and developer concerns, had a gibberish outline ("enable dark mode" appeared twice), no cross-links, and wasn't discoverable from Learn Subframe where users actually look.

Changes

New: learn/theme/dark-mode.mdx

Designer-focused dark mode article under Learn > Theme. Covers adding dark mode, previewing light/dark, and removing dark mode. Follows the structure of sibling articles (customizing-theme, importing-tokens, etc.).

Rewritten: guides/dark-mode.mdx → "Dark mode toggle"

Narrowed from a catch-all dark mode article to a focused developer guide on wiring up the class toggle (next-themes for Next.js, context provider for Vite/React). Links back to the Learn article for the design side.

Updated: customizing-theme.mdx

Added "Dark mode" subsection under Colors (H3), since that's where the feature lives in the UI. Cross-links to both the Learn article and the developer guide.

Updated: exporting-theme.mdx

Fixed dark mode cross-link to point to the new Learn article instead of the old developer guide.

Updated: docs.json

Added learn/theme/dark-mode to the Learn > Theme nav group.

TODOs

  • Screenshot needed for learn/theme/dark-mode.mdx (marked with {/* TODO */})

…per guide to toggle

- New: learn/theme/dark-mode.mdx — designer-focused dark mode docs (adding, previewing, removing)
- Rewrite: guides/dark-mode.mdx — narrowed to dark mode toggle implementation only
- Update: customizing-theme.mdx — add dark mode subsection under Colors
- Update: exporting-theme.mdx — fix dark mode cross-link to Learn article
- Update: docs.json — add dark-mode to Learn > Theme nav
@mintlify

mintlify Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Subframe 🟢 Ready View Preview May 5, 2026, 6:35 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant