Skip to main content

Utility Classes

The theme ships a small set of optional utility classes useful for API reference and operational documentation. They are included in theme.css but have no effect unless you use them in your Markdown/MDX.

HTTP method labels

Handy for documenting REST APIs inline:

ClassOutput
.method-getGET
.method-postPOST
.method-putPUT
.method-deleteDELETE
.method-patchPATCH
<span class="method-get">GET</span> `/api/users`

<span class="method-post">POST</span> `/api/users`

<span class="method-delete">DELETE</span> `/api/users/{id}`

Status labels

For operational runbooks, health check tables, and incident response docs:

ClassOutput
.status-okOK
.status-warnWARN
.status-critCRIT
.status-unknownUNKNOWN
| Node          | Status                                  |
|---------------|-----------------------------------------|
| web-01 | <span class="status-ok">OK</span> |
| db-primary | <span class="status-warn">WARN</span> |
| cache-01 | <span class="status-crit">CRIT</span> |
| worker-03 | <span class="status-unknown">UNKNOWN</span> |

Docusaurus badges

Standard Docusaurus badge classes, styled to match the TailAdmin palette:

<span class="badge badge--success">stable</span>
<span class="badge badge--warning">beta</span>
<span class="badge badge--danger">deprecated</span>

Result: stable  beta  deprecated