Code

Style pre once and forget: paste code in a pre and it reads like a terminal window.

Description

pre is styled as a dark panel: black background, white text, font-weight 300, 0.8em size, 2em padding, the panel border radius and horizontal overflow with auto scrolling.

Colors are literal black/white (no custom property), so pair this module with your own highlighting theme or override pre in your layer if you need softer tones. The radius follows $border-radius-panel.

Code blocks

Zero classes and no syntax-highlight dependency for simple blocks; long lines scroll horizontally instead of breaking the layout.

npm install forma-css
@use "forma" with (
  $color-primary: #083cc0
);
HTML
<pre><code>npm install forma-css</code></pre>
<pre><code>@use "forma" with (
  $color-primary: #083cc0
);</code></pre>