Skip to content

Unable to apply custom badge style in production #2602

Answered by HiDeoo
gorohoroh asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your feedback.

Using a selector with more specifity, e.g. .sl-badge.badge-yellow when defining the styles for the badge in your custom.css file should be a working workaround at the moment.

Ultimately, the issue should be fixed when Starlight migrates to Cascade Layers which is currently in the works. When this lands, your initial approach should work as expected and your custom styles should always have higher specificity than the default styles.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gorohoroh
Comment options

Answer selected by gorohoroh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants