-
Notifications
You must be signed in to change notification settings - Fork 1
fix(design): wire fonts via Mintlify schema, "Install" CTA, drop dead CSS #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| /* | ||
| * usezombie Mintlify overrides — Operational Restraint. | ||
| * | ||
| * Mintlify's docs.json owns the bulk of the theming (colors, fonts, | ||
| * code-block syntax theme). This file owns only the bits the schema | ||
| * can't express. Filename is `style.css` per Mintlify's documented | ||
| * convention for cloud-build custom CSS pickup. | ||
| * | ||
| * Source-of-truth tokens live in | ||
| * ~/Projects/usezombie/ui/packages/design-system/src/tokens.css. | ||
| * Hex literals here are mirrored from there — change upstream first, | ||
| * land here in the same release window. | ||
| */ | ||
|
|
||
| /* | ||
| * Variable-axis @font-face for Instrument Sans body. | ||
| * | ||
| * Mintlify's docs.json `fonts.body.weight` is schema-typed as a single | ||
| * number, so its build-time @font-face registers only weight 400 — | ||
| * `<strong>` and `font-weight: 700` would fall back to system. The | ||
| * woff2 we ship is the wght-axis variable file (covers 400–700), so | ||
| * we re-register the same family here with the full range. Browsers | ||
| * resolve font-face entries by font-weight match; the bold range | ||
| * picks our declaration when the requested weight is > 400. | ||
| */ | ||
| @font-face { | ||
| font-family: "Instrument Sans"; | ||
| src: url("/fonts/InstrumentSans-Variable.woff2") format("woff2-variations"), | ||
| url("/fonts/InstrumentSans-Variable.woff2") format("woff2"); | ||
| font-weight: 400 700; | ||
| font-style: normal; | ||
| font-display: swap; | ||
| } | ||
|
|
||
| /* | ||
| * Primary navbar button — "Install" CTA. | ||
| * | ||
| * The fill comes from `colors.primary` in docs.json (#14B8A6 cyan-mint, | ||
| * `--pulse` light-mode value). Mintlify auto-computes the foreground | ||
| * by contrast and lands on white, but the design system's --on-pulse | ||
| * token is THEME-FIXED dark (#0A0D0E) in both modes — that's the | ||
| * canonical foreground for content layered on the pulse surface | ||
| * (per ui/packages/design-system/src/tokens.css). Force it. | ||
| * | ||
| * Selector targets the navbar primary button by its href; this is | ||
| * stable against Mintlify's class-name churn between minor releases. | ||
| */ | ||
| a[href="https://app.usezombie.com"], | ||
| a[href="https://app.usezombie.com"] *, | ||
| [data-mintlify-primary-button] { | ||
| color: #0a0d0e; | ||
| } | ||
|
greptile-apps[bot] marked this conversation as resolved.
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.