Badges & Buttons¶
Inline badges and clickable buttons from sphinx-design for labeling and calls to action. Requires the sphinx_design extension — see sphinx-design for setup.
Badges¶
Inline badges for status labels, version tags, and categories.
plain primary secondary success warning danger info light dark
The MyST syntax:
{bdg}`plain`
{bdg-primary}`primary`
{bdg-secondary}`secondary`
{bdg-success}`success`
{bdg-warning}`warning`
{bdg-danger}`danger`
{bdg-info}`info`
Outline Badges¶
Badges with an outline style for a lighter visual weight.
primary secondary success warning danger info
The MyST syntax:
{bdg-primary-line}`primary`
{bdg-success-line}`success`
Badges in Context¶
Badges work naturally inline with text: The API is stable and supports Python 3.12+. The old endpoint is deprecated.
Practical Examples¶
Version and Status Indicators¶
Document API stability inline: The configuration API is stable, the plugin system is beta, and the WebSocket support is experimental.
Feature Matrices¶
Feature |
Status |
Notes |
|---|---|---|
Dark mode |
shipped |
Light, dark, and auto modes |
i18n |
planned |
Targeted for v2 |
PDF export |
considering |
Community request |
Call-to-Action Patterns¶
Use primary buttons for the main action and outline buttons for alternatives:
Tip
Use badges for inline labels — status, versions, categories
Use buttons for navigation — “Get Started”, “View Source”, “Download”
Use primary color for the single most important action on a page
Use outline or secondary for supplementary actions