Repository navigation
docs: the docs in hyperframes.dev's and the Studio app's colours - #6393
Conversation
Light mode takes hyperframes.dev's look: a still of its beige light ground, a frosted header, its ink, black pill buttons, heavy TT Norms headlines and a light-weight description. Every other colour comes from the Studio app: Mintlify's gray scale on the app's warm hue, article text and catalog greys on the same tokens, and code in the browser editor's own syntax colours. Dark mode is the app's Night palette.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
jrusso1020
left a comment
There was a problem hiding this comment.
We found no source blocker. Palette tokens match the checked product sources, and text contrast passes against the actual darkest ground pixel in both modes. Intended syntax colors also pass, although the preview still emits the old Shiki inline colors, so we can't confirm the rendered syntax-theme change. Broken links pass. We did not remeasure scrolling FPS.
Mintlify's hosted build ignores a custom code theme (the preview kept GitHub's colours), so the code-theme setting goes and each colour of the default themes (GitHub light, VS Code dark) is mapped by role to the browser editor's colour for that role. Code blocks and the fade under the copy button use the code token in both modes.
992abd6 to
72d7619
Compare
jrusso1020
left a comment
There was a problem hiding this comment.
We checked the follow-up and the hosted preview. The syntax colors now apply in light and dark mode, including the reported string colors. We found no functional blocker. One optional dark-keyword mapping gap is inline; we did not remeasure scrolling FPS.
| color: oklch(0.793 0.11 133) !important; | ||
| } | ||
|
|
||
| .dark pre span[style*="--shiki-dark: #569CD6"] { |
There was a problem hiding this comment.
[P3] One dark keyword color is still outside the mapping. On sdk/quickstart, 12 tokens such as import/from/await use --shiki-dark: #C586C0 and still compute to rgb(197, 134, 192), while the mapped keywords use the editor palette. Consider mapping that keyword variant too. This is palette consistency feedback, not a functional blocker.
jrusso1020
left a comment
There was a problem hiding this comment.
We checked the added keyword rule. With the exact-head CSS applied, all 12 SDK tokens use the editor keyword color, resolving the source mapping note. The hosted page still returned the old color before that CSS was injected, so deployed confirmation remains pending. No source blocker found.
miguel-heygen
left a comment
There was a problem hiding this comment.
Independent review at 4c285f33643cd221d014843de1350530b42257e9. This PR is open with base main; it is not already merged.
docs/custom.css:1628 now maps both dark keyword variants to the editor role. On the actual hosted SDK quickstart, without CSS injection, all 12 C586C0 keyword tokens compute to oklch(0.829 0.164 318) in dark mode and oklch(0.509 0.211 329) in light mode. Sampled strings likewise match the editor string roles in both modes. This independently closes the deployed-confirmation gap in Rames's last review.
Audited: all four changed files, palette/structural selectors and source role tokens in Studio theme.css. Executed: public hosted-preview SDK route in light/dark at desktop and 390px, screenshots and computed-token assertions; no horizontal overflow. No uncaught page errors. The preview's existing GitHub repository/star-count XHR returns 403 and logs AxiosError; the code/theme assets render, and this CSS-only change does not alter that request. I did not reproduce the author's ten-page inventory, contrast census or 120fps claim.
Current checks: 25 success / 37 skipped, no failures. No source blocker found; no new install, native/provider acceptance, paid call, production write, merge or deployment performed. Approval covers this exact head only.
Verdict: APPROVE
Reasoning: The source mapping matches the editor palette and the formerly unverified keyword rule now applies on the real hosted preview in both themes.
— Magi
What
The docs take hyperframes.dev's look, and every colour on the page comes from the Studio app's palette (picked on 26 Oct from three options).
Light mode: hyperframes.dev's ground
#131109for text and headings, its deep green#05563ffor links, and its black pill for Download Studio. The pill replaces the cyan-to-green gradient.Every other colour: the Studio app
--ink. In light mode the middle steps are darker so small text passes on the beige.--ve-*greys use the same tokens.packages/studiotheme.css--color-code-*) in both modes. Mintlify's hosted build ignores a custom code theme, so the default themes stay (GitHub light, VS Code dark) and each of their colours is mapped by role to the editor's colour for that role (strings, keywords, functions and commands, constants, tags, comments). Code blocks and the fade under the copy button sit on the code token.Dark mode: the Studio app's Night palette
#201e1c, Night cards, warm off-white ink, and the mint accent. It replaces Mintlify's neutral black.Why
hyperframes.dev, the homepage and the Studio app share one look, but the docs used Mintlify's stock theme. A full inventory of rendered colours on 10 page types found about 70 distinct colours per mode outside the product's palette. They include a blue-tinted grey used 11,000 times, GitHub's syntax colours, white code blocks and a neutral-black dark mode. Someone moving from the site or the app to the docs lands somewhere that looks like a different product.
How we'll know: a side-by-side reads as one product, and docs visitors click Download Studio as often or more (PostHog
docs-navbarsource).Related work
Separate from the content PRs (#6378–#6383). It touches only colours:
docs.json,custom.css, one catalog chip incatalog-gallery.css, and one tile border indocs-video.jsx. It can merge in any order.How
studioRedesign.css,--sr-*) for the ground, glass, ink, pill and links;packages/desktop/src/index.css(default anddata-chrome="night") for greys, surfaces and dark mode;theme.cssfor code.--hf-*tokens take the new values, and Mintlify's own--gray-*and--tw-prose-*variables point at them. Two snippets that fall back to neutral greys read--border-colorand--code-block-background, now defined.<html>in light mode. Mintlify'sbackground.imagewould require a dark image too.Test plan
mint validatepasses;mint broken-links: no broken links