Inline code
Inline code marks a class, a file name or a short command inside a sentence.
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-primaryColored with
.text-secondaryColored with
.text-successColored with
.text-warningColored with
.text-dangerColored with
.text-infoLinks
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-primarySurface with
.bg-darkSurface with
.bg-primary-ltSurface with
.bg-danger-ltSurface with
.bg-surface-secondaryAlerts
Code in an alert message.
The
deploy.yml job ended with status success.The
deploy.yml job ended with status warning.The
deploy.yml job ended with status danger.The
deploy.yml job ended with status info.Text sizes
Code scales with the text around it.
Heading with
.h1Heading with
.h3Body text with
codeSmall secondary text with
.small
Bold text with
strong