feat(docs-site): swizzle DocCard, restyle to match LinkCard#2294
Merged
Conversation
Swizzle DocCard and DocCardList from @docusaurus/theme-classic so we can own the markup and styling. Restyle the CSS modules to mirror the LinkCard look from #2102: 16px radius, 2rem padding, hairline border, no shadow, hover bumps the border; title at 1.25rem / 600 / -0.01em with dark text in light mode and white in dark mode; description at 0.95rem with line-height 1.6. React structure left unchanged; the existing Infima row/col grid in DocCardList still drives layout. Also bump heading tokens in custom.css to pure black in light mode and pure white in dark mode (was inheriting Infima's soft #e3e3e3 on dark). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
krisxcrash
approved these changes
Jun 26, 2026
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
Swizzle `DocCard` and `DocCardList` from `@docusaurus/theme-classic` so we own the markup and the styling, then restyle the CSS modules to mirror the `LinkCard` look from #2102 (closed) — bringing those design choices into the components Docusaurus uses for ``.
Card styling
Typography
React structure of the swizzled components left unchanged. The existing Infima `row` + `col col--6` grid in `DocCardList` continues to drive layout — no extra grid added.
Heading tokens
Also bumps `--ifm-heading-color` to pure black in light mode and pure white in dark mode (was inheriting Infima's soft `#e3e3e3` on dark).
Test plan
🤖 Generated with Claude Code