Add Google Docs and Gmail preview themes#348
Merged
schuyler merged 2 commits intoApr 3, 2026
Merged
Conversation
* Add Google Docs CSS theme matching Docs default typography (Arial 11pt, 1.15 line-height, 816px) * Add Gmail CSS theme matching email defaults (Arial 10pt, 1.5 line-height, 600px max-width) * Both use Google's #1155cc link color * Include reference URLs for color/layout choices Closes schuyler#347 Co-Authored-By: Claude <[email protected]>
* Override Prism syntax highlighting tokens to uniform green (#1e8e3e) so preview matches Google Docs paste * Change code background from #f1f3f4 to #e8eaed (Google Docs code add-on style) * Fix inline code: relative font-size (0.85em), green text, better padding * Update color reference comments Related to schuyler#347 Co-Authored-By: Claude <[email protected]>
Owner
|
Thanks for the PR! |
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
draft Markdown and copy-paste rendered content into Google Docs or Gmail with
minimal formatting cleanup
code changes or Xcode project modifications needed
Google Docs theme
Matches Google Docs default formatting for seamless copy-paste:
#1155ccwith underline (Google's standard hyperlink blue)#e8eaed) with green text (#1e8e3e),matching the Google Docs code add-on style
matches what appears after pasting into Google Docs
#ccccccleft borderGmail theme
Matches Gmail compose/reading defaults:
Courier Newfor code — no Roboto Mono)#ccccccleft border)#cccccctable borders (Gmail strips heavy styling)References
Both files include header comments documenting color/layout choices with source URLs:
Test plan
Preferences > Rendering > CSS dropdown
and blockquotes
line spacing, letter-width layout, green code blocks
line spacing, narrower email-width layout
minimal formatting differences
minimal formatting differences
Closes #347