Material for MkDocs provides dedicated styles for primary and secondary buttons that can be added to any link,
button element. This is especially useful for documents or landing pages with dedicated call-to-actions.
This configuration allows to add attributes to all inline- and block-level elements with a simple syntax, turning any link into a button. Add the following lines to
See additional configuration options:
Adding primary buttons¶
If you want to display a filled, primary button (like on the landing page of Material for MkDocs), add both, the
.md-button--primary CSS class selectors.