Unify homepage card styles and typography#3329
Open
annakudelska wants to merge 2 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
👋 Thank you so much for contributing to the Strapi documentation! Our team is currently away and won't be able to review your pull request right away. Rest assured we'll get to it as soon as we're back. Thanks a lot for your patience! 🙏 |
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.
This PR unifies the styling of the cards on the documentation homepage, which previously looked inconsistent because some cards read as filled while others visually blended into the page background. All five card types (quick start, explore, features, showcase, and deploy) now share the same outline treatment: a transparent background, a
--strapi-border-strongborder, a 16px radius (--strapi-radius-lg), a subtle--strapi-shadow-xsshadow to lift them off the page, and identical hover behaviour (an--strapi-accent-lightborder plus a 2px lift).Card headings are also unified. They now all use the Poppins display font (
--strapi-font-family-display), the--strapi-fg-1text color, and a 600 font weight, which fixes the "Powerful features" titles that previously used a different font, color, and weight from every other section. Icon tile radii are normalised to 12px and all three card grids now use a 24px gap.In dark mode, the hard-coded
#1a1a2ecard fills and redundant hover overrides were removed so cards stay transparent and rely on the border, which flips automatically via the token. Icon tile backgrounds in dark mode are unified to a single value.Only
docusaurus/src/pages/home/home.module.scsswas changed andyarn buildpasses without errors.