Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs Site] Adopt Cloudflare styling for badge component #19390

Open
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

KianNH
Copy link
Contributor

@KianNH KianNH commented Jan 23, 2025

Summary

Adopt Cloudflare styling for badge component. This overrides all variant and size combinations, so all badges will be blue in light mode and orange in dark mode.

There is an escape hatch for existing components that leveraged gray badges, where class="sl-badge gray" can be used.

We will adopt the rest of the hues from the official component and map these to Starlight's variants in the future.

Screenshots (optional)

Before:
image

After:
image

Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 96e3f9b
Status: ✅  Deploy successful!
Preview URL: https://30fbd70f.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-15488.cloudflare-docs-7ou.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants