v6: examples - Use new utility classes in examples#42455
Open
coliff wants to merge 1 commit into
Open
Conversation
Update multiple example pages to new utility naming and tokens for consistency. Replaced legacy text-*/display-*/bg-* classes with fg-*/fs-* and bg-subtle-* variants, adjusted spacing and radii (p-5 → p-9, rounded-3 → rounded-5), removed redundant text-small classes, and applied small/fg-white tweaks where appropriate. Files changed: checkout, headers, jumbotron, pricing, product, and sidebars examples to align markup with the updated design system.
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates several Astro example templates to align with updated utility class naming and spacing/typography tokens.
Changes:
- Swaps background/foreground, spacing, rounding, and font-size utility classes across examples.
- Removes
text-smallusage from menus/navs/footer lists in multiple examples. - Tweaks specific component styling (e.g., jumbotron dark panel theme + padding/rounding changes).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| site/src/assets/examples/sidebars/index.astro | Removes text-small from dropdown menus (keeps menu + shadow). |
| site/src/assets/examples/product/index.astro | Updates hero/section styling to new spacing/color/typography utilities; removes text-small from footer lists. |
| site/src/assets/examples/pricing/index.astro | Removes text-small from footer lists. |
| site/src/assets/examples/jumbotron/index.astro | Updates header link color utilities; refreshes jumbotron spacing/rounding and dark panel theming. |
| site/src/assets/examples/headers/index.astro | Removes text-small from menus and a nav list; keeps shadows/structure. |
| site/src/assets/examples/checkout/index.astro | Replaces text-small with small on footer. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Update multiple example pages to new utility naming and tokens for consistency. Replaced legacy text-/display-/bg-* classes with fg-/fs- and bg-subtle-* variants, adjusted spacing and radii (p-5 → p-9, rounded-3 → rounded-5), removed redundant text-small classes, and applied small/fg-white tweaks where appropriate. Files changed: checkout, headers, jumbotron, pricing, product, and sidebars examples to align markup with the updated design system.
FYI: text-small was used quite a bit in markup but it had no corresponding CSS class so it didn't actually appear any different so I removed the class on all bu the the checkout where in my opinion the copyright info makes a bit more sense to be smaller.
Motivation & Context
Make them look nicer. :-)
Type of changes
Checklist
npm run lint)Live previews
Related issues