v6: examples - Use new utility classes in examples#42455
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.
|
I don't mind not applying it all, so I removed the CSS rule from |
julien-deramond
left a comment
There was a problem hiding this comment.
Thanks a lot for the changes, @coliff! The rendering is slightly different from v5, but the utilities are different as well and don’t necessarily provide a 1:1 feature match.
That said, the v6 examples for Jumbotron and Product look much better than what we currently have in v6-dev, so I think we can move forward with these changes rather than focus too much on the small details. Also, this helps address the issues identified in #42487, which is great :)
|
thanks for the feedback and merging. I'll try and get the remaining ones done by tomorrow! |
The main issue I've faced is the lack of |
Instead of using |
Description
Linked to #42487
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