René's URL Explorer Experiment


Title: improvement(emails): align the email design tokens with the platform design system by waleedlatif1 · Pull Request #6479 · simstudioai/sim · GitHub

Open Graph Title: improvement(emails): align the email design tokens with the platform design system by waleedlatif1 · Pull Request #6479 · simstudioai/sim

X Title: improvement(emails): align the email design tokens with the platform design system by waleedlatif1 · Pull Request #6479 · simstudioai/sim

Description: Summary The email baseStyles claimed to be "derived from globals.css light mode tokens" but had drifted. I diffed every value against the live platform source (globals.css, tailwind.config.ts, chip-chrome.ts) and corrected it. Color drift — values that no longer matched their own comment: --border is #d8d8d8, emails used #dedede --text-muted is #7a7a7a, emails used #707070 canvas was an off-token #f8f8f8 → --surface-1 #fbfbfb added textBody (--text-body #434343) and textInverse (--text-inverse). Body copy was rendering at --text-secondary; the platform's body/value token is --text-body, so paragraph text now matches the app. renamed colors.divider → colors.border (the platform retired --divider) Type scale now mirrors tailwind.config.ts and uses its names (caption/small/sm/base/md), so every size traces to a Tailwind token. Email body stays at md 16px — the one deliberate deviation from the app's 15px base, and still a real token. The single off-scale value (24px OTP/balance figure) is now a named display token with a comment saying why the platform has no equivalent. Weights: added a fontWeight scale (400/500/600) and removed every fontWeight: 'bold' (=700, off the platform's three-step scale). Geometry: one RADIUS constant = --radius 8px, which kills the lone borderRadius: '6px' in payment-failed. The CTA now transcribes the platform primary Chip exactly — chipGeometryClass is h-[30px] rounded-lg px-2 text-sm, so button padding went 12px → 8px. Worth an eyeball — the one change where matching the platform makes the email button slightly tighter. De-duplication: extracted ProFeaturesBox — ~55 lines were copy-pasted byte-for-byte between credits-exhausted and free-tier-upgrade, including an uppercase/letter-spaced title and a border (${colors.brandTertiary}20) that existed nowhere else new errorBox token — payment-failed was re-typing infoBox's own padding and margin just to swap the fill new infoBoxLabel/infoBoxValue — credit-purchase hand-styled four s inside an otherwise correct infoBox new greeting token — 10 files spelled out {...paragraph, marginTop: 0} inline and 8 forgot it entirely; now one token used by all 18 new footerLink token — the footer hand-rolled its own; deleted the dead baseStyles.footer it never used Rhythm: limit-threshold, usage-threshold, usage-limit-reached and payment-failed each had a divider fencing off the CTA. Every template is now greeting → body → box → CTA → one divider → footnote. Type of Change Improvement Testing Rendered all 16 templates and scanned the emitted HTML for every legacy value — #dedede, #707070, #f8f8f8, border-radius:6px, font-weight:700|bold, text-transform:uppercase, letter-spacing:0.5px: 0 hits across 16 templates. Confirmed the platform values (#d8d8d8, #434343, #7a7a7a, #fbfbfb) are present, and that every template renders exactly one divider and one flush greeting. Source scan shows zero raw hex, zero bold, zero raw radius literals outside base.ts. Tests: 6/6 email + 227/227 mailer & schedule-notification. Type-check clean. Not visually diffed in a mail client — verification is on rendered HTML, not pixels. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary The email baseStyles claimed to be "derived from globals.css light mode tokens" but had drifted. I diffed every value against the live platform source (globals.css, tailwind.confi...

X Description: Summary The email baseStyles claimed to be "derived from globals.css light mode tokens" but had drifted. I diffed every value against the live platform source (globals.css, tailwi...

Opengraph URL: https://github.com/simstudioai/sim/pull/6479

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:475ded6c-ccfb-40ba-1ce9-6992ceaef8d7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF0A:2A369:8D2704:C8F9A3:6AFB508A
html-safe-nonce3f023e74d2cf41028ae3a023beac25b848c25c9e1dc64bcf589b2271e75904c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjBBOjJBMzY5OjhEMjcwNDpDOEY5QTM6NkFGQjUwOEEiLCJ2aXNpdG9yX2lkIjoiODAyOTQwMTc3OTI0ODI1NTExNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf92762e09eeea8f475fa04420f29ce3eccda577ee553383ffeb7aed9137bf054
hovercard-subject-tagpull_request:4240763213
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6479/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary The email baseStyles claimed to be "derived from globals.css light mode tokens" but had drifted. I diffed every value against the live platform source (globals.css, tailwind.confi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6479/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6479%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6479%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6479/files
Reloadhttps://github.com/simstudioai/sim/pull/6479/files
Reloadhttps://github.com/simstudioai/sim/pull/6479/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
improvement/email-design-token-alignmenthttps://github.com/simstudioai/sim/tree/improvement/email-design-token-alignment
Conversation 17 https://github.com/simstudioai/sim/pull/6479
Commits 6 https://github.com/simstudioai/sim/pull/6479/commits
Checks 30 https://github.com/simstudioai/sim/pull/6479/checks
Files changed https://github.com/simstudioai/sim/pull/6479/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6479/files
improvement(emails): align the email design tokens with the platform design system https://github.com/simstudioai/sim/pull/6479/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/6479/files
d8f0208 improvement(emails): align the email design tokens with the platform … waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/d8f02086fded50331c7c5b8be3b561ce0da08bcc
d6d925c improvement(emails): preview every template in a single gallery page waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/d6d925c996b6fda39528b43337c01e5c18e8d296
34d3ab8 improvement(emails): align font stack, logo and social-icon sizing wi… waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/34d3ab87a537fbb4beaff5986fb70d2ded7ca6dc
79a76ec improvement(emails): tokenize the CTA and footnote, and enforce the p… waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/79a76ecf34abd0cc468887ff8f597b45b5c8390c
9e3ba41 fix(emails): restore row spacing in the payment-failed details box waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/9e3ba41f8032c19eb3340611758808a00880395e
9c2043f fix(emails): restore row spacing in the batch-invitation workspace list waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6479/commits/9c2043f1a632a8d1443d7c557d9dd40d767dcc4f
Clear filters https://github.com/simstudioai/sim/pull/6479/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6479/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6479/files
route.ts https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
base.tokens.test.ts https://github.com/simstudioai/sim/pull/6479/files#diff-c32d2405a960e0eeaa3d8743c268163e0c673573078bea3b21ff3969933c8c50
base.ts https://github.com/simstudioai/sim/pull/6479/files#diff-f0266b7af9d2809d0e80e83c3b229e7d1441fc8acd477c5b4978bc1431299453
index.ts https://github.com/simstudioai/sim/pull/6479/files#diff-7cf60a207917e91a90cab6791a8a5e86225331b445254a884fef40db9adbc5b4
existing-account-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-8a73d943d75c61820b5e4df43c5c420e602337a153aabcf150af23fc6caca2bc
onboarding-followup-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-dac2240b1310c3c04fbb0e81ebd448dd2477c07c145773e34de53f699167dda5
otp-verification-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-0c5161f17dfe3cd206ddb28e7b50dcd04c5049f0b2c079d31ff3f4226d56d548
reset-password-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-c07a28d94d40fb6b2453c10946d33725d1d235cb08f176dcc3bea7773cf3f25e
welcome-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-8799ff7c7b99103af42788a21c9481b65fe2e22a98d2363010c0cf02b9e3f865
abandoned-checkout-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-7b6b5d3bf5c5d9a66dbb9208df030f2999ae14e55a2a9a9869190310896d9297
credit-purchase-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-b50e419a06c30f93e805c74638e3e66a6cb3d9600439aebda3db2bea7d2aa8d7
credits-exhausted-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-a9a8f1ea2d3fc63674c175873aca2d7cdf26663f1602242305e265b26a900356
enterprise-subscription-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-6a3511f5198579f31902144604b71552ec1351c0b8dad94c2eaca355dba29dbc
free-tier-upgrade-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-4b9ce147b014b8bfe6a7ecf9b5a3ec243dbb0d9d180946ce4314ebc09238a605
limit-threshold-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-377f81e47022de29516d40c33c4567788cf84917c1bbd268325798af4c037c47
payment-failed-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-a80925cedbe32cc692a6e5960b8f5e05807bd15f2395ccce36646b9060022497
plan-welcome-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-0630bfd9119ba1f34f8fc82f467f9be6981a28dbb5c9d779586989a7dafd7c39
pro-features-box.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-489f36e4215ef298b24e06a1ecca72b755401d58db4ca67dd6ae66ae9fe4b0c2
usage-limit-reached-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-e6ec5686212a23bab511fbe5a8f2ec14d853e21754e8af1c4f593a419c5168ce
usage-threshold-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-fab070b58af37df4f06c7aac419a9605370f7c5a56f3dceee90005813cf0d36d
email-button.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-b9bb98a7a7215dc2c495ec86656959cb610296ecfc14d7f4fecd2c49284c33f5
email-footer.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-a69d4741c3ffd02441e42fa749a55c845464d67596352e1eafff6646db232aa0
email-layout.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-7b644d37b9656e187e285530833267ed962d117dd9b301527b3e7c000143ade9
email-strong.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-9ef4c4436bd91f5f4c62b7b4ba23b3c9bd56a1823b93de9e85ec2a03efe7ed5d
index.ts https://github.com/simstudioai/sim/pull/6479/files#diff-3f7bd1d33e8c8071e983a10b2ce8f616a7201ae925828e02df1ad48f9dee5d7d
batch-invitation-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-5c33cdd9dabeeffa2431a0f23ae40ccecaf7e8e2b870cb751c6963971c6ac433
invitation-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-76d04fc91f1cc99f851a71e727d9c45adea87cb71692b2293398a47ce4397fd3
workspace-added-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-440793eef412a3fba8b4ee51a8a4b7c35b0ddafa5acc651d25ae7426bacfb51f
workspace-invitation-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-2d84e59dfe84ebc431634bc437a80c69e112350aa14678363792f7901e1b7ba6
schedule-disabled-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-484de145b851049c10ec135f214aa99db956af7808b16a130e6a5b6d86f7b0e2
help-confirmation-email.tsx https://github.com/simstudioai/sim/pull/6479/files#diff-85a31f2bbc4ab87f7bb842670b9201d6791143133b36fbf8381f1d2c045c4f2d
apps/sim/app/api/emails/preview/route.tshttps://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
View file https://github.com/simstudioai/sim/blob/9c2043f1a632a8d1443d7c557d9dd40d767dcc4f/apps/sim/app/api/emails/preview/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6479/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6479/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
apps/sim/components/emails/_styles/base.tokens.test.tshttps://github.com/simstudioai/sim/pull/6479/files#diff-c32d2405a960e0eeaa3d8743c268163e0c673573078bea3b21ff3969933c8c50
View file https://github.com/simstudioai/sim/blob/9c2043f1a632a8d1443d7c557d9dd40d767dcc4f/apps/sim/components/emails/_styles/base.tokens.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6479/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6479/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6479/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.