Document dark mode support for email layouts#1397
Merged
Merged
Conversation
Explain that layouts created on or after April 21, 2026 support dark mode by default, and show how customers with older layouts can opt in via the prefers-color-scheme media query and the dark_logo_url / dark_icon_url branding vars.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Risk LOW: Adds a new "Dark mode support" subsection to the existing email layouts documentation page with code examples for color scheme meta tags, CSS media queries, and logo swapping.
Reasons
- Only one file changed:
content/integrations/email/layouts.mdx(content-only MDX) - No component, layout, library, or style
.ts/.tsxfiles are modified - No new pages added, no sidebar or navigation changes
- No
package.json,yarn.lock, or build configuration changes - Pure content addition (117 insertions, 0 deletions) to an existing page with no structural refactoring
Notes
- Verify the Liquid template syntax (
{% assign %}) renders correctly inside MDX code fences - Confirm the
Calloutcomponent props (type="alert"andemoji="🌠") match the expected component API - Check that the in-page anchor links to surrounding sections (e.g., workflow-run scope, pre-content variables) still resolve after the insertion
Sent by Cursor Automation: Docs PR classifier
Cut redundant framing throughout the email layouts doc — reducing the intro, default-layout tour, pre-content variables, visual-editor callout, and CLI automation sections, and trimming the new dark mode section so it doesn't duplicate what the code snippet already shows.
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
content/integrations/email/layouts.mdxunder Custom layouts and styling.color-schememeta tags, thecolor-schemeCSS property on:root, and the@media (prefers-color-scheme: dark)block, with a minimal drop-in snippet.vars.branding.dark_logo_url/vars.branding.dark_icon_urlplus the.light-img/.dark-imgclasses and the<!--[if !mso]>Outlook conditional.prefers-color-schemesupport fall back to light mode styles.Test plan
yarn devand confirm the new section renders under Custom layouts and styling on/integrations/email/layouts.{% assign %}snippet) render without breaking the page.Calloutcomponents render with the correct variants (alert + note).