Guarantee

@use 'sprucecss/scss/spruce' as *;

.guarantee {
  align-items: center;
  background-color: color('surface');
  border: config('border-width-base', $display) dashed color('border-strong');
  border-radius: radius('lg');
  display: flex;
  flex-wrap: wrap;
  gap: spacer('m');
  padding: spacer('m');

  &__seal {
    align-items: center;
    aspect-ratio: 1;
    background-color: color-alpha('success', 0.12, 'alert');
    border: 3px double color('success', 'alert');
    border-radius: 50%;
    color: color('success', 'alert');
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    font-size: config('font-size-sm', $typography);
    font-weight: 700;
    inline-size: 5rem;
    justify-content: center;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;

    strong {
      font-family: config('font-family-heading', $typography);
      font-size: 1.75rem;
    }
  }

  &__body {
    flex: 1 1 16rem;
    @include layout-stack('xxs'); // title, text
  }

  &__title {
    font-size: font-size('h5');
  }

  &__text {
    color: color('muted');
  }
}
<aside class="guarantee" aria-labelledby="guarantee-title">
    <p class="guarantee__seal" aria-hidden="true"><strong>30</strong> days</p>
    <div class="guarantee__body">
        <h3 class="guarantee__title" id="guarantee-title">30-day money-back guarantee</h3>
        <p class="guarantee__text">Read the book, watch the videos. If it isn’t for you, email us within 30 days for a full refund. No questions, no forms.</p>
    </div>
</aside>

Guarantee

On this page

A money-back guarantee next to the price or the buy button: a seal with the number of days, a title and the terms in one sentence.

Technical Details

  • It's an aside labelled by its title; the seal repeats the title, so it's hidden from screen readers.
  • The seal uses the success alert color, the frame a dashed border-strong line, so it reads as a promise, not as another card.
  • Only promise what you really offer, and keep the terms short and clear.
  • Override the content with guarantee ({ days, title, text }).

Documentation

Learn about Spruce CSS through our extensive documentation.

Components

Explore our UI library of accessible components built with Spruce CSS.

Blocks and Pages

Full-width page blocks and complete page templates, ready to copy.

Find us on GitHub

Did you find a bug? Have an idea or a question? Please open an issue to help us develop the project.