Skip to content

v6: examples - Use new utility classes in examples#42455

Open
coliff wants to merge 1 commit into
twbs:v6-devfrom
coliff:dev/coliff/more-v6-examples-updates
Open

v6: examples - Use new utility classes in examples#42455
coliff wants to merge 1 commit into
twbs:v6-devfrom
coliff:dev/coliff/more-v6-examples-updates

Conversation

@coliff
Copy link
Copy Markdown
Contributor

@coliff coliff commented Jun 2, 2026

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

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.
Copilot AI review requested due to automatic review settings June 2, 2026 04:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-small usage 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.

Comment thread site/src/assets/examples/sidebars/index.astro
Comment thread site/src/assets/examples/sidebars/index.astro
Comment thread site/src/assets/examples/sidebars/index.astro
Comment thread site/src/assets/examples/headers/index.astro
Comment thread site/src/assets/examples/headers/index.astro
Comment thread site/src/assets/examples/product/index.astro
Comment thread site/src/assets/examples/product/index.astro
Comment thread site/src/assets/examples/product/index.astro
Comment thread site/src/assets/examples/product/index.astro
Comment thread site/src/assets/examples/checkout/index.astro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants