René's URL Explorer Experiment


Title: improvement(docs): align code blocks with the platform design system by waleedlatif1 · Pull Request #6810 · simstudioai/sim · GitHub

Open Graph Title: improvement(docs): align code blocks with the platform design system by waleedlatif1 · Pull Request #6810 · simstudioai/sim

X Title: improvement(docs): align code blocks with the platform design system by waleedlatif1 · Pull Request #6810 · simstudioai/sim

Description: Summary Docs code blocks rendered in stock github-light/github-dark on fumadocs chrome — no colors, typeface, metrics, or corner radius in common with the app. This aligns them. Adds Sim Shiki themes transcribed from emcn's Prism token colors, shared by the MDX pipeline and fumadocs-openapi, which highlights through its own instance and so had left the whole API reference on the GitHub palette. Switches docs to the mono stack the app actually renders. apps/sim/tailwind.config.ts points font-mono at --font-martian-mono, but nothing in the app ever defines that variable, so every code surface in the product resolves to the system stack. Gives blocks the platform's field chrome (rounded-lg, --border-1 hairline, --surface-5/--code-bg fill) and Code.Viewer's 13px/21px metrics. The rule keys on figure.shiki because two different renderers emit these figures and that is the only join point they share. Numbers every line from the same tokens as the in-app gutter. Padding sits on .line rather than fumadocs' --padding-left, which is re-declared on the inner pre for API samples and dropped the digits on top of the code. Collapses tabbed fences into one box with the tab strip as the title row, and aligns the inline-code chip with the app's own markdown renderer. Reuses emcn's Button, useCopyToClipboard, and chip chrome constants instead of re-deriving them; removes ~90 lines of !important overrides, including a figure.shiki:not(div > figure.shiki) rule that could never match. Type of Change Improvement Testing Tested manually against the docs dev server across prose fences, tabbed fences, titled fences, and the API reference (request tabs, response tabs, usage tabs) in both themes. Smoke-tested 66 pages (40 content + 26 API reference) for 200s. bun run lint, bun run type-check, check:audits (29 audits), and the block-registry check all pass. Two judgment calls worth a look in review: Line numbers are on for every block, including one-liners. Numbering only multi-line blocks left adjacent fences starting their code at different x positions, which read as misalignment. The light palette is faithful to emcn's Prism theme, where three token colors fall below WCAG AA on the code surface (function 2.65:1, comment/constant 2.97:1, variable 3.32:1). Dark mode is 5.96:1+ throughout. Fixing this properly means changing packages/emcn/src/components/code/code.css so the app and docs move together, rather than diverging here. 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 Docs code blocks rendered in stock github-light/github-dark on fumadocs chrome — no colors, typeface, metrics, or corner radius in common with the app. This aligns them. Adds Sim Shiki the...

X Description: Summary Docs code blocks rendered in stock github-light/github-dark on fumadocs chrome — no colors, typeface, metrics, or corner radius in common with the app. This aligns them. Adds Sim Shiki the...

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

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:9f50bfb5-195c-55f6-91bc-7f106e493253
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idACD8:3222E4:28978E:392285:6AFB52FF
html-safe-noncef3ef5da2afb6399804af589888ec1090abacb65f307076554bb7005102a8b7b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0Q4OjMyMjJFNDoyODk3OEU6MzkyMjg1OjZBRkI1MkZGIiwidmlzaXRvcl9pZCI6IjgxOTM0NjAyNTE3OTk5MjgzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8181d28b5c65c6758905177adb5378afaa4f422d52cb4f75b8409d0e60c5b9ef
hovercard-subject-tagpull_request:4302203353
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/6810/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 Docs code blocks rendered in stock github-light/github-dark on fumadocs chrome — no colors, typeface, metrics, or corner radius in common with the app. This aligns them. Adds Sim Shiki the...
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/6810/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6810%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%2F6810%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/6810/files
Reloadhttps://github.com/simstudioai/sim/pull/6810/files
Reloadhttps://github.com/simstudioai/sim/pull/6810/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
docs/codeblock-platform-alignhttps://github.com/simstudioai/sim/tree/docs/codeblock-platform-align
Conversation 27 https://github.com/simstudioai/sim/pull/6810
Commits 10 https://github.com/simstudioai/sim/pull/6810/commits
Checks 28 https://github.com/simstudioai/sim/pull/6810/checks
Files changed https://github.com/simstudioai/sim/pull/6810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6810/files
improvement(docs): align code blocks with the platform design system https://github.com/simstudioai/sim/pull/6810/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/6810/files
4a740e5 improvement(docs): align code blocks with the platform design system waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/4a740e54aa52d2638297def2fc9181617640db5c
653be10 fix(docs): stop line numbers overlapping code, unify the copy glyph waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/653be100851bb33895fe7fda45eb4749f51ba547
7b6e94d improvement(docs): reserve the gutter column without numbering one-li… waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/7b6e94db9483281290c9f39f3a670ce1264e20cd
ad3b6e4 fix(docs): drop the gutter entirely on single-line fences waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/ad3b6e4c26ba286e38953eea5f35f0227567bee2
3401df1 fix(docs): stop the copy-button CSS restyling emcn's own Button waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/3401df195ca241c5d29346b617a8eec7c0802169
b60a420 fix(docs): keep the gutter padding override belt-and-braces waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/b60a420365f8d2350fac01250881ba446b8484b8
f1ea735 feat(docs): highlight the curl JSON request body as JSON waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/f1ea73516da032a2c5ce5b7a4128633e8bfc2344
6269753 fix(docs): paint the code fill on the viewport, not the figure waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/62697537b78a842dad32a110b5002dedbec4b473
1a4f4df fix(docs): hide the code tab strip's scrollbar waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/1a4f4df5f3541901c1cb0a5c1992e6d00804ce5f
f1bb518 fix(docs): keep fumadocs-openapi's server graph out of the client bundle waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6810/commits/f1bb518489e6053dfac94d4030aa4470bd0cc7f0
Clear filters https://github.com/simstudioai/sim/pull/6810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6810/files
page.tsx https://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
layout.tsx https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
global.css https://github.com/simstudioai/sim/pull/6810/files#diff-9805837ec07d660373de421b1f841528f02474afa6170acac4f1efecccfc0399
api-example-selector.tsx https://github.com/simstudioai/sim/pull/6810/files#diff-ce2127d31cb2a8269c555ac39777b44939419265e58ca63ab97c05ce7fc352a0
code-block.tsx https://github.com/simstudioai/sim/pull/6810/files#diff-bbc2b65e4b5cad73960f1ff04777cd5d6a260481cd48e868c045c4ab2c59a250
shiki-curl-json.ts https://github.com/simstudioai/sim/pull/6810/files#diff-320a34189cc73dc31939f1ef4a9cba278bbd18bc9d182688e07fbb404928a0c4
shiki-theme.ts https://github.com/simstudioai/sim/pull/6810/files#diff-db449d45ba9b264f7ce9c14b03777a115bd5aa21c91bc025152c0bd9111852b2
source.config.ts https://github.com/simstudioai/sim/pull/6810/files#diff-72dd6d402a3f290c01170c5922190fdfad413d535cabc19238184b810b47a198
apps/docs/app/[lang]/[[...slug]]/page.tsxhttps://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
View file https://github.com/simstudioai/sim/blob/f1bb518489e6053dfac94d4030aa4470bd0cc7f0/apps/docs/app/%5Blang%5D/%5B%5B...slug%5D%5D/page.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6810/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
https://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
https://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
https://github.com/simstudioai/sim/pull/6810/files#diff-06b1c10c836a091163abdd79e5eeb5a7dcbc34f76c668646427707a423d0e74a
apps/docs/app/[lang]/layout.tsxhttps://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
View file https://github.com/simstudioai/sim/blob/f1bb518489e6053dfac94d4030aa4470bd0cc7f0/apps/docs/app/%5Blang%5D/layout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6810/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
https://github.com/simstudioai/sim/pull/6810/files#diff-987960234022bfdd3cbb1dc0c4a39e9b34c46f2d1816efd1affde90ea0d3dc28
Please reload this pagehttps://github.com/simstudioai/sim/pull/6810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6810/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.