The default font for <pre> tags in Bootstrap 5 is typically a monospaced style, which suits most coding and programming needs. However, I'm looking to utilize a <pre> tag for formatting a poem where line breaks are crucial. In this case, I want the <pre> tag to adhere to the default sans-serif font used in Bootstrap 5 instead of the usual monospaced style. Is there a way to achieve this without manually copying and pasting Bootstrap's CSS styles?
Upon researching, I found that Bootstrap 5 does offer a specific class for applying a monospaced font family:
<p class="font-monospace">This text is displayed in monospace</p>
What I am actually searching for is the inverse of this, perhaps something similar to font-default
.