Basic

Wrap a token in code to set it apart from the sentence.

Install the package with npm install @tabler/core and import tabler.min.css in your layout.

Set data-bs-theme="dark" on the html element to turn on dark mode.

Text colors

Inside a .text-* class the code follows the color of the text.

Colored with .text-primary
Colored with .text-secondary
Colored with .text-success
Colored with .text-warning
Colored with .text-danger
Colored with .text-info

Links

Code inside a link keeps the link color and its hover state.

Read the guide to light-dark() colors before you change the palette.

The defaults live in _variables.scss.

Colored surfaces

On a .bg-* surface the code stays readable.

Surface with .bg-primary
Surface with .bg-dark
Surface with .bg-primary-lt
Surface with .bg-danger-lt
Surface with .bg-surface-secondary

Alerts

Code in an alert message.

Text sizes

Code scales with the text around it.

Heading with .h1
Heading with .h3
Body text with code
Small secondary text with .small
Bold text with strong