Skip to content

Ssstyles › Breakout

Source

The breakout component will expand its background across the content area to the left and right edges of the viewport. You can control the color of the breakout with the value of the data attribute:

Or you can define your own colors by setting --col-breakout for the background color and color for the font.

You need to import the CSS file and assign the data attribute to use it.

@import "ssstyles/css/breakout.css" layer(components);
<section data-breakout="accent2">
	<p>I've got a really, <em>really</em> important button for you:</p>
	<p><button>Clicky!</button></p>
</section>

I've got a really, really important button for you: